9 #include <boost/bind.hpp>
34 HBHEPileInputTag_(ps.getParameter<edm::
InputTag>(
"HBHEPileInputTag")),
35 HOPileInputTag_(ps.getParameter<edm::
InputTag>(
"HOPileInputTag")),
36 HFPileInputTag_(ps.getParameter<edm::
InputTag>(
"HFPileInputTag")),
37 ZDCPileInputTag_(ps.getParameter<edm::
InputTag>(
"ZDCPileInputTag")),
38 label_(ps.getParameter<std::
string>(
"Label"))
109 produces< DTDigiCollection >();
110 produces< RPCDigiCollection >();
167 produces< HBHEDigiCollection >();
168 produces< HODigiCollection >();
169 produces< HFDigiCollection >();
170 produces< ZDCDigiCollection >();
172 produces<HBHEUpgradeDigiCollection>(
"HBHEUpgradeDigiCollection");
173 produces<HFUpgradeDigiCollection>(
"HFUpgradeDigiCollection");
212 produces< DTDigiCollection >();
213 produces< RPCDigiCollection >();
260 produces< std::vector<PileupSummaryInfo> >();
261 produces<CrossingFramePlaybackInfoExtended>();
336 LogDebug(
"DataMixingModule")<<
"===============> adding MC signals for "<<e.
id();
381 LogDebug(
"DataMixingModule") <<
"\n===============> adding pileups from event "<<ep.
id()<<
" for bunchcrossing "<<bcr;
435 std::vector<edm::EventID> recordEventID;
436 std::vector<int> PileupList;
443 for (
unsigned int isource=0;isource<
maxNbSources_;++isource) {
445 if (not source
or not source->doPileUp())
451 int NumPU_Events = 0;
453 NumPU_Events = PileupList[bunchCrossing -
minBunch_];
463 _1, bunchCrossing, _2, boost::cref(ES), mcc),
virtual void doPileUp(edm::Event &e, const edm::EventSetup &ES) override
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void addSiStripSignals(const edm::Event &e)
void addMuonSignals(const edm::Event &e)
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &eventSetup)
std::string HFDigiCollectionDM_
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
void putEM(edm::Event &e)
void addSiStripSignals(const edm::Event &e)
void addHcalSignals(const edm::Event &e)
static std::string const source("source")
std::string HBHERecHitCollectionDM_
std::string ZDCRecHitCollectionDM_
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void addMuonPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
void addEMSignals(const edm::Event &e)
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
DataMixingGeneralTrackWorker * GeneralTrackWorker_
std::string CSCStripDigiCollectionDM_
void putPileupInfo(edm::Event &e)
std::vector< float > TrueNumInteractions_
EventID const & id() const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::string SiStripDigiCollectionDM_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
virtual void initializeEvent(const edm::Event &e, edm::EventSetup const &iSetup)
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
void setHFAccess(edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok)
ModuleDescription const & moduleDescription() const
void setZDCAccess(edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok)
void addSiPixelPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
std::string CSCWireDigiCollectionDM_
void putEM(edm::Event &e, const edm::EventSetup &ES)
DataMixingSiStripRawWorker * SiStripRawWorker_
DataMixingSiPixelWorker * SiPixelWorker_
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
ModuleCallingContext const * moduleCallingContext() const
DataMixingSiStripMCDigiWorker * SiStripMCDigiWorker_
std::string RPCDigiCollectionDM_
void putHcal(edm::Event &e, const edm::EventSetup &ES)
std::string ZDCDigiCollectionDM_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
DataMixingHcalDigiWorker * HcalDigiWorker_
DataMixingEMWorker * EMWorker_
std::string GeneralTrackCollectionDM_
virtual void addSignals(const edm::Event &e, const edm::EventSetup &ES)
static const unsigned int maxNbSources_
void addGeneralTrackSignals(const edm::Event &e)
DataMixingPileupCopy * PUWorker_
void putSiPixel(edm::Event &e)
void setHBHEAccess(edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok)
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::string HORecHitCollectionDM_
DataMixingMuonWorker * MuonWorker_
void putSiStrip(edm::Event &e)
virtual void getSubdetectorNames()
std::string EEDigiCollectionDM_
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, edm::ModuleCallingContext const *)
edm::InputTag HBHEPileInputTag_
std::string HFRecHitCollectionDM_
void pileWorker(const edm::EventPrincipal &, int bcr, int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
std::string HBHEDigiCollectionDM_
std::string EBRecHitCollectionDM_
std::string CSCComparatorDigiCollectionDM_
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
edm::InputTag HOPileInputTag_
void putHcal(edm::Event &e, const edm::EventSetup &ES)
void putHcal(edm::Event &e)
std::vector< boost::shared_ptr< PileUp > > inputSources_
DataMixingSiStripWorker * SiStripWorker_
std::string ESRecHitCollectionDM_
std::string EERecHitCollectionDM_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
std::string ESDigiCollectionDM_
std::string DTDigiCollectionDM_
void addSiStripSignals(const edm::Event &e)
std::string EBDigiCollectionDM_
virtual ~DataMixingModule()
DataMixingHcalWorker * HcalWorker_
void setHOAccess(edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok)
edm::InputTag HFPileInputTag_
std::string HODigiCollectionDM_
void addGeneralTrackPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::string PixelDigiCollectionDM_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
DataMixingHcalDigiWorkerProd * HcalDigiWorkerProd_
void putMuon(edm::Event &e)
void putSiStrip(edm::Event &e, edm::EventSetup const &iSetup)
void putGeneralTrack(edm::Event &e)
void addPileupInfo(const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *mcc)
void addEMSignals(const edm::Event &e, const edm::EventSetup &ES)
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
void setupPileUpEvent(const edm::EventSetup &setup)
DataMixingEMDigiWorker * EMDigiWorker_
void addSiPixelSignals(const edm::Event &e)
edm::InputTag ZDCPileInputTag_
void putSiStrip(edm::Event &e)
virtual void put(edm::Event &e, const edm::EventSetup &ES)