Skip to content

Commit 4f395b4

Browse files
committed
GPU: Remove toyMC debug flag in propagator and RTC param
1 parent 0b8dfca commit 4f395b4

File tree

14 files changed

+5
-37
lines changed

14 files changed

+5
-37
lines changed

GPU/GPUTracking/Base/GPUParam.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ void GPUParam::SetDefaults(float solenoidBz, bool assumeConstantBz)
109109
SectorParam[i].AngleMax = SectorParam[i].Alpha + par.dAlpha / 2.f;
110110
}
111111

112-
par.toyMCEventsFlag = false;
113112
par.continuousTracking = false;
114113
continuousMaxTimeBin = 0;
115114
tpcCutTimeBin = 0;
@@ -120,7 +119,6 @@ void GPUParam::UpdateSettings(const GPUSettingsGRP* g, const GPUSettingsProcessi
120119
{
121120
if (g) {
122121
UpdateBzOnly(g->solenoidBzNominalGPU, g->constBz);
123-
par.toyMCEventsFlag = g->homemadeEvents;
124122
par.continuousTracking = g->grpContinuousMaxTimeBin != 0;
125123
continuousMaxTimeBin = g->grpContinuousMaxTimeBin == -1 ? GPUSettings::TPC_MAX_TF_TIME_BIN : g->grpContinuousMaxTimeBin;
126124
tpcCutTimeBin = g->tpcCutTimeBin;

GPU/GPUTracking/DataCompression/GPUTPCCompressionTrackModel.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ GPUd() void GPUTPCCompressionTrackModel::Init(float x, float y, float z, float a
2727
{
2828
mProp.SetMaterialTPC();
2929
mProp.SetMaxSinPhi(GPUCA_MAX_SIN_PHI);
30-
mProp.SetToyMCEventsFlag(false);
3130
mProp.SetSeedingErrors(true); // Larger errors for seeds, better since we don't start with good hypothesis
3231
mProp.SetFitInProjections(true);
3332
mProp.SetPropagateBzOnly(true);

GPU/GPUTracking/DataTypes/GPUSettings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct GPUSettingsGRP {
5252
// All new members must be sizeof(int32_t) resp. sizeof(float) for alignment reasons!, default value for newly added members for old data will be 0.
5353
float solenoidBzNominalGPU = -5.00668f; // solenoid field strength
5454
int32_t constBz = 0; // for test-MC events with constant Bz
55-
int32_t homemadeEvents = 0; // Toy-MC events
55+
int32_t removed0 = 0; // Obsolete parameter, dummy value needed to support reading old dumps
5656
int32_t grpContinuousMaxTimeBin = -2; // 0 for triggered events, -1 for automatic setting, -2 invalid default
5757
int32_t needsClusterer = 0; // Set to true if the data requires the clusterizer
5858
int32_t doCompClusterDecode = 0; // Set to true if the data contains compressed TPC clusters

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,6 @@ EndConfig()
652652
// Derrived parameters used in GPUParam
653653
BeginHiddenConfig(GPUSettingsParam, param)
654654
AddVariableRTC(dAlpha, float, 0.f) // angular size
655-
AddVariableRTC(toyMCEventsFlag, int8_t, 0) // events were build with home-made event generator
656655
AddVariableRTC(continuousTracking, int8_t, 0) // Continuous tracking, estimate bz and errors for abs(z) = 125cm during seeding
657656
AddVariableRTC(dodEdx, int8_t, 0) // Do dEdx computation
658657
AddVariableRTC(earlyTpcTransform, int8_t, 0) // do Early TPC transformation

GPU/GPUTracking/ITS/GPUITSFitterKernels.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ GPUdii() void GPUITSFitterKernels::Thread<0>(int32_t nBlocks, int32_t nThreads,
6363
GPUTPCGMPropagator prop;
6464
prop.SetPolynomialField(&processors.param.polynomialField);
6565
prop.SetMaxSinPhi(GPUCA_MAX_SIN_PHI);
66-
prop.SetToyMCEventsFlag(0);
6766
prop.SetFitInProjections(1);
6867
float bz = -5.f; // FIXME
6968

GPU/GPUTracking/Merger/GPUTPCGMMerger.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ GPUd() int32_t GPUTPCGMMerger::RefitSectorTrack(GPUTPCGMSectorTrack& sectorTrack
493493
GPUTPCGMPropagator prop;
494494
prop.SetMaterialTPC();
495495
prop.SetMaxSinPhi(GPUCA_MAX_SIN_PHI);
496-
prop.SetToyMCEventsFlag(false);
497496
prop.SetSeedingErrors(true); // Larger errors for seeds, better since we don't start with good hypothesis
498497
prop.SetFitInProjections(false);
499498
prop.SetPolynomialField(&Param().polynomialField);

GPU/GPUTracking/Merger/GPUTPCGMPropagator.cxx

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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

8479
GPUd() 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());

GPU/GPUTracking/Merger/GPUTPCGMPropagator.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ class GPUTPCGMPropagator
8989

9090
GPUd() void SetFitInProjections(bool Flag) { mFitInProjections = Flag; }
9191
GPUd() void SetPropagateBzOnly(bool Flag) { mPropagateBzOnly = Flag; }
92-
GPUd() void SetToyMCEventsFlag(bool Flag) { mToyMCEvents = Flag; }
9392
GPUd() void SetSeedingErrors(bool Flag) { mSeedingErrors = Flag; }
9493
GPUd() void SetMatLUT(const o2::base::MatLayerCylSet* lut) { mMatLUT = lut; }
9594

@@ -191,7 +190,6 @@ class GPUTPCGMPropagator
191190
bool mSeedingErrors = 0; // TODO: Hide variable in Run3 mode
192191
bool mFitInProjections = 1; // fit (Y,SinPhi,QPt) and (Z,DzDs) paramteres separatelly
193192
bool mPropagateBzOnly = 0; // Use Bz only in propagation
194-
bool mToyMCEvents = 0; // events are simulated with simple home-made simulation
195193
};
196194

197195
GPUdi() void GPUTPCGMPropagator::GetBxByBz(float Alpha, float X, float Y, float Z, float B[3]) const

GPU/GPUTracking/Merger/GPUTPCGMTrackParam.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ GPUd() bool GPUTPCGMTrackParam::Fit(GPUTPCGMMerger* GPUrestrict() merger, int32_
6767
prop.SetMaterialTPC();
6868
prop.SetPolynomialField(&param.polynomialField);
6969
prop.SetMaxSinPhi(maxSinPhi);
70-
prop.SetToyMCEventsFlag(param.par.toyMCEventsFlag);
7170
if ((clusters[0].sector < 18) == (clusters[N - 1].sector < 18)) {
7271
ShiftZ2(clusters, clustersXYZ, merger, N);
7372
}
@@ -744,7 +743,6 @@ GPUdii() void GPUTPCGMTrackParam::RefitLoop(const GPUTPCGMMerger* GPUrestrict()
744743
prop.SetMaterialTPC();
745744
prop.SetPolynomialField(&Merger->Param().polynomialField);
746745
prop.SetMaxSinPhi(GPUCA_MAX_SIN_PHI);
747-
prop.SetToyMCEventsFlag(Merger->Param().par.toyMCEventsFlag);
748746
prop.SetMatLUT(Merger->Param().rec.useMatLUT ? Merger->GetConstantMem()->calibObjects.matLUT : nullptr);
749747
prop.SetSeedingErrors(false);
750748
prop.SetFitInProjections(true);

GPU/GPUTracking/Merger/macros/checkPropagation.C

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ int32_t checkPropagation()
9191

9292
GPUTPCGMPropagator prop;
9393
prop.SetPolynomialField(&field);
94-
prop.SetToyMCEventsFlag(kTRUE);
9594

9695
const int32_t nTracks = 1000;
9796

0 commit comments

Comments
 (0)