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 DataMixingModule_h
2 #define SimDataMixingModule_h
3 
16 
21 
24 
35 
36 #include <map>
37 #include <vector>
38 #include <string>
39 
40 
41 namespace edm
42 {
44  {
45  public:
46 
48  explicit DataMixingModule(const edm::ParameterSet& ps);
49 
51  virtual ~DataMixingModule();
52 
53  virtual void beginJob() {}
54 
55  // copies, with EventSetup
56  virtual void checkSignal(const edm::Event &e) {}
57  virtual void createnewEDProduct() {}
58  virtual void addSignals(const edm::Event &e, const edm::EventSetup& ES);
59  virtual void doPileUp(edm::Event &e,const edm::EventSetup& ES);
60  virtual void put(edm::Event &e,const edm::EventSetup& ES) ;
61 
62  void pileWorker(const edm::EventPrincipal&, int bcr, int EventId,const edm::EventSetup& ES);
63 
64  private:
65  // data specifiers
66 
67  // Ecal
68  //output:
69  std::string EBRecHitCollectionDM_; // secondary name to be given to EB collection of hits
70  std::string EERecHitCollectionDM_; // secondary name to be given to EE collection of hits
71  std::string ESRecHitCollectionDM_; // secondary name to be given to EE collection of hits
72  //Digis:
73  //output
74  std::string EBDigiCollectionDM_; // secondary name to be given to EB collection of hits
75  std::string EEDigiCollectionDM_; // secondary name to be given to EE collection of hits
76  std::string ESDigiCollectionDM_; // secondary name to be given to EE collection of hits
77 
78  // Hcal
79  // Rechits:
80  // output:
81  std::string HBHERecHitCollectionDM_; // secondary name to be given to HBHE collection of hits
82  std::string HORecHitCollectionDM_ ; // secondary name to be given to HO collection of hits
83  std::string HFRecHitCollectionDM_ ; // secondary name to be given to HF collection of hits
84  std::string ZDCRecHitCollectionDM_ ; // secondary name to be given to ZDC collection of hits
85  // Digis:
86  // output:
87  std::string HBHEDigiCollectionDM_; // secondary name to be given to HBHE collection of hits
88  std::string HODigiCollectionDM_ ; // secondary name to be given to HO collection of hits
89  std::string HFDigiCollectionDM_ ; // secondary name to be given to HF collection of hits
90  std::string ZDCDigiCollectionDM_ ; // secondary name to be given to ZDC collection of hits
91 
92  // Muons
93  // output:
94  std::string DTDigiCollectionDM_; // secondary name to be given to new DT digis
95  std::string RPCDigiCollectionDM_; // secondary name to be given to new RPC digis
96  std::string CSCStripDigiCollectionDM_; // secondary name given to new collection of CSC Strip digis
97  std::string CSCWireDigiCollectionDM_; // secondary name given to new collection of CSC wire digis
98  std::string CSCComparatorDigiCollectionDM_; // " " CSC Comparator digis
99 
100  // SiStrips
101  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip digis
102 
103  // SiPixels
104  std::string PixelDigiCollectionDM_ ; // secondary name to be given to new SiPixel digis
105 
106  // Tracks
108  // FastSimulation or not?
109 
111 
112  // Submodules to handle the individual detectors
113 
117 
118  // Hcal
119 
123 
126 
127  // Muons
128 
130 
131  // Si-Strips
132 
137 
138  // Pixels
139 
141 
142  // Tracks
143 
145 
146  virtual void getSubdetectorNames();
147 
148  // internally used information : subdetectors present in input
149  std::vector<std::string> Subdetectors_;
150 
151  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
152 
154  std::string label_;
155 
156  };
157 }//edm
158 
159 #endif
std::string siStripRawDigiSource_
std::string HFDigiCollectionDM_
std::string HBHERecHitCollectionDM_
std::string ZDCRecHitCollectionDM_
DataMixingGeneralTrackWorker * GeneralTrackWorker_
std::string CSCStripDigiCollectionDM_
std::string SiStripDigiCollectionDM_
DataMixingModule(const edm::ParameterSet &ps)
std::string CSCWireDigiCollectionDM_
DataMixingSiStripRawWorker * SiStripRawWorker_
DataMixingSiPixelWorker * SiPixelWorker_
std::string RPCDigiCollectionDM_
std::string ZDCDigiCollectionDM_
DataMixingHcalDigiWorker * HcalDigiWorker_
DataMixingEMWorker * EMWorker_
std::string GeneralTrackCollectionDM_
virtual void addSignals(const edm::Event &e, const edm::EventSetup &ES)
virtual void createnewEDProduct()
virtual void doPileUp(edm::Event &e, const edm::EventSetup &ES)
std::string HORecHitCollectionDM_
DataMixingMuonWorker * MuonWorker_
virtual void getSubdetectorNames()
std::string EEDigiCollectionDM_
std::string HFRecHitCollectionDM_
std::string HBHEDigiCollectionDM_
std::string EBRecHitCollectionDM_
std::string CSCComparatorDigiCollectionDM_
virtual void checkSignal(const edm::Event &e)
DataMixingSiStripWorker * SiStripWorker_
std::string ESRecHitCollectionDM_
std::string EERecHitCollectionDM_
std::string ESDigiCollectionDM_
std::string DTDigiCollectionDM_
std::string EBDigiCollectionDM_
virtual void beginJob()
DataMixingHcalWorker * HcalWorker_
std::string HODigiCollectionDM_
std::string PixelDigiCollectionDM_
DataMixingHcalDigiWorkerProd * HcalDigiWorkerProd_
void pileWorker(const edm::EventPrincipal &, int bcr, int EventId, const edm::EventSetup &ES)
DataMixingEMDigiWorker * EMDigiWorker_
std::vector< std::string > Subdetectors_
virtual void put(edm::Event &e, const edm::EventSetup &ES)