CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
26 
40 
41 #include <map>
42 #include <vector>
43 #include <string>
44 
45 
46 namespace edm {
47 
48  class ModuleCallingContext;
49 
51  {
52  public:
53 
55  explicit DataMixingModule(const edm::ParameterSet& ps);
56 
58  virtual ~DataMixingModule();
59 
60  // copies, with EventSetup
61  virtual void checkSignal(const edm::Event &e) {}
62  virtual void createnewEDProduct() {}
63  virtual void addSignals(const edm::Event &e, const edm::EventSetup& ES);
64  virtual void doPileUp(edm::Event &e,const edm::EventSetup& ES) override;
65  virtual void put(edm::Event &e,const edm::EventSetup& ES) ;
66 
67  virtual void initializeEvent(edm::Event const& e, edm::EventSetup const& eventSetup);
68  void beginRun(edm::Run const& run, edm::EventSetup const& eventSetup);
69  void pileWorker(const edm::EventPrincipal&, int bcr, int EventId,const edm::EventSetup& ES, ModuleCallingContext const*);
70  //virtual void beginJob();
71  //virtual void endJob();
72  virtual void beginLuminosityBlock(LuminosityBlock const& l1, EventSetup const& c) override;
73  virtual void endLuminosityBlock(LuminosityBlock const& l1, EventSetup const& c) override;
74  virtual void endRun(const edm::Run& r, const edm::EventSetup& setup) override;
75 
76 
77 
78  private:
79  // data specifiers
80 
81  // Ecal
82  //output:
83  std::string EBRecHitCollectionDM_; // secondary name to be given to EB collection of hits
84  std::string EERecHitCollectionDM_; // secondary name to be given to EE collection of hits
85  std::string ESRecHitCollectionDM_; // secondary name to be given to EE collection of hits
86  //Digis:
87  //output
88  std::string EBDigiCollectionDM_; // secondary name to be given to EB collection of hits
89  std::string EEDigiCollectionDM_; // secondary name to be given to EE collection of hits
90  std::string ESDigiCollectionDM_; // secondary name to be given to EE collection of hits
91 
92  // Hcal
93  // Rechits:
94  // output:
95  std::string HBHERecHitCollectionDM_; // secondary name to be given to HBHE collection of hits
96  std::string HORecHitCollectionDM_ ; // secondary name to be given to HO collection of hits
97  std::string HFRecHitCollectionDM_ ; // secondary name to be given to HF collection of hits
98  std::string ZDCRecHitCollectionDM_ ; // secondary name to be given to ZDC collection of hits
99  // Digis:
100  // output:
101  std::string HBHEDigiCollectionDM_; // secondary name to be given to HBHE collection of hits
102  std::string HODigiCollectionDM_ ; // secondary name to be given to HO collection of hits
103  std::string HFDigiCollectionDM_ ; // secondary name to be given to HF collection of hits
104  std::string ZDCDigiCollectionDM_ ; // secondary name to be given to ZDC collection of hits
105 
106  // Muons
107  // output:
108  std::string DTDigiCollectionDM_; // secondary name to be given to new DT digis
109  std::string RPCDigiCollectionDM_; // secondary name to be given to new RPC digis
110  std::string CSCStripDigiCollectionDM_; // secondary name given to new collection of CSC Strip digis
111  std::string CSCWireDigiCollectionDM_; // secondary name given to new collection of CSC wire digis
112  std::string CSCComparatorDigiCollectionDM_; // " " CSC Comparator digis
113 
114  // SiStrips
115  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip digis
116 
117  // SiPixels
118  std::string PixelDigiCollectionDM_ ; // secondary name to be given to new SiPixel digis
119 
120  // Tracks
122  // FastSimulation or not?
123 
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
156 
159 
162 
163  // Muons
164 
166 
167  // Si-Strips
168 
175 
176  // Pixels
177 
179 
180  // Tracks
181 
183 
184  virtual void getSubdetectorNames();
185 
186  // internally used information : subdetectors present in input
187  std::vector<std::string> Subdetectors_;
188 
189  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
190 
192 
193  };
194 }//edm
195 
196 #endif
std::string siStripRawDigiSource_
virtual void doPileUp(edm::Event &e, const edm::EventSetup &ES) override
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &eventSetup)
std::string HFDigiCollectionDM_
virtual void endRun(const edm::Run &r, const edm::EventSetup &setup) override
virtual void beginLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
std::string HBHERecHitCollectionDM_
std::string ZDCRecHitCollectionDM_
void beginRun(edm::Run const &run, edm::EventSetup const &eventSetup)
edm::EDGetTokenT< EBDigitizerTraits::DigiCollection > tok_eb_
DataMixingGeneralTrackWorker * GeneralTrackWorker_
std::string CSCStripDigiCollectionDM_
std::string SiStripDigiCollectionDM_
edm::EDGetTokenT< ZDCDigitizerTraits::DigiCollection > tok_zdc_
edm::EDGetTokenT< HODigitizerTraits::DigiCollection > tok_ho_
DataMixingModule(const edm::ParameterSet &ps)
std::string CSCWireDigiCollectionDM_
edm::EDGetTokenT< ESDigitizerTraits::DigiCollection > tok_es_
DataMixingSiStripRawWorker * SiStripRawWorker_
DataMixingSiPixelWorker * SiPixelWorker_
DataMixingSiStripMCDigiWorker * SiStripMCDigiWorker_
std::string RPCDigiCollectionDM_
std::string ZDCDigiCollectionDM_
DataMixingHcalDigiWorker * HcalDigiWorker_
DataMixingEMWorker * EMWorker_
std::string GeneralTrackCollectionDM_
virtual void addSignals(const edm::Event &e, const edm::EventSetup &ES)
edm::InputTag EEPileInputTag_
edm::EDGetTokenT< EEDigitizerTraits::DigiCollection > tok_ee_
edm::InputTag ESPileInputTag_
DataMixingPileupCopy * PUWorker_
virtual void createnewEDProduct()
std::string HORecHitCollectionDM_
DataMixingEcalDigiWorkerProd * EcalDigiWorkerProd_
virtual void endLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
DataMixingMuonWorker * MuonWorker_
virtual void getSubdetectorNames()
edm::InputTag EBPileInputTag_
std::string EEDigiCollectionDM_
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_
edm::InputTag HOPileInputTag_
virtual void checkSignal(const edm::Event &e)
DataMixingSiStripWorker * SiStripWorker_
std::string ESRecHitCollectionDM_
std::string EERecHitCollectionDM_
edm::EDGetTokenT< HFDigitizerTraits::DigiCollection > tok_hf_
std::string ESDigiCollectionDM_
std::string DTDigiCollectionDM_
std::string EBDigiCollectionDM_
DataMixingHcalWorker * HcalWorker_
edm::InputTag HFPileInputTag_
std::string HODigiCollectionDM_
std::string PixelDigiCollectionDM_
edm::EDGetTokenT< HBHEDigitizerTraits::DigiCollection > tok_hbhe_
DataMixingHcalDigiWorkerProd * HcalDigiWorkerProd_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
DataMixingEMDigiWorker * EMDigiWorker_
std::vector< std::string > Subdetectors_
Definition: Run.h:41
edm::InputTag ZDCPileInputTag_
virtual void put(edm::Event &e, const edm::EventSetup &ES)