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::MemChConsistencyReader Class Reference

#include <DBReaderWorkers.h>

Inheritance diagram for ecaldqm::MemChConsistencyReader:
ecaldqm::DBReaderWorker

Public Member Functions

 MemChConsistencyReader (edm::ParameterSet const &_ps)
 
std::map< DetId, double > run (EcalCondDBInterface *, MonRunIOV &, std::string const &) override
 
 ~MemChConsistencyReader ()
 
- 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 47 of file DBReaderWorkers.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file DBReaderWorkers.h.

49 : DBReaderWorker("MemChConsistencyReader", _ps) {}
DBReaderWorker(std::string const &_name, edm::ParameterSet const &)
ecaldqm::MemChConsistencyReader::~MemChConsistencyReader ( )
inline

Definition at line 50 of file DBReaderWorkers.h.

50 {}

Member Function Documentation

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

Implements ecaldqm::DBReaderWorker.

Definition at line 129 of file DBReaderWorkers.cc.

References dat, and ecaldqm::fetchAndFill().

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

130  {
131  std::map<std::string, double(*)(MonMemChConsistencyDat const&)> extList;
132 
133  extList["processed_events"] = [](MonMemChConsistencyDat const& dat){ return double(dat.getProcessedEvents()); };
134  extList["problematic_events"] = [](MonMemChConsistencyDat const& dat){ return double(dat.getProblematicEvents()); };
135  extList["problems_id"] = [](MonMemChConsistencyDat const& dat){ return double(dat.getProblemsID()); };
136  extList["problems_gain_zero"] = [](MonMemChConsistencyDat const& dat){ return double(dat.getProblemsGainZero()); };
137  extList["problems_gain_switch"] = [](MonMemChConsistencyDat const& dat){ return double(dat.getProblemsGainSwitch()); };
138 
139  return fetchAndFill(extList, _db, _iov, _formula);
140  }
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