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 {
15  public:
16  DBReaderWorker(std::string const &_name, edm::ParameterSet const &) : name_(_name), verbosity_(0) {}
17  virtual ~DBReaderWorker() {}
18 
19  virtual std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) = 0;
20 
21  void setVerbosity(int _v) { verbosity_ = _v; }
22 
23  std::string const &getName() const { return name_; }
24 
25  protected:
28  };
29 
31  public:
32  CrystalConsistencyReader(edm::ParameterSet const &_ps) : DBReaderWorker("CrystalConsistencyReader", _ps) {}
34 
35  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
36  };
37 
39  public:
40  TTConsistencyReader(edm::ParameterSet const &_ps) : DBReaderWorker("TTConsistencyReader", _ps) {}
41  ~TTConsistencyReader() override {}
42 
43  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
44  };
45 
47  public:
48  MemChConsistencyReader(edm::ParameterSet const &_ps) : DBReaderWorker("MemChConsistencyReader", _ps) {}
50 
51  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
52  };
53 
55  public:
56  MemTTConsistencyReader(edm::ParameterSet const &_ps) : DBReaderWorker("MemTTConsistencyReader", _ps) {}
58 
59  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
60  };
61 
63  public:
64  LaserBlueReader(edm::ParameterSet const &_ps) : DBReaderWorker("LaserBlueReader", _ps) {}
65  ~LaserBlueReader() override {}
66 
67  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
68  };
69 
71  public:
72  TimingLaserBlueCrystalReader(edm::ParameterSet const &_ps) : DBReaderWorker("TimingLaserBlueCrystalReader", _ps) {}
74 
75  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
76  };
77 
78  class PNBlueReader : public DBReaderWorker {
79  public:
80  PNBlueReader(edm::ParameterSet const &_ps) : DBReaderWorker("PNBlueReader", _ps) {}
81  ~PNBlueReader() override {}
82 
83  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
84  };
85 
87  public:
88  LaserGreenReader(edm::ParameterSet const &_ps) : DBReaderWorker("LaserGreenReader", _ps) {}
89  ~LaserGreenReader() override {}
90 
91  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
92  };
93 
95  public:
97  : 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) {}
106  ~PNGreenReader() override {}
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) {}
114  ~LaserIRedReader() override {}
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) {}
130  ~PNIRedReader() override {}
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) {}
138  ~LaserRedReader() override {}
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) {}
154  ~PNRedReader() override {}
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) {}
162  ~PedestalsReader() override {}
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) {}
170  ~PNPedReader() override {}
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) {}
186  ~TestPulseReader() override {}
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) {}
194  ~PulseShapeReader() override {}
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) {}
202  ~PNMGPAReader() override {}
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) {}
210  ~TimingCrystalReader() override {}
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) {}
218  ~Led1Reader() override {}
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) {}
234  ~Led2Reader() override {}
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) {}
250  ~OccupancyReader() override {}
251 
252  std::map<DetId, double> run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override;
253  };
254 } // namespace ecaldqm
255 
256 #endif
TestPulseReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
PNGreenReader(edm::ParameterSet const &_ps)
PNPedReader(edm::ParameterSet const &_ps)
Led2Reader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
PNMGPAReader(edm::ParameterSet const &_ps)
LaserGreenReader(edm::ParameterSet const &_ps)
std::string const & getName() const
PNRedReader(edm::ParameterSet const &_ps)
DBReaderWorker(std::string const &_name, edm::ParameterSet const &)
LaserIRedReader(edm::ParameterSet const &_ps)
TimingLaserIRedCrystalReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
TimingLaserGreenCrystalReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
PulseShapeReader(edm::ParameterSet const &_ps)
PNIRedReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
PedestalsReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
TTConsistencyReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
TimingLed1CrystalReader(edm::ParameterSet const &_ps)
MemTTConsistencyReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
TimingLaserBlueCrystalReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
OccupancyReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
PedestalsOnlineReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
LaserBlueReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
PNBlueReader(edm::ParameterSet const &_ps)
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::string const name_
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
std::map< DetId, double > run(EcalCondDBInterface *, MonRunIOV &, std::string const &) override
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)