CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalDigisProducer.h
Go to the documentation of this file.
1 #ifndef GlobalDigisProducer_h
2 #define GlobalDigisProducer_h
3 
15 // framework & common header files
22 //#include "DataFormats/Common/interface/Provenance.h"
27 
28 //DQM services
31 
32 // ecal calorimeter info
41 
42 // hcal calorimeter info
54 //#include "Geometry/Records/interface/IdealGeometryRecord.h"
55 //#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
56 //#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
57 //#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
59 
60 // silicon strip info
68 
69 // silicon pixel info
74 
75 // muon DT info
80 
81 // muon CSC Strip info
84 
85 // muon CSC Wire info
88 
89 // event info
95 
96 // helper files
97 //#include <CLHEP/Vector/LorentzVector.h>
98 //#include <CLHEP/Units/SystemOfUnits.h>
99 
100 #include <iostream>
101 #include <stdlib.h>
102 #include <string>
103 #include <memory>
104 #include <vector>
105 #include <map>
106 
107 #include "TString.h"
108 
109 class PGlobalDigi;
110 
112 {
113 
114  public:
115 
116  typedef std::vector<float> FloatVector;
117  typedef std::vector<double> DoubleVector;
118  typedef std::vector<int> IntVector;
119  typedef std::map<uint32_t,float,std::less<uint32_t> > MapType;
120 
121  explicit GlobalDigisProducer(const edm::ParameterSet&);
122  virtual ~GlobalDigisProducer();
123  virtual void beginJob( void );
124  virtual void endJob();
125  virtual void produce(edm::Event&, const edm::EventSetup&);
126 
127  private:
128 
129  // production related methods
130  void fillECal(edm::Event&, const edm::EventSetup&);
131  void storeECal(PGlobalDigi&);
132  void fillHCal(edm::Event&, const edm::EventSetup&);
133  void storeHCal(PGlobalDigi&);
134  void fillTrk(edm::Event&, const edm::EventSetup&);
135  void storeTrk(PGlobalDigi&);
136  void fillMuon(edm::Event&, const edm::EventSetup&);
137  void storeMuon(PGlobalDigi&);
138 
139  void clear();
140 
141  private:
142 
143  // parameter information
144  std::string fName;
147  std::string label;
150 
151  // Electromagnetic info
152  // ECal info
153 
157 
161 
164 
168 
169  std::map<int, double, std::less<int> > ECalgainConv_;
172 
173  // HCal info
174 
177 
180 
183 
186 
189 
190  // Tracker info
191  // SiStrip
192 
195 
198 
201 
206 
208 
209  // SiPxl
210 
214 
218 
220 
221  // Muon info
222  // DT
223 
227 
229 
230  // CSC Strip
231 
234 
236 
238 
239  // CSC Wire
240 
242 
244 
245  // private statistics information
246  unsigned int count;
247 
248 }; // end class declaration
249 
250 #endif
251 
252 #ifndef GlobalHitMap
253 #define GlobalHitMap
254 
255 // geometry mapping
256 static const int dTrk = 1;
257 static const int sdPxlBrl = 1;
258 static const int sdPxlFwd = 2;
259 static const int sdSiTIB = 3;
260 static const int sdSiTID = 4;
261 static const int sdSiTOB = 5;
262 static const int sdSiTEC = 6;
263 
264 static const int dMuon = 2;
265 static const int sdMuonDT = 1;
266 static const int sdMuonCSC = 2;
267 static const int sdMuonRPC = 3;
268 static const int sdMuonRPCRgnBrl = 0;
269 static const int sdMuonRPCRgnFwdp = 1;
270 static const int sdMuonRPCRgnFwdn = -1;
271 
272 static const int dEcal = 3;
273 static const int sdEcalBrl = 1;
274 static const int sdEcalFwd = 2;
275 static const int sdEcalPS = 3;
276 static const int sdEcalTT = 4;
277 static const int sdEcalLPnD = 5;
278 
279 static const int dHcal = 4;
280 static const int sdHcalEmpty = 0;
281 static const int sdHcalBrl = 1;
282 static const int sdHcalEC = 2;
283 static const int sdHcalOut = 3;
284 static const int sdHcalFwd = 4;
285 static const int sdHcalTT = 5;
286 static const int sdHcalCalib = 6;
287 static const int sdHcalCompst = 7;
288 
289 #endif //PGlobalDigisProducer_h
static const int sdHcalEC
static const int sdHcalBrl
std::map< uint32_t, float, std::less< uint32_t > > MapType
static const int sdEcalPS
static const int sdEcalFwd
static const int sdPxlBrl
edm::InputTag MuCSCStripSrc_
static const int sdHcalCalib
static const int sdEcalTT
static const int dEcal
static const int sdMuonRPCRgnBrl
static const int sdSiTIB
static const int sdMuonRPCRgnFwdn
void fillTrk(edm::Event &, const edm::EventSetup &)
static const int dHcal
virtual void beginJob(void)
void storeECal(PGlobalDigi &)
static const int sdHcalFwd
static const int sdSiTOB
static const int sdSiTEC
static const int sdPxlFwd
void fillMuon(edm::Event &, const edm::EventSetup &)
GlobalDigisProducer(const edm::ParameterSet &)
static const int sdHcalEmpty
static const int dMuon
static const int sdEcalBrl
void storeTrk(PGlobalDigi &)
static const int sdSiTID
void storeHCal(PGlobalDigi &)
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< int > IntVector
std::vector< double > DoubleVector
std::map< int, double, std::less< int > > ECalgainConv_
static const int sdHcalOut
static const int sdHcalCompst
void storeMuon(PGlobalDigi &)
void fillHCal(edm::Event &, const edm::EventSetup &)
static const int sdEcalLPnD
static const int sdMuonRPC
void fillECal(edm::Event &, const edm::EventSetup &)
static const int sdMuonCSC
std::vector< float > FloatVector
static const int sdHcalTT
static const int sdMuonRPCRgnFwdp
static const int dTrk
static const int sdMuonDT