CMS 3D CMS Logo

DBReaderWorkers.h
Go to the documentation of this file.
1 #ifndef DBReaderWorkers_H
2 #define DBReaderWorkers_H
3 
5 
8 
10 
11 #include <map>
12 
13 namespace ecaldqm
14 {
16  public:
17  DBReaderWorker(std::string const& _name, edm::ParameterSet const&) : name_(_name), verbosity_(0) {}
18  virtual ~DBReaderWorker() {}
19 
20  virtual std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) = 0;
21 
22  void setVerbosity(int _v) { verbosity_ = _v; }
23 
24  std::string const& getName() const { return name_; }
25 
26  protected:
29  };
30 
32  public:
33  CrystalConsistencyReader(edm::ParameterSet const& _ps) : DBReaderWorker("CrystalConsistencyReader", _ps) {}
35 
36  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
37  };
38 
40  public:
41  TTConsistencyReader(edm::ParameterSet const& _ps) : DBReaderWorker("TTConsistencyReader", _ps) {}
43 
44  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
45  };
46 
48  public:
49  MemChConsistencyReader(edm::ParameterSet const& _ps) : DBReaderWorker("MemChConsistencyReader", _ps) {}
51 
52  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
53  };
54 
56  public:
57  MemTTConsistencyReader(edm::ParameterSet const& _ps) : DBReaderWorker("MemTTConsistencyReader", _ps) {}
59 
60  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
61  };
62 
64  public:
65  LaserBlueReader(edm::ParameterSet const& _ps) : DBReaderWorker("LaserBlueReader", _ps) {}
67 
68  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
69  };
70 
72  public:
73  TimingLaserBlueCrystalReader(edm::ParameterSet const& _ps) : DBReaderWorker("TimingLaserBlueCrystalReader", _ps) {}
75 
76  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
77  };
78 
79  class PNBlueReader : public DBReaderWorker {
80  public:
81  PNBlueReader(edm::ParameterSet const& _ps) : DBReaderWorker("PNBlueReader", _ps) {}
83 
84  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
85  };
86 
88  public:
89  LaserGreenReader(edm::ParameterSet const& _ps) : DBReaderWorker("LaserGreenReader", _ps) {}
91 
92  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
93  };
94 
96  public:
97  TimingLaserGreenCrystalReader(edm::ParameterSet const& _ps) : DBReaderWorker("TimingLaserGreenCrystalReader", _ps) {}
99 
100  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
101  };
102 
103  class PNGreenReader : public DBReaderWorker {
104  public:
105  PNGreenReader(edm::ParameterSet const& _ps) : DBReaderWorker("PNGreenReader", _ps) {}
107 
108  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
109  };
110 
112  public:
113  LaserIRedReader(edm::ParameterSet const& _ps) : DBReaderWorker("LaserIRedReader", _ps) {}
115 
116  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
117  };
118 
120  public:
121  TimingLaserIRedCrystalReader(edm::ParameterSet const& _ps) : DBReaderWorker("TimingLaserIRedCrystalReader", _ps) {}
123 
124  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
125  };
126 
127  class PNIRedReader : public DBReaderWorker {
128  public:
129  PNIRedReader(edm::ParameterSet const& _ps) : DBReaderWorker("PNIRedReader", _ps) {}
131 
132  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
133  };
134 
136  public:
137  LaserRedReader(edm::ParameterSet const& _ps) : DBReaderWorker("LaserRedReader", _ps) {}
139 
140  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
141  };
142 
144  public:
145  TimingLaserRedCrystalReader(edm::ParameterSet const& _ps) : DBReaderWorker("TimingLaserRedCrystalReader", _ps) {}
147 
148  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
149  };
150 
151  class PNRedReader : public DBReaderWorker {
152  public:
153  PNRedReader(edm::ParameterSet const& _ps) : DBReaderWorker("PNRedReader", _ps) {}
155 
156  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
157  };
158 
160  public:
161  PedestalsReader(edm::ParameterSet const& _ps) : DBReaderWorker("PedestalsReader", _ps) {}
163 
164  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
165  };
166 
167  class PNPedReader : public DBReaderWorker {
168  public:
169  PNPedReader(edm::ParameterSet const& _ps) : DBReaderWorker("PNPedReader", _ps) {}
171 
172  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
173  };
174 
176  public:
177  PedestalsOnlineReader(edm::ParameterSet const& _ps) : DBReaderWorker("PedestalsOnlineReader", _ps) {}
179 
180  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
181  };
182 
184  public:
185  TestPulseReader(edm::ParameterSet const& _ps) : DBReaderWorker("TestPulseReader", _ps) {}
187 
188  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
189  };
190 
192  public:
193  PulseShapeReader(edm::ParameterSet const& _ps) : DBReaderWorker("PulseShapeReader", _ps) {}
195 
196  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
197  };
198 
199  class PNMGPAReader : public DBReaderWorker {
200  public:
201  PNMGPAReader(edm::ParameterSet const& _ps) : DBReaderWorker("PNMGPAReader", _ps) {}
203 
204  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
205  };
206 
208  public:
209  TimingCrystalReader(edm::ParameterSet const& _ps) : DBReaderWorker("TimingCrystalReader", _ps) {}
211 
212  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
213  };
214 
215  class Led1Reader : public DBReaderWorker {
216  public:
217  Led1Reader(edm::ParameterSet const& _ps) : DBReaderWorker("Led1Reader", _ps) {}
219 
220  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
221  };
222 
224  public:
225  TimingLed1CrystalReader(edm::ParameterSet const& _ps) : DBReaderWorker("TimingLed1CrystalReader", _ps) {}
227 
228  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
229  };
230 
231  class Led2Reader : public DBReaderWorker {
232  public:
233  Led2Reader(edm::ParameterSet const& _ps) : DBReaderWorker("Led2Reader", _ps) {}
235 
236  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
237  };
238 
240  public:
241  TimingLed2CrystalReader(edm::ParameterSet const& _ps) : DBReaderWorker("TimingLed2CrystalReader", _ps) {}
243 
244  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
245  };
246 
248  public:
249  OccupancyReader(edm::ParameterSet const& _ps) : DBReaderWorker("OccupancyReader", _ps) {}
251 
252  std::map<DetId, double> run(EcalCondDBInterface*, MonRunIOV&, std::string const&) override;
253  };
254 }
255 
256 #endif
TestPulseReader(edm::ParameterSet const &_ps)
PNGreenReader(edm::ParameterSet const &_ps)
PNPedReader(edm::ParameterSet const &_ps)
Led2Reader(edm::ParameterSet const &_ps)
PNMGPAReader(edm::ParameterSet const &_ps)
LaserGreenReader(edm::ParameterSet const &_ps)
PNRedReader(edm::ParameterSet const &_ps)
DBReaderWorker(std::string const &_name, edm::ParameterSet const &)
LaserIRedReader(edm::ParameterSet const &_ps)
TimingLaserIRedCrystalReader(edm::ParameterSet const &_ps)
TimingLaserGreenCrystalReader(edm::ParameterSet const &_ps)
PulseShapeReader(edm::ParameterSet const &_ps)
PNIRedReader(edm::ParameterSet const &_ps)
PedestalsReader(edm::ParameterSet const &_ps)
TTConsistencyReader(edm::ParameterSet const &_ps)
std::string const & getName() const
TimingLed1CrystalReader(edm::ParameterSet const &_ps)
MemTTConsistencyReader(edm::ParameterSet const &_ps)
TimingLaserBlueCrystalReader(edm::ParameterSet const &_ps)
OccupancyReader(edm::ParameterSet const &_ps)
PedestalsOnlineReader(edm::ParameterSet const &_ps)
LaserBlueReader(edm::ParameterSet const &_ps)
PNBlueReader(edm::ParameterSet const &_ps)
std::string const name_
TimingLed2CrystalReader(edm::ParameterSet const &_ps)
TimingLaserRedCrystalReader(edm::ParameterSet const &_ps)
Led1Reader(edm::ParameterSet const &_ps)
MemChConsistencyReader(edm::ParameterSet const &_ps)
virtual std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &)=0
TimingCrystalReader(edm::ParameterSet const &_ps)
CrystalConsistencyReader(edm::ParameterSet const &_ps)
LaserRedReader(edm::ParameterSet const &_ps)