Skip to content

Commit 8ecc882

Browse files
preghenellasawenzel
authored andcommitted
inhibit-restart sim: Small adjustments
* Read ConfigParams of O2Kine generator at Init stage * Remove leftover printouts
1 parent c2bc3f6 commit 8ecc882

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Generators/src/GeneratorFromFile.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,19 @@ GeneratorFromO2Kine::GeneratorFromO2Kine(const char* name)
178178
}
179179
}
180180
LOG(ERROR) << "Problem reading events from file " << name;
181+
}
182+
183+
bool GeneratorFromO2Kine::Init()
184+
{
181185

182186
// read and set params
183187
auto& param = GeneratorFromO2KineParam::Instance();
184-
LOG(INFO) << "Instance \'FromO2Kine\' generator with following parameters";
188+
LOG(INFO) << "Init \'FromO2Kine\' generator with following parameters";
185189
LOG(INFO) << param;
186190
mSkipNonTrackable = param.skipNonTrackable;
187191
mContinueMode = param.continueMode;
192+
193+
return true;
188194
}
189195

190196
void GeneratorFromO2Kine::SetStartEvent(int start)

run/SimExamples/Selective_Transport_pi0/trigger_pi0.macro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ bool has_pi0_converted(const TParticle& pi0, const std::vector<TParticle>& parti
1919
{
2020
if (pi0.GetPdgCode() != 111) return false;
2121
if (std::fabs(pi0.Eta()) > 1.0) return false;
22-
// pi0.Print();
23-
// std::cout << "HERE: " << pi0.GetNDaughters() << std::endl;
2422
if (pi0.GetNDaughters() != 2) return false;
2523
auto& d1 = particles[pi0.GetFirstDaughter()];
2624
auto& d2 = particles[pi0.GetLastDaughter()];

0 commit comments

Comments
 (0)