@@ -74,23 +74,10 @@ GPUd() void GPUTPCGMPropagator::GetBxByBzBase(float cosAlpha, float sinAlpha, fl
7474 B[0 ] = bb[0 ] * cosAlpha + bb[1 ] * sinAlpha;
7575 B[1 ] = -bb[0 ] * sinAlpha + bb[1 ] * cosAlpha;
7676 B[2 ] = bb[2 ];
77- /* if( mToyMCEvents ){ // special treatment for toy monte carlo
78- B[0] = 0;
79- B[1] = 0;
80- B[2] = mField->GetNominalBz();
81- }*/
8277}
8378
8479GPUd () float GPUTPCGMPropagator::GetBzBase(float cosAlpha, float sinAlpha, float X, float Y, float Z) const
8580{
86- if (mToyMCEvents ) { // special treatment for toy monte carlo
87- float B[3 ];
88- GetBxByBzBase (cosAlpha, sinAlpha, X, Y, Z, B);
89- return B[2 ];
90- }
91-
92- // get global coordinates
93-
9481 float gx = getGlobalX (cosAlpha, sinAlpha, X, Y);
9582 float gy = getGlobalY (cosAlpha, sinAlpha, X, Y);
9683
@@ -529,8 +516,7 @@ GPUd() int32_t GPUTPCGMPropagator::FollowLinearization(const GPUTPCGMPhysicalTra
529516 float dLabs = CAMath::Abs (dLmask);
530517
531518 // Energy Loss
532-
533- if (1 || !mToyMCEvents ) {
519+ if (true ) {
534520 // std::cout<<"APPLY ENERGY LOSS!!!"<<std::endl;
535521 float corr = 1 .f - mMaterial .EP2 * dLmask;
536522 float corrInv = 1 .f / corr;
@@ -553,8 +539,7 @@ GPUd() int32_t GPUTPCGMPropagator::FollowLinearization(const GPUTPCGMPhysicalTra
553539 }
554540
555541 // Multiple Scattering
556-
557- if (!mToyMCEvents ) {
542+ if (true ) {
558543 mC22 += dLabs * mMaterial .k22 * mT0 .CosPhi () * mT0 .CosPhi ();
559544 mC33 += dLabs * mMaterial .k33 ;
560545 mC43 += dLabs * mMaterial .k43 ;
@@ -1038,7 +1023,7 @@ GPUd() void GPUTPCGMPropagator::Mirror(bool inFlyDirection)
10381023 ChangeDirection ();
10391024
10401025 // Energy Loss
1041- if (1 || ! mToyMCEvents ) {
1026+ if (true ) {
10421027 // std::cout<<"MIRROR: APPLY ENERGY LOSS!!!"<<std::endl;
10431028
10441029 float dL = CAMath::Abs (dS * mT0 .GetDlDs ());
0 commit comments