CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
MonitorElement Class Reference

#include <MonitorElement.h>

Classes

struct  fits_in_int64_t
 
struct  Scalar
 

Public Types

enum  Kind {
  DQM_KIND_INVALID = DQMNet::DQM_PROP_TYPE_INVALID, DQM_KIND_INT = DQMNet::DQM_PROP_TYPE_INT, DQM_KIND_REAL = DQMNet::DQM_PROP_TYPE_REAL, DQM_KIND_STRING = DQMNet::DQM_PROP_TYPE_STRING,
  DQM_KIND_TH1F = DQMNet::DQM_PROP_TYPE_TH1F, DQM_KIND_TH1S = DQMNet::DQM_PROP_TYPE_TH1S, DQM_KIND_TH1D = DQMNet::DQM_PROP_TYPE_TH1D, DQM_KIND_TH2F = DQMNet::DQM_PROP_TYPE_TH2F,
  DQM_KIND_TH2S = DQMNet::DQM_PROP_TYPE_TH2S, DQM_KIND_TH2D = DQMNet::DQM_PROP_TYPE_TH2D, DQM_KIND_TH3F = DQMNet::DQM_PROP_TYPE_TH3F, DQM_KIND_TPROFILE = DQMNet::DQM_PROP_TYPE_TPROF,
  DQM_KIND_TPROFILE2D = DQMNet::DQM_PROP_TYPE_TPROF2D
}
 
typedef std::vector< QReport >
::const_iterator 
QReportIterator
 

Public Member Functions

std::string effLabelString (void) const
 return label string for the monitor element tag (eg. <name>t=12345</name>) More...
 
void Fill (long long x)
 
void Fill (unsigned long long x)
 
void Fill (unsigned long x)
 
void Fill (long x)
 
void Fill (unsigned int x)
 
void Fill (int x)
 
void Fill (short x)
 
void Fill (unsigned short x)
 
void Fill (char x)
 
void Fill (unsigned char x)
 
void Fill (float x)
 
void Fill (double x)
 "Fill" ME methods for double More...
 
void Fill (std::string &value)
 "Fill" ME methods for string More...
 
void Fill (double x, double yw)
 can be used with 2D (x,y) or 1D (x, w) histograms More...
 
void Fill (double x, double y, double zw)
 can be used with 3D (x, y, z) or 2D (x, y, w) histograms More...
 
void Fill (double x, double y, double z, double w)
 can be used with 3D (x, y, z, w) histograms More...
 
uint32_t flags (void) const
 Get the object flags. More...
 
std::string getAxisTitle (int axis=1) const
 get x-, y- or z-axis title (axis=1, 2, 3 respectively) More...
 
double getBinContent (int binx) const
 get content of bin (1-D) More...
 
double getBinContent (int binx, int biny) const
 get content of bin (2-D) More...
 
double getBinContent (int binx, int biny, int binz) const
 get content of bin (3-D) More...
 
double getBinEntries (int bin) const
 get # of bin entries (for profiles) More...
 
double getBinError (int binx) const
 get uncertainty on content of bin (1-D) - See TH1::GetBinError for details More...
 
double getBinError (int binx, int biny) const
 get uncertainty on content of bin (2-D) - See TH1::GetBinError for details More...
 
double getBinError (int binx, int biny, int binz) const
 get uncertainty on content of bin (3-D) - See TH1::GetBinError for details More...
 
double getEntries (void) const
 get # of entries More...
 
double getFloatValue (void) const
 
const std::string getFullname (void) const
 get full name of ME including Pathname More...
 
int64_t getIntValue (void) const
 
bool getLumiFlag (void) const
 true if ME is meant to be stored for each luminosity section More...
 
double getMean (int axis=1) const
 get mean value of histogram along x, y or z axis (axis=1, 2, 3 respectively) More...
 
double getMeanError (int axis=1) const
 
const std::string & getName (void) const
 get name of ME More...
 
int getNbinsX (void) const
 get # of bins in X-axis More...
 
int getNbinsY (void) const
 get # of bins in Y-axis More...
 
int getNbinsZ (void) const
 get # of bins in Z-axis More...
 
const std::string & getPathname (void) const
 get pathname of parent folder More...
 
std::vector< QReport * > getQErrors (void) const
 get errors from last set of quality tests More...
 
std::vector< QReport * > getQOthers (void) const
 
const QReportgetQReport (const std::string &qtname) const
 get QReport corresponding to <qtname> (null pointer if QReport does not exist) More...
 
std::vector< QReport * > getQReports (void) const
 get map of QReports More...
 
std::vector< QReport * > getQWarnings (void) const
 get warnings from last set of quality tests More...
 
TObject * getRefRootObject (void) const
 
TH1 * getRefTH1 (void) const
 
TH1D * getRefTH1D (void) const
 
TH1F * getRefTH1F (void) const
 
TH1S * getRefTH1S (void) const
 
TH2D * getRefTH2D (void) const
 
TH2F * getRefTH2F (void) const
 
TH2S * getRefTH2S (void) const
 
TH3F * getRefTH3F (void) const
 
TProfile * getRefTProfile (void) const
 
TProfile2D * getRefTProfile2D (void) const
 
double getRMS (int axis=1) const
 get RMS of histogram along x, y or z axis (axis=1, 2, 3 respectively) More...
 
double getRMSError (int axis=1) const
 get RMS uncertainty of histogram along x, y or z axis(axis=1,2,3 respectively) More...
 
TObject * getRootObject (void) const
 
const std::string & getStringValue (void) const
 
const uint32_t getTag (void) const
 
DQMNet::TagList getTags (void) const
 
TH1 * getTH1 (void) const
 
TH1D * getTH1D (void) const
 
TH1F * getTH1F (void) const
 
TH1S * getTH1S (void) const
 
TH2D * getTH2D (void) const
 
TH2F * getTH2F (void) const
 
TH2S * getTH2S (void) const
 
TH3F * getTH3F (void) const
 
std::string getTitle (void) const
 get MonitorElement title More...
 
TProfile * getTProfile (void) const
 
TProfile2D * getTProfile2D (void) const
 
bool hasError (void) const
 true if at least of one of the quality tests returned an error More...
 
bool hasOtherReport (void) const
 true if at least of one of the tests returned some other (non-ok) status More...
 
bool hasWarning (void) const
 true if at least of one of the quality tests returned a warning More...
 
bool isEfficiency (void) const
 
Kind kind (void) const
 Get the type of the monitor element. More...
 
const uint32_t lumi (void) const
 
const uint32_t moduleId (void) const
 
 MonitorElement (void)
 
 MonitorElement (const std::string *path, const std::string &name, uint32_t run=0, uint32_t streamId=0, uint32_t moduleId=0)
 
 MonitorElement (const MonitorElement &, MonitorElementNoCloneTag)
 
 MonitorElement (const MonitorElement &)
 
 MonitorElement (MonitorElement &&)
 
bool operator< (const MonitorElement &x) const
 Compare monitor elements, for ordering in sets. More...
 
MonitorElementoperator= (const MonitorElement &)=delete
 
MonitorElementoperator= (MonitorElement &&)=delete
 
void packQualityData (std::string &into) const
 serialise quality report information into a string. More...
 
void packScalarData (std::string &into, const char *prefix) const
 convert scalar data into a string. More...
 
std::string qualityTagString (const DQMNet::QValue &qv) const
 
void Reset (void)
 reset ME (ie. contents, errors, etc) More...
 
const uint32_t run (void) const
 
void runQTests (void)
 run all quality tests More...
 
void setAxisRange (double xmin, double xmax, int axis=1)
 set x-, y- or z-axis range (axis=1, 2, 3 respectively) More...
 
void setAxisTimeDisplay (int value, int axis=1)
 set x-, y-, or z-axis to display time values More...
 
void setAxisTimeFormat (const char *format="", int axis=1)
 set the format of the time values that are displayed on an axis More...
 
void setAxisTitle (const std::string &title, int axis=1)
 set x-, y- or z-axis title (axis=1, 2, 3 respectively) More...
 
void setBinContent (int binx, double content)
 set content of bin (1-D) More...
 
void setBinContent (int binx, int biny, double content)
 set content of bin (2-D) More...
 
void setBinContent (int binx, int biny, int binz, double content)
 set content of bin (3-D) More...
 
void setBinEntries (int bin, double nentries)
 set # of bin entries (to be used for profiles) More...
 
void setBinError (int binx, double error)
 set uncertainty on content of bin (1-D) More...
 
void setBinError (int binx, int biny, double error)
 set uncertainty on content of bin (2-D) More...
 
void setBinError (int binx, int biny, int binz, double error)
 set uncertainty on content of bin (3-D) More...
 
void setBinLabel (int bin, const std::string &label, int axis=1)
 set bin label for x, y or z axis (axis=1, 2, 3 respectively) More...
 
void setEfficiencyFlag (void)
 
void setEntries (double nentries)
 set # of entries More...
 
void setLumiFlag (void)
 this ME is meant to be stored for each luminosity section More...
 
void setResetMe (bool)
 
void setTitle (const std::string &title)
 set (ie. change) histogram/profile title More...
 
void ShiftFillLast (double y, double ye=0., int32_t xscale=1)
 
void softReset (void)
 
const uint32_t streamId (void) const
 
std::string tagLabelString (void) const
 return label string for the monitor element tag (eg. <name>t=12345</name>) More...
 
std::string tagString (void) const
 
void update (void)
 Mark the object updated. More...
 
std::string valueString (void) const
 
bool wasUpdated (void) const
 true if ME was updated in last monitoring cycle More...
 
 ~MonitorElement (void)
 

Static Public Member Functions

static bool CheckBinLabels (const TAxis *a1, const TAxis *a2)
 Check the consistency of the axis labels. More...
 

Private Member Functions

TH1 * accessRootObject (const char *func, int reqdim) const
 
void addProfiles (TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
 
void addProfiles (TProfile2D *h1, TProfile2D *h2, TProfile2D *sum, float c1, float c2)
 
void addQReport (const DQMNet::QValue &desc, QCriterion *qc)
 Add quality report, from DQMStore. More...
 
void addQReport (QCriterion *qc)
 
void copyFrom (TH1 *from)
 
void copyFunctions (TH1 *from, TH1 *to)
 
void disableSoftReset (void)
 reverts action of softReset More...
 
void doFill (int64_t x)
 "Fill" ME method for int64_t More...
 
TAxis * getAxis (const char *func, int axis) const
 
void getQReport (bool create, const std::string &qtname, QReport *&qr, DQMNet::QValue *&qv)
 
double getYmax (void) const
 get max Y value (for profiles) More...
 
double getYmin (void) const
 get min Y value (for profiles) More...
 
void globalize ()
 
void incompatible (const char *func) const
 
MonitorElementinitialise (Kind kind)
 
MonitorElementinitialise (Kind kind, TH1 *rootobj)
 
MonitorElementinitialise (Kind kind, const std::string &value)
 
bool isAccumulateEnabled (void) const
 whether ME contents should be accumulated over multiple monitoring periods; default: false More...
 
bool isSoftResetEnabled (void) const
 whether soft-reset is enabled; default is false More...
 
bool markedToDelete (void) const
 true if ME is marked for deletion More...
 
void markToDelete (void)
 
bool resetMe (void) const
 true if ME should be reset at end of monitoring cycle More...
 
void resetUpdate (void)
 reset "was updated" flag More...
 
void setAccumulate (bool)
 
void setAxisTimeOffset (double toffset, const char *option="local", int axis=1)
 set the time offset, if option = "gmt" then the offset is treated as a GMT time More...
 
void setLumi (uint32_t ls)
 
void updateQReportStats (void)
 Refresh QReport stats, usually after MEs were read in from a file. More...
 

Private Attributes

DQMNet::CoreObject data_
 
TH1 * object_
 
std::vector< QReportqreports_
 
TH1 * reference_
 
TH1 * refvalue_
 
Scalar scalar_
 

Friends

class DQMService
 
class DQMStore
 

Detailed Description

The base class for all MonitorElements (ME)

Definition at line 37 of file MonitorElement.h.

Member Typedef Documentation

typedef std::vector<QReport>::const_iterator MonitorElement::QReportIterator

Definition at line 66 of file MonitorElement.h.

Member Enumeration Documentation

Enumerator
DQM_KIND_INVALID 
DQM_KIND_INT 
DQM_KIND_REAL 
DQM_KIND_STRING 
DQM_KIND_TH1F 
DQM_KIND_TH1S 
DQM_KIND_TH1D 
DQM_KIND_TH2F 
DQM_KIND_TH2S 
DQM_KIND_TH2D 
DQM_KIND_TH3F 
DQM_KIND_TPROFILE 
DQM_KIND_TPROFILE2D 

Definition at line 49 of file MonitorElement.h.

Constructor & Destructor Documentation

MonitorElement::MonitorElement ( void  )

Definition at line 147 of file MonitorElement.cc.

MonitorElement::MonitorElement ( const std::string *  path,
const std::string &  name,
uint32_t  run = 0,
uint32_t  streamId = 0,
uint32_t  moduleId = 0 
)

Definition at line 164 of file MonitorElement.cc.

MonitorElement::MonitorElement ( const MonitorElement x,
MonitorElementNoCloneTag   
)

Definition at line 186 of file MonitorElement.cc.

MonitorElement::MonitorElement ( const MonitorElement x)

Definition at line 196 of file MonitorElement.cc.

MonitorElement::MonitorElement ( MonitorElement &&  o)

Definition at line 206 of file MonitorElement.cc.

MonitorElement::~MonitorElement ( void  )

Definition at line 216 of file MonitorElement.cc.

Member Function Documentation

TH1 * MonitorElement::accessRootObject ( const char *  func,
int  reqdim 
) const
private

Definition at line 686 of file MonitorElement.cc.

void MonitorElement::addProfiles ( TProfile *  h1,
TProfile *  h2,
TProfile *  sum,
float  c1,
float  c2 
)
private

Definition at line 1193 of file MonitorElement.cc.

void MonitorElement::addProfiles ( TProfile2D *  h1,
TProfile2D *  h2,
TProfile2D *  sum,
float  c1,
float  c2 
)
private

Definition at line 1243 of file MonitorElement.cc.

void MonitorElement::addQReport ( const DQMNet::QValue desc,
QCriterion qc 
)
private

Add quality report, from DQMStore.

Definition at line 1397 of file MonitorElement.cc.

void MonitorElement::addQReport ( QCriterion qc)
private

Definition at line 1408 of file MonitorElement.cc.

bool MonitorElement::CheckBinLabels ( const TAxis *  a1,
const TAxis *  a2 
)
static

Check the consistency of the axis labels.

Definition at line 225 of file MonitorElement.cc.

void MonitorElement::copyFrom ( TH1 *  from)
private

Definition at line 1322 of file MonitorElement.cc.

void MonitorElement::copyFunctions ( TH1 *  from,
TH1 *  to 
)
private

Definition at line 1293 of file MonitorElement.cc.

void MonitorElement::disableSoftReset ( void  )
private

reverts action of softReset

Definition at line 1155 of file MonitorElement.cc.

void MonitorElement::doFill ( int64_t  x)
private

"Fill" ME method for int64_t

Definition at line 285 of file MonitorElement.cc.

std::string MonitorElement::effLabelString ( void  ) const

return label string for the monitor element tag (eg. <name>t=12345</name>)

Definition at line 549 of file MonitorElement.cc.

void MonitorElement::Fill ( long long  x)
inline

Definition at line 170 of file MonitorElement.h.

Referenced by AlphaTVarAnalyzer::analyze(), ScoutingTestAnalyzer::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCStripDigiValidation::analyze(), PerformanceAnalyzer::analyze(), CSCRecHit2DValidation::analyze(), CSCWireDigiValidation::analyze(), CSCComparatorDigiValidation::analyze(), L1TdeStage2EMTF::analyze(), RPCMonitorRaw::analyze(), HLTTauDQMPathSummaryPlotter::analyze(), EventShapeDQM::analyze(), SiStripMonitorFilter::analyze(), SiStripMonitorHLT::analyze(), ElectronGeneralAnalyzer::analyze(), RPCMonitorLinkSynchro::analyze(), HeavyIonUCCDQM::analyze(), MonitorLTC::analyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), AcceptanceHistoProducer::analyze(), SUSY_HLT_PhotonMET::analyze(), BasicHepMCHeavyIonValidation::analyze(), DQMLumiMonitor::analyze(), EcalPreshowerNoiseDistrib::analyze(), BPhysicsSpectrum::analyze(), BPhysicsValidation::analyze(), HiggsValidation::analyze(), DQMEventInfo::analyze(), ConverterTester::analyze(), L1TStage2OMTF::analyze(), SUSY_HLT_ElecFakes::analyze(), SUSY_HLT_MuonFakes::analyze(), DuplicationChecker::analyze(), EcalPreshowerDigisValidation::analyze(), NoiseRates::analyze(), SiStripMonitorRawData::analyze(), HcalNoiseRates::analyze(), L1TCSCTPG::analyze(), PSMonitor::analyze(), B2GDoubleLeptonHLTValidation::analyze(), B2GHadronicHLTValidation::analyze(), DTScalerInfoTask::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), SiPixelErrorsDigisToCalibDigis::analyze(), GlobalHitsTester::analyze(), DQMEventInfo::beginLuminosityBlock(), DQMDaqInfo::beginLuminosityBlock(), DQMEventInfo::bookHistograms(), RPCDcsInfoClient::dqmEndJob(), RPCRecHitValidClient::dqmEndJob(), HLTTauCertifier::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), DTOfflineSummaryClients::dqmEndJob(), RPCDaqInfo::dqmEndLuminosityBlock(), DTDCSSummary::dqmEndLuminosityBlock(), SiPixelDaqInfo::dqmEndLuminosityBlock(), DTCertificationSummary::dqmEndLuminosityBlock(), DTSummaryClients::dqmEndLuminosityBlock(), HcalNoiseRates::endJob(), ESSummaryClient::endLumiAnalyze(), DQMLumiMonitor::endLuminosityBlock(), DQMDcsInfoClient::endRun(), ConverterTester::endRun(), FineDelayTask::fill(), CSCMonitorObject::Fill(), L1ValidatorHists::Fill(), BPhysicsValidation::ParticleMonitor::Fill(), RPCMultiplicityTest::fillGlobalME(), L1ValidatorHists::FillNumber(), CSCStripDigiValidation::fillPedestalPlots(), ESSummaryClient::fillReportSummary(), CSCStripDigiValidation::fillSignalPlots(), SiStripCablingDQM::getActiveDetIds(), RPCDataCertification::myBooker(), RPCDaqInfo::myBooker(), RPCDCSSummary::myBooker(), NoiseRatesClient::NoiseRatesEndjob(), HcalNoiseRatesClient::NoiseRatesEndjob(), CSCStripDigiValidation::plotResolution(), CSCWireDigiValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), CastorLEDMonitor::processEvent(), SusyPostProcessor::QuantilePlots(), and SubTaskSummaryStatus::WriteThreshold().

void MonitorElement::Fill ( unsigned long long  x)
inline

Definition at line 171 of file MonitorElement.h.

void MonitorElement::Fill ( unsigned long  x)
inline

Definition at line 172 of file MonitorElement.h.

void MonitorElement::Fill ( long  x)
inline

Definition at line 173 of file MonitorElement.h.

void MonitorElement::Fill ( unsigned int  x)
inline

Definition at line 174 of file MonitorElement.h.

void MonitorElement::Fill ( int  x)
inline

Definition at line 175 of file MonitorElement.h.

void MonitorElement::Fill ( short  x)
inline

Definition at line 176 of file MonitorElement.h.

void MonitorElement::Fill ( unsigned short  x)
inline

Definition at line 177 of file MonitorElement.h.

void MonitorElement::Fill ( char  x)
inline

Definition at line 178 of file MonitorElement.h.

void MonitorElement::Fill ( unsigned char  x)
inline

Definition at line 179 of file MonitorElement.h.

void MonitorElement::Fill ( float  x)
inline

Definition at line 181 of file MonitorElement.h.

void MonitorElement::Fill ( double  x)

"Fill" ME methods for double

Definition at line 263 of file MonitorElement.cc.

void MonitorElement::Fill ( std::string &  value)

"Fill" ME methods for string

Definition at line 252 of file MonitorElement.cc.

void MonitorElement::Fill ( double  x,
double  yw 
)

can be used with 2D (x,y) or 1D (x, w) histograms

Definition at line 307 of file MonitorElement.cc.

void MonitorElement::Fill ( double  x,
double  y,
double  zw 
)

can be used with 3D (x, y, z) or 2D (x, y, w) histograms

Definition at line 411 of file MonitorElement.cc.

void MonitorElement::Fill ( double  x,
double  y,
double  z,
double  w 
)

can be used with 3D (x, y, z, w) histograms

Definition at line 438 of file MonitorElement.cc.

uint32_t MonitorElement::flags ( void  ) const
inline

Get the object flags.

Definition at line 113 of file MonitorElement.h.

TAxis * MonitorElement::getAxis ( const char *  func,
int  axis 
) const
private

Definition at line 991 of file MonitorElement.cc.

std::string MonitorElement::getAxisTitle ( int  axis = 1) const

get x-, y- or z-axis title (axis=1, 2, 3 respectively)

Definition at line 830 of file MonitorElement.cc.

double MonitorElement::getBinContent ( int  binx) const
double MonitorElement::getBinContent ( int  binx,
int  biny 
) const

get content of bin (2-D)

Definition at line 749 of file MonitorElement.cc.

double MonitorElement::getBinContent ( int  binx,
int  biny,
int  binz 
) const

get content of bin (3-D)

Definition at line 755 of file MonitorElement.cc.

double MonitorElement::getBinEntries ( int  bin) const

get # of bin entries (for profiles)

Definition at line 785 of file MonitorElement.cc.

double MonitorElement::getBinError ( int  binx) const

get uncertainty on content of bin (1-D) - See TH1::GetBinError for details

Definition at line 761 of file MonitorElement.cc.

Referenced by DTOfflineSummaryClients::dqmEndJob().

double MonitorElement::getBinError ( int  binx,
int  biny 
) const

get uncertainty on content of bin (2-D) - See TH1::GetBinError for details

Definition at line 767 of file MonitorElement.cc.

double MonitorElement::getBinError ( int  binx,
int  biny,
int  binz 
) const

get uncertainty on content of bin (3-D) - See TH1::GetBinError for details

Definition at line 773 of file MonitorElement.cc.

double MonitorElement::getEntries ( void  ) const

get # of entries

Definition at line 779 of file MonitorElement.cc.

Referenced by CaloTowersClient::CaloTowersEndjob(), and CaloTowersDQMClient::CaloTowersEndjob().

double MonitorElement::getFloatValue ( void  ) const
inline

Definition at line 368 of file MonitorElement.h.

Referenced by DTOfflineSummaryClients::dqmEndJob().

const std::string MonitorElement::getFullname ( void  ) const
inline

get full name of ME including Pathname

Definition at line 125 of file MonitorElement.h.

Referenced by ConverterTester::beginJob().

int64_t MonitorElement::getIntValue ( void  ) const
inline
bool MonitorElement::getLumiFlag ( void  ) const
inline

true if ME is meant to be stored for each luminosity section

Definition at line 150 of file MonitorElement.h.

double MonitorElement::getMean ( int  axis = 1) const

get mean value of histogram along x, y or z axis (axis=1, 2, 3 respectively)

Definition at line 700 of file MonitorElement.cc.

Referenced by RPCMultiplicityTest::fillGlobalME(), METTesterPostProcessor::FillMETRes(), and CSCRecHit2DValidation::~CSCRecHit2DValidation().

double MonitorElement::getMeanError ( int  axis = 1) const

get mean value uncertainty of histogram along x, y or z axis (axis=1, 2, 3 respectively)

Definition at line 707 of file MonitorElement.cc.

const std::string& MonitorElement::getName ( void  ) const
inline
int MonitorElement::getNbinsX ( void  ) const
int MonitorElement::getNbinsY ( void  ) const
int MonitorElement::getNbinsZ ( void  ) const

get # of bins in Z-axis

Definition at line 737 of file MonitorElement.cc.

const std::string& MonitorElement::getPathname ( void  ) const
inline

get pathname of parent folder

Definition at line 121 of file MonitorElement.h.

Referenced by SusyPostProcessor::QuantilePlots().

std::vector< QReport * > MonitorElement::getQErrors ( void  ) const

get errors from last set of quality tests

Definition at line 614 of file MonitorElement.cc.

Referenced by HLTTauCertifier::dqmEndJob(), and QTestStatusChecker::processAlarms().

std::vector< QReport * > MonitorElement::getQOthers ( void  ) const

get "other" (i.e. non-error, non-warning, non-"ok") QReports from last set of quality tests

Definition at line 629 of file MonitorElement.cc.

Referenced by QTestStatusChecker::processAlarms().

const QReport * MonitorElement::getQReport ( const std::string &  qtname) const

get QReport corresponding to <qtname> (null pointer if QReport does not exist)

Definition at line 576 of file MonitorElement.cc.

Referenced by RPCDeadChannelTest::clientOperation().

void MonitorElement::getQReport ( bool  create,
const std::string &  qtname,
QReport *&  qr,
DQMNet::QValue *&  qv 
)
private

Definition at line 1365 of file MonitorElement.cc.

std::vector< QReport * > MonitorElement::getQReports ( void  ) const

get map of QReports

Definition at line 585 of file MonitorElement.cc.

std::vector< QReport * > MonitorElement::getQWarnings ( void  ) const

get warnings from last set of quality tests

Definition at line 599 of file MonitorElement.cc.

Referenced by HLTTauCertifier::dqmEndJob(), and QTestStatusChecker::processAlarms().

TObject * MonitorElement::getRefRootObject ( void  ) const

Definition at line 1530 of file MonitorElement.cc.

Referenced by CSCMonitorObject::getRefRootObject().

TH1 * MonitorElement::getRefTH1 ( void  ) const

Definition at line 1537 of file MonitorElement.cc.

TH1D * MonitorElement::getRefTH1D ( void  ) const

Definition at line 1562 of file MonitorElement.cc.

TH1F * MonitorElement::getRefTH1F ( void  ) const

Definition at line 1544 of file MonitorElement.cc.

TH1S * MonitorElement::getRefTH1S ( void  ) const

Definition at line 1553 of file MonitorElement.cc.

TH2D * MonitorElement::getRefTH2D ( void  ) const

Definition at line 1589 of file MonitorElement.cc.

TH2F * MonitorElement::getRefTH2F ( void  ) const

Definition at line 1571 of file MonitorElement.cc.

TH2S * MonitorElement::getRefTH2S ( void  ) const

Definition at line 1580 of file MonitorElement.cc.

TH3F * MonitorElement::getRefTH3F ( void  ) const

Definition at line 1598 of file MonitorElement.cc.

TProfile * MonitorElement::getRefTProfile ( void  ) const

Definition at line 1607 of file MonitorElement.cc.

TProfile2D * MonitorElement::getRefTProfile2D ( void  ) const

Definition at line 1616 of file MonitorElement.cc.

double MonitorElement::getRMS ( int  axis = 1) const

get RMS of histogram along x, y or z axis (axis=1, 2, 3 respectively)

Definition at line 713 of file MonitorElement.cc.

Referenced by METTesterPostProcessor::FillMETRes(), and CSCRecHit2DValidation::~CSCRecHit2DValidation().

double MonitorElement::getRMSError ( int  axis = 1) const

get RMS uncertainty of histogram along x, y or z axis(axis=1,2,3 respectively)

Definition at line 719 of file MonitorElement.cc.

TObject * MonitorElement::getRootObject ( void  ) const
const std::string& MonitorElement::getStringValue ( void  ) const
inline

Definition at line 374 of file MonitorElement.h.

const uint32_t MonitorElement::getTag ( void  ) const
inline

Definition at line 388 of file MonitorElement.h.

DQMNet::TagList MonitorElement::getTags ( void  ) const
inline

Definition at line 380 of file MonitorElement.h.

TH1 * MonitorElement::getTH1 ( void  ) const
TH1D * MonitorElement::getTH1D ( void  ) const

Definition at line 1473 of file MonitorElement.cc.

TH1F * MonitorElement::getTH1F ( void  ) const

Definition at line 1457 of file MonitorElement.cc.

Referenced by Benchmark::book1D(), RPCMonitorLinkSynchro::bookHistograms(), HDQMfitUtilities::doGaussFit(), HDQMfitUtilities::doLanGaussFit(), RPCRecHitProbabilityClient::dqmEndJob(), DQMHcalIsoTrackPostProcessor::dqmEndJob(), SusyPostProcessor::dqmEndJob(), JetMETHLTOfflineClient::dqmEndJob(), RPCDcsInfoClient::dqmEndLuminosityBlock(), BrilClient::dqmEndLuminosityBlock(), HarvestingAnalyzer::endJob(), ESPedestalClient::endJobAnalyze(), RPCMonitorLinkSynchro::endLuminosityBlock(), DQMDcsInfoClient::endLuminosityBlock(), MillePedeDQMModule::fillExpertHisto(), ThroughputServiceClient::fillSummaryPlots(), BTagDifferentialPlot::getDifferentialHistoB_b(), BTagDifferentialPlot::getDifferentialHistoB_c(), BTagDifferentialPlot::getDifferentialHistoB_d(), BTagDifferentialPlot::getDifferentialHistoB_dus(), BTagDifferentialPlot::getDifferentialHistoB_dusg(), BTagDifferentialPlot::getDifferentialHistoB_g(), BTagDifferentialPlot::getDifferentialHistoB_ni(), BTagDifferentialPlot::getDifferentialHistoB_pu(), BTagDifferentialPlot::getDifferentialHistoB_s(), BTagDifferentialPlot::getDifferentialHistoB_u(), EffPurFromHistos::getEffFlavVsBEff_b(), EffPurFromHistos::getEffFlavVsBEff_c(), EffPurFromHistos::getEffFlavVsBEff_d(), EffPurFromHistos::getEffFlavVsBEff_dus(), EffPurFromHistos::getEffFlavVsBEff_dusg(), EffPurFromHistos::getEffFlavVsBEff_g(), EffPurFromHistos::getEffFlavVsBEff_ni(), EffPurFromHistos::getEffFlavVsBEff_pu(), EffPurFromHistos::getEffFlavVsBEff_s(), EffPurFromHistos::getEffFlavVsBEff_u(), PhotonDataCertification::invMassZtest(), HLTTauPostProcessor::plotFilterEfficiencies(), L1TCSCTFClient::processHistograms(), SiStripNoisesDQMService::readNoises(), and SiStripPedestalsDQMService::readPedestals().

TH1S * MonitorElement::getTH1S ( void  ) const

Definition at line 1465 of file MonitorElement.cc.

TH2D * MonitorElement::getTH2D ( void  ) const

Definition at line 1497 of file MonitorElement.cc.

TH2F * MonitorElement::getTH2F ( void  ) const
TH2S * MonitorElement::getTH2S ( void  ) const

Definition at line 1489 of file MonitorElement.cc.

TH3F * MonitorElement::getTH3F ( void  ) const

Definition at line 1505 of file MonitorElement.cc.

std::string MonitorElement::getTitle ( void  ) const

get MonitorElement title

Definition at line 836 of file MonitorElement.cc.

Referenced by TkHistoMap::getDetId().

TProfile * MonitorElement::getTProfile ( void  ) const
TProfile2D * MonitorElement::getTProfile2D ( void  ) const

Definition at line 1521 of file MonitorElement.cc.

double MonitorElement::getYmax ( void  ) const
private

get max Y value (for profiles)

Definition at line 816 of file MonitorElement.cc.

double MonitorElement::getYmin ( void  ) const
private

get min Y value (for profiles)

Definition at line 802 of file MonitorElement.cc.

void MonitorElement::globalize ( )
inlineprivate

Definition at line 79 of file MonitorElement.h.

bool MonitorElement::hasError ( void  ) const
inline

true if at least of one of the quality tests returned an error

Definition at line 200 of file MonitorElement.h.

Referenced by QTestStatusChecker::processAlarms().

bool MonitorElement::hasOtherReport ( void  ) const
inline

true if at least of one of the tests returned some other (non-ok) status

Definition at line 208 of file MonitorElement.h.

Referenced by QTestStatusChecker::processAlarms().

bool MonitorElement::hasWarning ( void  ) const
inline

true if at least of one of the quality tests returned a warning

Definition at line 204 of file MonitorElement.h.

Referenced by QTestStatusChecker::processAlarms().

void MonitorElement::incompatible ( const char *  func) const
private

Definition at line 679 of file MonitorElement.cc.

MonitorElement * MonitorElement::initialise ( Kind  kind)
private

Definition at line 35 of file MonitorElement.cc.

MonitorElement * MonitorElement::initialise ( Kind  kind,
TH1 *  rootobj 
)
private

Definition at line 64 of file MonitorElement.cc.

MonitorElement * MonitorElement::initialise ( Kind  kind,
const std::string &  value 
)
private

Definition at line 135 of file MonitorElement.cc.

bool MonitorElement::isAccumulateEnabled ( void  ) const
inlineprivate

whether ME contents should be accumulated over multiple monitoring periods; default: false

Definition at line 292 of file MonitorElement.h.

bool MonitorElement::isEfficiency ( void  ) const
inline

true if the plot has been marked as an efficiency plot, which will not be normalized when rendered within the DQM GUI.

Definition at line 213 of file MonitorElement.h.

bool MonitorElement::isSoftResetEnabled ( void  ) const
inlineprivate

whether soft-reset is enabled; default is false

Definition at line 288 of file MonitorElement.h.

Kind MonitorElement::kind ( void  ) const
inline

Get the type of the monitor element.

Definition at line 109 of file MonitorElement.h.

Referenced by DQMService::flushStandalone().

const uint32_t MonitorElement::lumi ( void  ) const
inline

Definition at line 392 of file MonitorElement.h.

bool MonitorElement::markedToDelete ( void  ) const
inlineprivate

true if ME is marked for deletion

Definition at line 296 of file MonitorElement.h.

void MonitorElement::markToDelete ( void  )
inlineprivate

Mark the object for deletion. NB: make sure that the following method is not called simultaneously for the same ME

Definition at line 301 of file MonitorElement.h.

const uint32_t MonitorElement::moduleId ( void  ) const
inline

Definition at line 394 of file MonitorElement.h.

bool MonitorElement::operator< ( const MonitorElement x) const
inline

Compare monitor elements, for ordering in sets.

Definition at line 100 of file MonitorElement.h.

MonitorElement& MonitorElement::operator= ( const MonitorElement )
delete
MonitorElement& MonitorElement::operator= ( MonitorElement &&  )
delete
void MonitorElement::packQualityData ( std::string &  into) const

serialise quality report information into a string.

Definition at line 494 of file MonitorElement.cc.

void MonitorElement::packScalarData ( std::string &  into,
const char *  prefix 
) const

convert scalar data into a string.

Definition at line 469 of file MonitorElement.cc.

Referenced by DQMService::flushStandalone().

std::string MonitorElement::qualityTagString ( const DQMNet::QValue qv) const

Definition at line 561 of file MonitorElement.cc.

void MonitorElement::Reset ( void  )
bool MonitorElement::resetMe ( void  ) const
inlineprivate

true if ME should be reset at end of monitoring cycle

Definition at line 310 of file MonitorElement.h.

void MonitorElement::resetUpdate ( void  )
inlineprivate

reset "was updated" flag

Definition at line 306 of file MonitorElement.h.

const uint32_t MonitorElement::run ( void  ) const
inline

Definition at line 391 of file MonitorElement.h.

void MonitorElement::runQTests ( void  )

run all quality tests

Definition at line 647 of file MonitorElement.cc.

void MonitorElement::setAccumulate ( bool  )
inlineprivate

if true, will accumulate ME contents (over many periods) until method is called with flag = false again

Definition at line 315 of file MonitorElement.h.

void MonitorElement::setAxisRange ( double  xmin,
double  xmax,
int  axis = 1 
)

set x-, y- or z-axis range (axis=1, 2, 3 respectively)

Definition at line 938 of file MonitorElement.cc.

void MonitorElement::setAxisTimeDisplay ( int  value,
int  axis = 1 
)

set x-, y-, or z-axis to display time values

Definition at line 956 of file MonitorElement.cc.

void MonitorElement::setAxisTimeFormat ( const char *  format = "",
int  axis = 1 
)

set the format of the time values that are displayed on an axis

Definition at line 965 of file MonitorElement.cc.

void MonitorElement::setAxisTimeOffset ( double  toffset,
const char *  option = "local",
int  axis = 1 
)
private

set the time offset, if option = "gmt" then the offset is treated as a GMT time

Definition at line 974 of file MonitorElement.cc.

void MonitorElement::setAxisTitle ( const std::string &  title,
int  axis = 1 
)
void MonitorElement::setBinContent ( int  binx,
double  content 
)
void MonitorElement::setBinContent ( int  binx,
int  biny,
double  content 
)

set content of bin (2-D)

Definition at line 853 of file MonitorElement.cc.

void MonitorElement::setBinContent ( int  binx,
int  biny,
int  binz,
double  content 
)

set content of bin (3-D)

Definition at line 861 of file MonitorElement.cc.

void MonitorElement::setBinEntries ( int  bin,
double  nentries 
)

set # of bin entries (to be used for profiles)

Definition at line 896 of file MonitorElement.cc.

void MonitorElement::setBinError ( int  binx,
double  error 
)

set uncertainty on content of bin (1-D)

Definition at line 869 of file MonitorElement.cc.

Referenced by RPCEfficiencyPerRingLayer::dqmEndJob(), and METTesterPostProcessor::FillMETRes().

void MonitorElement::setBinError ( int  binx,
int  biny,
double  error 
)

set uncertainty on content of bin (2-D)

Definition at line 878 of file MonitorElement.cc.

void MonitorElement::setBinError ( int  binx,
int  biny,
int  binz,
double  error 
)

set uncertainty on content of bin (3-D)

Definition at line 887 of file MonitorElement.cc.

void MonitorElement::setBinLabel ( int  bin,
const std::string &  label,
int  axis = 1 
)
void MonitorElement::setEfficiencyFlag ( void  )
inline

this ME is meant to be an efficiency plot that must not be normalized when drawn in the DQM GUI.

Definition at line 159 of file MonitorElement.h.

void MonitorElement::setEntries ( double  nentries)

set # of entries

Definition at line 911 of file MonitorElement.cc.

Referenced by CSCMonitorObject::SetEntries().

void MonitorElement::setLumi ( uint32_t  ls)
inlineprivate

Definition at line 83 of file MonitorElement.h.

void MonitorElement::setLumiFlag ( void  )
inline
void MonitorElement::setResetMe ( bool  )
inline

specify whether ME should be reset at end of monitoring cycle (default:false); (typically called by Sources that control the original ME)

Definition at line 146 of file MonitorElement.h.

Referenced by AcceptanceHistoProducer::beginJob().

void MonitorElement::setTitle ( const std::string &  title)

set (ie. change) histogram/profile title

Definition at line 983 of file MonitorElement.cc.

Referenced by L1TStage2OMTF::bookHistograms().

void MonitorElement::ShiftFillLast ( double  y,
double  ye = 0.,
int32_t  xscale = 1 
)

shift bin to the left and fill last bin with new entry 1st argument is y value, 2nd argument is y error (default 0) can be used with 1D or profile histograms only

Definition at line 339 of file MonitorElement.cc.

Referenced by BeamConditionsMonitor::endLuminosityBlock().

void MonitorElement::softReset ( void  )

reset contents (does not erase contents permanently) (makes copy of current contents; will be subtracted from future contents)

Definition at line 1015 of file MonitorElement.cc.

const uint32_t MonitorElement::streamId ( void  ) const
inline

Definition at line 393 of file MonitorElement.h.

std::string MonitorElement::tagLabelString ( void  ) const

return label string for the monitor element tag (eg. <name>t=12345</name>)

Definition at line 534 of file MonitorElement.cc.

std::string MonitorElement::tagString ( void  ) const

return tagged value of ME in string format (eg. <name>f=3.14151926</name> for double numbers); relevant only for sending scalar or string MEs over TSocket

Definition at line 521 of file MonitorElement.cc.

void MonitorElement::update ( void  )
inline

Mark the object updated.

Definition at line 141 of file MonitorElement.h.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

void MonitorElement::updateQReportStats ( void  )
private

Refresh QReport stats, usually after MEs were read in from a file.

Definition at line 1421 of file MonitorElement.cc.

std::string MonitorElement::valueString ( void  ) const

returns value of ME in string format (eg. "f = 3.14151926" for double numbers); relevant only for scalar or string MEs

Definition at line 502 of file MonitorElement.cc.

bool MonitorElement::wasUpdated ( void  ) const
inline

true if ME was updated in last monitoring cycle

Definition at line 137 of file MonitorElement.h.

Referenced by DQMService::flushStandalone().

Friends And Related Function Documentation

friend class DQMService
friend

Definition at line 40 of file MonitorElement.h.

friend class DQMStore
friend

Definition at line 39 of file MonitorElement.h.

Member Data Documentation

DQMNet::CoreObject MonitorElement::data_
private

Definition at line 69 of file MonitorElement.h.

Referenced by DQMService::flushStandalone().

TH1* MonitorElement::object_
private

Definition at line 71 of file MonitorElement.h.

Referenced by DQMService::flushStandalone().

std::vector<QReport> MonitorElement::qreports_
private

Definition at line 74 of file MonitorElement.h.

TH1* MonitorElement::reference_
private

Definition at line 72 of file MonitorElement.h.

Referenced by DQMService::flushStandalone().

TH1* MonitorElement::refvalue_
private

Definition at line 73 of file MonitorElement.h.

Scalar MonitorElement::scalar_
private

Definition at line 70 of file MonitorElement.h.