From 539f1d0628f653ebefe46945deec480d60367a71 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Tue, 14 Nov 2023 17:10:47 +0100 Subject: [PATCH] Allowed MT mode for RHStopTracer --- SimG4Core/CustomPhysics/interface/RHStopTracer.h | 2 +- SimG4Core/CustomPhysics/plugins/RHStopTracer.cc | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/SimG4Core/CustomPhysics/interface/RHStopTracer.h b/SimG4Core/CustomPhysics/interface/RHStopTracer.h index ed87e6c66f2e8..d51ac6f3bebe2 100644 --- a/SimG4Core/CustomPhysics/interface/RHStopTracer.h +++ b/SimG4Core/CustomPhysics/interface/RHStopTracer.h @@ -22,7 +22,7 @@ class RHStopTracer : public SimProducer, public Observer { public: RHStopTracer(edm::ParameterSet const &p); - ~RHStopTracer() override; + ~RHStopTracer() override = default; void update(const BeginOfRun *) override; void update(const BeginOfEvent *) override; void update(const BeginOfTrack *) override; diff --git a/SimG4Core/CustomPhysics/plugins/RHStopTracer.cc b/SimG4Core/CustomPhysics/plugins/RHStopTracer.cc index c945a99def2fe..38ef826ff960b 100644 --- a/SimG4Core/CustomPhysics/plugins/RHStopTracer.cc +++ b/SimG4Core/CustomPhysics/plugins/RHStopTracer.cc @@ -36,13 +36,12 @@ RHStopTracer::RHStopTracer(edm::ParameterSet const& p) { mTraceEnergy *= CLHEP::GeV; rePartName = mTraceParticleName; + setMT(true); - edm::LogInfo("SimG4CoreCustomPhysics") << "RHStopTracer::RHStopTracer " << mTraceParticleName - << " Eth(GeV)= " << mTraceEnergy; + edm::LogVerbatim("SimG4CoreCustomPhysics") + << "RHStopTracer::RHStopTracer " << mTraceParticleName << " Eth(GeV)= " << mTraceEnergy; } -RHStopTracer::~RHStopTracer() {} - void RHStopTracer::update(const BeginOfRun* fRun) { LogDebug("SimG4CoreCustomPhysics") << "RHStopTracer::update-> begin of the run " << (*fRun)()->GetRunID(); }