CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorLEDMonitor.h
Go to the documentation of this file.
1 #ifndef DQM_CASTORMONITOR_CASTORLEDMONITOR_H
2 #define DQM_CASTORMONITOR_CASTORLEDMONITOR_H
3 
8 
10 static const float LedMonAdc2fc[128]={-0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5,
11  8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 15., 17.,
12  19., 21., 23., 25., 27., 29.5,
13  32.5, 35.5, 38.5, 42., 46., 50., 54.5, 59.5,
14  64.5, 59.5, 64.5, 69.5, 74.5,
15  79.5, 84.5, 89.5, 94.5, 99.5, 104.5, 109.5,
16  114.5, 119.5, 124.5, 129.5, 137.,
17  147., 157., 167., 177., 187., 197., 209.5, 224.5,
18  239.5, 254.5, 272., 292.,
19  312., 334.5, 359.5, 384.5, 359.5, 384.5, 409.5,
20  434.5, 459.5, 484.5, 509.5,
21  534.5, 559.5, 584.5, 609.5, 634.5, 659.5, 684.5, 709.5,
22  747., 797., 847.,
23  897., 947., 997., 1047., 1109.5, 1184.5, 1259.5,
24  1334.5, 1422., 1522., 1622.,
25  1734.5, 1859.5, 1984.5, 1859.5, 1984.5, 2109.5,
26  2234.5, 2359.5, 2484.5,
27  2609.5, 2734.5, 2859.5, 2984.5, 3109.5,
28  3234.5, 3359.5, 3484.5, 3609.5, 3797.,
29  4047., 4297., 4547., 4797., 5047., 5297.,
30  5609.5, 5984.5, 6359.5, 6734.5,
31  7172., 7672., 8172., 8734.5, 9359.5, 9984.5};
32 
33 
34 
35 
37 
38 public:
41 
42  void setup(const edm::ParameterSet& ps, DQMStore* dbe);
43 
44  void processEvent(const CastorDigiCollection& cast, const CastorDbService& cond);
45 
46  void reset();
47 
48  void done();
49 
50  private: //members vars...
51 
52  // and this is just a very dumb way of doing the adc->fc conversion in the
53  // full range (and is the same for all channels and cap-ids)
54 
55 
56  void perChanHists(const HcalCastorDetId DetID, float* vals,
57  std::map<HcalCastorDetId, MonitorElement*> &tShape,
58  std::map<HcalCastorDetId, MonitorElement*> &tTime,
59  std::map<HcalCastorDetId, MonitorElement*> &tEnergy,
60  std::string baseFolder);
61 
62  void createFEDmap(unsigned int fed);
63 
64  std::map<HcalCastorDetId, MonitorElement*>::iterator meIter;
65  std::map<unsigned int, MonitorElement*>::iterator fedIter;
66 
68 
69  int sigS0_, sigS1_; //-- first and last signal bins
70  float adcThresh_;
71 
72  int ievt_, jevt_;
74 
75 
76  private: //monitoring elements...
78 
79  struct{
80  std::map<HcalCastorDetId,MonitorElement*> shape;
81  std::map<HcalCastorDetId,MonitorElement*> time;
82  std::map<HcalCastorDetId,MonitorElement*> energy;
83 
88 
91 
94 
97 
98  } castHists;
99 
100 
103 
106 
109 
112 
113 
114 
115  std::map<unsigned int,MonitorElement*> MEAN_MAP_ENERGY_DCC;
116  std::map<unsigned int,MonitorElement*> RMS_MAP_ENERGY_DCC;
117 
118  std::map<unsigned int,MonitorElement*> MEAN_MAP_SHAPE_DCC;
119  std::map<unsigned int,MonitorElement*> RMS_MAP_SHAPE_DCC;
120 
121  std::map<unsigned int,MonitorElement*> MEAN_MAP_TIME_DCC;
122  std::map<unsigned int,MonitorElement*> RMS_MAP_TIME_DCC;
123 
124 };
125 
126 #endif
std::map< unsigned int, MonitorElement * > RMS_MAP_ENERGY_DCC
std::map< unsigned int, MonitorElement * > RMS_MAP_SHAPE_DCC
MonitorElement * MEAN_MAP_TIME_L2
MonitorElement * MEAN_MAP_TIME_L3
std::map< unsigned int, MonitorElement * >::iterator fedIter
MonitorElement * meEVT_
MonitorElement * RMS_MAP_TIME_L4
void createFEDmap(unsigned int fed)
std::map< HcalCastorDetId, MonitorElement * >::iterator meIter
MonitorElement * rms_energy
MonitorElement * RMS_MAP_TIME_L1
MonitorElement * mean_energy
MonitorElement * RMS_MAP_TIME_L2
std::map< unsigned int, MonitorElement * > MEAN_MAP_ENERGY_DCC
MonitorElement * shapeALL
std::map< HcalCastorDetId, MonitorElement * > time
std::map< unsigned int, MonitorElement * > MEAN_MAP_TIME_DCC
MonitorElement * rms_time
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
std::map< HcalCastorDetId, MonitorElement * > shape
MonitorElement * mean_shape
MonitorElement * mean_time
MonitorElement * timeALL
MonitorElement * shapePED
static const float LedMonAdc2fc[128]
MonitorElement * energyALL
MonitorElement * rms_shape
MonitorElement * MEAN_MAP_TIME_L1
MonitorElement * MEAN_MAP_TIME_L4
void perChanHists(const HcalCastorDetId DetID, float *vals, std::map< HcalCastorDetId, MonitorElement * > &tShape, std::map< HcalCastorDetId, MonitorElement * > &tTime, std::map< HcalCastorDetId, MonitorElement * > &tEnergy, std::string baseFolder)
MonitorElement * RMS_MAP_TIME_L3
std::map< unsigned int, MonitorElement * > RMS_MAP_TIME_DCC
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
std::map< unsigned int, MonitorElement * > MEAN_MAP_SHAPE_DCC
struct CastorLEDMonitor::@185 castHists
std::map< HcalCastorDetId, MonitorElement * > energy
CastorCalibrations calibs_