CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
GenericHistoryDQM Class Reference
Inheritance diagram for GenericHistoryDQM:
SiStripPopConHistoryDQMBase SiStripDQMPopConSourceHandler< HDQMSummary > SiStripDQMHistoryHelper popcon::PopConSourceHandler< HDQMSummary >

Public Member Functions

 GenericHistoryDQM (const edm::ParameterSet &iConfig)
 
 ~GenericHistoryDQM () override
 
- Public Member Functions inherited from SiStripPopConHistoryDQMBase
bool checkForCompatibility (const std::string &otherMetaData)
 
void dqmEndJob (DQMStore::IBooker &booker, DQMStore::IGetter &getter) override
 
HDQMSummarygetObj () const override
 
 SiStripPopConHistoryDQMBase (const edm::ParameterSet &pset)
 
 ~SiStripPopConHistoryDQMBase () override
 
- Public Member Functions inherited from SiStripDQMPopConSourceHandler< HDQMSummary >
virtual bool checkForCompatibility (const std::string otherMetaData) const
 
virtual std::string getMetaDataString () const
 
void getNewObjects () override
 
std::string id () const override
 
virtual void initES (const edm::EventSetup &)
 
 SiStripDQMPopConSourceHandler (const edm::ParameterSet &pset)
 
 ~SiStripDQMPopConSourceHandler () override
 
- Public Member Functions inherited from popcon::PopConSourceHandler< HDQMSummary >
void convertFromOld ()
 
SummarydummySummary (typename OldContainer::value_type const &) const
 
void initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry_t const & logDBEntry () const
 
std::pair< Container const *, std::string const > operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
void sort ()
 
cond::TagInfo_t const & tagInfo () const
 
std::string const & userTextLog () const
 
virtual ~PopConSourceHandler ()
 

Private Member Functions

uint32_t returnDetComponent (const MonitorElement *ME) const override
 
bool setDBLabelsForUser (const std::string &keyName, std::vector< std::string > &userDBContent, const std::string &quantity) const override
 Example on how to define an user function for the statistic extraction. More...
 
bool setDBValuesForUser (const MonitorElement *me, HDQMSummary::InputVector &values, const std::string &quantity) const override
 

Private Attributes

uint32_t m_detectorID
 

Additional Inherited Members

- Public Types inherited from popcon::PopConSourceHandler< HDQMSummary >
typedef std::vector< Triplet > Container
 
typedef std::vector< std::pair< HDQMSummary *, cond::Time_t > > OldContainer
 
typedef PopConSourceHandler< HDQMSummaryself
 
typedef cond::Summary Summary
 
typedef cond::Time_t Time_t
 
typedef HDQMSummary value_type
 
- Protected Member Functions inherited from SiStripDQMPopConSourceHandler< HDQMSummary >
uint32_t getRunNumber () const
 
- Protected Member Functions inherited from popcon::PopConSourceHandler< HDQMSummary >
int add (value_type *payload, Summary *summary, Time_t time)
 
cond::persistency::SessiondbSession () const
 
- Protected Member Functions inherited from SiStripDQMHistoryHelper
virtual void scanTreeAndFillSummary (const std::vector< MonitorElement * > &MEs, HDQMSummary *summary, const std::string &histoName, const std::vector< std::string > &Quantities) const
 
std::string sep () const
 
virtual bool setDBLabelsForGauss (const std::string &keyName, std::vector< std::string > &userDBContent) const
 
virtual bool setDBLabelsForLandau (const std::string &keyName, std::vector< std::string > &userDBContent) const
 
virtual bool setDBLabelsForStat (const std::string &keyName, std::vector< std::string > &userDBContent) const
 
virtual bool setDBLabelsForUser (const std::string &keyName, std::vector< std::string > &userDBContent) const
 
virtual bool setDBValuesForGauss (const MonitorElement *me, HDQMSummary::InputVector &values) const
 
virtual bool setDBValuesForLandau (const MonitorElement *me, HDQMSummary::InputVector &values) const
 
virtual bool setDBValuesForStat (const MonitorElement *me, HDQMSummary::InputVector &values) const
 
virtual bool setDBValuesForUser (const MonitorElement *me, HDQMSummary::InputVector &values) const
 
 SiStripDQMHistoryHelper (const edm::ParameterSet &pset)
 
virtual ~SiStripDQMHistoryHelper ()
 
- Protected Attributes inherited from popcon::PopConSourceHandler< HDQMSummary >
OldContainer m_to_transfer
 
std::string m_userTextLog
 

Detailed Description

Author
D. Giordano to read DQM root file & insert summary informations to DB

Definition at line 7 of file GenericPopConHistoryDQM.cc.

Constructor & Destructor Documentation

GenericHistoryDQM::GenericHistoryDQM ( const edm::ParameterSet iConfig)
inlineexplicit
GenericHistoryDQM::~GenericHistoryDQM ( )
override

Definition at line 24 of file GenericPopConHistoryDQM.cc.

Referenced by GenericHistoryDQM().

24 {}

Member Function Documentation

uint32_t GenericHistoryDQM::returnDetComponent ( const MonitorElement ME) const
overrideprivatevirtual

Implements SiStripDQMHistoryHelper.

Definition at line 26 of file GenericPopConHistoryDQM.cc.

References LogTrace, and m_detectorID.

Referenced by GenericHistoryDQM().

27 {
28  LogTrace("GenericHistoryDQM") << "[GenericHistoryDQM::returnDetComponent] returning value defined in the configuration Pset \"DetectorId\"";
29  return m_detectorID;
30 }
#define LogTrace(id)
bool GenericHistoryDQM::setDBLabelsForUser ( const std::string &  keyName,
std::vector< std::string > &  userDBContent,
const std::string &  quantity 
) const
overrideprivatevirtual

Example on how to define an user function for the statistic extraction.

Reimplemented from SiStripDQMHistoryHelper.

Definition at line 33 of file GenericPopConHistoryDQM.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by GenericHistoryDQM().

34 {
35  if(quantity=="userExample_XMax"){
36  userDBContent.push_back(keyName+std::string("@")+std::string("userExample_XMax"));
37  }
38  else if(quantity=="userExample_mean"){
39  userDBContent.push_back(keyName+std::string("@")+std::string("userExample_mean"));
40  }
41  else{
42  edm::LogError("DQMHistoryServiceBase")
43  << "Quantity " << quantity
44  << " cannot be handled\nAllowed quantities are"
45  << "\n 'stat' that includes: entries, mean, rms"
46  << "\n 'landau' that includes: landauPeak, landauPeakErr, landauSFWHM, landauChi2NDF"
47  << "\n 'gauss' that includes: gaussMean, gaussSigma, gaussChi2NDF"
48  << "\n or a specific user quantity that should be implemented in the user functions GenericHistoryDQM::setDBLabelsForUser"
49  << std::endl;
50  return false;
51  }
52  return true;
53 }
bool GenericHistoryDQM::setDBValuesForUser ( const MonitorElement me,
HDQMSummary::InputVector values,
const std::string &  quantity 
) const
overrideprivatevirtual

Reimplemented from SiStripDQMHistoryHelper.

Definition at line 55 of file GenericPopConHistoryDQM.cc.

References MonitorElement::getMean(), and MonitorElement::getTH1F().

Referenced by GenericHistoryDQM().

56 {
57  if(quantity=="userExample_XMax"){
58  values.push_back( me->getTH1F()->GetXaxis()->GetBinCenter(me->getTH1F()->GetMaximumBin()));
59  }
60  else if(quantity=="userExample_mean"){
61  values.push_back( me->getMean() );
62  }
63  else{
64  return false;
65  }
66  return true;
67 }
TH1F * getTH1F() const
double getMean(int axis=1) const
get mean value of histogram along x, y or z axis (axis=1, 2, 3 respectively)

Member Data Documentation

uint32_t GenericHistoryDQM::m_detectorID
private

Definition at line 21 of file GenericPopConHistoryDQM.cc.

Referenced by returnDetComponent().