CMS 3D CMS Logo

DataMixingModule.h
Go to the documentation of this file.
1 #ifndef SimGeneral_DataMixingModule_DataMixingModule_h
2 #define SimGeneral_DataMixingModule_DataMixingModule_h
3 
16 
20 
23 
25 
40 
41 #include <map>
42 #include <vector>
43 #include <string>
44 
46 
47 namespace edm {
48 
49  class ModuleCallingContext;
50 
52  {
53  public:
54 
56  explicit DataMixingModule(const edm::ParameterSet& ps, MixingCache::Config const* globalConf);
57 
59  ~DataMixingModule() override;
60 
61  // copies, with EventSetup
62  void checkSignal(const edm::Event &e) override {};
63  void createnewEDProduct() override {}
64  void addSignals(const edm::Event &e, const edm::EventSetup& ES) override;
65  void doPileUp(edm::Event &e,const edm::EventSetup& ES) override;
66  void put(edm::Event &e,const edm::EventSetup& ES) override ;
67 
68  void initializeEvent(edm::Event const& e, edm::EventSetup const& eventSetup) override;
69  void beginRun(edm::Run const& run, edm::EventSetup const& eventSetup) override;
70  void pileWorker(const edm::EventPrincipal&, int bcr, int EventId,const edm::EventSetup& ES, ModuleCallingContext const*);
71  //virtual void beginJob();
72  //virtual void endJob();
73  void beginLuminosityBlock(LuminosityBlock const& l1, EventSetup const& c) override;
74  void endLuminosityBlock(LuminosityBlock const& l1, EventSetup const& c) override;
75  void endRun(const edm::Run& r, const edm::EventSetup& setup) override;
76 
77 
78 
79  private:
80  // data specifiers
81 
82  // Ecal
83  //output:
84  std::string EBRecHitCollectionDM_; // secondary name to be given to EB collection of hits
85  std::string EERecHitCollectionDM_; // secondary name to be given to EE collection of hits
86  std::string ESRecHitCollectionDM_; // secondary name to be given to EE collection of hits
87  //Digis:
88  //output
89  std::string EBDigiCollectionDM_; // secondary name to be given to EB collection of hits
90  std::string EEDigiCollectionDM_; // secondary name to be given to EE collection of hits
91  std::string ESDigiCollectionDM_; // secondary name to be given to EE collection of hits
92 
93  // Hcal
94  // Rechits:
95  // output:
96  std::string HBHERecHitCollectionDM_; // secondary name to be given to HBHE collection of hits
97  std::string HORecHitCollectionDM_ ; // secondary name to be given to HO collection of hits
98  std::string HFRecHitCollectionDM_ ; // secondary name to be given to HF collection of hits
99  std::string ZDCRecHitCollectionDM_ ; // secondary name to be given to ZDC collection of hits
100  // Digis:
101  // output:
102  std::string HBHEDigiCollectionDM_; // secondary name to be given to HBHE collection of hits
103  std::string HODigiCollectionDM_ ; // secondary name to be given to HO collection of hits
104  std::string HFDigiCollectionDM_ ; // secondary name to be given to HF collection of hits
105  std::string ZDCDigiCollectionDM_ ; // secondary name to be given to ZDC collection of hits
106  std::string QIE10DigiCollectionDM_ ; // secondary name to be given to QIE10 collection of hits
107  std::string QIE11DigiCollectionDM_ ; // secondary name to be given to QIE11 collection of hits
108 
109  // Muons
110  // output:
111  std::string DTDigiCollectionDM_; // secondary name to be given to new DT digis
112  std::string RPCDigiCollectionDM_; // secondary name to be given to new RPC digis
113  std::string CSCStripDigiCollectionDM_; // secondary name given to new collection of CSC Strip digis
114  std::string CSCWireDigiCollectionDM_; // secondary name given to new collection of CSC wire digis
115  std::string CSCComparatorDigiCollectionDM_; // " " CSC Comparator digis
116 
117  // SiStrips
118  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip digis
119 
120  // SiPixels
121  std::string PixelDigiCollectionDM_ ; // secondary name to be given to new SiPixel digis
122 
123  // merge tracker digis or tracks?
125 
126  // Submodules to handle the individual detectors
127 
129 
134 
135  // Hcal
136 
140 
141  // tokens needed to DataMixingHcalDigiWorkerProd
142  edm::InputTag EBPileInputTag_; // InputTag for Pileup Digis collection
143  edm::InputTag EEPileInputTag_ ; // InputTag for Pileup Digis collection
144  edm::InputTag ESPileInputTag_ ; // InputTag for Pileup Digis collection
145  edm::InputTag HBHEPileInputTag_; // InputTag for Pileup Digis collection
146  edm::InputTag HOPileInputTag_ ; // InputTag for Pileup Digis collection
147  edm::InputTag HFPileInputTag_ ; // InputTag for Pileup Digis collection
148  edm::InputTag ZDCPileInputTag_ ; // InputTag for Pileup Digis collection
149  edm::InputTag QIE10PileInputTag_ ; // InputTag for Pileup Digis collection
150  edm::InputTag QIE11PileInputTag_ ; // InputTag for Pileup Digis collection
160 
163 
166 
167  // Muons
168 
170 
171  // Si-Strips
172 
179 
180  // Pixels
181 
184 
185  // Tracks
186 
188 
189 
190  // Validation
191 
193 
194  virtual void getSubdetectorNames();
195 
196  // internally used information : subdetectors present in input
197  std::vector<std::string> Subdetectors_;
198 
199  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
200 
202 
203  };
204 }//edm
205 
206 #endif
std::string siStripRawDigiSource_
void doPileUp(edm::Event &e, const edm::EventSetup &ES) override
edm::EDGetTokenT< HcalQIE11DigitizerTraits::DigiCollection > tok_qie11_
void checkSignal(const edm::Event &e) override
std::string HFDigiCollectionDM_
void endRun(const edm::Run &r, const edm::EventSetup &setup) override
void beginLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
std::string HBHERecHitCollectionDM_
edm::InputTag QIE11PileInputTag_
std::string ZDCRecHitCollectionDM_
edm::EDGetTokenT< EBDigitizerTraits::DigiCollection > tok_eb_
std::string CSCStripDigiCollectionDM_
edm::InputTag QIE10PileInputTag_
std::string SiStripDigiCollectionDM_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
DigiAccumulatorMixMod * GeneralTrackWorker_
std::string CSCWireDigiCollectionDM_
edm::EDGetTokenT< ESDigitizerTraits::DigiCollection > tok_es_
std::string QIE10DigiCollectionDM_
DataMixingSiStripRawWorker * SiStripRawWorker_
void beginRun(edm::Run const &run, edm::EventSetup const &eventSetup) override
DataMixingSiPixelWorker * SiPixelWorker_
DataMixingSiStripMCDigiWorker * SiStripMCDigiWorker_
std::string RPCDigiCollectionDM_
std::string ZDCDigiCollectionDM_
DataMixingHcalDigiWorker * HcalDigiWorker_
DataMixingEMWorker * EMWorker_
edm::InputTag EEPileInputTag_
edm::EDGetTokenT< EEDigitizerTraits::DigiCollection > tok_ee_
edm::InputTag ESPileInputTag_
DataMixingPileupCopy * PUWorker_
std::string HORecHitCollectionDM_
DataMixingEcalDigiWorkerProd * EcalDigiWorkerProd_
void endLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
DataMixingMuonWorker * MuonWorker_
virtual void getSubdetectorNames()
edm::InputTag EBPileInputTag_
std::string EEDigiCollectionDM_
DataMixingTrackingParticleWorker * TrackingParticleWorker_
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_
edm::InputTag HOPileInputTag_
DataMixingModule(const edm::ParameterSet &ps, MixingCache::Config const *globalConf)
DataMixingSiStripWorker * SiStripWorker_
std::string ESRecHitCollectionDM_
std::string EERecHitCollectionDM_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
HLT enums.
std::string ESDigiCollectionDM_
void put(edm::Event &e, const edm::EventSetup &ES) override
std::string DTDigiCollectionDM_
void initializeEvent(edm::Event const &e, edm::EventSetup const &eventSetup) override
std::string EBDigiCollectionDM_
DataMixingHcalWorker * HcalWorker_
edm::InputTag HFPileInputTag_
void createnewEDProduct() override
std::string HODigiCollectionDM_
std::string PixelDigiCollectionDM_
DataMixingSiPixelMCDigiWorker * SiPixelMCDigiWorker_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
DataMixingHcalDigiWorkerProd * HcalDigiWorkerProd_
std::string QIE11DigiCollectionDM_
void addSignals(const edm::Event &e, const edm::EventSetup &ES) override
DataMixingEMDigiWorker * EMDigiWorker_
std::vector< std::string > Subdetectors_
Definition: Run.h:43
edm::InputTag ZDCPileInputTag_