CMS 3D CMS Logo

DataMixingHcalDigiWorkerProd.cc
Go to the documentation of this file.
1 // File: DataMixingHcalDigiWorkerProd.cc
2 // Description: see DataMixingHcalDigiWorkerProd.h
3 // Author: Mike Hildreth, University of Notre Dame
4 //
5 //--------------------------------------------
6 
11 
15 
16 using namespace std;
17 namespace edm {
18  // Constructor
19  DataMixingHcalDigiWorkerProd::DataMixingHcalDigiWorkerProd(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
20  : HBHEPileInputTag_(ps.getParameter<edm::InputTag>("HBHEPileInputTag")),
21  HOPileInputTag_(ps.getParameter<edm::InputTag>("HOPileInputTag")),
22  HFPileInputTag_(ps.getParameter<edm::InputTag>("HFPileInputTag")),
23  ZDCPileInputTag_(ps.getParameter<edm::InputTag>("ZDCPileInputTag")),
24  QIE10PileInputTag_(ps.getParameter<edm::InputTag>("QIE10PileInputTag")),
25  QIE11PileInputTag_(ps.getParameter<edm::InputTag>("QIE11PileInputTag")),
26  label_(ps.getParameter<std::string>("Label")) {
27  //
34 
41 
42  // get the subdetector names
43  // this->getSubdetectorNames(); //something like this may be useful to
44  // check what we are supposed to do...
45 
46  // declare the products to produce
47 
48  // Hcal
49  // Signal inputs now handled by HcalDigitizer - gets pSimHits directly
50 
51  HBHEDigiCollectionDM_ = ps.getParameter<std::string>("HBHEDigiCollectionDM");
52  HODigiCollectionDM_ = ps.getParameter<std::string>("HODigiCollectionDM");
53  HFDigiCollectionDM_ = ps.getParameter<std::string>("HFDigiCollectionDM");
54  ZDCDigiCollectionDM_ = ps.getParameter<std::string>("ZDCDigiCollectionDM");
55  QIE10DigiCollectionDM_ = ps.getParameter<std::string>("QIE10DigiCollectionDM");
56  QIE11DigiCollectionDM_ = ps.getParameter<std::string>("QIE11DigiCollectionDM");
57 
58  // initialize HcalDigitizer here...
59 
60  myHcalDigitizer_ = new HcalDigiProducer(ps, iC);
61 
68  }
69 
70  // Virtual destructor needed.
72 
75  }
76 
79  }
80 
83 
84  } // end of addHcalSignals
85 
87  const EventPrincipal *ep,
88  unsigned int eventNr,
89  const edm::EventSetup &ES,
90  edm::ModuleCallingContext const *mcc) {
91  LogDebug("DataMixingHcalDigiWorkerProd")
92  << "\n===============> adding pileups from event " << ep->id() << " for bunchcrossing " << bcr;
93 
100 
101  // put digis from pileup event into digitizer
102 
108  }
109 
111  // Digitize
112  // edm::Service<edm::RandomNumberGenerator> rng;
113  // CLHEP::HepRandomEngine* engine = &rng->getEngine(e.streamID());
114 
115  // myHcalDigitizer_->initializeEvent( e, ES );
116 
117  // myHcalDigitizer_->finalizeEvent( e, ES, engine );
119  }
120 
121 } // namespace edm
edm::DataMixingHcalDigiWorkerProd::ZDCPileInputTag_
edm::InputTag ZDCPileInputTag_
Definition: DataMixingHcalDigiWorkerProd.h:69
MessageLogger.h
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
edm::DataMixingHcalDigiWorkerProd::theQIE10SignalGenerator
QIE10SignalGenerator theQIE10SignalGenerator
Definition: DataMixingHcalDigiWorkerProd.h:94
edm::DataMixingHcalDigiWorkerProd::tok_qie10_
edm::EDGetTokenT< HcalQIE10DigitizerTraits::DigiCollection > tok_qie10_
Definition: DataMixingHcalDigiWorkerProd.h:86
edm::Run
Definition: Run.h:45
edm::DataMixingHcalDigiWorkerProd::QIE10DigiCollectionDM_
std::string QIE10DigiCollectionDM_
Definition: DataMixingHcalDigiWorkerProd.h:77
edm
HLT enums.
Definition: AlignableModifier.h:19
RandomNumberGenerator.h
edm::DataMixingHcalDigiWorkerProd::tok_hf_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
Definition: DataMixingHcalDigiWorkerProd.h:84
edm::DataMixingHcalDigiWorkerProd::tok_zdc_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
Definition: DataMixingHcalDigiWorkerProd.h:85
edm::DataMixingHcalDigiWorkerProd::HFPileInputTag_
edm::InputTag HFPileInputTag_
Definition: DataMixingHcalDigiWorkerProd.h:68
edm::DataMixingHcalDigiWorkerProd::addHcalSignals
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingHcalDigiWorkerProd.cc:81
edm::SortedCollection
Definition: SortedCollection.h:49
HcalDigiProducer::initializeEvent
void initializeEvent(edm::Event const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:28
HcalSignalGenerator::initializeEvent
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup)
Definition: HcalSignalGenerator.h:43
QIE10SignalGenerator
HcalSignalGenerator< HcalQIE10DigitizerTraits > QIE10SignalGenerator
Definition: HcalSignalGenerator.h:189
HcalDigiProducer::setHBHENoiseSignalGenerator
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:53
QIE11SignalGenerator
HcalSignalGenerator< HcalQIE11DigitizerTraits > QIE11SignalGenerator
Definition: HcalSignalGenerator.h:190
edm::DataMixingHcalDigiWorkerProd::theZDCSignalGenerator
ZDCSignalGenerator theZDCSignalGenerator
Definition: DataMixingHcalDigiWorkerProd.h:93
HcalDigiProducer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:49
HFSignalGenerator
HcalSignalGenerator< HFDigitizerTraits > HFSignalGenerator
Definition: HcalSignalGenerator.h:187
EDMException.h
HcalDigiProducer::setZDCNoiseSignalGenerator
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:65
edm::EventPrincipal
Definition: EventPrincipal.h:48
Service.h
edm::DataMixingHcalDigiWorkerProd::HOPileInputTag_
edm::InputTag HOPileInputTag_
Definition: DataMixingHcalDigiWorkerProd.h:67
HcalDigiProducer::setHONoiseSignalGenerator
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:61
edm::DataMixingHcalDigiWorkerProd::tok_hbhe_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
Definition: DataMixingHcalDigiWorkerProd.h:82
HcalDigiProducer::setHFNoiseSignalGenerator
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:57
HcalDigiProducer::accumulate
void accumulate(edm::Event const &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:39
edm::DataMixingHcalDigiWorkerProd::theHBHESignalGenerator
HBHESignalGenerator theHBHESignalGenerator
Definition: DataMixingHcalDigiWorkerProd.h:90
edm::DataMixingHcalDigiWorkerProd::initializeEvent
void initializeEvent(const edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingHcalDigiWorkerProd.cc:77
edm::DataMixingHcalDigiWorkerProd::HFDigiCollectionDM_
std::string HFDigiCollectionDM_
Definition: DataMixingHcalDigiWorkerProd.h:75
edm::DataMixingHcalDigiWorkerProd::QIE10PileInputTag_
edm::InputTag QIE10PileInputTag_
Definition: DataMixingHcalDigiWorkerProd.h:70
edm::DataMixingHcalDigiWorkerProd::QIE11PileInputTag_
edm::InputTag QIE11PileInputTag_
Definition: DataMixingHcalDigiWorkerProd.h:71
edm::DataMixingHcalDigiWorkerProd::ZDCDigiCollectionDM_
std::string ZDCDigiCollectionDM_
Definition: DataMixingHcalDigiWorkerProd.h:76
edm::DataMixingHcalDigiWorkerProd::HBHEPileInputTag_
edm::InputTag HBHEPileInputTag_
Definition: DataMixingHcalDigiWorkerProd.h:66
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
edm::ParameterSet
Definition: ParameterSet.h:47
edm::DataMixingHcalDigiWorkerProd::addHcalPileups
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, edm::ModuleCallingContext const *)
Definition: DataMixingHcalDigiWorkerProd.cc:86
Event.h
HOSignalGenerator
HcalSignalGenerator< HODigitizerTraits > HOSignalGenerator
Definition: HcalSignalGenerator.h:186
edm::DataMixingHcalDigiWorkerProd::HODigiCollectionDM_
std::string HODigiCollectionDM_
Definition: DataMixingHcalDigiWorkerProd.h:74
HcalDigiProducer::setQIE10NoiseSignalGenerator
void setQIE10NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:69
edm::EventSetup
Definition: EventSetup.h:58
edm::DataMixingHcalDigiWorkerProd::theHOSignalGenerator
HOSignalGenerator theHOSignalGenerator
Definition: DataMixingHcalDigiWorkerProd.h:91
HBHESignalGenerator
HcalSignalGenerator< HBHEDigitizerTraits > HBHESignalGenerator
Definition: HcalSignalGenerator.h:185
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::DataMixingHcalDigiWorkerProd::putHcal
void putHcal(edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingHcalDigiWorkerProd.cc:110
edm::DataMixingHcalDigiWorkerProd::theQIE11SignalGenerator
QIE11SignalGenerator theQIE11SignalGenerator
Definition: DataMixingHcalDigiWorkerProd.h:95
std
Definition: JetResolutionObject.h:76
writedatasetfile.run
run
Definition: writedatasetfile.py:27
HcalDigiProducer::setQIE11NoiseSignalGenerator
void setQIE11NoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
Definition: HcalDigiProducer.cc:73
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
DataMixingHcalDigiWorkerProd.h
edm::DataMixingHcalDigiWorkerProd::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &ES)
Definition: DataMixingHcalDigiWorkerProd.cc:73
HcalDigiProducer::finalizeEvent
void finalizeEvent(edm::Event &, edm::EventSetup const &) override
Definition: HcalDigiProducer.cc:34
ZDCSignalGenerator
HcalSignalGenerator< ZDCDigitizerTraits > ZDCSignalGenerator
Definition: HcalSignalGenerator.h:188
HcalDigiProducer
Definition: HcalDigiProducer.h:20
edm::DataMixingHcalDigiWorkerProd::theHFSignalGenerator
HFSignalGenerator theHFSignalGenerator
Definition: DataMixingHcalDigiWorkerProd.h:92
HcalSignalGenerator::fill
virtual void fill(edm::ModuleCallingContext const *mcc)
Definition: HcalSignalGenerator.h:56
ConsumesCollector.h
edm::Event
Definition: Event.h:73
edm::DataMixingHcalDigiWorkerProd::myHcalDigitizer_
HcalDigiProducer * myHcalDigitizer_
Definition: DataMixingHcalDigiWorkerProd.h:89
edm::DataMixingHcalDigiWorkerProd::~DataMixingHcalDigiWorkerProd
virtual ~DataMixingHcalDigiWorkerProd()
Definition: DataMixingHcalDigiWorkerProd.cc:71
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::DataMixingHcalDigiWorkerProd::tok_ho_
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
Definition: DataMixingHcalDigiWorkerProd.h:83
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
edm::DataMixingHcalDigiWorkerProd::tok_qie11_
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
Definition: DataMixingHcalDigiWorkerProd.h:87
edm::DataMixingHcalDigiWorkerProd::QIE11DigiCollectionDM_
std::string QIE11DigiCollectionDM_
Definition: DataMixingHcalDigiWorkerProd.h:79
edm::DataMixingHcalDigiWorkerProd::HBHEDigiCollectionDM_
std::string HBHEDigiCollectionDM_
Definition: DataMixingHcalDigiWorkerProd.h:72
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29