From ddccab99a9d879fa2d9aacd470d8ce383294fb66 Mon Sep 17 00:00:00 2001 From: Andreas Gruber Date: Fri, 20 Oct 2023 10:28:34 +0200 Subject: [PATCH] Persist SimTauDecayCaloParticle in the event --- .../CaloAnalysis/interface/SimTauDecayCaloParticle.h | 2 +- SimDataFormats/CaloAnalysis/src/classes.h | 1 + SimGeneral/Debugging/plugins/SimTauProducer.cc | 2 +- SimGeneral/Debugging/test/simTauDecayDump_cfg.py | 5 +++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SimDataFormats/CaloAnalysis/interface/SimTauDecayCaloParticle.h b/SimDataFormats/CaloAnalysis/interface/SimTauDecayCaloParticle.h index 7c977bd5c1878..524a93581a3a5 100644 --- a/SimDataFormats/CaloAnalysis/interface/SimTauDecayCaloParticle.h +++ b/SimDataFormats/CaloAnalysis/interface/SimTauDecayCaloParticle.h @@ -12,7 +12,7 @@ class SimTauDecayCaloParticle { public: SimTauDecayCaloParticle(){}; - + ~SimTauDecayCaloParticle(){}; struct DecayNav { int pdgId; int resonance_idx; diff --git a/SimDataFormats/CaloAnalysis/src/classes.h b/SimDataFormats/CaloAnalysis/src/classes.h index edea8abde20f8..a4b31853a65c5 100644 --- a/SimDataFormats/CaloAnalysis/src/classes.h +++ b/SimDataFormats/CaloAnalysis/src/classes.h @@ -11,3 +11,4 @@ #include "SimDataFormats/CaloAnalysis/interface/MtdSimTrackster.h" #include "SimDataFormats/CaloAnalysis/interface/MtdSimTracksterFwd.h" #include "SimDataFormats/CaloAnalysis/interface/SimTauDecayCaloParticle.h" +#include "DataFormats/Common/interface/Wrapper.h" diff --git a/SimGeneral/Debugging/plugins/SimTauProducer.cc b/SimGeneral/Debugging/plugins/SimTauProducer.cc index 255e121930d1b..f3520a949599e 100644 --- a/SimGeneral/Debugging/plugins/SimTauProducer.cc +++ b/SimGeneral/Debugging/plugins/SimTauProducer.cc @@ -30,7 +30,7 @@ #include "FWCore/ServiceRegistry/interface/Service.h" #include "CommonTools/UtilAlgos/interface/TFileService.h" -#define DEBUG 0 +#define DEBUG 1 /*struct TauDecay { struct DecayNav { diff --git a/SimGeneral/Debugging/test/simTauDecayDump_cfg.py b/SimGeneral/Debugging/test/simTauDecayDump_cfg.py index bcd518d54bd05..563c794c44f13 100644 --- a/SimGeneral/Debugging/test/simTauDecayDump_cfg.py +++ b/SimGeneral/Debugging/test/simTauDecayDump_cfg.py @@ -31,8 +31,9 @@ process.out = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('file:SimTauProducer_test.root') ,outputCommands = cms.untracked.vstring('drop *', - "keep *SimTau*" - ) + 'keep *SimTau*_*_*_*' + ) ) process.p = cms.Path(process.SimTauProducer) +process.e = cms.EndPath(process.out)