|
|
Go to the documentation of this file.
33 EBPileInputTag_(ps.getParameter<
edm::
InputTag>(
"EBPileInputTag")),
34 EEPileInputTag_(ps.getParameter<
edm::
InputTag>(
"EEPileInputTag")),
35 ESPileInputTag_(ps.getParameter<
edm::
InputTag>(
"ESPileInputTag")),
36 HBHEPileInputTag_(ps.getParameter<
edm::
InputTag>(
"HBHEPileInputTag")),
37 HOPileInputTag_(ps.getParameter<
edm::
InputTag>(
"HOPileInputTag")),
38 HFPileInputTag_(ps.getParameter<
edm::
InputTag>(
"HFPileInputTag")),
39 ZDCPileInputTag_(ps.getParameter<
edm::
InputTag>(
"ZDCPileInputTag")),
40 QIE10PileInputTag_(ps.getParameter<
edm::
InputTag>(
"QIE10PileInputTag")),
41 QIE11PileInputTag_(ps.getParameter<
edm::
InputTag>(
"QIE11PileInputTag")),
42 label_(ps.getParameter<
std::
string>(
"Label")) {
106 produces<HBHEDigiCollection>();
107 produces<HODigiCollection>();
108 produces<HFDigiCollection>();
109 produces<ZDCDigiCollection>();
111 produces<QIE10DigiCollection>(
"HFQIE10DigiCollection");
112 produces<QIE11DigiCollection>(
"HBHEQIE11DigiCollection");
115 produces<CaloSamplesCollection>(
"HcalSamples");
118 produces<edm::PCaloHitContainer>(
"HcalHits");
148 produces<DTDigiCollection>();
149 produces<RPCDigiCollection>();
189 produces<std::vector<PileupSummaryInfo>>();
190 produces<int>(
"bunchSpacing");
191 produces<CrossingFramePlaybackInfoNew>();
198 produces<std::vector<reco::GenParticle>>(it_InputTag->label());
283 LogDebug(
"DataMixingModule") <<
"===============> adding MC signals for " <<
e.id();
324 LogDebug(
"DataMixingModule") <<
"\n===============> adding pileups from event " <<
ep.id() <<
" for bunchcrossing "
381 using namespace std::placeholders;
383 std::vector<edm::SecondaryEventIDAndFileInfo> recordEventID;
384 std::vector<int> PileupList;
391 for (
unsigned int isource = 0; isource <
maxNbSources_; ++isource) {
399 int NumPU_Events = 0;
401 NumPU_Events = PileupList[bunchCrossing -
minBunch_];
422 std::vector<PileupSummaryInfo> ps;
void endRun(const edm::Run &r, const edm::EventSetup &setup) override
std::vector< std::shared_ptr< PileUp > > inputSources_
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
static const std::string source("source")
std::string HODigiCollectionDM_
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::string PixelDigiCollectionDM_
edm::InputTag QIE11PileInputTag_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
std::string CSCStripDigiCollectionDM_
void setupPileUpEvent(const edm::EventSetup &setup)
void endRun(const edm::Run &r, const edm::EventSetup &setup) override
void beginLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
std::string ZDCRecHitCollectionDM_
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
void doPileUp(edm::Event &e, const edm::EventSetup &ES) override
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
void putEM(edm::Event &e, const edm::EventSetup &ES)
void putHcal(edm::Event &e)
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
edm::InputTag QIE10PileInputTag_
void addMuonSignals(const edm::Event &e)
void addHcalSignals(const edm::Event &e)
std::vector< float > TrueNumInteractions_
std::string SiStripDigiCollectionDM_
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &setup) override
void addSiPixelPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::string QIE10DigiCollectionDM_
DataMixingHcalDigiWorker * HcalDigiWorker_
void addSiStripSignals(const edm::Event &e)
void beginRun(edm::Run const &run, edm::EventSetup const &eventSetup) override
void putHcal(edm::Event &e, const edm::EventSetup &ES)
std::string CSCWireDigiCollectionDM_
std::string RPCDigiCollectionDM_
const static unsigned int maxNbSources_
void putPileupInfo(edm::Event &e)
void putMuon(edm::Event &e)
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
std::string HORecHitCollectionDM_
std::string ZDCDigiCollectionDM_
DataMixingMuonWorker * MuonWorker_
DataMixingSiStripRawWorker * SiStripRawWorker_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::string EEDigiCollectionDM_
DataMixingSiPixelWorker * SiPixelWorker_
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, edm::ModuleCallingContext const *)
void putSiStrip(edm::Event &e)
std::string HBHEDigiCollectionDM_
void putEM(edm::Event &e)
edm::InputTag HOPileInputTag_
void putSiStrip(edm::Event &e)
DataMixingEMWorker * EMWorker_
std::string ESRecHitCollectionDM_
edm::InputTag HBHEPileInputTag_
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
std::string EBRecHitCollectionDM_
std::string CSCComparatorDigiCollectionDM_
void putHcal(edm::Event &e, const edm::EventSetup &ES)
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
virtual void getSubdetectorNames()
T getParameter(std::string const &) const
DataMixingPileupCopy * PUWorker_
DataMixingHcalDigiWorkerProd * HcalDigiWorkerProd_
~DataMixingModule() override
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
std::string EERecHitCollectionDM_
std::string QIE11DigiCollectionDM_
std::string DTDigiCollectionDM_
void addEMSignals(const edm::Event &e, const edm::EventSetup &ES)
std::string HFRecHitCollectionDM_
void addSiPixelSignals(const edm::Event &e)
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
DataMixingEMDigiWorker * EMDigiWorker_
edm::InputTag HFPileInputTag_
void addPileupInfo(const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *mcc)
void addEMSignals(const edm::Event &e)
void endLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
void getPileupInfo(std::vector< PileupSummaryInfo > &ps, int &bs)
void addSiStripSignals(const edm::Event &e)
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
std::string ESDigiCollectionDM_
void put(edm::Event &e, const edm::EventSetup &ES) override
void addMuonPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
void initializeEvent(edm::Event const &e, edm::EventSetup const &eventSetup) override
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
void putSiPixel(edm::Event &e)
DataMixingHcalWorker * HcalWorker_
std::string HFDigiCollectionDM_
void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
bool pileWorker(const edm::EventPrincipal &, int bcr, int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
edm::InputTag ZDCPileInputTag_
DataMixingSiStripWorker * SiStripWorker_
std::string HBHERecHitCollectionDM_
void beginRun(const edm::Run &r, const edm::EventSetup &setup) override
std::string EBDigiCollectionDM_