Skip to content

Commit 695beba

Browse files
authored
Merge pull request cms-sw#43273 from civanch/RStop_trace
[14_0_X SIM] Allowed MT mode for RHStopTracer of R-hadron simulation
2 parents b8e3f2c + 1c0e386 commit 695beba

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

SimG4Core/CustomPhysics/interface/RHStopTracer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RHStopTracer : public SimProducer,
2222
public Observer<const EndOfTrack *> {
2323
public:
2424
RHStopTracer(edm::ParameterSet const &p);
25-
~RHStopTracer() override;
25+
~RHStopTracer() override = default;
2626
void update(const BeginOfRun *) override;
2727
void update(const BeginOfEvent *) override;
2828
void update(const BeginOfTrack *) override;

SimG4Core/CustomPhysics/plugins/RHStopTracer.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ RHStopTracer::RHStopTracer(edm::ParameterSet const& p) {
3636

3737
mTraceEnergy *= CLHEP::GeV;
3838
rePartName = mTraceParticleName;
39+
setMT(true);
3940

40-
edm::LogInfo("SimG4CoreCustomPhysics") << "RHStopTracer::RHStopTracer " << mTraceParticleName
41-
<< " Eth(GeV)= " << mTraceEnergy;
41+
edm::LogVerbatim("SimG4CoreCustomPhysics")
42+
<< "RHStopTracer::RHStopTracer " << mTraceParticleName << " Eth(GeV)= " << mTraceEnergy;
4243
}
4344

44-
RHStopTracer::~RHStopTracer() {}
45-
4645
void RHStopTracer::update(const BeginOfRun* fRun) {
4746
LogDebug("SimG4CoreCustomPhysics") << "RHStopTracer::update-> begin of the run " << (*fRun)()->GetRunID();
4847
}

0 commit comments

Comments
 (0)