CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
- 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

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 &)
ecaldqm::PulseShapeReader::~PulseShapeReader ( )
inline

Definition at line 194 of file DBReaderWorkers.h.

194 {}

Member Function Documentation

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

Implements ecaldqm::DBReaderWorker.

Definition at line 356 of file DBReaderWorkers.cc.

References dat, and ecaldqm::fetchAndFill().

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

357  {
358  std::map<std::string, double(*)(MonPulseShapeDat const&)> extList;
359 
360  extList["g1_avg_sample_01"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[0]); };
361  extList["g1_avg_sample_02"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[1]); };
362  extList["g1_avg_sample_03"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[2]); };
363  extList["g1_avg_sample_04"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[3]); };
364  extList["g1_avg_sample_05"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[4]); };
365  extList["g1_avg_sample_06"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[5]); };
366  extList["g1_avg_sample_07"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[6]); };
367  extList["g1_avg_sample_08"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[7]); };
368  extList["g1_avg_sample_09"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[8]); };
369  extList["g1_avg_sample_10"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(1)[9]); };
370  extList["g6_avg_sample_01"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[0]); };
371  extList["g6_avg_sample_02"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[1]); };
372  extList["g6_avg_sample_03"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[2]); };
373  extList["g6_avg_sample_04"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[3]); };
374  extList["g6_avg_sample_05"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[4]); };
375  extList["g6_avg_sample_06"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[5]); };
376  extList["g6_avg_sample_07"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[6]); };
377  extList["g6_avg_sample_08"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[7]); };
378  extList["g6_avg_sample_09"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[8]); };
379  extList["g6_avg_sample_10"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(6)[9]); };
380  extList["g12_avg_sample_01"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[0]); };
381  extList["g12_avg_sample_02"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[1]); };
382  extList["g12_avg_sample_03"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[2]); };
383  extList["g12_avg_sample_04"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[3]); };
384  extList["g12_avg_sample_05"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[4]); };
385  extList["g12_avg_sample_06"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[5]); };
386  extList["g12_avg_sample_07"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[6]); };
387  extList["g12_avg_sample_08"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[7]); };
388  extList["g12_avg_sample_09"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[8]); };
389  extList["g12_avg_sample_10"] = [](MonPulseShapeDat const& dat){ return double(dat.getSamples(12)[9]); };
390 
391  return fetchAndFill(extList, _db, _iov, _formula);
392  }
ReturnType fetchAndFill(std::map< std::string, double(*)(DataType const &)> const &_extractors, EcalCondDBInterface *_db, MonRunIOV &_iov, std::string const &_formula)
static std::vector< std::string > checklist dat