39 EBPileInputTag_(ps.getParameter<
edm::
InputTag>(
"EBPileInputTag")),
40 EEPileInputTag_(ps.getParameter<
edm::
InputTag>(
"EEPileInputTag")),
41 ESPileInputTag_(ps.getParameter<
edm::
InputTag>(
"ESPileInputTag")),
42 HBHEPileInputTag_(ps.getParameter<
edm::
InputTag>(
"HBHEPileInputTag")),
43 HOPileInputTag_(ps.getParameter<
edm::
InputTag>(
"HOPileInputTag")),
44 HFPileInputTag_(ps.getParameter<
edm::
InputTag>(
"HFPileInputTag")),
45 ZDCPileInputTag_(ps.getParameter<
edm::
InputTag>(
"ZDCPileInputTag")),
46 QIE10PileInputTag_(ps.getParameter<
edm::
InputTag>(
"QIE10PileInputTag")),
47 QIE11PileInputTag_(ps.getParameter<
edm::
InputTag>(
"QIE11PileInputTag")),
48 label_(ps.getParameter<
std::
string>(
"Label"))
112 produces< HBHEDigiCollection >();
113 produces< HODigiCollection >();
114 produces< HFDigiCollection >();
115 produces< ZDCDigiCollection >();
117 produces<QIE10DigiCollection>(
"HFQIE10DigiCollection");
118 produces<QIE11DigiCollection>(
"HBHEQIE11DigiCollection");
121 produces<CaloSamplesCollection>(
"HcalSamples");
124 produces<edm::PCaloHitContainer>(
"HcalHits");
154 produces< DTDigiCollection >();
155 produces< RPCDigiCollection >();
197 produces< std::vector<PileupSummaryInfo> >();
198 produces< int >(
"bunchSpacing");
199 produces<CrossingFramePlaybackInfoNew>();
202 GenPUProtonsInputTags = ps.
getParameter<std::vector<edm::InputTag> >(
"GenPUProtonsInputTags");
203 for(std::vector<edm::InputTag>::const_iterator it_InputTag = GenPUProtonsInputTags.begin();
204 it_InputTag != GenPUProtonsInputTags.end(); ++it_InputTag)
205 produces< std::vector<reco::GenParticle> >( it_InputTag->label() );
281 LogDebug(
"DataMixingModule")<<
"===============> adding MC signals for "<<e.
id();
322 LogDebug(
"DataMixingModule") <<
"\n===============> adding pileups from event "<<ep.
id()<<
" for bunchcrossing "<<bcr;
375 std::vector<edm::SecondaryEventIDAndFileInfo> recordEventID;
376 std::vector<int> PileupList;
383 for (
unsigned int isource=0;isource<
maxNbSources_;++isource) {
385 if (!source || !(source->doPileUp(bunchCrossing)))
391 int NumPU_Events = 0;
393 NumPU_Events = PileupList[bunchCrossing -
minBunch_];
403 _1, bunchCrossing, _2, std::cref(ES), mcc),
419 std::vector<PileupSummaryInfo> ps;
420 int bunchSpacing=10000;
void doPileUp(edm::Event &e, const edm::EventSetup &ES) override
T getParameter(std::string const &) const
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
void addMuonSignals(const edm::Event &e)
void beginRun(const edm::Run &r, const edm::EventSetup &setup) override
std::string HFDigiCollectionDM_
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
void putEM(edm::Event &e)
void endRun(const edm::Run &r, const edm::EventSetup &setup) override
void beginLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
void addSiStripSignals(const edm::Event &e)
void addHcalSignals(const edm::Event &e)
static std::string const source("source")
std::string HBHERecHitCollectionDM_
edm::InputTag QIE11PileInputTag_
std::string ZDCRecHitCollectionDM_
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 *)
std::string CSCStripDigiCollectionDM_
edm::InputTag QIE10PileInputTag_
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_
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
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 *)
void endRun(const edm::Run &r, const edm::EventSetup &setup) override
std::string CSCWireDigiCollectionDM_
void putEM(edm::Event &e, const edm::EventSetup &ES)
std::string QIE10DigiCollectionDM_
DataMixingSiStripRawWorker * SiStripRawWorker_
void beginRun(edm::Run const &run, edm::EventSetup const &eventSetup) override
DataMixingSiPixelWorker * SiPixelWorker_
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
ModuleCallingContext const * moduleCallingContext() const
std::string RPCDigiCollectionDM_
void putHcal(edm::Event &e, const edm::EventSetup &ES)
std::string ZDCDigiCollectionDM_
DataMixingHcalDigiWorker * HcalDigiWorker_
DataMixingEMWorker * EMWorker_
static const unsigned int maxNbSources_
DataMixingPileupCopy * PUWorker_
void putSiPixel(edm::Event &e)
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::string HORecHitCollectionDM_
void endLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
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 *)
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_
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)
~DataMixingModule() override
DataMixingSiStripWorker * SiStripWorker_
std::string ESRecHitCollectionDM_
std::string EERecHitCollectionDM_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
std::vector< std::shared_ptr< PileUp > > inputSources_
std::string ESDigiCollectionDM_
void put(edm::Event &e, const edm::EventSetup &ES) override
std::string DTDigiCollectionDM_
void addSiStripSignals(const edm::Event &e)
void initializeEvent(edm::Event const &e, edm::EventSetup const &eventSetup) override
std::string EBDigiCollectionDM_
StreamID streamID() const
DataMixingHcalWorker * HcalWorker_
void getPileupInfo(std::vector< PileupSummaryInfo > &ps, int &bs)
edm::InputTag HFPileInputTag_
std::string HODigiCollectionDM_
std::string PixelDigiCollectionDM_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
DataMixingHcalDigiWorkerProd * HcalDigiWorkerProd_
void putMuon(edm::Event &e)
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
std::string QIE11DigiCollectionDM_
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)
void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
DataMixingEMDigiWorker * EMDigiWorker_
void addSiPixelSignals(const edm::Event &e)
edm::InputTag ZDCPileInputTag_
void putSiStrip(edm::Event &e)