CMS 3D CMS Logo

List of all members | Public Member Functions
ecaldqm::PulseShapeReader Class Reference

#include <DBReaderWorkers.h>

Inheritance diagram for ecaldqm::PulseShapeReader:
ecaldqm::DBReaderWorker

Public Member Functions

 PulseShapeReader (edm::ParameterSet const &_ps)
 
std::map< DetId, double > run (EcalCondDBInterface *, MonRunIOV &, std::string const &) override
 
 ~PulseShapeReader () override
 
- Public Member Functions inherited from ecaldqm::DBReaderWorker
 DBReaderWorker (std::string const &_name, edm::ParameterSet const &)
 
std::string const & getName () const
 
void setVerbosity (int _v)
 
virtual ~DBReaderWorker ()
 

Additional Inherited Members

- Protected Attributes inherited from ecaldqm::DBReaderWorker
std::string const name_
 
int verbosity_
 

Detailed Description

Definition at line 191 of file DBReaderWorkers.h.

Constructor & Destructor Documentation

◆ PulseShapeReader()

ecaldqm::PulseShapeReader::PulseShapeReader ( edm::ParameterSet const &  _ps)
inline

Definition at line 193 of file DBReaderWorkers.h.

193 : DBReaderWorker("PulseShapeReader", _ps) {}
DBReaderWorker(std::string const &_name, edm::ParameterSet const &)

◆ ~PulseShapeReader()

ecaldqm::PulseShapeReader::~PulseShapeReader ( )
inlineoverride

Definition at line 194 of file DBReaderWorkers.h.

194 {}

Member Function Documentation

◆ run()

ReturnType ecaldqm::PulseShapeReader::run ( EcalCondDBInterface _db,
MonRunIOV _iov,
std::string const &  _formula 
)
overridevirtual

Implements ecaldqm::DBReaderWorker.

Definition at line 330 of file DBReaderWorkers.cc.

References ecaldqm::fetchAndFill().

Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().

330  {
331  std::map<std::string, double (*)(MonPulseShapeDat const &)> extList;
332 
333  extList["g1_avg_sample_01"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[0]); };
334  extList["g1_avg_sample_02"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[1]); };
335  extList["g1_avg_sample_03"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[2]); };
336  extList["g1_avg_sample_04"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[3]); };
337  extList["g1_avg_sample_05"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[4]); };
338  extList["g1_avg_sample_06"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[5]); };
339  extList["g1_avg_sample_07"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[6]); };
340  extList["g1_avg_sample_08"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[7]); };
341  extList["g1_avg_sample_09"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[8]); };
342  extList["g1_avg_sample_10"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(1)[9]); };
343  extList["g6_avg_sample_01"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[0]); };
344  extList["g6_avg_sample_02"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[1]); };
345  extList["g6_avg_sample_03"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[2]); };
346  extList["g6_avg_sample_04"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[3]); };
347  extList["g6_avg_sample_05"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[4]); };
348  extList["g6_avg_sample_06"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[5]); };
349  extList["g6_avg_sample_07"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[6]); };
350  extList["g6_avg_sample_08"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[7]); };
351  extList["g6_avg_sample_09"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[8]); };
352  extList["g6_avg_sample_10"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(6)[9]); };
353  extList["g12_avg_sample_01"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[0]); };
354  extList["g12_avg_sample_02"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[1]); };
355  extList["g12_avg_sample_03"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[2]); };
356  extList["g12_avg_sample_04"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[3]); };
357  extList["g12_avg_sample_05"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[4]); };
358  extList["g12_avg_sample_06"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[5]); };
359  extList["g12_avg_sample_07"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[6]); };
360  extList["g12_avg_sample_08"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[7]); };
361  extList["g12_avg_sample_09"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[8]); };
362  extList["g12_avg_sample_10"] = [](MonPulseShapeDat const &dat) { return double(dat.getSamples(12)[9]); };
363 
364  return fetchAndFill(extList, _db, _iov, _formula);
365  }
ReturnType fetchAndFill(std::map< std::string, double(*)(DataType const &)> const &_extractors, EcalCondDBInterface *_db, MonRunIOV &_iov, std::string const &_formula)