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 | 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 &)
 
bool operator< (const MonitorElement &x) const
 Compare monitor elements, for ordering in sets. More...
 
MonitorElementoperator= (const MonitorElement &)
 
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)
 
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)
 

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 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 softReset (void)
 
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 34 of file MonitorElement.h.

Member Typedef Documentation

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

Definition at line 63 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 46 of file MonitorElement.h.

47  {
61  };
static const uint32_t DQM_PROP_TYPE_TH1S
Definition: DQMNet.h:32
static const uint32_t DQM_PROP_TYPE_TPROF
Definition: DQMNet.h:40
static const uint32_t DQM_PROP_TYPE_TH2D
Definition: DQMNet.h:36
static const uint32_t DQM_PROP_TYPE_TH3F
Definition: DQMNet.h:37
static const uint32_t DQM_PROP_TYPE_TH1F
Definition: DQMNet.h:31
static const uint32_t DQM_PROP_TYPE_INT
Definition: DQMNet.h:28
static const uint32_t DQM_PROP_TYPE_TH1D
Definition: DQMNet.h:33
static const uint32_t DQM_PROP_TYPE_TH2S
Definition: DQMNet.h:35
static const uint32_t DQM_PROP_TYPE_STRING
Definition: DQMNet.h:30
static const uint32_t DQM_PROP_TYPE_REAL
Definition: DQMNet.h:29
static const uint32_t DQM_PROP_TYPE_INVALID
Definition: DQMNet.h:27
static const uint32_t DQM_PROP_TYPE_TPROF2D
Definition: DQMNet.h:41
static const uint32_t DQM_PROP_TYPE_TH2F
Definition: DQMNet.h:34

Constructor & Destructor Documentation

MonitorElement::MonitorElement ( void  )

Definition at line 146 of file MonitorElement.cc.

References data_, DQMNet::CoreObject::dirname, DQM_KIND_INVALID, DQMNet::DQM_PROP_NEW, DQMNet::CoreObject::flags, DQMNet::CoreObject::lumi, DQMNet::CoreObject::moduleId, MonitorElement::Scalar::num, MonitorElement::Scalar::real, DQMNet::CoreObject::run, scalar_, DQMNet::CoreObject::streamId, DQMNet::CoreObject::tag, and DQMNet::CoreObject::version.

147  : object_(0),
148  reference_(0),
149  refvalue_(0)
150 {
151  data_.version = 0;
152  data_.dirname = 0;
153  data_.run = 0;
154  data_.lumi = 0;
155  data_.streamId = 0;
156  data_.moduleId = 0;
157  data_.tag = 0;
159  scalar_.num = 0;
160  scalar_.real = 0;
161 }
uint32_t moduleId
Definition: DQMNet.h:103
uint64_t version
Definition: DQMNet.h:99
uint32_t flags
Definition: DQMNet.h:97
uint32_t tag
Definition: DQMNet.h:98
const std::string * dirname
Definition: DQMNet.h:104
uint32_t run
Definition: DQMNet.h:100
uint32_t lumi
Definition: DQMNet.h:101
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:58
uint32_t streamId
Definition: DQMNet.h:102
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 163 of file MonitorElement.cc.

References data_, DQMNet::CoreObject::dirname, DQM_KIND_INVALID, DQMNet::DQM_PROP_NEW, DQMNet::CoreObject::flags, DQMNet::CoreObject::lumi, DQMNet::CoreObject::moduleId, moduleId(), mergeVDriftHistosByStation::name, MonitorElement::Scalar::num, DQMNet::CoreObject::objname, getHLTPrescaleColumns::path, MonitorElement::Scalar::real, DQMNet::CoreObject::run, run(), scalar_, DQMNet::CoreObject::streamId, streamId(), DQMNet::CoreObject::tag, and DQMNet::CoreObject::version.

168  : object_(0),
169  reference_(0),
170  refvalue_(0)
171 {
172  data_.version = 0;
173  data_.run = run;
174  data_.lumi = 0;
177  data_.dirname = path;
178  data_.objname = name;
179  data_.tag = 0;
181  scalar_.num = 0;
182  scalar_.real = 0;
183 }
uint32_t moduleId
Definition: DQMNet.h:103
uint64_t version
Definition: DQMNet.h:99
uint32_t flags
Definition: DQMNet.h:97
uint32_t tag
Definition: DQMNet.h:98
const std::string * dirname
Definition: DQMNet.h:104
uint32_t run
Definition: DQMNet.h:100
uint32_t lumi
Definition: DQMNet.h:101
const uint32_t streamId(void) const
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
const uint32_t moduleId(void) const
const uint32_t run(void) const
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:58
uint32_t streamId
Definition: DQMNet.h:102
MonitorElement::MonitorElement ( const MonitorElement x)

Definition at line 185 of file MonitorElement.cc.

References object_, and refvalue_.

186  : data_(x.data_),
187  scalar_(x.scalar_),
188  object_(x.object_),
190  refvalue_(x.refvalue_),
192 {
193  if (object_)
194  object_ = static_cast<TH1 *>(object_->Clone());
195 
196  if (refvalue_)
197  refvalue_ = static_cast<TH1 *>(refvalue_->Clone());
198 }
std::vector< QReport > qreports_
DQMNet::CoreObject data_
MonitorElement::~MonitorElement ( void  )

Definition at line 225 of file MonitorElement.cc.

References object_, and refvalue_.

226 {
227  delete object_;
228  delete refvalue_;
229 }

Member Function Documentation

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

Definition at line 667 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TH1F, kind(), object_, DQMNet::CoreObject::objname, and raiseDQMError().

Referenced by copyFrom(), doFill(), Fill(), getAxis(), getBinContent(), getBinEntries(), getBinError(), getEntries(), getMean(), getMeanError(), getNbinsX(), getNbinsY(), getNbinsZ(), getRMS(), getRMSError(), getTH1(), getTH1D(), getTH1F(), getTH1S(), getTH2D(), getTH2F(), getTH2S(), getTH3F(), getTitle(), getTProfile(), getTProfile2D(), getYmax(), getYmin(), Reset(), setBinContent(), setBinEntries(), setBinError(), setEntries(), and setTitle().

668 {
669  if (kind() < DQM_KIND_TH1F)
670  raiseDQMError("MonitorElement", "Method '%s' cannot be invoked on monitor"
671  " element '%s' because it is not a root object",
672  func, data_.objname.c_str());
673 
674  return checkRootObject(data_.objname, object_, func, reqdim);
675 }
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
string func
Definition: statics.py:48
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void MonitorElement::addProfiles ( TProfile *  h1,
TProfile *  h2,
TProfile *  sum,
float  c1,
float  c2 
)
private

Definition at line 1234 of file MonitorElement.cc.

References newFWLiteAna::bin, ws_sso_content_reader::content, python.tagInventory::entries, relativeConstraints::error, and i.

Referenced by DQMStore::collateProfile(), DQMStore::collateProfile2D(), copyFrom(), disableSoftReset(), and softReset().

1235 {
1236  assert(h1);
1237  assert(h2);
1238  assert(sum);
1239 
1240  static const Int_t NUM_STAT = 6;
1241  Double_t stats1[NUM_STAT];
1242  Double_t stats2[NUM_STAT];
1243  Double_t stats3[NUM_STAT];
1244 
1245  bool isRebinOn = sum->TestBit(TH1::kCanRebin);
1246  sum->ResetBit(TH1::kCanRebin);
1247 
1248  for (Int_t i = 0; i < NUM_STAT; ++i)
1249  stats1[i] = stats2[i] = stats3[i] = 0;
1250 
1251  h1->GetStats(stats1);
1252  h2->GetStats(stats2);
1253 
1254  for (Int_t i = 0; i < NUM_STAT; ++i)
1255  stats3[i] = c1*stats1[i] + c2*stats2[i];
1256 
1257  stats3[1] = c1*TMath::Abs(c1)*stats1[1]
1258  + c2*TMath::Abs(c2)*stats2[1];
1259 
1260  Double_t entries = c1*h1->GetEntries() + c2* h2->GetEntries();
1261  TArrayD* h1sumw2 = h1->GetSumw2();
1262  TArrayD* h2sumw2 = h2->GetSumw2();
1263  for (Int_t bin = 0, nbin = sum->GetNbinsX()+1; bin <= nbin; ++bin)
1264  {
1265  Double_t entries = c1*h1->GetBinEntries(bin)
1266  + c2*h2->GetBinEntries(bin);
1267  Double_t content = c1*h1->GetBinEntries(bin)*h1->GetBinContent(bin)
1268  + c2*h2->GetBinEntries(bin)*h2->GetBinContent(bin);
1269  Double_t error = TMath::Sqrt(c1*TMath::Abs(c1)*h1sumw2->fArray[bin]
1270  + c2*TMath::Abs(c2)*h2sumw2->fArray[bin]);
1271  sum->SetBinContent(bin, content);
1272  sum->SetBinError(bin, error);
1273  sum->SetBinEntries(bin, entries);
1274  }
1275 
1276  sum->SetEntries(entries);
1277  sum->PutStats(stats3);
1278  if (isRebinOn) sum->SetBit(TH1::kCanRebin);
1279 }
int i
Definition: DBlmapReader.cc:9
void MonitorElement::addProfiles ( TProfile2D *  h1,
TProfile2D *  h2,
TProfile2D *  sum,
float  c1,
float  c2 
)
private

Definition at line 1284 of file MonitorElement.cc.

References newFWLiteAna::bin, ws_sso_content_reader::content, python.tagInventory::entries, relativeConstraints::error, and i.

1285 {
1286  assert(h1);
1287  assert(h2);
1288  assert(sum);
1289 
1290  static const Int_t NUM_STAT = 9;
1291  Double_t stats1[NUM_STAT];
1292  Double_t stats2[NUM_STAT];
1293  Double_t stats3[NUM_STAT];
1294 
1295  bool isRebinOn = sum->TestBit(TH1::kCanRebin);
1296  sum->ResetBit(TH1::kCanRebin);
1297 
1298  for (Int_t i = 0; i < NUM_STAT; ++i)
1299  stats1[i] = stats2[i] = stats3[i] = 0;
1300 
1301  h1->GetStats(stats1);
1302  h2->GetStats(stats2);
1303 
1304  for (Int_t i = 0; i < NUM_STAT; i++)
1305  stats3[i] = c1*stats1[i] + c2*stats2[i];
1306 
1307  stats3[1] = c1*TMath::Abs(c1)*stats1[1]
1308  + c2*TMath::Abs(c2)*stats2[1];
1309 
1310  Double_t entries = c1*h1->GetEntries() + c2*h2->GetEntries();
1311  TArrayD *h1sumw2 = h1->GetSumw2();
1312  TArrayD *h2sumw2 = h2->GetSumw2();
1313  for (Int_t xbin = 0, nxbin = sum->GetNbinsX()+1; xbin <= nxbin; ++xbin)
1314  for (Int_t ybin = 0, nybin = sum->GetNbinsY()+1; ybin <= nybin; ++ybin)
1315  {
1316  Int_t bin = sum->GetBin(xbin, ybin);
1317  Double_t entries = c1*h1->GetBinEntries(bin)
1318  + c2*h2->GetBinEntries(bin);
1319  Double_t content = c1*h1->GetBinEntries(bin)*h1->GetBinContent(bin)
1320  + c2*h2->GetBinEntries(bin)*h2->GetBinContent(bin);
1321  Double_t error = TMath::Sqrt(c1*TMath::Abs(c1)*h1sumw2->fArray[bin]
1322  + c2*TMath::Abs(c2)*h2sumw2->fArray[bin]);
1323 
1324  sum->SetBinContent(bin, content);
1325  sum->SetBinError(bin, error);
1326  sum->SetBinEntries(bin, entries);
1327  }
1328  sum->SetEntries(entries);
1329  sum->PutStats(stats3);
1330  if (isRebinOn) sum->SetBit(TH1::kCanRebin);
1331 }
int i
Definition: DBlmapReader.cc:9
void MonitorElement::addQReport ( const DQMNet::QValue desc,
QCriterion qc 
)
private

Add quality report, from DQMStore.

Definition at line 1438 of file MonitorElement.cc.

References getQReport(), QReport::qcriterion_, DQMNet::QValue::qtname, and update().

Referenced by DQMStore::extract(), and DQMStore::useQTestByMatch().

1439 {
1440  QReport *qr;
1441  DQMNet::QValue *qv;
1442  getQReport(true, desc.qtname, qr, qv);
1443  qr->qcriterion_ = qc;
1444  *qv = desc;
1445  update();
1446 }
QCriterion * qcriterion_
Definition: QReport.h:51
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to &lt;qtname&gt; (null pointer if QReport does not exist)
void update(void)
Mark the object updated.
std::string qtname
Definition: DQMNet.h:91
void MonitorElement::addQReport ( QCriterion qc)
private

Definition at line 1449 of file MonitorElement.cc.

References DQMNet::QValue::code, dqm::qstatus::DID_NOT_RUN, QCriterion::getName(), getQReport(), DQMNet::QValue::message, QReport::qcriterion_, and update().

1450 {
1451  QReport *qr;
1452  DQMNet::QValue *qv;
1453  getQReport(true, qc->getName(), qr, qv);
1455  qv->message = "NO_MESSAGE_ASSIGNED";
1456  qr->qcriterion_ = qc;
1457  update();
1458 }
QCriterion * qcriterion_
Definition: QReport.h:51
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to &lt;qtname&gt; (null pointer if QReport does not exist)
std::string getName(void) const
get name of quality test
Definition: QTest.h:57
void update(void)
Mark the object updated.
static const int DID_NOT_RUN
std::string message
Definition: DQMNet.h:90
void MonitorElement::copyFrom ( TH1 *  from)
private

Definition at line 1363 of file MonitorElement.cc.

References accessRootObject(), addProfiles(), copyFunctions(), DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, DQM_KIND_TH2D, DQM_KIND_TH2F, DQM_KIND_TH2S, DQM_KIND_TH3F, DQM_KIND_TPROFILE, DQM_KIND_TPROFILE2D, incompatible(), isAccumulateEnabled(), isSoftResetEnabled(), kind(), and refvalue_.

Referenced by DQMStore::extract().

1364 {
1365  TH1 *orig = accessRootObject(__PRETTY_FUNCTION__, 1);
1366  if (orig->GetTitle() != from->GetTitle())
1367  orig->SetTitle(from->GetTitle());
1368 
1369  if (!isAccumulateEnabled())
1370  orig->Reset();
1371 
1372  if (isSoftResetEnabled())
1373  {
1374  if (kind() == DQM_KIND_TH1F
1375  || kind() == DQM_KIND_TH1S
1376  || kind() == DQM_KIND_TH1D
1377  || kind() == DQM_KIND_TH2F
1378  || kind() == DQM_KIND_TH2S
1379  || kind() == DQM_KIND_TH2D
1380  || kind() == DQM_KIND_TH3F)
1381  // subtract "reference"
1382  orig->Add(from, refvalue_, 1, -1);
1383  else if (kind() == DQM_KIND_TPROFILE)
1384  // subtract "reference"
1385  addProfiles(static_cast<TProfile *>(from),
1386  static_cast<TProfile *>(refvalue_),
1387  static_cast<TProfile *>(orig),
1388  1, -1);
1389  else if (kind() == DQM_KIND_TPROFILE2D)
1390  // subtract "reference"
1391  addProfiles(static_cast<TProfile2D *>(from),
1392  static_cast<TProfile2D *>(refvalue_),
1393  static_cast<TProfile2D *>(orig),
1394  1, -1);
1395  else
1396  incompatible(__PRETTY_FUNCTION__);
1397  }
1398  else
1399  orig->Add(from);
1400 
1401  copyFunctions(from, orig);
1402 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind(void) const
Get the type of the monitor element.
bool isAccumulateEnabled(void) const
whether ME contents should be accumulated over multiple monitoring periods; default: false ...
void copyFunctions(TH1 *from, TH1 *to)
bool isSoftResetEnabled(void) const
whether soft-reset is enabled; default is false
void MonitorElement::copyFunctions ( TH1 *  from,
TH1 *  to 
)
private

Definition at line 1334 of file MonitorElement.cc.

References data_, i, isAccumulateEnabled(), isSoftResetEnabled(), getGTfromDQMFile::obj, DQMNet::CoreObject::objname, raiseDQMError(), and update().

Referenced by copyFrom().

1335 {
1336  // will copy functions only if local-copy and original-object are equal
1337  // (ie. no soft-resetting or accumulating is enabled)
1339  return;
1340 
1341  update();
1342  TList *fromf = from->GetListOfFunctions();
1343  TList *tof = to->GetListOfFunctions();
1344  for (int i = 0, nfuncs = fromf ? fromf->GetSize() : 0; i < nfuncs; ++i)
1345  {
1346  TObject *obj = fromf->At(i);
1347  // not interested in statistics
1348  if (!strcmp(obj->IsA()->GetName(), "TPaveStats"))
1349  continue;
1350 
1351  if (TF1 *fn = dynamic_cast<TF1 *>(obj))
1352  tof->Add(new TF1(*fn));
1353  //else if (dynamic_cast<TPaveStats *>(obj))
1354  // ; // FIXME? tof->Add(new TPaveStats(*stats));
1355  else
1356  raiseDQMError("MonitorElement", "Cannot extract function '%s' of type"
1357  " '%s' from monitor element '%s' for a copy",
1358  obj->GetName(), obj->IsA()->GetName(), data_.objname.c_str());
1359  }
1360 }
int i
Definition: DBlmapReader.cc:9
void update(void)
Mark the object updated.
bool isAccumulateEnabled(void) const
whether ME contents should be accumulated over multiple monitoring periods; default: false ...
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
bool isSoftResetEnabled(void) const
whether soft-reset is enabled; default is false
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void MonitorElement::disableSoftReset ( void  )
private

reverts action of softReset

Definition at line 1196 of file MonitorElement.cc.

References addProfiles(), DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, DQM_KIND_TH2D, DQM_KIND_TH2F, DQM_KIND_TH2S, DQM_KIND_TH3F, DQM_KIND_TPROFILE, DQM_KIND_TPROFILE2D, incompatible(), kind(), object_, alignCSCRings::r, and refvalue_.

Referenced by DQMStore::disableSoftReset().

1197 {
1198  if (refvalue_)
1199  {
1200  if (kind() == DQM_KIND_TH1F
1201  || kind() == DQM_KIND_TH1S
1202  || kind() == DQM_KIND_TH1D
1203  || kind() == DQM_KIND_TH2F
1204  || kind() == DQM_KIND_TH2S
1205  || kind() == DQM_KIND_TH2D
1206  || kind() == DQM_KIND_TH3F)
1207  {
1208  TH1 *orig = static_cast<TH1 *>(object_);
1209  orig->Add(refvalue_);
1210  }
1211  else if (kind() == DQM_KIND_TPROFILE)
1212  {
1213  TProfile *orig = static_cast<TProfile *>(object_);
1214  TProfile *r = static_cast<TProfile *>(refvalue_);
1215  addProfiles(orig, r, orig, 1, 1);
1216  }
1217  else if (kind() == DQM_KIND_TPROFILE2D)
1218  {
1219  TProfile2D *orig = static_cast<TProfile2D *>(object_);
1220  TProfile2D *r = static_cast<TProfile2D *>(refvalue_);
1221  addProfiles(orig, r, orig, 1, 1);
1222  }
1223  else
1224  incompatible(__PRETTY_FUNCTION__);
1225 
1226  delete refvalue_;
1227  refvalue_ = 0;
1228  }
1229 }
void incompatible(const char *func) const
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::doFill ( int64_t  x)
private

"Fill" ME method for int64_t

Definition at line 266 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_INT, DQM_KIND_REAL, DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, incompatible(), kind(), MonitorElement::Scalar::num, MonitorElement::Scalar::real, scalar_, update(), and x.

Referenced by Fill().

267 {
268  update();
269  if (kind() == DQM_KIND_INT)
270  scalar_.num = static_cast<int64_t>(x);
271  else if (kind() == DQM_KIND_REAL)
272  scalar_.real = static_cast<double>(x);
273  else if (kind() == DQM_KIND_TH1F)
274  accessRootObject(__PRETTY_FUNCTION__, 1)
275  ->Fill(static_cast<double>(x), 1);
276  else if (kind() == DQM_KIND_TH1S)
277  accessRootObject(__PRETTY_FUNCTION__, 1)
278  ->Fill(static_cast<double>(x), 1);
279  else if (kind() == DQM_KIND_TH1D)
280  accessRootObject(__PRETTY_FUNCTION__, 1)
281  ->Fill(static_cast<double>(x), 1);
282  else
283  incompatible(__PRETTY_FUNCTION__);
284 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
std::string MonitorElement::effLabelString ( void  ) const

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

Definition at line 530 of file MonitorElement.cc.

References data_, DQMNet::CoreObject::objname, query::result, and AlCaHLTBitMon_QueryRunRegistry::string.

531 {
533 
534  result.reserve(6 + 2*data_.objname.size() + 3);
535  result += '<'; result += data_.objname; result += '>';
536  result += "e=1";
537  result += '<'; result += '/'; result += data_.objname; result += '>';
538  return result;
539 }
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
void MonitorElement::Fill ( long long  x)
inline

Definition at line 161 of file MonitorElement.h.

References doFill().

Referenced by SiStripDcsInfo::addBadModules(), EBSelectiveReadoutTask::anaDigi(), EESelectiveReadoutTask::anaDigi(), AlphaTVarAnalyzer::analyze(), CSCSegmentValidation::analyze(), DQMHOAlCaRecoStream::analyze(), CSCRecHit2DValidation::analyze(), ScoutingTestAnalyzer::analyze(), RazorVarAnalyzer::analyze(), HcalRecHitClient::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCWireDigiValidation::analyze(), PerformanceAnalyzer::analyze(), CSCStripDigiValidation::analyze(), CSCComparatorDigiValidation::analyze(), TrackingTruthValid::analyze(), HLTTauDQML1Plotter::analyze(), DiJetVarAnalyzer::analyze(), SiPixelDigiValid::analyze(), SiStripDigiValid::analyze(), ESSummaryClient::analyze(), HcalNoiseMonitor::analyze(), HCALRecHitAnalyzer::analyze(), EwkElecDQM::analyze(), RPCMon_SS_Dbx_Global::analyze(), RPCRecHitProbability::analyze(), HLTTauDQMPathSummaryPlotter::analyze(), RPCMonitorLinkSynchro::analyze(), RPCMonitorDigi::analyze(), ElectronMcSignalValidator::analyze(), EcalTBValidation::analyze(), RPCMonitorRaw::analyze(), EgammaBasicClusters::analyze(), SiStripMonitorFilter::analyze(), ElectronAnalyzer::analyze(), ElectronGeneralAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), EwkMuDQM::analyze(), SiStripMonitorHLT::analyze(), HcalRecHitMonitor::analyze(), EBPedestalOnlineTask::analyze(), MonitorLTC::analyze(), EBStatusFlagsTask::analyze(), PrimaryVertexMonitor::analyze(), HLTTauDQMPathPlotter::analyze(), EEStatusFlagsTask::analyze(), EEPedestalOnlineTask::analyze(), EgammaSuperClusters::analyze(), EBIntegrityTask::analyze(), EBRawDataTask::analyze(), EBPedestalTask::analyze(), HLTAlCaMonEcalPhiSym::analyze(), EEPedestalTask::analyze(), EECosmicTask::analyze(), EEIntegrityTask::analyze(), EERawDataTask::analyze(), EBCosmicTask::analyze(), EETestPulseTask::analyze(), EBOccupancyTask::analyze(), CaloTowersAnalyzer::analyze(), EELaserTask::analyze(), EELedTask::analyze(), EwkMuLumiMonitorDQM::analyze(), EcalBarrelMonitorModule::analyze(), EBLaserTask::analyze(), SiStripMonitorDigi::analyze(), EBTestPulseTask::analyze(), EcalEndcapMonitorModule::analyze(), HLTMonBitSummary::analyze(), AlcaBeamMonitor::analyze(), EBTimingTask::analyze(), DQMHcalPhiSymAlCaReco::analyze(), AcceptanceHistoProducer::analyze(), EBClusterTask::analyze(), TrackerHitAnalyzer::analyze(), EBSelectiveReadoutTask::analyze(), HcalDeadCellMonitor::analyze(), EBTrendClient::analyze(), EETrendClient::analyze(), EEClusterTask::analyze(), HLTMonBTagIPSource::analyze(), HLTMonBTagMuSource::analyze(), CaloTowersValidation::analyze(), EcalPreshowerNoiseDistrib::analyze(), ElectronMcFakeValidator::analyze(), TkAlCaRecoMonitor::analyze(), DQMSourceEleCalib::analyze(), EETrendTask::analyze(), BasicHepMCHeavyIonValidation::analyze(), BasicHepMCValidation::analyze(), DrellYanValidation::analyze(), PixelVTXMonitor::analyze(), RecoMuonValidator::analyze(), EBHltTask::analyze(), HcalBaseDQMonitor::analyze(), TrackAnalyzer::analyze(), EBTrendTask::analyze(), DQMHcalDiJetsAlCaReco::analyze(), EESummaryClient::analyze(), DQMLumiMonitor::analyze(), DTTriggerCheck::analyze(), EBSummaryClient::analyze(), WValidation::analyze(), RPCDigiValid::analyze(), SiStripMonitorCluster::analyze(), EEHltTask::analyze(), HiggsValidation::analyze(), SiStripRecHitsValid::analyze(), BxTiming::analyze(), EETimingTask::analyze(), HcalMonitorModule::analyze(), EELaserClient::analyze(), EELedClient::analyze(), DQMProvInfo::analyze(), EEOccupancyTask::analyze(), EBLaserClient::analyze(), EBTimingClient::analyze(), BasicGenParticleValidation::analyze(), L1Scalers::analyze(), EEPedestalClient::analyze(), EEPedestalOnlineClient::analyze(), EETestPulseClient::analyze(), EBPedestalOnlineClient::analyze(), EBPedestalClient::analyze(), EBTestPulseClient::analyze(), SimplePhotonAnalyzer::analyze(), L1TDTTF::analyze(), MBUEandQCDValidation::analyze(), DQMEventInfo::analyze(), ConverterTester::analyze(), EcalPreshowerDigisValidation::analyze(), HcalSimHitsValidation::analyze(), L1TScalersSCAL::analyze(), BeamMonitor::analyze(), NoiseRates::analyze(), JetTester::analyze(), TrackSplittingMonitor::analyze(), HcalNoiseRates::analyze(), ZDCMonitorModule::analyze(), EBRecoSummary::analyze(), EERecoSummary::analyze(), EETimingClient::analyze(), L1TDTTPG::analyze(), EcalBarrelDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), DuplicationChecker::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), SiStripMonitorQuality::analyze(), SiStripMonitorRawData::analyze(), ESRecoSummary::analyze(), EcalPreshowerSimHitsValidation::analyze(), GlobalMuonMatchAnalyzer::analyze(), SiPixelTrackResidualSource::analyze(), L1TCSCTPG::analyze(), DTSegmentAnalysisTask::analyze(), L1TRPCTF::analyze(), GlobalTest::analyze(), SiPixelDigiSource::analyze(), GeneralHLTOffline::analyze(), HLTAlCaMonPi0::analyze(), DQMSourcePi0::analyze(), DTNoiseTask::analyze(), EcalSimHitsValidation::analyze(), TrackingMonitor::analyze(), HLTSeedL1LogicScalers::analyze(), DTScalerInfoTask::analyze(), MuonIdDQM::analyze(), SiPixelRawDataErrorSource::analyze(), HcalRecHitsAnalyzer::analyze(), HLTMon::analyze(), DQMExample_Step1::analyze(), ZDCDigiStudy::analyze(), EcalZmassTask::analyze(), EESelectiveReadoutTask::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), HcalRecHitsValidation::analyze(), L1TGT::analyze(), EcalDigisValidation::analyze(), DTLocalTriggerBaseTask::analyze(), HLXMonitor::analyze(), ZdcSimHitStudy::analyze(), GlobalDigisHistogrammer::analyze(), GlobalRecHitsHistogrammer::analyze(), MuonIdVal::analyze(), SiPixelClusterSource::analyze(), SiPixelErrorsDigisToCalibDigis::analyze(), TauValidation::analyze(), TTbar_Kinematics::analyze(), L1TCSCTF::analyze(), TriggerValidator::analyze(), L1TdeCSCTF::analyze(), L1TRPCTPG::analyze(), MuIsoValidation::analyze(), SiStripTrackingRecHitsValid::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), TauTagValidation::analyze(), SiPixelTrackingRecHitsValid::analyze(), HcalDigiMonitor::analyze(), L1TCompare::analyze(), L1TRCT::analyze(), EcalMixingModuleValidation::analyze(), RPCTTUMonitor::analyze(), ValidationHcalIsoTrackAlCaReco::analyze(), GlobalHitsTester::analyze(), GlobalHitsHistogrammer::analyze(), HcalTimingMonitorModule::analyze(), ECALRecHitAnalyzer::analyze(), FourVectorHLTOnline::analyze(), CastorMonitorModule::analyze(), EmDQMReco::analyze(), TopValidation::analyze(), V0Validator::analyze(), HLTScalers::analyze(), EgHLTOfflineSource::analyze(), RPCEfficiency::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), L1TdeRCT::analyze(), L1TGCT::analyze(), HcalDetDiagPedestalMonitor::analyze(), MCEmbeddingValidationAnalyzer::analyze(), HcalDetDiagLaserMonitor::analyze(), HcalSimHitStudy::analyzeHits(), SimHitsValidationHcal::analyzeHits(), ZdcSimHitStudy::analyzeHits(), ESSummaryClient::beginJob(), EBDaqInfoTask::beginJob(), EBDcsInfoTask::beginJob(), RPCDaqInfo::beginJob(), SiPixelCertification::beginJob(), EBDataCertificationTask::beginJob(), EEDaqInfoTask::beginJob(), EEDataCertificationTask::beginJob(), DQMFEDIntegrityClient::beginJob(), EEDcsInfoTask::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), HLTEventInfoClient::beginJob(), BeamMonitor::beginJob(), TrigResRateMon::beginJob(), RPCDaqInfo::beginLuminosityBlock(), DQMEventInfo::beginLuminosityBlock(), HcalBaseDQMonitor::beginLuminosityBlock(), DQMDaqInfo::beginLuminosityBlock(), CastorPSMonitor::beginRun(), CastorDigiMonitor::beginRun(), HcalSummaryClient::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), CastorTowerJetMonitor::beginRun(), RPCEventSummary::beginRun(), DTOfflineSummaryClients::beginRun(), CastorChannelQualityMonitor::beginRun(), ZDCMonitorClient::beginRun(), CastorLEDMonitor::beginRun(), DTSummaryClients::beginRun(), DQMProvInfo::beginRun(), ZDCMonitorModule::beginRun(), SiStripDaqInfo::beginRun(), EcalBarrelMonitorClient::beginRun(), EcalEndcapMonitorClient::beginRun(), CastorMonitorModule::beginRun(), Vx3DHLTAnalyzer::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), DQMStore::bookFloat(), SiPixelDataQuality::bookGlobalQualityFlag(), DQMEventInfo::bookHistograms(), L1TEventInfoClient::bookHistograms(), DQMStore::bookInt(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), HcalDataCertification::CertifyHcal(), CalibrationScanTask::checkAndSave(), CalibrationTask::checkAndSave(), HcalDetDiagPedestalMonitor::CheckStatus(), HcalMonitorModule::CheckSubdetectorStatus(), RPCClusterSizeTest::clientOperation(), RPCEventSummary::clientOperation(), Digi2Raw2Digi::compare(), L1GtHwValidation::compareDaqRecord(), L1GtHwValidation::compareFDL(), L1GtHwValidation::compareGTFE(), HDShower::compute(), EMShower::compute(), GlobalRecHitsAnalyzer::compute(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelDataQuality::computeGlobalQualityFlagByLumi(), EcalMixingModuleValidation::computeSDBunchDigi(), L1TGT::countPfsIndicesPerLs(), TkHistoMap::createTkHistoMap(), RPCTTUMonitor::discriminateDecision(), CSCOfflineMonitor::doBXMonitor(), CSCOfflineMonitor::doEfficiencies(), CSCOfflineMonitor::doOccupancies(), CSCOfflineMonitor::doRecHits(), CSCOfflineMonitor::doSegments(), CSCOfflineMonitor::doStripDigis(), CSCOfflineMonitor::doWireDigis(), DQMEventInfo::dqmBeginRun(), EcalSelectiveReadoutValidation::EcalSelectiveReadoutValidation(), EMShower::EMShower(), EcalBarrelMonitorModule::endJob(), EcalEndcapMonitorModule::endJob(), HcalNoiseRates::endJob(), HcalMonitorModule::endJob(), ZDCMonitorModule::endJob(), MuonAlignment::endJob(), ESSummaryClient::endLumiAnalyze(), HcalTrigPrimMonitor::endLuminosityBlock(), SiPixelCertification::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), L1Scalers::endLuminosityBlock(), DQMLumiMonitor::endLuminosityBlock(), EBDataCertificationTask::endLuminosityBlock(), EEDataCertificationTask::endLuminosityBlock(), HcalRawDataMonitor::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), HcalMonitorModule::endLuminosityBlock(), DTSummaryClients::endLuminosityBlock(), HcalDAQInfo::endLuminosityBlock(), HcalDCSInfo::endLuminosityBlock(), QcdLowPtDQM::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), RPCDcsInfoClient::endRun(), RPCRecHitValidClient::endRun(), SiPixelCertification::endRun(), DQMDcsInfoClient::endRun(), DataCertificationJetMET::endRun(), RPCBxTest::endRun(), DTOfflineSummaryClients::endRun(), HLTTauCertifier::endRun(), RPCEfficiencyShiftHisto::endRun(), ConverterTester::endRun(), EcalBarrelMonitorModule::endRun(), EBDataCertificationTask::endRun(), EEDataCertificationTask::endRun(), DQMOfflineHLTEventInfoClient::endRun(), EcalEndcapMonitorModule::endRun(), MuonAlignmentSummary::endRun(), EcalEndcapMonitorClient::endRun(), EcalBarrelMonitorClient::endRun(), HcalMonitorModule::endRun(), L1TRPCTF::endRun(), HLTMuonCertSummary::endRun(), HLTOverallSummary::endRun(), EcalSelectiveReadoutValidation::endRun(), GlobalHitsTester::endRun(), RPCEfficiencySecond::endRun(), ZDCMonitorClient::errorSummary(), DQMStore::extract(), DTDataIntegrityTask::fedEntry(), DTDataIntegrityTask::fedFatal(), DTDataIntegrityTask::fedNonFatal(), FineDelayTask::fill(), SiPixelHitEfficiencyModule::fill(), CSCMonitorObject::Fill(), SiPixelRawDataErrorModule::fill(), SiPixelRecHitModule::fill(), SiPixelDigiModule::fill(), SiPixelClusterModule::fill(), MuonIdDQM::Fill(), L1ValidatorHists::Fill(), MuonIdVal::Fill(), HTrackVariables::Fill(), TopElectronHLTOfflineSource::EleMEs::fill(), HRes1DHit::Fill(), egHLT::MonElemManager< T, varType >::fill(), egHLT::MonElemManager2D< T, varTypeX, varTypeY >::fill(), Fill(), HResolution::Fill(), HEff1DHit::Fill(), HResolution1DRecHit::Fill(), EcalSelectiveReadoutValidation::fill(), HRes2DHit::Fill(), HEff2DHit::Fill(), HRes4DHit::Fill(), HEff4DHit::Fill(), HcalRecHitMonitor::fill_Nevents(), HcalDigiMonitor::fill_Nevents(), DQMSourceEleCalib::fillAroundBarrel(), DQMSourceEleCalib::fillAroundEndcap(), SiPixelRecHitsValid::fillBarrel(), MixCollectionValidation::fillCaloHitTime(), MuonSimHitsValidAnalyzer::fillCSC(), HTrackVariables::FillDeltaR(), SiStripQualityChecker::fillDetectorStatus(), SiStripQualityChecker::fillDetectorStatusAtLumi(), MuonSimHitsValidAnalyzer::fillDT(), TrackingQualityChecker::fillDummyGlobalStatus(), TrackingQualityChecker::fillDummyLSStatus(), SiStripCertificationInfo::fillDummySiStripCertification(), SiStripQualityChecker::fillDummyStatus(), SiStripDaqInfo::fillDummyStatus(), SiStripDcsInfo::fillDummyStatus(), TrackingCertificationInfo::fillDummyTrackingCertification(), TrackingCertificationInfo::fillDummyTrackingCertificationAtLumi(), GlobalHitsAnalyzer::fillECal(), GlobalDigisAnalyzer::fillECal(), GlobalRecHitsAnalyzer::fillECal(), CSCSegmentValidation::fillEfficiencyPlots(), HcalSubdetDigiMonitor::fillElement(), HcalSubdetDigiMonitor::fillElements(), HLXMonitor::FillEventInfo(), SiStripFEDCheckPlugin::fillFatalError(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelRawDataErrorModule::fillFED(), SiPixelRecHitsValid::fillForward(), LaserAlignmentT0ProducerDQM::FillFromProcessedDigis(), LaserAlignmentT0ProducerDQM::FillFromRawDigis(), GlobalHitsAnalyzer::fillG4MC(), MixCollectionValidation::fillGenParticleMulti(), RPCNoisyStripTest::fillGlobalME(), RPCOccupancyTest::fillGlobalME(), RPCMultiplicityTest::fillGlobalME(), SiStripQualityDQM::fillGrandSummaryMEs(), GlobalHitsAnalyzer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), GlobalRecHitsAnalyzer::fillHCal(), JPTJetAnalyzer::fillHistogram(), DQMFEDIntegrityClient::fillHistograms(), HLXMonitor::FillHistograms(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), MCEmbeddingValidationAnalyzer::plotEntryTypeEvtWeight::fillHistograms(), MCEmbeddingValidationAnalyzer::plotEntryTypeMuonRadCorrUncertainty::fillHistograms(), MCEmbeddingValidationAnalyzer::plotEntryTypeL1ETM::fillHistograms(), MCEmbeddingValidationAnalyzer::leptonDistributionT< T >::fillHistograms(), MCEmbeddingValidationAnalyzer::electronDistributionExtra::fillHistograms(), MCEmbeddingValidationAnalyzer::tauDistributionExtra::fillHistograms(), MCEmbeddingValidationAnalyzer::leptonEfficiencyT< T >::fillHistograms(), MCEmbeddingValidationAnalyzer::leptonL1TriggerEfficiencyT1T2< T1, T2 >::fillHistograms(), MCEmbeddingValidationAnalyzer::l1ExtraObjectDistributionT< T >::fillHistograms(), MCEmbeddingValidationAnalyzer::metDistributionType::fillHistograms(), MCEmbeddingValidationAnalyzer::metL1TriggerEfficiencyType::fillHistograms(), HLXMonitor::FillHistoHFCompare(), SiStripSummaryCreator::fillHistos(), HistoFillerReco< T >::fillHistos(), HLTMon::fillHistos(), HcalDetDiagLEDMonitor::fillHistos(), HcalDetDiagPedestalMonitor::fillHistos(), HcalDetDiagLaserMonitor::fillHistos(), TrackAnalyzer::fillHistosForState(), TkAlCaRecoMonitor::fillHitmaps(), ZdcSimHitStudy::FillHitValHist(), QcdUeDQM::fillHltBits(), QcdLowPtDQM::fillHltBits(), MuonPFAnalyzer::fillInRange(), JetTester::fillMatchHists(), ecaldqm::fillME(), SiStripMonitorTrack::fillME(), SiStripMonitorDigi::fillME(), SiStripMonitorCluster::fillME(), JetMETHLTOfflineSource::fillMEforMonTriggerSummary(), BTagHLTOfflineSource::fillMEforMonTriggerSummary(), L1TDTTF::fillMEs(), SiStripNoisesDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForDet(), SiStripThresholdDQM::fillMEsForDet(), SiStripApvGainsDQM::fillMEsForDet(), SiStripQualityDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForLayer(), SiStripThresholdDQM::fillMEsForLayer(), SiStripPedestalsDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), SiStripApvGainsDQM::fillMEsForLayer(), SiStripQualityDQM::fillMEsForLayer(), EBDaqInfoTask::fillMonitorElements(), EBDcsInfoTask::fillMonitorElements(), EEDcsInfoTask::fillMonitorElements(), EEDaqInfoTask::fillMonitorElements(), MixCollectionValidation::fillMultiplicity(), GlobalHitsAnalyzer::fillMuon(), GlobalDigisAnalyzer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), HcalHotCellMonitor::fillNevents_neighbor(), HcalDeadCellMonitor::fillNevents_problemCells(), HcalHotCellMonitor::fillNevents_problemCells(), SiStripFEDCheckPlugin::fillNonFatalError(), L1ValidatorHists::FillNumber(), CSCStripDigiValidation::fillPedestalPlots(), BeamSpotProblemMonitor::FillPlots(), SiStripFEDCheckPlugin::fillPresent(), RCTMonitor::FillRCT(), HcalSummaryClient::fillReportSummary(), HLXMonitor::FillReportSummary(), HcalSummaryClient::fillReportSummaryLSbyLS(), MuonSimHitsValidAnalyzer::fillRPC(), CSCStripDigiValidation::fillSignalPlots(), MixCollectionValidation::fillSimHitTime(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripDcsInfo::fillStatus(), SiStripQualityChecker::fillSubDetStatus(), SiPixelActionExecutor::fillSummary(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), TrackingQualityChecker::fillTrackingStatus(), TrackingQualityChecker::fillTrackingStatusAtLumi(), SiStripMonitorDigi::fillTrend(), GlobalHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), TrigResRateMon::DatasetInfo::fillXsecPlot(), SiStripDaqInfo::findExcludedModule(), SiPixelInformationExtractor::findNoisyPixels(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), CSCOfflineMonitor::harvestChamberMeans(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalTimingMonitorModule::HcalTimingMonitorModule(), HDShower::HDShower(), HcalDetDiagPedestalMonitor::LoadDataset(), HcalDetDiagLaserMonitor::LoadDataset(), DTTriggerEfficiencyTest::makeEfficiencyME(), DQMProvInfo::makeProvInfo(), HeavyFlavorValidation::match(), SiPixelTrackResidualModule::nfill(), SiPixelRecHitModule::nfill(), NoiseRatesClient::NoiseRatesEndjob(), HcalNoiseRatesClient::NoiseRatesEndjob(), CastorDigiMonitor::perChanHists(), CastorLEDMonitor::perChanHists(), CastorRecHitPerChan::perChanHists(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), TauValidation::photons(), CSCSegmentValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), CSCWireDigiValidation::plotResolution(), CSCStripDigiValidation::plotResolution(), GlobalRecHitsAnalyzer::plotResolution(), DTDataIntegrityTask::preProcessEvent(), HcalDigiMonitor::process_Digi(), EBTriggerTowerTask::processDigis(), EETriggerTowerTask::processDigis(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorDataIntegrityMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), HcalNZSMonitor::processEvent(), CastorPSMonitor::processEvent(), CastorDigiMonitor::processEvent(), HcalCaloTowerMonitor::processEvent(), HcalZDCMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalRecHitMonitor::processEvent(), CastorChannelQualityMonitor::processEvent(), CastorLEDMonitor::processEvent(), HcalEEUSMonitor::processEvent(), HcalDeadCellMonitor::processEvent(), HcalDigiMonitor::processEvent(), HcalBaseMonitor::processEvent(), HcalEEUSMonitor::processEvent_RawData(), HcalRecHitMonitor::processEvent_rechit(), CastorTowerJetMonitor::processEventJetIDs(), CastorTowerJetMonitor::processEventJets(), CastorTowerJetMonitor::processEventTowers(), DTDataIntegrityTask::processFED(), HcalHotCellMonitor::processHit_rechitNeighbors(), DTDataIntegrityTask::processROS25(), SusyPostProcessor::QuantilePlots(), L1TEventInfoClient::readQtResults(), HcalBaseDQMonitor::reset(), HcalMonitorModule::reset(), TauValidation::rtau(), EgHLTOfflineSummaryClient::runClient_(), DTLocalTriggerTask::runDCCAnalysis(), DQMFileSaver::saveForOffline(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalCoarsePedestalMonitor::setup(), HcalZDCMonitor::setup(), HcalCaloTowerMonitor::setup(), HcalRecHitMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), EcalEndcapMonitorModule::setup(), HcalRawDataMonitor::setup(), EcalBarrelMonitorModule::setup(), HcalBaseDQMonitor::setup(), HcalMonitorModule::setup(), HcalDigiMonitor::setup(), HLXMonitor::SetupEventInfo(), TauValidation::spinEffectsWHpm(), TauValidation::spinEffectsZH(), PFCandidateDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), PFMETDQMAnalyzer::storeBadEvents(), TauValidation::tauDecayChannel(), TauValidation::tauMother(), TauValidation::tauProngs(), TrackEfficiencyMonitor::testSTATracks(), TrackEfficiencyMonitor::testTrackerTracks(), CastorDataIntegrityMonitor::unpack(), HcalDataIntegrityTask::unpack(), HcalEEUSMonitor::unpack(), HcalRawDataMonitor::unpack(), PrimaryVertexMonitor::vertexPlots(), ECALRecHitAnalyzer::WriteECALRecHits(), and SubTaskSummaryStatus::WriteThreshold().

161 { fits_in_int64_t<long long>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( unsigned long long  x)
inline

Definition at line 162 of file MonitorElement.h.

References doFill().

162 { fits_in_int64_t<unsigned long long>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( unsigned long  x)
inline

Definition at line 163 of file MonitorElement.h.

References doFill().

163 { fits_in_int64_t<unsigned long>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( long  x)
inline

Definition at line 164 of file MonitorElement.h.

References doFill().

164 { fits_in_int64_t<long>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( unsigned int  x)
inline

Definition at line 165 of file MonitorElement.h.

References doFill().

165 { fits_in_int64_t<unsigned int>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( int  x)
inline

Definition at line 166 of file MonitorElement.h.

References doFill().

166 { fits_in_int64_t<int>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( short  x)
inline

Definition at line 167 of file MonitorElement.h.

References doFill().

167 { fits_in_int64_t<short>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( unsigned short  x)
inline

Definition at line 168 of file MonitorElement.h.

References doFill().

168 { fits_in_int64_t<unsigned short>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( char  x)
inline

Definition at line 169 of file MonitorElement.h.

References doFill().

169 { fits_in_int64_t<char>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( unsigned char  x)
inline

Definition at line 170 of file MonitorElement.h.

References doFill().

170 { fits_in_int64_t<unsigned char>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
&quot;Fill&quot; ME method for int64_t
Definition: DDAxes.h:10
void MonitorElement::Fill ( float  x)
inline

Definition at line 172 of file MonitorElement.h.

References Fill().

Referenced by Fill().

172 { Fill(static_cast<double>(x)); }
void Fill(long long x)
Definition: DDAxes.h:10
void MonitorElement::Fill ( double  x)

"Fill" ME methods for double

Definition at line 244 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_INT, DQM_KIND_REAL, DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, reco::if(), incompatible(), kind(), MonitorElement::Scalar::num, MonitorElement::Scalar::real, scalar_, update(), and x.

245 {
246  update();
247  if (kind() == DQM_KIND_INT)
248  scalar_.num = static_cast<int64_t>(x);
249  else if (kind() == DQM_KIND_REAL)
250  scalar_.real = x;
251  else if (kind() == DQM_KIND_TH1F)
252  accessRootObject(__PRETTY_FUNCTION__, 1)
253  ->Fill(x, 1);
254  else if (kind() == DQM_KIND_TH1S)
255  accessRootObject(__PRETTY_FUNCTION__, 1)
256  ->Fill(x, 1);
257  else if (kind() == DQM_KIND_TH1D)
258  accessRootObject(__PRETTY_FUNCTION__, 1)
259  ->Fill(x, 1);
260  else
261  incompatible(__PRETTY_FUNCTION__);
262 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
if(dp >Float(M_PI)) dp-
Definition: DDAxes.h:10
void MonitorElement::Fill ( std::string &  value)

"Fill" ME methods for string

Definition at line 233 of file MonitorElement.cc.

References DQM_KIND_STRING, incompatible(), kind(), scalar_, MonitorElement::Scalar::str, update(), and relativeConstraints::value.

234 {
235  update();
236  if (kind() == DQM_KIND_STRING)
237  scalar_.str = value;
238  else
239  incompatible(__PRETTY_FUNCTION__);
240 }
void incompatible(const char *func) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::Fill ( double  x,
double  yw 
)

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

Definition at line 288 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, DQM_KIND_TH2D, DQM_KIND_TH2F, DQM_KIND_TH2S, DQM_KIND_TPROFILE, Fill(), incompatible(), kind(), and update().

289 {
290  update();
291  if (kind() == DQM_KIND_TH1F)
292  accessRootObject(__PRETTY_FUNCTION__, 1)
293  ->Fill(x, yw);
294  else if (kind() == DQM_KIND_TH1S)
295  accessRootObject(__PRETTY_FUNCTION__, 1)
296  ->Fill(x, yw);
297  else if (kind() == DQM_KIND_TH1D)
298  accessRootObject(__PRETTY_FUNCTION__, 1)
299  ->Fill(x, yw);
300  else if (kind() == DQM_KIND_TH2F)
301  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
302  ->Fill(x, yw, 1);
303  else if (kind() == DQM_KIND_TH2S)
304  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
305  ->Fill(x, yw, 1);
306  else if (kind() == DQM_KIND_TH2D)
307  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
308  ->Fill(x, yw, 1);
309  else if (kind() == DQM_KIND_TPROFILE)
310  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
311  ->Fill(x, yw, 1);
312  else
313  incompatible(__PRETTY_FUNCTION__);
314 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
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 392 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH2D, DQM_KIND_TH2F, DQM_KIND_TH2S, DQM_KIND_TH3F, DQM_KIND_TPROFILE, DQM_KIND_TPROFILE2D, Fill(), incompatible(), kind(), and update().

393 {
394  update();
395  if (kind() == DQM_KIND_TH2F)
396  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
397  ->Fill(x, y, zw);
398  else if (kind() == DQM_KIND_TH2S)
399  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
400  ->Fill(x, y, zw);
401  else if (kind() == DQM_KIND_TH2D)
402  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
403  ->Fill(x, y, zw);
404  else if (kind() == DQM_KIND_TH3F)
405  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
406  ->Fill(x, y, zw, 1);
407  else if (kind() == DQM_KIND_TPROFILE)
408  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 2))
409  ->Fill(x, y, zw);
410  else if (kind() == DQM_KIND_TPROFILE2D)
411  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
412  ->Fill(x, y, zw, 1);
413  else
414  incompatible(__PRETTY_FUNCTION__);
415 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
auto zw(V v) -> Vec2< typenamestd::remove_reference< decltype(v[0])>::type >
Definition: ExtVec.h:36
void update(void)
Mark the object updated.
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
void MonitorElement::Fill ( double  x,
double  y,
double  z,
double  w 
)

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

Definition at line 419 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH3F, DQM_KIND_TPROFILE2D, Fill(), incompatible(), kind(), and update().

420 {
421  update();
422  if (kind() == DQM_KIND_TH3F)
423  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
424  ->Fill(x, y, z, w);
425  else if (kind() == DQM_KIND_TPROFILE2D)
426  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
427  ->Fill(x, y, z, w);
428  else
429  incompatible(__PRETTY_FUNCTION__);
430 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
float float float z
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
T w() const
Definition: DDAxes.h:10
uint32_t MonitorElement::flags ( void  ) const
inline

Get the object flags.

Definition at line 104 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::flags.

105  { return data_.flags; }
uint32_t flags
Definition: DQMNet.h:97
DQMNet::CoreObject data_
TAxis * MonitorElement::getAxis ( const char *  func,
int  axis 
) const
private

Definition at line 972 of file MonitorElement.cc.

References a, accessRootObject(), data_, h, DQMNet::CoreObject::objname, and raiseDQMError().

Referenced by getAxisTitle(), setAxisRange(), setAxisTimeDisplay(), setAxisTimeFormat(), setAxisTimeOffset(), setAxisTitle(), and setBinLabel().

973 {
974  TH1 *h = accessRootObject(func, axis-1);
975  TAxis *a = 0;
976  if (axis == 1)
977  a = h->GetXaxis();
978  else if (axis == 2)
979  a = h->GetYaxis();
980  else if (axis == 3)
981  a = h->GetZaxis();
982 
983  if (! a)
984  raiseDQMError("MonitorElement", "No such axis %d in monitor element"
985  " '%s' of type '%s'", axis, data_.objname.c_str(),
986  typeid(*h).name());
987 
988  return a;
989 }
TH1 * accessRootObject(const char *func, int reqdim) const
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
double a
Definition: hdecay.h:121
string func
Definition: statics.py:48
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
std::string MonitorElement::getAxisTitle ( int  axis = 1) const

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

Definition at line 811 of file MonitorElement.cc.

References getAxis().

Referenced by HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), PFClient_JetRes::createEfficiencyPlots(), and PFClient::createEfficiencyPlots().

812 { return getAxis(__PRETTY_FUNCTION__, axis)
813  ->GetTitle(); }
TAxis * getAxis(const char *func, int axis) const
double MonitorElement::getBinContent ( int  binx) const

get content of bin (1-D)

Definition at line 724 of file MonitorElement.cc.

References accessRootObject().

Referenced by ESSummaryClient::analyze(), HCALRecHitAnalyzer::analyze(), HLTMonBitSummary::analyze(), EBSummaryClient::analyze(), EESummaryClient::analyze(), SiPixelDigiSource::analyze(), RPCDBPopConAnalyzer::analyze(), SiPixelEDAClient::beginLuminosityBlock(), L1TDTTFClient::buildPhiEtaPlotO(), L1TDTTFClient::buildPhiEtaPlotOFC(), EcalMixingModuleValidation::bunchSumTest(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), RPCOccupancyTest::clientOperation(), RPCClusterSizeTest::clientOperation(), RPCEventSummary::clientOperation(), RPCDeadChannelTest::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelDataQuality::computeGlobalQualityFlagByLumi(), PFClient_JetRes::createEfficiencyPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HLTMonSimpleBTag::doEffCalc(), MuonTestSummary::doMultiplicityTests(), MuonTestSummary::doMuonIDTests(), MuonTestSummary::doResidualsTests(), SiPixelActionExecutor::dumpBarrelRefValues(), SiPixelActionExecutor::dumpEndcapRefValues(), SiStripMonitorFilter::endJob(), SiStripMonitorHLT::endJob(), DQMHcalPhiSymAlCaReco::endJob(), HcalSimHitsValidation::endJob(), ESSummaryClient::endLumiAnalyze(), RPCDqmClient::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), DTDCSByLumiSummary::endLuminosityBlock(), SiStripMonitorDigi::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), EERawDataTask::endLuminosityBlock(), EBRawDataTask::endLuminosityBlock(), HcalLSbyLSMonitor::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), HLTEventInfoClient::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), DTSummaryClients::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), DQMExample_Step2::endRun(), DTCertificationSummary::endRun(), RPCDqmClient::endRun(), DTOfflineSummaryClients::endRun(), RPCEfficiencyShiftHisto::endRun(), DQMHcalPhiSymAlCaReco::endRun(), RPCEfficiencyPerRingLayer::endRun(), DTChamberEfficiencyClient::endRun(), RPCEfficiencySecond::endRun(), HcalDigisValidation::eval_occupancy(), SiPixelActionExecutor::fillDeviations(), SiPixelActionExecutor::fillFEDErrorSummary(), HCALRecHitAnalyzer::FillGeometry(), ECALRecHitAnalyzer::FillGeometry(), RPCNoisyStripTest::fillGlobalME(), RPCOccupancyTest::fillGlobalME(), SiPixelDataQuality::fillGlobalQualityPlot(), DTLocalTriggerTest::fillGlobalSummary(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), HLXMonitor::FillHistograms(), SiStripSummaryCreator::fillHistos(), RPCChamberQuality::fillMonitorElements(), SiPixelActionExecutor::fillOccupancy(), HcalSummaryClient::fillReportSummaryLSbyLS(), SiPixelActionExecutor::fillSummary(), FillUnphysicalHEHFBins(), DTLocalTriggerLutTest::fillWhPlot(), DTTriggerLutTest::fillWhPlot(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), CSCMonitorObject::GetBinContent(), ecaldqm::MESet::getBinContent_(), UtilsClient::getBinQuality(), UtilsClient::getBinStatus(), HcalSubdetDigiMonitor::getMeElementBinContent(), CSCOfflineMonitor::harvestChamberMeans(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalDigisClient::integralMETH2D(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), UtilsClient::maskBinContent(), DTTimeEvolutionHisto::normalizeTo(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), RPCChamberQuality::performeClientOperation(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), UtilsClient::printBadChannels(), HcalBeamMonitor::processEvent(), SiStripFEDErrorsDQM::readHistogram(), CastorLEDMonitor::reset(), SiPixelDQMRocLevelAnalyzer::RocSumOneModule(), HcalDigisClient::scaleMETH2D(), L1EmulatorErrorFlagClient::setSummary(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), ShiftFillLast(), HcalSimHitsClient::SimHitsEndjob(), DTDataIntegrityTask::TimeHistos(), HcalRawDataMonitor::UpdateMEs(), DTTimeEvolutionHisto::updateTimeSlot(), and ECALRecHitAnalyzer::WriteECALRecHits().

725 { return accessRootObject(__PRETTY_FUNCTION__, 1)
726  ->GetBinContent(binx); }
TH1 * accessRootObject(const char *func, int reqdim) const
double MonitorElement::getBinContent ( int  binx,
int  biny 
) const

get content of bin (2-D)

Definition at line 730 of file MonitorElement.cc.

References accessRootObject().

731 { return accessRootObject(__PRETTY_FUNCTION__, 2)
732  ->GetBinContent(binx, biny); }
TH1 * accessRootObject(const char *func, int reqdim) const
double MonitorElement::getBinContent ( int  binx,
int  biny,
int  binz 
) const

get content of bin (3-D)

Definition at line 736 of file MonitorElement.cc.

References accessRootObject().

737 { return accessRootObject(__PRETTY_FUNCTION__, 3)
738  ->GetBinContent(binx, biny, binz); }
TH1 * accessRootObject(const char *func, int reqdim) const
double MonitorElement::getBinEntries ( int  bin) const

get # of bin entries (for profiles)

Definition at line 766 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TPROFILE, DQM_KIND_TPROFILE2D, incompatible(), and kind().

Referenced by ecaldqm::MESetTrend::shift_().

767 {
768  if (kind() == DQM_KIND_TPROFILE)
769  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
770  ->GetBinEntries(bin);
771  else if (kind() == DQM_KIND_TPROFILE2D)
772  return static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
773  ->GetBinEntries(bin);
774  else
775  {
776  incompatible(__PRETTY_FUNCTION__);
777  return 0;
778  }
779 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind(void) const
Get the type of the monitor element.
double MonitorElement::getBinError ( int  binx) const
double MonitorElement::getBinError ( int  binx,
int  biny 
) const

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

Definition at line 748 of file MonitorElement.cc.

References accessRootObject().

749 { return accessRootObject(__PRETTY_FUNCTION__, 2)
750  ->GetBinError(binx, biny); }
TH1 * accessRootObject(const char *func, int reqdim) const
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 754 of file MonitorElement.cc.

References accessRootObject().

755 { return accessRootObject(__PRETTY_FUNCTION__, 3)
756  ->GetBinError(binx, biny, binz); }
TH1 * accessRootObject(const char *func, int reqdim) const
double MonitorElement::getEntries ( void  ) const

get # of entries

Definition at line 760 of file MonitorElement.cc.

References accessRootObject().

Referenced by EBSummaryClient::analyze(), EESummaryClient::analyze(), RPCDBPopConAnalyzer::analyze(), SiPixelDigiSource::analyze(), SiPixelClusterSource::analyze(), CaloTowersDQMClient::CaloTowersEndjob(), CaloTowersClient::CaloTowersEndjob(), HcalDetDiagTimingMonitor::CheckTiming(), RPCClusterSizeTest::clientOperation(), SiPixelDataQuality::computeGlobalQualityFlag(), PFClient::createProjectionPlots(), PhotonOfflineClient::dividePlots(), MuonTestSummary::doEnergyTests(), MuonTestSummary::doMultiplicityTests(), MuonTestSummary::doMuonIDTests(), MuonAlignmentSummary::endRun(), DTRunConditionVarClient::endRun(), SiPixelActionExecutor::fillEfficiency(), SiPixelActionExecutor::fillFEDErrorSummary(), RPCOccupancyTest::fillGlobalME(), SiPixelDataQuality::fillGlobalQualityPlot(), SiStripSummaryCreator::fillHistos(), RPCChamberQuality::fillMonitorElements(), SiPixelActionExecutor::fillSummary(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), TrackingActionExecutor::printShiftHistoParameters(), SiStripActionExecutor::printShiftHistoParameters(), MeanWithinExpected::runTest(), ShiftFillLast(), and HcalSimHitsClient::SimHitsEndjob().

761 { return accessRootObject(__PRETTY_FUNCTION__, 1)
762  ->GetEntries(); }
TH1 * accessRootObject(const char *func, int reqdim) const
double MonitorElement::getFloatValue ( void  ) const
inline
const std::string MonitorElement::getFullname ( void  ) const
inline
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 141 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_LUMI, and DQMNet::CoreObject::flags.

Referenced by MEtoEDMConverter::putData().

142  { return data_.flags & DQMNet::DQM_PROP_LUMI; }
uint32_t flags
Definition: DQMNet.h:97
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_LUMI
Definition: DQMNet.h:60
double MonitorElement::getMean ( int  axis = 1) const
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 688 of file MonitorElement.cc.

References accessRootObject().

Referenced by MuonAlignmentSummary::endRun(), BeamMonitor::FitAndFill(), and htmlErrors().

689 { return accessRootObject(__PRETTY_FUNCTION__, axis-1)
690  ->GetMeanError(axis); }
TH1 * accessRootObject(const char *func, int reqdim) const
const std::string& MonitorElement::getName ( void  ) const
inline

get name of ME

Definition at line 108 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::objname.

Referenced by MonitorElementMgr::addME(), HcalSummaryClient::analyze(), BeamMonitor::analyze(), HLTSeedL1LogicScalers::analyze(), ESSummaryClient::beginJob(), L1EmulatorErrorFlagClient::beginJob(), BeamMonitor::beginJob(), RPCChamberQuality::beginRun(), RPCNoisyStripTest::beginRun(), HcalBeamClient::beginRun(), HcalDeadCellClient::beginRun(), HcalDetDiagLEDClient::beginRun(), HcalDetDiagNoiseMonitorClient::beginRun(), HcalDetDiagPedestalClient::beginRun(), HcalDetDiagTimingClient::beginRun(), HcalCoarsePedestalClient::beginRun(), HcalHotCellClient::beginRun(), HcalNZSClient::beginRun(), HcalDigiClient::beginRun(), HcalTrigPrimClient::beginRun(), HcalRecHitClient::beginRun(), HcalSummaryClient::beginRun(), RPCBxTest::beginRun(), RPCMon_SS_Dbx_Global::beginRun(), RPCOccupancyTest::beginRun(), HcalRawDataClient::beginRun(), RPCEventSummary::beginRun(), RPCRecHitProbability::beginRun(), RPCMonitorDigi::beginRun(), RPCDeadChannelTest::beginRun(), RPCMultiplicityTest::beginRun(), ZDCMonitorClient::beginRun(), RPCClusterSizeTest::beginRun(), EcalBarrelMonitorClient::beginRun(), EcalEndcapMonitorClient::beginRun(), L1TEventInfoClient::bookHistograms(), RPCMonitorDigi::bookRegionME(), SiPixelActionExecutor::checkQTestResults(), EBDaqInfoTask::cleanup(), EBDcsInfoTask::cleanup(), EEDataCertificationTask::cleanup(), EEDaqInfoTask::cleanup(), EEDcsInfoTask::cleanup(), EBDataCertificationTask::cleanup(), EBOccupancyTask::cleanup(), EBLaserTask::cleanup(), EcalBarrelMonitorModule::cleanup(), EcalEndcapMonitorModule::cleanup(), EBSummaryClient::cleanup(), EBTimingTask::cleanup(), EESummaryClient::cleanup(), EBSelectiveReadoutTask::cleanup(), EBClusterTask::cleanup(), EEClusterTask::cleanup(), EEStatusFlagsTask::cleanup(), EBStatusFlagsTask::cleanup(), EBHltTask::cleanup(), EBIntegrityTask::cleanup(), EBTimingClient::cleanup(), EEIntegrityTask::cleanup(), EERawDataTask::cleanup(), EETrendTask::cleanup(), EBRawDataTask::cleanup(), EBTrendTask::cleanup(), EEHltTask::cleanup(), EETimingTask::cleanup(), HcalMonitorModule::cleanup(), EESelectiveReadoutTask::cleanup(), FourVectorHLTOnline::countHLTGroupBXHitsEndLumiBlock(), PFClient::createResolutionPlots(), HLTMonSimpleBTag::doEffCalc(), L1TEventInfoClient::dumpContentMonitorElements(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), HLTMuonCertSummary::endRun(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiStripSummaryCreator::fillHistos(), SiStripQualityChecker::fillSubDetStatus(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), BeamMonitor::FitAndFill(), SiPixelDataQuality::getDetId(), SiPixelInformationExtractor::getDetId(), UtilsClient::getHisto(), HcalUtilsClient::getHisto(), getHisto(), getHisto2(), getHistoTH3F(), getHistoTProfile(), getHistoTProfile2D(), SiStripQualityChecker::getModuleStatus(), SiStripSummaryCreator::getSummaryME(), CommissioningHistograms::histogram(), SiStripHistoPlotter::makeCondDBPlots(), SiPixelHistoPlotter::makePlot(), L1TDTTPGClient::makeRatioHisto(), SiStripBaseServiceFromDQM< T >::StringNotMatch::operator()(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), SiStripInformationExtractor::plotHistosFromLayout(), SiStripInformationExtractor::printAlarmList(), UtilsClient::printBadChannels(), TrackingActionExecutor::printShiftHistoParameters(), SiStripActionExecutor::printShiftHistoParameters(), ElectronDqmAnalyzerBase::profileX(), ScoutingAnalyzerBase::profileX(), ElectronDqmAnalyzerBase::profileY(), ScoutingAnalyzerBase::profileY(), MEtoEDMConverter::putData(), SiStripFEDErrorsDQM::readHistogram(), L1TEventInfoClient::readQtResults(), SiPixelHistoricInfoDQMClient::retrieveMEs(), SiPixelHistoricInfoEDAClient::retrieveMEs(), SiStripHistoryDQMService::returnDetComponent(), SiPixelHistoryDQMService::returnDetComponent(), DTLocalTriggerSynchTest::runClientDiagnostic(), EBSummaryClient::setup(), EESummaryClient::setup(), SubTaskSummaryStatus::WriteThreshold(), and CSCRecHit2DValidation::~CSCRecHit2DValidation().

109  { return data_.objname; }
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
int MonitorElement::getNbinsX ( void  ) const

get # of bins in X-axis

Definition at line 706 of file MonitorElement.cc.

References accessRootObject().

Referenced by SiStripMonitorQuality::analyze(), SiPixelDigiSource::analyze(), ecaldqm::MESetEcal::book(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), CaloTowersDQMClient::CaloTowersEndjob(), CaloTowersClient::CaloTowersEndjob(), RPCDeadChannelTest::clientOperation(), RPCEventSummary::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient::createResolutionPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HLTMonSimpleBTag::doEffCalc(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), HcalSimHitsValidation::endJob(), EEDataCertificationTask::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), HLTEventInfoClient::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), DQMExample_Step2::endRun(), RPCEfficiencyShiftHisto::endRun(), EEDataCertificationTask::endRun(), TrackingQualityChecker::fillDummyGlobalStatus(), SiStripCertificationInfo::fillDummySiStripCertification(), SiStripQualityChecker::fillDummyStatus(), TrackingCertificationInfo::fillDummyTrackingCertification(), RPCOccupancyTest::fillGlobalME(), SiPixelDataQuality::fillGlobalQualityPlot(), SiStripSummaryCreator::fillGrandSummaryHistos(), DQMMessageLoggerClient::fillHistograms(), DQMFEDIntegrityClient::fillHistograms(), SiStripSummaryCreator::fillHistos(), EEDcsInfoTask::fillMonitorElements(), EEDaqInfoTask::fillMonitorElements(), SiPixelActionExecutor::fillOccupancy(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), FillUnphysicalHEHFBins(), SiPixelInformationExtractor::getNormalization(), SiPixelInformationExtractor::getNormalization2D(), SiStripSummaryCreator::getSummaryME(), CSCOfflineMonitor::harvestChamberMeans(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), RPCFEDIntegrity::labelBins(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), L1TGCTClient::makeXProjection(), L1TGCTClient::makeYProjection(), DTTimeEvolutionHisto::normalizeTo(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), UtilsClient::printBadChannels(), SiStripFEDErrorsDQM::readHistogram(), CastorLEDMonitor::reset(), HcalDigisClient::scaleMETH2D(), L1EmulatorErrorFlagClient::setSummary(), ShiftFillLast(), HcalSimHitsClient::SimHitsEndjob(), and DTDataIntegrityTask::TimeHistos().

707 { return accessRootObject(__PRETTY_FUNCTION__, 1)
708  ->GetNbinsX(); }
TH1 * accessRootObject(const char *func, int reqdim) const
int MonitorElement::getNbinsY ( void  ) const

get # of bins in Y-axis

Definition at line 712 of file MonitorElement.cc.

References accessRootObject().

Referenced by SiPixelDigiSource::analyze(), CaloTowersDQMClient::CaloTowersEndjob(), CaloTowersClient::CaloTowersEndjob(), RPCEventSummary::clientOperation(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), HLTMonSimpleBTag::doEffCalc(), EEDataCertificationTask::endLuminosityBlock(), RPCEfficiencyShiftHisto::endRun(), EEDataCertificationTask::endRun(), SiStripCertificationInfo::fillDummySiStripCertification(), SiStripQualityChecker::fillDummyStatus(), TrackingCertificationInfo::fillDummyTrackingCertification(), EEDcsInfoTask::fillMonitorElements(), EEDaqInfoTask::fillMonitorElements(), SiPixelActionExecutor::fillOccupancy(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiPixelActionExecutor::fillSummary(), FillUnphysicalHEHFBins(), SiPixelInformationExtractor::getNormalization2D(), CSCOfflineMonitor::harvestChamberMeans(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), rpcdqm::utils::labelYAxisRing(), rpcdqm::utils::labelYAxisRoll(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), UtilsClient::printBadChannels(), HcalDigisClient::scaleMETH2D(), ecaldqm::MESetTrend::shift_(), HcalSimHitsClient::SimHitsEndjob(), and DTDataIntegrityTask::TimeHistos().

713 { return accessRootObject(__PRETTY_FUNCTION__, 2)
714  ->GetNbinsY(); }
TH1 * accessRootObject(const char *func, int reqdim) const
int MonitorElement::getNbinsZ ( void  ) const

get # of bins in Z-axis

Definition at line 718 of file MonitorElement.cc.

References accessRootObject().

719 { return accessRootObject(__PRETTY_FUNCTION__, 3)
720  ->GetNbinsZ(); }
TH1 * accessRootObject(const char *func, int reqdim) const
const std::string& MonitorElement::getPathname ( void  ) const
inline

get pathname of parent folder

Definition at line 112 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::dirname.

Referenced by SiPixelInformationExtractor::findNoisyPixels(), MEtoEDMConverter::putData(), and SusyPostProcessor::QuantilePlots().

113  { return *data_.dirname; }
const std::string * dirname
Definition: DQMNet.h:104
DQMNet::CoreObject data_
std::vector< QReport * > MonitorElement::getQErrors ( void  ) const

get errors from last set of quality tests

Definition at line 595 of file MonitorElement.cc.

References data_, alignCSCRings::e, dqm::qstatus::ERROR, i, DQMNet::CoreObject::qreports, qreports_, and query::result.

Referenced by SiPixelActionExecutor::checkQTestResults(), HLTTauCertifier::endRun(), QTestStatusChecker::processAlarms(), and SiPixelHistoPlotter::setLines().

596 {
597  std::vector<QReport *> result;
598  result.reserve(qreports_.size());
599  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
600  if (data_.qreports[i].code == dqm::qstatus::ERROR)
601  {
602  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
603  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
604  result.push_back(const_cast<QReport *>(&qreports_[i]));
605  }
606  return result;
607 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::vector< QReport > qreports_
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
static const int ERROR
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 610 of file MonitorElement.cc.

References data_, alignCSCRings::e, dqm::qstatus::ERROR, i, DQMNet::CoreObject::qreports, qreports_, query::result, dqm::qstatus::STATUS_OK, and dqm::qstatus::WARNING.

Referenced by QTestStatusChecker::processAlarms(), and SiPixelHistoPlotter::setLines().

611 {
612  std::vector<QReport *> result;
613  result.reserve(qreports_.size());
614  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
617  && data_.qreports[i].code != dqm::qstatus::ERROR)
618  {
619  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
620  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
621  result.push_back(const_cast<QReport *>(&qreports_[i]));
622  }
623  return result;
624 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::vector< QReport > qreports_
static const int WARNING
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
static const int STATUS_OK
static const int ERROR
const QReport * MonitorElement::getQReport ( const std::string &  qtname) const

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

Definition at line 557 of file MonitorElement.cc.

Referenced by addQReport(), RPCDeadChannelTest::clientOperation(), createH2CompTest(), MuonTestSummary::doKinematicsTests(), DTResolutionTest::endLuminosityBlock(), DataCertificationJetMET::endRun(), MuonTrackResidualsTest::endRun(), BeamSpotProblemMonitor::FillPlots(), L1TRPCTFClient::processHistograms(), L1TEventInfoClient::readQtResults(), L1TTestsSummary::updateL1TOccupancyMonitor(), L1TTestsSummary::updateL1TRateMonitor(), and L1TTestsSummary::updateL1TSyncMonitor().

558 {
559  QReport *qr;
560  DQMNet::QValue *qv;
561  const_cast<MonitorElement *>(this)->getQReport(false, qtname, qr, qv);
562  return qr;
563 }
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to &lt;qtname&gt; (null pointer if QReport does not exist)
void MonitorElement::getQReport ( bool  create,
const std::string &  qtname,
QReport *&  qr,
DQMNet::QValue *&  qv 
)
private

Definition at line 1406 of file MonitorElement.cc.

References DQMNet::QValue::algorithm, DQMNet::QValue::code, data_, dqm::qstatus::DID_NOT_RUN, end, DQMNet::QValue::message, lumiQueryAPI::q, DQMNet::CoreObject::qreports, qreports_, DQMNet::QValue::qtname, and DQMNet::QValue::qtresult.

1407 {
1408  assert(qreports_.size() == data_.qreports.size());
1409 
1410  qr = 0;
1411  qv = 0;
1412 
1413  size_t pos = 0, end = qreports_.size();
1414  while (pos < end && data_.qreports[pos].qtname != qtname)
1415  ++pos;
1416 
1417  if (pos == end && ! create)
1418  return;
1419  else if (pos == end)
1420  {
1421  data_.qreports.push_back(DQMNet::QValue());
1422  qreports_.push_back(QReport(0, 0));
1423 
1424  DQMNet::QValue &q = data_.qreports.back();
1426  q.qtresult = 0;
1427  q.qtname = qtname;
1428  q.message = "NO_MESSAGE_ASSIGNED";
1429  q.algorithm = "UNKNOWN_ALGORITHM";
1430  }
1431 
1432  qr = &qreports_[pos];
1433  qv = &data_.qreports[pos];
1434 }
QReports qreports
Definition: DQMNet.h:106
std::string algorithm
Definition: DQMNet.h:92
std::vector< QReport > qreports_
static const int DID_NOT_RUN
#define end
Definition: vmac.h:37
std::string qtname
Definition: DQMNet.h:91
DQMNet::CoreObject data_
std::string message
Definition: DQMNet.h:90
float qtresult
Definition: DQMNet.h:89
SurfaceDeformation * create(int type, const std::vector< double > &params)
std::vector< QReport * > MonitorElement::getQReports ( void  ) const

get map of QReports

Definition at line 566 of file MonitorElement.cc.

References data_, alignCSCRings::e, i, DQMNet::CoreObject::qreports, qreports_, and query::result.

Referenced by HLTMuonCertSummary::endRun(), SiStripQualityChecker::fillSubDetStatus(), TrackingQualityChecker::fillTrackingStatus(), TrackingUtility::getMEStatus(), SiStripUtility::getMEStatus(), SiStripQualityChecker::getModuleStatus(), SiPixelUtility::getStatus(), SiStripInformationExtractor::printAlarmList(), SiPixelInformationExtractor::printAlarmList(), L1TRPCTFClient::processHistograms(), and L1TEventInfoClient::readQtResults().

567 {
568  std::vector<QReport *> result;
569  result.reserve(qreports_.size());
570  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
571  {
572  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
573  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
574  result.push_back(const_cast<QReport *>(&qreports_[i]));
575  }
576  return result;
577 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::vector< QReport > qreports_
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
std::vector< QReport * > MonitorElement::getQWarnings ( void  ) const

get warnings from last set of quality tests

Definition at line 580 of file MonitorElement.cc.

References data_, alignCSCRings::e, i, DQMNet::CoreObject::qreports, qreports_, query::result, and dqm::qstatus::WARNING.

Referenced by SiPixelActionExecutor::checkQTestResults(), HLTTauCertifier::endRun(), QTestStatusChecker::processAlarms(), and SiPixelHistoPlotter::setLines().

581 {
582  std::vector<QReport *> result;
583  result.reserve(qreports_.size());
584  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
585  if (data_.qreports[i].code == dqm::qstatus::WARNING)
586  {
587  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
588  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
589  result.push_back(const_cast<QReport *>(&qreports_[i]));
590  }
591  return result;
592 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::vector< QReport > qreports_
static const int WARNING
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
TObject * MonitorElement::getRefRootObject ( void  ) const
TH1 * MonitorElement::getRefTH1 ( void  ) const

Definition at line 1578 of file MonitorElement.cc.

References checkRootObject(), data_, DQMNet::CoreObject::objname, reference_, and update().

Referenced by SiPixelHistoPlotter::createStaticPlot(), SiStripHistoPlotter::createStaticPlot(), SiPixelActionExecutor::fillDeviations(), and SiPixelHistoPlotter::makePlot().

1579 {
1580  const_cast<MonitorElement *>(this)->update();
1581  return checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 0);
1582 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TH1D * MonitorElement::getRefTH1D ( void  ) const

Definition at line 1603 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TH1D, kind(), DQMNet::CoreObject::objname, reference_, and update().

Referenced by Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), and Comp2RefKolmogorov::runTest().

1604 {
1605  assert(kind() == DQM_KIND_TH1D);
1606  const_cast<MonitorElement *>(this)->update();
1607  return static_cast<TH1D *>
1608  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1609 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TH1F * MonitorElement::getRefTH1F ( void  ) const

Definition at line 1585 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TH1F, kind(), DQMNet::CoreObject::objname, reference_, and update().

Referenced by Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), and Comp2RefKolmogorov::runTest().

1586 {
1587  assert(kind() == DQM_KIND_TH1F);
1588  const_cast<MonitorElement *>(this)->update();
1589  return static_cast<TH1F *>
1590  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1591 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TH1S * MonitorElement::getRefTH1S ( void  ) const

Definition at line 1594 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TH1S, kind(), DQMNet::CoreObject::objname, reference_, and update().

Referenced by Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), and Comp2RefKolmogorov::runTest().

1595 {
1596  assert(kind() == DQM_KIND_TH1S);
1597  const_cast<MonitorElement *>(this)->update();
1598  return static_cast<TH1S *>
1599  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1600 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TH2D * MonitorElement::getRefTH2D ( void  ) const

Definition at line 1630 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TH2D, kind(), DQMNet::CoreObject::objname, reference_, and update().

Referenced by Comp2RefEqualH::runTest().

1631 {
1632  assert(kind() == DQM_KIND_TH2D);
1633  const_cast<MonitorElement *>(this)->update();
1634  return static_cast<TH2D *>
1635  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1636 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TH2F * MonitorElement::getRefTH2F ( void  ) const

Definition at line 1612 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TH2F, kind(), DQMNet::CoreObject::objname, reference_, and update().

Referenced by Comp2RefEqualH::runTest().

1613 {
1614  assert(kind() == DQM_KIND_TH2F);
1615  const_cast<MonitorElement *>(this)->update();
1616  return static_cast<TH2F *>
1617  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1618 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TH2S * MonitorElement::getRefTH2S ( void  ) const

Definition at line 1621 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TH2S, kind(), DQMNet::CoreObject::objname, reference_, and update().

Referenced by Comp2RefEqualH::runTest().

1622 {
1623  assert(kind() == DQM_KIND_TH2S);
1624  const_cast<MonitorElement *>(this)->update();
1625  return static_cast<TH2S *>
1626  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1627 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TH3F * MonitorElement::getRefTH3F ( void  ) const

Definition at line 1639 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TH3F, kind(), DQMNet::CoreObject::objname, reference_, and update().

Referenced by Comp2RefEqualH::runTest().

1640 {
1641  assert(kind() == DQM_KIND_TH3F);
1642  const_cast<MonitorElement *>(this)->update();
1643  return static_cast<TH3F *>
1644  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 3));
1645 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TProfile * MonitorElement::getRefTProfile ( void  ) const

Definition at line 1648 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TPROFILE, kind(), DQMNet::CoreObject::objname, reference_, and update().

Referenced by Comp2RefChi2::runTest(), and Comp2RefKolmogorov::runTest().

1649 {
1650  assert(kind() == DQM_KIND_TPROFILE);
1651  const_cast<MonitorElement *>(this)->update();
1652  return static_cast<TProfile *>
1653  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1654 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
TProfile2D * MonitorElement::getRefTProfile2D ( void  ) const

Definition at line 1657 of file MonitorElement.cc.

References checkRootObject(), data_, DQM_KIND_TPROFILE2D, kind(), DQMNet::CoreObject::objname, reference_, and update().

1658 {
1659  assert(kind() == DQM_KIND_TPROFILE2D);
1660  const_cast<MonitorElement *>(this)->update();
1661  return static_cast<TProfile2D *>
1662  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1663 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
double MonitorElement::getRMS ( int  axis = 1) const
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 700 of file MonitorElement.cc.

References accessRootObject().

Referenced by BeamMonitor::FitAndFill().

701 { return accessRootObject(__PRETTY_FUNCTION__, axis-1)
702  ->GetRMSError(axis); }
TH1 * accessRootObject(const char *func, int reqdim) const
TObject * MonitorElement::getRootObject ( void  ) const

Definition at line 1484 of file MonitorElement.cc.

References object_, and update().

Referenced by EETimingClient::analyze(), ecaldqm::cloneIt(), MEtoEDMConverter::endJob(), MuCorrMETAnalyzer::endRun(), TcMETAnalyzer::endRun(), CaloMETAnalyzer::endRun(), PFMETAnalyzer::endRun(), METAnalyzer::endRun(), ExtractTObject< T >::extract(), SiPixelInformationExtractor::fillModuleAndHistoList(), ecaldqm::getBinContentME(), ecaldqm::getBinEntriesME(), ecaldqm::getBinErrorME(), DTLocalTriggerBaseTest::getHisto(), SiPixelInformationExtractor::getMEType(), SiPixelHistoPlotter::makePlot(), MuCorrMETAnalyzer::makeRatePlot(), TcMETAnalyzer::makeRatePlot(), PFMETAnalyzer::makeRatePlot(), METAnalyzer::makeRatePlot(), CaloMETAnalyzer::makeRatePlot(), JetMETDQMOfflineClient::runClient_(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), MeanWithinExpected::runTest(), CompareToMedian::runTest(), CompareLastFilledBin::runTest(), CheckVariance::runTest(), ecaldqm::setBinContentME(), ecaldqm::setBinEntriesME(), and ecaldqm::setBinErrorME().

1485 {
1486  const_cast<MonitorElement *>(this)->update();
1487  return object_;
1488 }
void update(void)
Mark the object updated.
const std::string& MonitorElement::getStringValue ( void  ) const
inline

Definition at line 354 of file MonitorElement.h.

References DQM_KIND_STRING, kind(), scalar_, and MonitorElement::Scalar::str.

Referenced by MEtoEDMConverter::putData().

355  {
356  assert(kind() == DQM_KIND_STRING);
357  return scalar_.str;
358  }
Kind kind(void) const
Get the type of the monitor element.
const uint32_t MonitorElement::getTag ( void  ) const
inline

Definition at line 368 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::tag.

369  { return data_.tag; }
uint32_t tag
Definition: DQMNet.h:98
DQMNet::CoreObject data_
DQMNet::TagList MonitorElement::getTags ( void  ) const
inline

Definition at line 360 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_TAGGED, DQMNet::CoreObject::flags, DQMNet::CoreObject::tag, and o2o::tags.

Referenced by RPCBxTest::beginRun(), and MEtoEDMConverter::putData().

361  {
364  tags.push_back(data_.tag);
365  return tags;
366  }
uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_TAGGED
Definition: DQMNet.h:54
uint32_t tag
Definition: DQMNet.h:98
DQMNet::CoreObject data_
tuple tags
Definition: o2o.py:248
std::vector< uint32_t > TagList
Definition: DQMNet.h:83
TH1 * MonitorElement::getTH1 ( void  ) const

Definition at line 1491 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by SiPixelOfflineCalibAnalysisBase::addTF1ToDQMMonitoringElement(), MBUEandQCDValidation::analyze(), BeamMonitor::analyze(), LogMessageMonitor::analyze(), HLTScalers::analyze(), TrackerOfflineValidationSummary::associateModuleHistsWithTree(), BeamConditionsMonitor::beginJob(), TkAlCaRecoMonitor::beginJob(), VertexMonitor::beginJob(), BeamMonitor::beginJob(), EERawDataTask::beginLuminosityBlock(), EBRawDataTask::beginLuminosityBlock(), RPCRecHitValid::beginRun(), EERawDataTask::beginRun(), EBRawDataTask::beginRun(), TrackingMonitor::beginRun(), BTagHLTOfflineSource::beginRun(), JetMETHLTOfflineSource::beginRun(), ecaldqm::MESetEcal::book(), L1ValidatorHists::Book(), QcdUeDQM::book1D(), QcdLowPtDQM::book1D(), QcdUeDQM::book2D(), QcdLowPtDQM::book2D(), ScoutingAnalyzerBase::bookH1(), ElectronDqmAnalyzerBase::bookH1andDivide(), ScoutingAnalyzerBase::bookH1andDivide(), ScoutingAnalyzerBase::bookH1BinArray(), ScoutingAnalyzerBase::bookH1withSumw2(), ScoutingAnalyzerBase::bookH1withSumw2BinArray(), ScoutingAnalyzerBase::bookH2(), ElectronDqmAnalyzerBase::bookH2andDivide(), ScoutingAnalyzerBase::bookH2andDivide(), ScoutingAnalyzerBase::bookH2withSumw2(), RPCValidHistograms::bookHistograms(), TrackAnalyzer::bookHistosForBeamSpot(), DiJetVarAnalyzer::bookMEs(), SiStripMonitorTrack::bookMETrend(), SiStripMonitorTrack::bookSubDetMEs(), DQMGenericTnPClient::calculateEfficiency(), HeavyFlavorHarvesting::calculateEfficiency(), DQMStore::checkBinningMatches(), HEff1DHit::ComputeEfficiency(), HEff2DHit::ComputeEfficiency(), HEff4DHit::ComputeEfficiency(), FourVectorHLTOnline::countHLTGroupHitsEndLumiBlock(), TrigResRateMon::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOnline::countHLTGroupL1HitsEndLumiBlock(), TrigResRateMon::countHLTGroupL1HitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupL1HitsEndLumiBlock(), FourVectorHLTOnline::countHLTPathHitsEndLumiBlock(), TrigResRateMon::countHLTPathHitsEndLumiBlock(), QcdUeDQM::createHistos(), QcdLowPtDQM::createHistos(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripMonitorDigi::createModuleMEs(), SiPixelHistoPlotter::createStaticPlot(), SiStripHistoPlotter::createStaticPlot(), SiStripMonitorCluster::createSubDetMEs(), SiStripMonitorDigi::createSubDetMEs(), dqmCopyRecursively(), HLTMonBTagClient::efficiency(), DT4DSegmentClients::endLuminosityBlock(), DT2DSegmentClients::endLuminosityBlock(), DTRecHitClients::endLuminosityBlock(), EERawDataTask::endLuminosityBlock(), EBRawDataTask::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), RPCRecHitValidClient::endRun(), TauDQMHistEffProducer::endRun(), RPCEfficiencyPerRingLayer::endRun(), SiStripQualityDQM::fillGrandSummaryMEs(), DQMMessageLoggerClient::fillHistograms(), SiStripSummaryCreator::fillHistos(), MuonPFAnalyzer::fillInRange(), SiStripQualityDQM::fillMEsForLayer(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripQualityDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), CSCMonitorObject::GetBinError(), CSCMonitorObject::GetEntries(), CSCMonitorObject::GetMaximumBin(), SiStripSummaryCreator::getSummaryME(), CSCMonitorObject::getTH1(), MuIsoValidation::GetTH1FromMonitorElement(), MuonIsolationDQM::GetTH1FromMonitorElement(), CSCMonitorObject::getTH1Lock(), SiStripHistoPlotter::makeCondDBPlots(), PlotCombiner::makePlot(), SiStripHistoPlotter::makePlot(), L1ValidatorHists::Normalize(), EcalSelectiveReadoutValidation::normalizeHists(), ecaldqm::SummaryClient::producePlots(), SusyPostProcessor::QuantilePlots(), RPCRecHitValid::RPCRecHitValid(), CSCMonitorObject::SetAxisRange(), CSCMonitorObject::SetBinError(), MuonPFAnalyzer::setCodeLabels(), CSCMonitorObject::SetMaximum(), CSCMonitorObject::SetNormFactor(), DTLocalTriggerTask::setQLabels(), DTLocalTriggerBaseTask::setQLabels(), ecaldqm::MESetTrend::shift_(), BTagHLTOfflineSource::TriggerPosition(), JetMETHLTOfflineSource::TriggerPosition(), SiStripFEDCheckPlugin::updateHistograms(), L1TTestsSummary::updateL1TOccupancyMonitor(), L1TTestsSummary::updateL1TRateMonitor(), L1TTestsSummary::updateL1TSyncMonitor(), and L1ValidatorHists::Write().

1492 {
1493  const_cast<MonitorElement *>(this)->update();
1494  return accessRootObject(__PRETTY_FUNCTION__, 0);
1495 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
TH1D * MonitorElement::getTH1D ( void  ) const

Definition at line 1514 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH1D, kind(), and update().

Referenced by DQMStore::collate1DD(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), MeanWithinExpected::runTest(), CheckVariance::runTest(), and DQMStore::scaleElements().

1515 {
1516  assert(kind() == DQM_KIND_TH1D);
1517  const_cast<MonitorElement *>(this)->update();
1518  return static_cast<TH1D *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1519 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH1F * MonitorElement::getTH1F ( void  ) const

Definition at line 1498 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH1F, kind(), and update().

Referenced by SiStripGainFromData::algoBeginJob(), HLTJetMETDQMSource::analyze(), GeneralHLTOffline::analyze(), HLTMonPhotonClient::beginJob(), TrackEfficiencyClient::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), HLTMonElectronConsumer::beginJob(), HLTTauDQML1Plotter::beginRun(), RPCMonitorLinkSynchro::beginRun(), L1TGMTClient::beginRun(), PrimaryVertexMonitor::beginRun(), HLTMonBitSummary::beginRun(), DQMProvInfo::beginRun(), HLTInclusiveVBFSource::beginRun(), TriggerValidator::beginRun(), L1TEfficiencyPlotHandler::book(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), ElectronDqmAnalyzerBase::bookH1(), ElectronDqmAnalyzerBase::bookH1andDivide(), ElectronDqmAnalyzerBase::bookH1withSumw2(), RPCValidHistograms::bookHistograms(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), L1TDTTFClient::buildSummaries(), ElectronDqmAnalyzerBase::cloneH1(), DQMStore::collate1D(), EffPurFromHistos::compute(), L1TEfficiencyPlotHandler::computeEfficiency(), HTrackVariables::computeEfficiency(), FourVectorHLTOnline::countHLTGroupHitsEndLumiBlock(), TrigResRateMon::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOnline::countHLTGroupL1HitsEndLumiBlock(), TrigResRateMon::countHLTGroupL1HitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupL1HitsEndLumiBlock(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createEfficiencyPlots(), L1TdeRCT::DivideME1D(), MuonTestSummary::doEnergyTests(), fitUtilities::doGaussFit(), HDQMfitUtilities::doGaussFit(), MuonTestSummary::doKinematicsTests(), fitUtilities::doLanGaussFit(), HDQMfitUtilities::doLanGaussFit(), MuonTestSummary::doMuonIDTests(), DQMHOAlCaRecoStream::endJob(), DQMHcalIsoTrackPostProcessor::endJob(), RPCMonitorRaw::endJob(), ESPedestalClient::endJob(), HarvestingAnalyzer::endJob(), RPCDcsInfoClient::endLuminosityBlock(), RPCMonitorLinkSynchro::endLuminosityBlock(), DQMDcsInfoClient::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), TrackEfficiencyClient::endLuminosityBlock(), DTtTrigCalibrationTest::endLuminosityBlock(), DTEfficiencyTest::endLuminosityBlock(), TrigResRateMon::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), RPCRecHitProbabilityClient::endRun(), TauDQMHistEffProducer::endRun(), TopHLTDiMuonDQMClient::endRun(), RPCBxTest::endRun(), EfficiencyPlotter::endRun(), FourVectorHLTClient::endRun(), ZDCDigiStudy::endRun(), DTResolutionAnalysisTest::endRun(), MuCorrMETAnalyzer::endRun(), TcMETAnalyzer::endRun(), MuonRecoTest::endRun(), EcalZmassClient::endRun(), CaloMETAnalyzer::endRun(), PFMETAnalyzer::endRun(), METAnalyzer::endRun(), TauDQMHistPlotter::endRun(), RPCEfficiencySecond::endRun(), LaserDQM::fillAdcCounts(), SiStripQualityChecker::fillDetectorStatusAtLumi(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), BTagDifferentialPlot::fillHisto(), DQMFEDIntegrityClient::fillHistograms(), HLXMonitor::FillHistograms(), SiStripSummaryCreator::fillHistos(), GeneralHLTOffline::fillHltMatrix(), OccupancyPlotter::fillHltMatrix(), FourVectorHLTOnline::fillHltMatrix(), TrigResRateMon::fillHltMatrix(), FourVectorHLTOffline::fillHltMatrix(), EgHLTOfflineClient::FillHLTvsOfflineHist(), FastTimerServiceClient::fillPathSummaryPlots(), FastTimerServiceClient::fillProcessSummaryPlots(), TrigResRateMon::DatasetInfo::fillRawCountsForPath(), SiPixelActionExecutor::fillSummary(), TrigResRateMon::filltestHisto(), TrigResRateMon::fillXsecPerDataset(), CSCOfflineMonitor::finalize(), FlavourHistograms< T >::FlavourHistograms(), MuonTestSummary::GaussFit(), L1TGMTClient::get1DHisto(), HLTEventInfoClient::get1DHisto(), L1TDTTPGClient::get1DHisto(), FourVectorHLTClient::get1DHisto(), getAnyHisto(), SiPixelActionExecutor::getData(), BTagDifferentialPlot::getDifferentialHistoB_b(), BTagDifferentialPlot::getDifferentialHistoB_c(), BTagDifferentialPlot::getDifferentialHistoB_d(), BTagDifferentialPlot::getDifferentialHistoB_dus(), BTagDifferentialPlot::getDifferentialHistoB_dusg(), BTagDifferentialPlot::getDifferentialHistoB_g(), BTagDifferentialPlot::getDifferentialHistoB_ni(), 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_s(), EffPurFromHistos::getEffFlavVsBEff_u(), getHisto(), EmDQMPostProcessor::getHistogram(), PFClient_JetRes::getHistogramParameters(), PFClient::getHistogramParameters(), SiStripHistoPlotter::getProjection(), SiStripSummaryCreator::getSummaryME(), getTH1F(), L1TDTTFClient::getTH1F(), FlavourHistograms< int >::histo_all(), FlavourHistograms< int >::histo_b(), FlavourHistograms< int >::histo_c(), FlavourHistograms< int >::histo_d(), FlavourHistograms< int >::histo_dus(), FlavourHistograms< int >::histo_dusg(), FlavourHistograms< int >::histo_g(), FlavourHistograms< int >::histo_ni(), FlavourHistograms< int >::histo_s(), FlavourHistograms< int >::histo_u(), RPCMonitorLinkSynchro::histos(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), PhotonDataCertification::invMassZtest(), L1TGMTClient::makeEfficiency1D(), DTLocalTriggerEfficiencyTest::makeEfficiencyME(), EgHLTOfflineClient::makeEffMonElem2Leg(), TopElectronHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndFail(), EgHLTOfflineClient::makeEffMonElemFromPassAndFailAndTagTag(), MuCorrMETAnalyzer::makeRatePlot(), TcMETAnalyzer::makeRatePlot(), PFMETAnalyzer::makeRatePlot(), METAnalyzer::makeRatePlot(), CaloMETAnalyzer::makeRatePlot(), L1TGMTClient::makeRatio1D(), DTLocalTriggerSynchTest::makeRatioME(), L1TDTTFClient::makeSummary(), L1ValidatorHists::Normalize(), FourVectorHLTClient::normalizeHLTMatrix(), TrigResRateMon::normalizeHLTMatrix(), DQMClientExample::performClient(), DTSegmentAnalysisTest::performClientDiagnostic(), BTagDifferentialPlot::plot(), EffPurFromHistos::plot(), FlavourHistograms< T >::plot(), HLTTauDQMSummaryPlotter::plotEfficiencyHisto(), HLTTauDQMSummaryPlotter::plotIntegratedEffHisto(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), L1TCSCTFClient::processHistograms(), MEtoEDMConverter::putData(), SiStripNoisesDQMService::readNoises(), SiStripPedestalsDQMService::readPedestals(), MuonTestSummary::ResidualCheck(), BTagHLTOfflineClient::runClient_(), JetMETDQMOfflineClient::runClient_(), JetMETHLTOfflineClient::runClient_(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), MeanWithinExpected::runTest(), CompareLastFilledBin::runTest(), CheckVariance::runTest(), DQMStore::scaleElements(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), GeneralHLTOffline::setupHltMatrix(), FourVectorHLTOnline::setupHltMatrix(), TrigResRateMon::setupHltMatrix(), FourVectorHLTOffline::setupHltMatrix(), TrigResRateMon::setupStreamMatrix(), TrackIPHistograms< T >::TrackIPHistograms(), and HLTMonBTagClient::update().

1499 {
1500  assert(kind() == DQM_KIND_TH1F);
1501  const_cast<MonitorElement *>(this)->update();
1502  return static_cast<TH1F *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1503 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH1S * MonitorElement::getTH1S ( void  ) const

Definition at line 1506 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH1S, kind(), and update().

Referenced by DQMStore::collate1S(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), MeanWithinExpected::runTest(), and DQMStore::scaleElements().

1507 {
1508  assert(kind() == DQM_KIND_TH1S);
1509  const_cast<MonitorElement *>(this)->update();
1510  return static_cast<TH1S *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1511 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH2D * MonitorElement::getTH2D ( void  ) const

Definition at line 1538 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH2D, kind(), and update().

Referenced by DQMStore::collate2DD(), ScoutingAnalyzerBase::profileX(), ScoutingAnalyzerBase::profileY(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), and DQMStore::scaleElements().

1539 {
1540  assert(kind() == DQM_KIND_TH2D);
1541  const_cast<MonitorElement *>(this)->update();
1542  return static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1543 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH2F * MonitorElement::getTH2F ( void  ) const

Definition at line 1522 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH2F, kind(), and update().

Referenced by SiStripGainFromData::algoBeginJob(), HcalDigiClient::analyze(), HcalSummaryClient::analyze(), EBSelectiveReadoutTask::analyze(), EESelectiveReadoutTask::analyze(), FourVectorHLTOnline::analyze(), CastorMonitorModule::analyze(), BeamMonitor::beginJob(), L1TDTTF::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), ZDCDigiStudy::beginJob(), ZdcSimHitStudy::beginJob(), L1TCSCTF::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), HcalBeamMonitor::beginLuminosityBlock(), CastorPSMonitor::beginRun(), HcalSummaryClient::beginRun(), RPCMonitorLinkSynchro::beginRun(), CaloTowerAnalyzer::beginRun(), L1TGMTClient::beginRun(), RPCMonitorRaw::beginRun(), HLTMonBitSummary::beginRun(), CastorChannelQualityMonitor::beginRun(), ZDCMonitorClient::beginRun(), DQMProvInfo::beginRun(), HLTInclusiveVBFSource::beginRun(), CastorMonitorModule::beginRun(), L1TdeRCT::beginRun(), ElectronDqmAnalyzerBase::bookH2(), ElectronDqmAnalyzerBase::bookH2andDivide(), ElectronDqmAnalyzerBase::bookH2withSumw2(), RPCValidHistograms::bookHistograms(), HcalDeadCellClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), DQMStore::collate2D(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), FourVectorHLTOnline::countHLTGroupBXHitsEndLumiBlock(), TrigResRateMon::countHLTGroupBXHitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupBXHitsEndLumiBlock(), TrigResRateMon::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOnline::countHLTPathHitsEndLumiBlock(), TrigResRateMon::countHLTPathHitsEndLumiBlock(), FourVectorHLTOffline::countHLTPathHitsEndLumiBlock(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), L1TdeRCT::DivideME2D(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), L1TEventInfoClient::dumpContentMonitorElements(), RPCMonitorRaw::endJob(), TrackerHitAnalyzer::endJob(), RPCMonitorLinkSynchro::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), DTOccupancyTest::endLuminosityBlock(), DTNoiseAnalysisTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTChamberEfficiencyTest::endLuminosityBlock(), DTNoiseTest::endLuminosityBlock(), DataCertificationJetMET::endRun(), PhotonDataCertification::endRun(), FourVectorHLTClient::endRun(), DTChamberEfficiencyClient::endRun(), MuonRecoTest::endRun(), HLTMuonCertSummary::endRun(), HLTOverallSummary::endRun(), SiStripSummaryCreator::fillHistos(), GeneralHLTOffline::fillHltMatrix(), OccupancyPlotter::fillHltMatrix(), FourVectorHLTOnline::fillHltMatrix(), FourVectorHLTOffline::fillHltMatrix(), SiPixelActionExecutor::fillOccupancy(), SiStripQualityChecker::fillStatusHistogram(), TrackingQualityChecker::fillStatusHistogram(), TrackingCertificationInfo::fillTrackingCertificationMEs(), CSCOfflineMonitor::finalize(), SiPixelInformationExtractor::findNoisyPixels(), FitSlicesYTool::FitSlicesYTool(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), L1TGMTClient::get2DHisto(), HLTEventInfoClient::get2DHisto(), L1TDTTPGClient::get2DHisto(), FourVectorHLTClient::get2DHisto(), getAnyHisto(), getHisto2(), SiStripHistoPlotter::getProjection(), getTH2F(), L1TDTTFClient::getTH2F(), MuIsoValidation::GetTH2FromMonitorElement(), HcalDetDiagPedestalClient::hasErrors_Temp(), HcalBeamClient::hasErrors_Temp(), HcalCoarsePedestalClient::hasErrors_Temp(), HcalDeadCellClient::hasErrors_Temp(), HcalDetDiagTimingClient::hasErrors_Temp(), HcalDigiClient::hasErrors_Temp(), HcalHotCellClient::hasErrors_Temp(), HcalNZSClient::hasErrors_Temp(), HcalDetDiagNoiseMonitorClient::hasErrors_Temp(), HcalTrigPrimClient::hasErrors_Temp(), HcalRecHitClient::hasErrors_Temp(), HcalRawDataClient::hasErrors_Temp(), HcalTimingMonitorModule::HcalTimingMonitorModule(), FlavourHistograms2D< double, double >::histo_all(), FlavourHistograms2D< double, double >::histo_b(), FlavourHistograms2D< double, double >::histo_c(), FlavourHistograms2D< double, double >::histo_d(), FlavourHistograms2D< double, double >::histo_dus(), FlavourHistograms2D< double, double >::histo_dusg(), FlavourHistograms2D< double, double >::histo_g(), FlavourHistograms2D< double, double >::histo_ni(), FlavourHistograms2D< double, double >::histo_s(), FlavourHistograms2D< double, double >::histo_u(), RPCMonitorLinkSynchro::histos(), HcalBaseDQClient::htmlOutput(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), DQMGenericClient::limitedFit(), L1TGMTClient::makeEfficiency2D(), DTTriggerEfficiencyTest::makeEfficiencyME(), DTLocalTriggerEfficiencyTest::makeEfficiencyME2D(), L1TDTTPGClient::makeRatioHisto(), L1TDTTFClient::makeSummary(), CSCOfflineMonitor::normalize(), FourVectorHLTClient::normalizeHLTMatrix(), TrigResRateMon::normalizeHLTMatrix(), DTSegmentAnalysisTest::performClientDiagnostic(), CastorDataIntegrityMonitor::processEvent(), CastorPSMonitor::processEvent(), HcalBeamMonitor::processEvent(), CastorChannelQualityMonitor::processEvent(), L1TGCTClient::processHistograms(), ElectronDqmAnalyzerBase::profileX(), ElectronDqmAnalyzerBase::profileY(), MEtoEDMConverter::putData(), RPCRecHitValid::RPCRecHitValid(), Comp2RefEqualH::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), CompareLastFilledBin::runTest(), DQMStore::scaleElements(), HcalBeamMonitor::SetEtaLabels(), HcalBaseDQMonitor::setup(), HLXMonitor::SetupEventInfo(), FourVectorHLTOnline::setupHltBxPlots(), TrigResRateMon::setupHltBxPlots(), FourVectorHLTOffline::setupHltBxPlots(), FourVectorHLTOnline::setupHltLsPlots(), TrigResRateMon::setupHltLsPlots(), FourVectorHLTOffline::setupHltLsPlots(), GeneralHLTOffline::setupHltMatrix(), FourVectorHLTOnline::setupHltMatrix(), FourVectorHLTOffline::setupHltMatrix(), and TrigResRateMon::setupStreamMatrix().

1523 {
1524  assert(kind() == DQM_KIND_TH2F);
1525  const_cast<MonitorElement *>(this)->update();
1526  return static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1527 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH2S * MonitorElement::getTH2S ( void  ) const

Definition at line 1530 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH2S, kind(), and update().

Referenced by DQMStore::collate2S(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), and DQMStore::scaleElements().

1531 {
1532  assert(kind() == DQM_KIND_TH2S);
1533  const_cast<MonitorElement *>(this)->update();
1534  return static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1535 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH3F * MonitorElement::getTH3F ( void  ) const

Definition at line 1546 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TH3F, kind(), and update().

Referenced by DQMStore::collate3D(), getAnyHisto(), getHistoTH3F(), getTH3F(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), and DQMStore::scaleElements().

1547 {
1548  assert(kind() == DQM_KIND_TH3F);
1549  const_cast<MonitorElement *>(this)->update();
1550  return static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 3));
1551 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
std::string MonitorElement::getTitle ( void  ) const

get MonitorElement title

Definition at line 817 of file MonitorElement.cc.

References accessRootObject().

Referenced by HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), TkHistoMap::getDetId(), SiStripHistoPlotter::getProjection(), and SiPixelSCurveCalibrationAnalysis::makeThresholdSummary().

818 { return accessRootObject(__PRETTY_FUNCTION__, 1)
819  ->GetTitle(); }
TH1 * accessRootObject(const char *func, int reqdim) const
TProfile * MonitorElement::getTProfile ( void  ) const

Definition at line 1554 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TPROFILE, kind(), and update().

Referenced by EBTrendTask::analyze(), EETrendTask::analyze(), StripValidationPlots::beginJob(), ElectronDqmAnalyzerBase::bookP1(), ScoutingAnalyzerBase::bookP1(), TrigResRateMon::bookTestHisto(), DQMStore::collateProfile(), PFClient::createProfilePlots(), EmDQMPostProcessor::dividehistos(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), AlcaBeamMonitorClient::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), EmDQMPostProcessor::endRun(), HltSusyExoPostProcessor::endRun(), FastTimerServiceClient::fillPathSummaryPlots(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), TrigResRateMon::filltestHisto(), ElectronMcFakePostValidator::finalize(), ElectronMcSignalPostValidator::finalize(), BeamMonitor::FitAndFill(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), HLTEventInfoClient::get1DProfile(), L1TDTTPGClient::get1DProfile(), FourVectorHLTClient::get1DProfile(), getAnyHisto(), getHistoTProfile(), SiStripHistoPlotter::getProjection(), getTProfile(), MuIsoValidation::GetTProfileFromMonitorElement(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), HLTTauDQMSummaryPlotter::plotEfficiencyHisto(), HLTTauDQMSummaryPlotter::plotIntegratedEffHisto(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), FlavourHistograms2D< double, double >::profile_all(), FlavourHistograms2D< double, double >::profile_b(), FlavourHistograms2D< double, double >::profile_c(), FlavourHistograms2D< double, double >::profile_d(), FlavourHistograms2D< double, double >::profile_dus(), FlavourHistograms2D< double, double >::profile_dusg(), FlavourHistograms2D< double, double >::profile_g(), FlavourHistograms2D< double, double >::profile_ni(), FlavourHistograms2D< double, double >::profile_s(), FlavourHistograms2D< double, double >::profile_u(), MEtoEDMConverter::putData(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsWithinExpected::runTest(), CheckVariance::runTest(), DQMStore::scaleElements(), HcalNZSMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalBeamMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), and TrigResRateMon::setupHltMatrix().

1555 {
1556  assert(kind() == DQM_KIND_TPROFILE);
1557  const_cast<MonitorElement *>(this)->update();
1558  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1559 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TProfile2D * MonitorElement::getTProfile2D ( void  ) const

Definition at line 1562 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TPROFILE2D, kind(), and update().

Referenced by DQMStore::collateProfile2D(), HLTEventInfoClient::get2DProfile(), L1TDTTPGClient::get2DProfile(), FourVectorHLTClient::get2DProfile(), getAnyHisto(), getHistoTProfile2D(), getTProfile2D(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), MEtoEDMConverter::putData(), ContentsWithinExpected::runTest(), CompareToMedian::runTest(), and DQMStore::scaleElements().

1563 {
1564  assert(kind() == DQM_KIND_TPROFILE2D);
1565  const_cast<MonitorElement *>(this)->update();
1566  return static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1567 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
double MonitorElement::getYmax ( void  ) const
private

get max Y value (for profiles)

Definition at line 797 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TPROFILE, incompatible(), and kind().

798 {
799  if (kind() == DQM_KIND_TPROFILE)
800  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
801  ->GetYmax();
802  else
803  {
804  incompatible(__PRETTY_FUNCTION__);
805  return 0;
806  }
807 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind(void) const
Get the type of the monitor element.
double MonitorElement::getYmin ( void  ) const
private

get min Y value (for profiles)

Definition at line 783 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TPROFILE, incompatible(), and kind().

784 {
785  if (kind() == DQM_KIND_TPROFILE)
786  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
787  ->GetYmin();
788  else
789  {
790  incompatible(__PRETTY_FUNCTION__);
791  return 0;
792  }
793 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::globalize ( )
inlineprivate
bool MonitorElement::hasError ( void  ) const
inline

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

Definition at line 191 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_REPORT_ERROR, and DQMNet::CoreObject::flags.

Referenced by SiPixelDataQuality::computeGlobalQualityFlag(), TrackingUtility::getMEStatus(), SiStripUtility::getMEStatus(), SiPixelUtility::getStatus(), QTestStatusChecker::processAlarms(), and SiPixelHistoPlotter::setLines().

uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_REPORT_ERROR
Definition: DQMNet.h:46
DQMNet::CoreObject data_
bool MonitorElement::hasOtherReport ( void  ) const
inline

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

Definition at line 199 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_REPORT_OTHER, and DQMNet::CoreObject::flags.

Referenced by TrackingUtility::getMEStatus(), SiStripUtility::getMEStatus(), SiPixelUtility::getStatus(), QTestStatusChecker::processAlarms(), and SiPixelHistoPlotter::setLines().

uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_REPORT_OTHER
Definition: DQMNet.h:48
DQMNet::CoreObject data_
bool MonitorElement::hasWarning ( void  ) const
inline

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

Definition at line 195 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_REPORT_WARN, and DQMNet::CoreObject::flags.

Referenced by SiPixelActionExecutor::checkQTestResults(), TrackingUtility::getMEStatus(), SiStripUtility::getMEStatus(), SiPixelUtility::getStatus(), QTestStatusChecker::processAlarms(), and SiPixelHistoPlotter::setLines().

static const uint32_t DQM_PROP_REPORT_WARN
Definition: DQMNet.h:47
uint32_t flags
Definition: DQMNet.h:97
DQMNet::CoreObject data_
void MonitorElement::incompatible ( const char *  func) const
private

Definition at line 660 of file MonitorElement.cc.

References data_, DQMNet::CoreObject::objname, and raiseDQMError().

Referenced by copyFrom(), disableSoftReset(), doFill(), Fill(), getBinEntries(), getYmax(), getYmin(), packScalarData(), setBinEntries(), ShiftFillLast(), softReset(), and valueString().

661 {
662  raiseDQMError("MonitorElement", "Method '%s' cannot be invoked on monitor"
663  " element '%s'", func, data_.objname.c_str());
664 }
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
string func
Definition: statics.py:48
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
MonitorElement * MonitorElement::initialise ( Kind  kind)
private

Definition at line 34 of file MonitorElement.cc.

References data_, DQM_KIND_INT, DQM_KIND_REAL, DQM_KIND_STRING, DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, DQM_KIND_TH2D, DQM_KIND_TH2F, DQM_KIND_TH2S, DQM_KIND_TH3F, DQM_KIND_TPROFILE, DQM_KIND_TPROFILE2D, DQMNet::CoreObject::flags, kind(), and raiseDQMError().

Referenced by DQMStore::bookFloat(), DQMStore::bookInt(), DQMStore::bookString(), and initialise().

35 {
36  switch (kind)
37  {
38  case DQM_KIND_INT:
39  case DQM_KIND_REAL:
40  case DQM_KIND_STRING:
41  case DQM_KIND_TH1F:
42  case DQM_KIND_TH1S:
43  case DQM_KIND_TH1D:
44  case DQM_KIND_TH2F:
45  case DQM_KIND_TH2S:
46  case DQM_KIND_TH2D:
47  case DQM_KIND_TH3F:
48  case DQM_KIND_TPROFILE:
50  data_.flags &= ~DQMNet::DQM_PROP_TYPE_MASK;
51  data_.flags |= kind;
52  break;
53 
54  default:
55  raiseDQMError("MonitorElement", "cannot initialise monitor element"
56  " to invalid type %d", (int) kind);
57  }
58 
59  return this;
60 }
Definition: DQMNet.h:22
uint32_t flags
Definition: DQMNet.h:97
Kind kind(void) const
Get the type of the monitor element.
DQMNet::CoreObject data_
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
MonitorElement * MonitorElement::initialise ( Kind  kind,
TH1 *  rootobj 
)
private

Definition at line 63 of file MonitorElement.cc.

References data_, DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, DQM_KIND_TH2D, DQM_KIND_TH2F, DQM_KIND_TH2S, DQM_KIND_TH3F, DQM_KIND_TPROFILE, DQM_KIND_TPROFILE2D, DQMNet::DQM_PROP_HAS_REFERENCE, DQMNet::CoreObject::flags, initialise(), object_, raiseDQMError(), and reference_.

64 {
66  switch (kind)
67  {
68  case DQM_KIND_TH1F:
69  assert(dynamic_cast<TH1F *>(rootobj));
70  assert(! reference_ || dynamic_cast<TH1F *>(reference_));
71  object_ = rootobj;
72  break;
73 
74  case DQM_KIND_TH1S:
75  assert(dynamic_cast<TH1S *>(rootobj));
76  assert(! reference_ || dynamic_cast<TH1S *>(reference_));
77  object_ = rootobj;
78  break;
79 
80  case DQM_KIND_TH1D:
81  assert(dynamic_cast<TH1D *>(rootobj));
82  assert(! reference_ || dynamic_cast<TH1D *>(reference_));
83  object_ = rootobj;
84  break;
85 
86  case DQM_KIND_TH2F:
87  assert(dynamic_cast<TH2F *>(rootobj));
88  assert(! reference_ || dynamic_cast<TH2F *>(reference_));
89  object_ = rootobj;
90  break;
91 
92  case DQM_KIND_TH2S:
93  assert(dynamic_cast<TH2S *>(rootobj));
94  assert(! reference_ || dynamic_cast<TH2S *>(reference_));
95  object_ = rootobj;
96  break;
97 
98  case DQM_KIND_TH2D:
99  assert(dynamic_cast<TH2D *>(rootobj));
100  assert(! reference_ || dynamic_cast<TH1D *>(reference_));
101  object_ = rootobj;
102  break;
103 
104  case DQM_KIND_TH3F:
105  assert(dynamic_cast<TH3F *>(rootobj));
106  assert(! reference_ || dynamic_cast<TH3F *>(reference_));
107  object_ = rootobj;
108  break;
109 
110  case DQM_KIND_TPROFILE:
111  assert(dynamic_cast<TProfile *>(rootobj));
112  assert(! reference_ || dynamic_cast<TProfile *>(reference_));
113  object_ = rootobj;
114  break;
115 
116  case DQM_KIND_TPROFILE2D:
117  assert(dynamic_cast<TProfile2D *>(rootobj));
118  assert(! reference_ || dynamic_cast<TProfile2D *>(reference_));
119  object_ = rootobj;
120  break;
121 
122  default:
123  raiseDQMError("MonitorElement", "cannot initialise monitor element"
124  " as a root object with type %d", (int) kind);
125  }
126 
127  if (reference_)
129 
130  return this;
131 }
MonitorElement * initialise(Kind kind)
uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_HAS_REFERENCE
Definition: DQMNet.h:53
Kind kind(void) const
Get the type of the monitor element.
DQMNet::CoreObject data_
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
MonitorElement * MonitorElement::initialise ( Kind  kind,
const std::string &  value 
)
private

Definition at line 134 of file MonitorElement.cc.

References DQM_KIND_STRING, initialise(), raiseDQMError(), scalar_, MonitorElement::Scalar::str, and relativeConstraints::value.

135 {
136  initialise(kind);
137  if (kind == DQM_KIND_STRING)
138  scalar_.str = value;
139  else
140  raiseDQMError("MonitorElement", "cannot initialise monitor element"
141  " as a string with type %d", (int) kind);
142 
143  return this;
144 }
MonitorElement * initialise(Kind kind)
Kind kind(void) const
Get the type of the monitor element.
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
bool MonitorElement::isAccumulateEnabled ( void  ) const
inlineprivate

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

Definition at line 283 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_ACCUMULATE, and DQMNet::CoreObject::flags.

Referenced by copyFrom(), and copyFunctions().

uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_ACCUMULATE
Definition: DQMNet.h:55
DQMNet::CoreObject data_
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 204 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_EFFICIENCY_PLOT, and DQMNet::CoreObject::flags.

uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_EFFICIENCY_PLOT
Definition: DQMNet.h:63
DQMNet::CoreObject data_
bool MonitorElement::isSoftResetEnabled ( void  ) const
inlineprivate

whether soft-reset is enabled; default is false

Definition at line 279 of file MonitorElement.h.

References refvalue_.

Referenced by copyFrom(), and copyFunctions().

280  { return refvalue_ != 0; }
Kind MonitorElement::kind ( void  ) const
inline

Get the type of the monitor element.

Definition at line 100 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_TYPE_MASK, and DQMNet::CoreObject::flags.

Referenced by accessRootObject(), MEtoEDMConverter::beginRun(), copyFrom(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createEfficiencyPlots(), SiStripMonitorDigi::createMEs(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), SiStripMonitorCluster::createSubDetMEs(), SiStripMonitorDigi::createSubDetMEs(), disableSoftReset(), HLTMonSimpleBTag::doEffCalc(), doFill(), MEtoEDMConverter::endJob(), TrigResRateMon::endLuminosityBlock(), Fill(), SiStripQualityChecker::fillDetectorStatusAtLumi(), SiStripSummaryCreator::fillHistos(), ecaldqm::fillME(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripQualityChecker::fillStatusHistogram(), TrackingQualityChecker::fillStatusHistogram(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), TrackingQualityChecker::fillTrackingStatusAtLumi(), DQMService::flushStandalone(), ecaldqm::getBinContentME(), getBinEntries(), ecaldqm::getBinEntriesME(), ecaldqm::getBinErrorME(), ecaldqm::getBinME(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), getFloatValue(), PFClient_JetRes::getHistogramParameters(), PFClient::getHistogramParameters(), getIntValue(), TrackingUtility::getMEValue(), SiStripUtility::getMEValue(), SiStripQualityChecker::getModuleStatus(), SiStripHistoPlotter::getProjection(), getRefTH1D(), getRefTH1F(), getRefTH1S(), getRefTH2D(), getRefTH2F(), getRefTH2S(), getRefTH3F(), getRefTProfile(), getRefTProfile2D(), getStringValue(), SiStripSummaryCreator::getSummaryME(), getTH1D(), getTH1F(), getTH1S(), getTH2D(), getTH2F(), getTH2S(), getTH3F(), getTProfile(), getTProfile2D(), getYmax(), getYmin(), initialise(), SiPixelHistoPlotter::makePlot(), SiStripHistoPlotter::makePlot(), packScalarData(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), MEtoEDMConverter::putData(), Reset(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), MeanWithinExpected::runTest(), CompareToMedian::runTest(), CompareLastFilledBin::runTest(), CheckVariance::runTest(), DQMStore::scaleElements(), ecaldqm::setBinContentME(), setBinEntries(), ecaldqm::setBinEntriesME(), ecaldqm::setBinErrorME(), ShiftFillLast(), softReset(), and valueString().

uint32_t flags
Definition: DQMNet.h:97
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_TYPE_MASK
Definition: DQMNet.h:25
const uint32_t MonitorElement::lumi ( void  ) const
inline

Definition at line 372 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::lumi.

372 {return data_.lumi;}
uint32_t lumi
Definition: DQMNet.h:101
DQMNet::CoreObject data_
const uint32_t MonitorElement::moduleId ( void  ) const
inline

Definition at line 374 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::moduleId.

Referenced by MonitorElement().

374 {return data_.moduleId;}
uint32_t moduleId
Definition: DQMNet.h:103
DQMNet::CoreObject data_
bool MonitorElement::operator< ( const MonitorElement x) const
inline

Compare monitor elements, for ordering in sets.

Definition at line 94 of file MonitorElement.h.

References data_, and DQMNet::setOrder().

95  {
96  return DQMNet::setOrder(data_, x.data_);
97  }
DQMNet::CoreObject data_
static bool setOrder(const CoreObject &a, const CoreObject &b)
Definition: DQMNet.h:178
MonitorElement & MonitorElement::operator= ( const MonitorElement x)

Definition at line 201 of file MonitorElement.cc.

References data_, object_, qreports_, reference_, refvalue_, and scalar_.

202 {
203  if (this != &x)
204  {
205  delete object_;
206  delete refvalue_;
207 
208  data_ = x.data_;
209  scalar_ = x.scalar_;
210  object_ = x.object_;
212  refvalue_ = x.refvalue_;
213  qreports_ = x.qreports_;
214 
215  if (object_)
216  object_ = static_cast<TH1 *>(object_->Clone());
217 
218  if (refvalue_)
219  refvalue_ = static_cast<TH1 *>(refvalue_->Clone());
220  }
221 
222  return *this;
223 }
std::vector< QReport > qreports_
DQMNet::CoreObject data_
void MonitorElement::packQualityData ( std::string &  into) const

serialise quality report information into a string.

Definition at line 475 of file MonitorElement.cc.

References data_, DQMNet::packQualityData(), and DQMNet::CoreObject::qreports.

476 {
478 }
QReports qreports
Definition: DQMNet.h:106
DQMNet::CoreObject data_
static void packQualityData(std::string &into, const QReports &qr)
Definition: DQMNet.cc:177
void MonitorElement::packScalarData ( std::string &  into,
const char *  prefix 
) const

convert scalar data into a string.

Definition at line 450 of file MonitorElement.cc.

References DQM_KIND_INT, DQM_KIND_REAL, DQM_KIND_STRING, incompatible(), kind(), MonitorElement::Scalar::num, prof2calltree::prefix, MonitorElement::Scalar::real, scalar_, and MonitorElement::Scalar::str.

Referenced by DQMService::flushStandalone(), and valueString().

451 {
452  char buf[64];
453  if (kind() == DQM_KIND_INT)
454  {
455  snprintf(buf, sizeof(buf), "%s%" PRId64, prefix, scalar_.num);
456  into = buf;
457  }
458  else if (kind() == DQM_KIND_REAL)
459  {
460  snprintf(buf, sizeof(buf), "%s%.*g", prefix, DBL_DIG+2, scalar_.real);
461  into = buf;
462  }
463  else if (kind() == DQM_KIND_STRING)
464  {
465  into.reserve(strlen(prefix) + scalar_.str.size());
466  into += prefix;
467  into += scalar_.str;
468  }
469  else
470  incompatible(__PRETTY_FUNCTION__);
471 }
void incompatible(const char *func) const
Kind kind(void) const
Get the type of the monitor element.
std::string MonitorElement::qualityTagString ( const DQMNet::QValue qv) const

Definition at line 542 of file MonitorElement.cc.

References DQMNet::QValue::algorithm, DQMNet::QValue::code, data_, DQMNet::QValue::message, DQMNet::CoreObject::objname, DQMNet::QValue::qtname, DQMNet::QValue::qtresult, query::result, and AlCaHLTBitMon_QueryRunRegistry::string.

543 {
544  char buf[64];
546  size_t titlelen = data_.objname.size() + qv.qtname.size() + 1;
547  size_t buflen = sprintf(buf, "qr=st:%d:%.*g:", qv.code, DBL_DIG+2, qv.qtresult);
548 
549  result.reserve(7 + 2*titlelen + buflen + qv.algorithm.size() + qv.message.size());
550  result += '<'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
551  result += buf; result += qv.algorithm; result += ':'; result += qv.message;
552  result += '<'; result += '/'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
553  return result;
554 }
std::string algorithm
Definition: DQMNet.h:92
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:105
std::string qtname
Definition: DQMNet.h:91
DQMNet::CoreObject data_
std::string message
Definition: DQMNet.h:90
float qtresult
Definition: DQMNet.h:89
void MonitorElement::Reset ( void  )

reset ME (ie. contents, errors, etc)

Definition at line 434 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_INT, DQM_KIND_REAL, DQM_KIND_STRING, kind(), MonitorElement::Scalar::num, MonitorElement::Scalar::real, scalar_, MonitorElement::Scalar::str, and update().

Referenced by SiStripDcsInfo::addBadModules(), HcalDigiClient::analyze(), HcalRecHitClient::analyze(), HcalSummaryClient::analyze(), EBSummaryClient::analyze(), EESummaryClient::analyze(), EBLaserClient::analyze(), EBTimingClient::analyze(), EELedClient::analyze(), EELaserClient::analyze(), EBPedestalOnlineClient::analyze(), EBTestPulseClient::analyze(), EEIntegrityClient::analyze(), EBIntegrityClient::analyze(), EEPedestalClient::analyze(), EBPedestalClient::analyze(), EEPedestalOnlineClient::analyze(), EETestPulseClient::analyze(), EETriggerTowerClient::analyze(), EBTriggerTowerClient::analyze(), EETimingClient::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), SiPixelDigiSource::analyze(), SiPixelClusterSource::analyze(), HcalTrigPrimMonitor::beginLuminosityBlock(), HcalBeamMonitor::beginLuminosityBlock(), HcalCoarsePedestalMonitor::beginLuminosityBlock(), AlcaBeamMonitor::beginLuminosityBlock(), SiStripMonitorDigi::beginLuminosityBlock(), HcalRawDataMonitor::beginLuminosityBlock(), EBStatusFlagsTask::beginLuminosityBlock(), EEStatusFlagsTask::beginLuminosityBlock(), EBIntegrityTask::beginLuminosityBlock(), SiPixelEDAClient::beginLuminosityBlock(), EEIntegrityTask::beginLuminosityBlock(), EBRawDataTask::beginLuminosityBlock(), EERawDataTask::beginLuminosityBlock(), HcalLSbyLSMonitor::beginLuminosityBlock(), HcalHotCellMonitor::beginLuminosityBlock(), HcalBaseDQMonitor::beginLuminosityBlock(), TrackingMonitor::beginLuminosityBlock(), HcalDigiMonitor::beginLuminosityBlock(), HLTScalers::beginLuminosityBlock(), MuonAlignmentSummary::beginRun(), L1TOccupancyClient::beginRun(), SiStripMonitorRawData::beginRun(), SiStripDaqInfo::beginRun(), MEtoEDMConverter::beginRun(), DQMStore::book(), DQMLumiMonitor::bookHistograms(), L1TDTTFClient::buildSummaries(), HcalDeadCellClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), HcalDetDiagPedestalMonitor::CheckStatus(), L1TGT::countPfsIndicesPerLs(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createEfficiencyPlots(), PFClient::createResolutionPlots(), BeamSpotProblemMonitor::endJob(), HcalDeadCellMonitor::endLuminosityBlock(), HcalRawDataMonitor::endLuminosityBlock(), DTSummaryClients::endLuminosityBlock(), HcalDigiMonitor::endLuminosityBlock(), DTOfflineSummaryClients::endRun(), EELedTask::endRun(), BeamSpotProblemMonitor::endRun(), QcdLowPtDQM::filldNdeta(), SiStripDaqInfo::fillDummyStatus(), SiStripDcsInfo::fillDummyStatus(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelActionExecutor::fillFEDErrorSummary(), HcalDetDiagLEDMonitor::fillHistos(), HcalDetDiagPedestalMonitor::fillHistos(), HcalDetDiagLaserMonitor::fillHistos(), RPCChamberQuality::fillMonitorElements(), BeamSpotProblemMonitor::FillPlots(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripDcsInfo::fillStatus(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), SiStripDaqInfo::findExcludedModule(), BeamMonitor::FitAndFill(), DQMStore::forceReset(), SiPixelActionExecutor::getFEDSummaryME(), SiPixelActionExecutor::getGrandSummaryME(), SiStripBaseCondObjDQM::getModMEs(), SiStripMonitorQuality::getQualityME(), SiPixelActionExecutor::getSummaryME(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), HcalBaseMonitor::periodicReset(), HcalNZSMonitor::reset(), HcalLSbyLSMonitor::reset(), HcalBeamMonitor::reset(), HcalDataIntegrityTask::reset(), HcalHotCellMonitor::reset(), HcalDeadCellMonitor::reset(), EEPedestalOnlineTask::reset(), EBPedestalOnlineTask::reset(), EECosmicTask::reset(), EEPedestalTask::reset(), EBPedestalTask::reset(), EBDcsInfoTask::reset(), EBDaqInfoTask::reset(), EELaserTask::reset(), EBOccupancyTask::reset(), EBCosmicTask::reset(), EETestPulseTask::reset(), EEDataCertificationTask::reset(), EEDcsInfoTask::reset(), EEDaqInfoTask::reset(), EBLaserTask::reset(), EBTestPulseTask::reset(), EcalBarrelMonitorModule::reset(), EBDataCertificationTask::reset(), RPCFEDIntegrity::reset(), EBTimingTask::reset(), EBSelectiveReadoutTask::reset(), EEClusterTask::reset(), EBTrendClient::reset(), EBClusterTask::reset(), EETrendClient::reset(), EcalEndcapMonitorModule::reset(), EBStatusFlagsTask::reset(), EEStatusFlagsTask::reset(), EBHltTask::reset(), EBTrendTask::reset(), EERawDataTask::reset(), EBRawDataTask::reset(), EETrendTask::reset(), EBIntegrityTask::reset(), EEIntegrityTask::reset(), EEHltTask::reset(), EEOccupancyTask::reset(), EETimingTask::reset(), EBTriggerTowerTask::reset(), EETriggerTowerTask::reset(), HcalBaseDQMonitor::reset(), HcalMonitorModule::reset(), EESelectiveReadoutTask::reset(), HcalDigiMonitor::reset(), DQMStore::reset(), TrackingQualityChecker::resetGlobalStatus(), TrackingQualityChecker::resetLSStatus(), SiStripMonitorPedestals::resetMEs(), SiStripMonitorDigi::ResetModuleMEs(), SiStripMonitorCluster::ResetModuleMEs(), SiStripCertificationInfo::resetSiStripCertificationMEs(), SiStripQualityChecker::resetStatus(), TrackingCertificationInfo::resetTrackingCertificationMEs(), TrackingCertificationInfo::resetTrackingCertificationMEsAtLumi(), BeamMonitor::RestartFitting(), EELaserClient::setup(), EELedClient::setup(), EBLaserClient::setup(), EBTimingClient::setup(), EEPedestalClient::setup(), EBPedestalOnlineClient::setup(), EBTestPulseClient::setup(), EBPedestalClient::setup(), EEPedestalOnlineClient::setup(), EETestPulseClient::setup(), EBIntegrityClient::setup(), EEIntegrityClient::setup(), EBTriggerTowerClient::setup(), EETriggerTowerClient::setup(), EETimingClient::setup(), HcalBaseDQMonitor::setup(), PFCandidateDQMAnalyzer::storeBadEvents(), PFMETDQMAnalyzer::storeBadEvents(), and PFJetDQMAnalyzer::storeBadEvents().

435 {
436  update();
437  if (kind() == DQM_KIND_INT)
438  scalar_.num = 0;
439  else if (kind() == DQM_KIND_REAL)
440  scalar_.real = 0;
441  else if (kind() == DQM_KIND_STRING)
442  scalar_.str.clear();
443  else
444  return accessRootObject(__PRETTY_FUNCTION__, 1)
445  ->Reset();
446 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
bool MonitorElement::resetMe ( void  ) const
inlineprivate

true if ME should be reset at end of monitoring cycle

Definition at line 292 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_RESET, and DQMNet::CoreObject::flags.

Referenced by DQMStore::reset().

293  { return data_.flags & DQMNet::DQM_PROP_RESET; }
uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_RESET
Definition: DQMNet.h:56
DQMNet::CoreObject data_
void MonitorElement::resetUpdate ( void  )
inlineprivate

reset "was updated" flag

Definition at line 288 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::flags.

Referenced by DQMStore::forceReset(), and DQMStore::reset().

289  { data_.flags &= ~DQMNet::DQM_PROP_NEW; }
Definition: DQMNet.h:22
uint32_t flags
Definition: DQMNet.h:97
DQMNet::CoreObject data_
const uint32_t MonitorElement::run ( void  ) const
inline

Definition at line 371 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::run.

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

371 {return data_.run;}
uint32_t run
Definition: DQMNet.h:100
DQMNet::CoreObject data_
void MonitorElement::runQTests ( void  )

run all quality tests

Definition at line 628 of file MonitorElement.cc.

References DQMNet::QValue::code, data_, alignCSCRings::e, QCriterion::getName(), i, DQMNet::QValue::message, QReport::qcriterion_, DQMNet::CoreObject::qreports, qreports_, DQMNet::QValue::qtname, QReport::qvalue_, QCriterion::runTest(), AlCaHLTBitMon_QueryRunRegistry::string, update(), updateQReportStats(), and wasUpdated().

Referenced by SiPixelActionExecutor::checkQTestResults(), and DQMStore::runQTests().

629 {
630  assert(qreports_.size() == data_.qreports.size());
631 
632  // Rerun quality tests where the ME or the quality algorithm was modified.
633  bool dirty = wasUpdated();
634  for (size_t i = 0, e = data_.qreports.size(); i < e; ++i)
635  {
637  QReport &qr = qreports_[i];
638  QCriterion *qc = qr.qcriterion_;
639  qr.qvalue_ = &qv;
640 
641  // if (qc && (dirty || qc->wasModified())) // removed for new QTest (abm-090503)
642  if (qc && dirty)
643  {
644  assert(qc->getName() == qv.qtname);
645  std::string oldMessage = qv.message;
646  int oldStatus = qv.code;
647 
648  qc->runTest(this, qr, qv);
649 
650  if (oldStatus != qv.code || oldMessage != qv.message)
651  update();
652  }
653  }
654 
655  // Update QReport statistics.
657 }
QCriterion * qcriterion_
Definition: QReport.h:51
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::string getName(void) const
get name of quality test
Definition: QTest.h:57
void updateQReportStats(void)
Refresh QReport stats, usually after MEs were read in from a file.
std::vector< QReport > qreports_
void update(void)
Mark the object updated.
bool wasUpdated(void) const
true if ME was updated in last monitoring cycle
std::string qtname
Definition: DQMNet.h:91
DQMNet::CoreObject data_
virtual float runTest(const MonitorElement *me)
Definition: QTest.cc:27
DQMNet::QValue * qvalue_
Definition: QReport.h:50
std::string message
Definition: DQMNet.h:90
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 297 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_ACCUMULATE, and DQMNet::CoreObject::flags.

Referenced by DQMStore::setAccumulate().

uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_ACCUMULATE
Definition: DQMNet.h:55
DQMNet::CoreObject data_
void MonitorElement::setAxisRange ( double  xmin,
double  xmax,
int  axis = 1 
)
void MonitorElement::setAxisTimeDisplay ( int  value,
int  axis = 1 
)

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

Definition at line 937 of file MonitorElement.cc.

References getAxis(), and update().

938 {
939  update();
940  getAxis(__PRETTY_FUNCTION__, axis)
941  ->SetTimeDisplay(value);
942 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
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 946 of file MonitorElement.cc.

References getAxis(), and update().

947 {
948  update();
949  getAxis(__PRETTY_FUNCTION__, axis)
950  ->SetTimeFormat(format);
951 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
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 955 of file MonitorElement.cc.

References getAxis(), and update().

956 {
957  update();
958  getAxis(__PRETTY_FUNCTION__, axis)
959  ->SetTimeOffset(toffset, option);
960 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
void MonitorElement::setAxisTitle ( const std::string &  title,
int  axis = 1 
)

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

Definition at line 928 of file MonitorElement.cc.

References getAxis(), and update().

Referenced by CSCOfflineMonitor::applyCSClabels(), DQMHOAlCaRecoStream::beginJob(), ESSummaryClient::beginJob(), HLTAlCaMonEcalPhiSym::beginJob(), EBDaqInfoTask::beginJob(), EBDcsInfoTask::beginJob(), L1EmulatorErrorFlagClient::beginJob(), EEDaqInfoTask::beginJob(), EEDataCertificationTask::beginJob(), EEDcsInfoTask::beginJob(), EBDataCertificationTask::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), DQMFEDIntegrityClient::beginJob(), L1TDTTFClient::beginJob(), BeamConditionsMonitor::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), AlcaBeamMonitor::beginJob(), DTDataIntegrityTest::beginJob(), TkAlCaRecoMonitor::beginJob(), DQMHcalDiJetsAlCaReco::beginJob(), HLTEventInfoClient::beginJob(), DTBlockedROChannelsTest::beginJob(), PFJetAnalyzer::beginJob(), VertexMonitor::beginJob(), BeamMonitor::beginJob(), BeamSpotProblemMonitor::beginJob(), TrackSplittingMonitor::beginJob(), TrackEfficiencyClient::beginJob(), TrackEfficiencyMonitor::beginJob(), L1TDTTF::beginJob(), JetAnalyzer::beginJob(), HLTAlCaMonPi0::beginJob(), DQMSourcePi0::beginJob(), SiStripFEDCheckPlugin::beginJob(), ZDCDigiStudy::beginJob(), L1TRPCTF::beginJob(), HLTMon::beginJob(), LogMessageMonitor::beginJob(), TTbarSpinCorrHepMCAnalyzer::beginJob(), ZdcSimHitStudy::beginJob(), TauValidation::beginJob(), TTbar_Kinematics::beginJob(), L1TCSCTF::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), PiZeroAnalyzer::beginJob(), RPCBxTest::beginRun(), L1TGMTClient::beginRun(), PrimaryVertexMonitor::beginRun(), DTOfflineSummaryClients::beginRun(), AlcaBeamMonitor::beginRun(), SiStripLAProfileBooker::beginRun(), TrackBuildingAnalyzer::beginRun(), BxTiming::beginRun(), DTSummaryClients::beginRun(), DQMProvInfo::beginRun(), SiStripMonitorRawData::beginRun(), SiPixelTrackResidualSource::beginRun(), EcalBarrelMonitorClient::beginRun(), TrackingMonitor::beginRun(), EcalEndcapMonitorClient::beginRun(), L1TDTTPG::beginRun(), HLTSeedL1LogicScalers::beginRun(), L1TdeCSCTF::beginRun(), L1TCompare::beginRun(), FourVectorHLTOnline::beginRun(), Vx3DHLTAnalyzer::beginRun(), FourVectorHLTOffline::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), ecaldqm::MESetEcal::book(), SiPixelHitEfficiencyModule::book(), SiPixelTrackResidualModule::book(), HLTMonBTagMuSource::book(), HLTMonBTagIPSource::book(), HLTMonBTagClient::book(), SiPixelRecHitModule::book(), SiPixelDigiModule::book(), SiPixelClusterModule::book(), JPTJetAnalyzer::book2DHistogram(), L1TGMT::book_(), DTLocalTriggerTask::bookBarrelHistos(), DTLocalTriggerBaseTest::bookCmsHistos(), DTTriggerLutTest::bookCmsHistos1d(), SiStripBaseCondObjDQM::bookCumulMEs(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), SiPixelRawDataErrorModule::bookFED(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackingQualityChecker::bookGlobalStatus(), JPTJetAnalyzer::bookHistogram(), L1TGT::bookHistograms(), L1TEventInfoClient::bookHistograms(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerBaseTask::bookHistos(), TrackAnalyzer::bookHistosForBeamSpot(), TrackAnalyzer::bookHistosForHitProperties(), TrackAnalyzer::bookHistosForLScertification(), TrackAnalyzer::bookHistosForState(), TrackAnalyzer::bookHistosForTrackerSpecific(), SiPixelHLTSource::bookMEs(), SiPixelDigiSource::bookMEs(), SiStripMonitorDigi::bookMETrend(), SiStripMonitorCluster::bookMETrend(), SiPixelInformationExtractor::bookNoisyPixels(), SiPixelActionExecutor::bookOccupancyPlots(), HLTOniaSource::bookOniaTriggerMEs(), JPTJetAnalyzer::bookProfile(), SiStripBaseCondObjDQM::bookProfileMEs(), RPCMonitorDigi::bookSectorRingME(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripBaseCondObjDQM::bookSummaryCumulMEs(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), TrigResRateMon::bookTestHisto(), CSCOfflineMonitor::bookTheHists(), TrackingCertificationInfo::bookTrackingCertificationMEs(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), DTTriggerEfficiencyTest::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTLocalTriggerTask::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), HcalTrigPrimMonitor::create_fg_correlation(), HcalTrigPrimMonitor::create_tp_correlation(), MonitorTrackResiduals::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripMonitorCluster::createSubDetMEs(), SiStripMonitorDigi::createSubDetMEs(), BTagValidator::endJob(), RPCDcsInfoClient::endRun(), DQMExample_Step2::endRun(), DQMDcsInfoClient::endRun(), RPCEfficiencySecond::endRun(), SiStripQualityDQM::fillGrandSummaryMEs(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), SiStripMonitorQuality::getQualityME(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisHistogrammer::GlobalDigisHistogrammer(), GlobalHitsAnalyzer::GlobalHitsAnalyzer(), GlobalHitsHistogrammer::GlobalHitsHistogrammer(), GlobalRecHitsAnalyzer::GlobalRecHitsAnalyzer(), GlobalRecHitsHistogrammer::GlobalRecHitsHistogrammer(), MuIsoValidation::InitHistos(), L1TScalersSCAL::L1TScalersSCAL(), rpcdqm::utils::labelXAxisSegment(), JetMETDQMOfflineClient::runClient_(), CSCMonitorObject::setAxisTitle(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTPG::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), HcalNZSMonitor::setup(), HcalZDCMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), EcalEndcapMonitorModule::setup(), EEPedestalOnlineTask::setup(), EBPedestalOnlineTask::setup(), EEPedestalTask::setup(), EECosmicTask::setup(), EBPedestalTask::setup(), EBOccupancyTask::setup(), EELaserTask::setup(), EETestPulseTask::setup(), EELedTask::setup(), EBCosmicTask::setup(), EcalBarrelMonitorModule::setup(), HcalRawDataMonitor::setup(), EBTestPulseTask::setup(), EBLaserTask::setup(), EBTimingTask::setup(), EBSummaryClient::setup(), EESummaryClient::setup(), EBTrendClient::setup(), EBClusterTask::setup(), EEClusterTask::setup(), EBSelectiveReadoutTask::setup(), EETrendClient::setup(), EBStatusFlagsTask::setup(), EEStatusFlagsTask::setup(), EBLaserClient::setup(), EELedClient::setup(), EETrendTask::setup(), EBTimingClient::setup(), EEIntegrityTask::setup(), EBIntegrityTask::setup(), EERawDataTask::setup(), EBRawDataTask::setup(), EELaserClient::setup(), EBTrendTask::setup(), EEIntegrityClient::setup(), EBTestPulseClient::setup(), EETestPulseClient::setup(), EBPedestalClient::setup(), EEPedestalClient::setup(), EEPedestalOnlineClient::setup(), EBPedestalOnlineClient::setup(), EBIntegrityClient::setup(), EEOccupancyTask::setup(), EETriggerTowerClient::setup(), EBTriggerTowerClient::setup(), EETimingTask::setup(), EETimingClient::setup(), HcalDigiMonitor::setup(), EESelectiveReadoutTask::setup(), EETriggerTowerTask::setup(), EBTriggerTowerTask::setup(), HcalBaseMonitor::setupDepthHists1D(), HcalBaseMonitor::setupDepthHists2D(), HcalBaseMonitor::SetupEtaPhiHists(), HLXMonitor::SetupHists(), FourVectorHLTOnline::setupHltBxPlots(), TrigResRateMon::setupHltBxPlots(), FourVectorHLTOffline::setupHltBxPlots(), FourVectorHLTOnline::setupHltLsPlots(), TrigResRateMon::setupHltLsPlots(), FourVectorHLTOffline::setupHltLsPlots(), FourVectorHLTOnline::setupHltMatrix(), FourVectorHLTOffline::setupHltMatrix(), L1TDTTF::setWheelLabel(), and L1TDTTFClient::setWheelLabel().

929 {
930  update();
931  getAxis(__PRETTY_FUNCTION__, axis)
932  ->SetTitle(title.c_str());
933 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
void MonitorElement::setBinContent ( int  binx,
double  content 
)

set content of bin (1-D)

Definition at line 825 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by HcalDigiClient::analyze(), HcalSummaryClient::analyze(), ESSummaryClient::analyze(), HCALRecHitAnalyzer::analyze(), ESIntegrityClient::analyze(), HLTMonBitSummary::analyze(), EBSelectiveReadoutTask::analyze(), EBSummaryClient::analyze(), EESummaryClient::analyze(), BxTiming::analyze(), EBLaserClient::analyze(), EELaserClient::analyze(), EELedClient::analyze(), EBTimingClient::analyze(), EBPedestalOnlineClient::analyze(), EBPedestalClient::analyze(), EEIntegrityClient::analyze(), EBTestPulseClient::analyze(), EEPedestalClient::analyze(), EEPedestalOnlineClient::analyze(), EBIntegrityClient::analyze(), EETestPulseClient::analyze(), EBTriggerTowerClient::analyze(), HLTJetMETDQMSource::analyze(), EETriggerTowerClient::analyze(), L1TScalersSCAL::analyze(), EETimingClient::analyze(), SiPixelDigiSource::analyze(), SiPixelRawDataErrorSource::analyze(), EESelectiveReadoutTask::analyze(), HLTScalers::analyze(), ESSummaryClient::beginJob(), BeamMonitor::beginJob(), EBRawDataTask::beginLuminosityBlock(), EERawDataTask::beginLuminosityBlock(), HcalSummaryClient::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), RPCEventSummary::beginRun(), DQMProvInfo::beginRun(), EcalEndcapMonitorClient::beginRun(), EcalBarrelMonitorClient::beginRun(), SiPixelDataQuality::bookGlobalQualityFlag(), HCALRecHitAnalyzer::BookHistos(), ECALRecHitAnalyzer::BookHistos(), SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), L1TDTTFClient::buildHighQualityPlot(), L1TDTTFClient::buildPhiEtaPlotO(), L1TDTTFClient::buildPhiEtaPlotOFC(), L1TDTTFClient::buildSummaries(), EcalMixingModuleValidation::bunchSumTest(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), HcalDataCertification::CertifyHcal(), HcalDetDiagTimingMonitor::CheckTiming(), RPCDeadChannelTest::clientOperation(), RPCEventSummary::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HLTMonSimpleBTag::doEffCalc(), BTagValidator::endJob(), DQMHcalPhiSymAlCaReco::endJob(), HcalSimHitsValidation::endJob(), MuonAlignment::endJob(), HcalZDCMonitor::endLuminosityBlock(), RPCDcsInfo::endLuminosityBlock(), HcalDeadCellMonitor::endLuminosityBlock(), DQMDcsInfo::endLuminosityBlock(), EEDataCertificationTask::endLuminosityBlock(), EBDataCertificationTask::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), HcalRawDataMonitor::endLuminosityBlock(), L1EmulatorErrorFlagClient::endLuminosityBlock(), EBRawDataTask::endLuminosityBlock(), EERawDataTask::endLuminosityBlock(), HcalLSbyLSMonitor::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), HcalDAQInfo::endLuminosityBlock(), HcalDCSInfo::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), RPCDcsInfoClient::endRun(), DQMExample_Step2::endRun(), DQMDcsInfoClient::endRun(), DQMHcalPhiSymAlCaReco::endRun(), RPCEfficiencyPerRingLayer::endRun(), RPCEfficiencyShiftHisto::endRun(), EEDataCertificationTask::endRun(), EBDataCertificationTask::endRun(), MuonAlignmentSummary::endRun(), EcalEndcapMonitorClient::endRun(), EcalBarrelMonitorClient::endRun(), RPCEfficiencySecond::endRun(), HcalDigisValidation::eval_occupancy(), HcalRecHitMonitor::fill_Nevents(), SiPixelActionExecutor::fillDeviations(), QcdLowPtDQM::filldNdeta(), SiPixelActionExecutor::fillEfficiency(), SiPixelActionExecutor::fillFEDErrorSummary(), HCALRecHitAnalyzer::FillGeometry(), ECALRecHitAnalyzer::FillGeometry(), RPCNoisyStripTest::fillGlobalME(), RPCOccupancyTest::fillGlobalME(), RPCMultiplicityTest::fillGlobalME(), SiPixelDataQuality::fillGlobalQualityPlot(), DQMFEDIntegrityClient::fillHistograms(), HLXMonitor::FillHistograms(), SiStripSummaryCreator::fillHistos(), HcalDetDiagLaserMonitor::fillHistos(), RPCChamberQuality::fillMonitorElements(), EBDaqInfoTask::fillMonitorElements(), EBDcsInfoTask::fillMonitorElements(), EEDcsInfoTask::fillMonitorElements(), EEDaqInfoTask::fillMonitorElements(), SiPixelActionExecutor::fillOccupancy(), MTVHistoProducerAlgo::fillPlotFromVector(), MuonTrackValidatorBase::fillPlotFromVector(), MTVHistoProducerAlgo::fillPlotFromVectors(), MuonTrackValidatorBase::fillPlotFromVectors(), HcalSummaryClient::fillReportSummary(), HLXMonitor::FillReportSummary(), HcalSummaryClient::fillReportSummaryLSbyLS(), FillUnphysicalHEHFBins(), DTLocalTriggerLutTest::fillWhPlot(), DTTriggerLutTest::fillWhPlot(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), BeamMonitor::FitAndFill(), DQMGenericClient::generic_eff(), FitSlicesYTool::getFittedMean(), FitSlicesYTool::getFittedMeanWithError(), FitSlicesYTool::getFittedSigma(), FitSlicesYTool::getFittedSigmaWithError(), CSCOfflineMonitor::harvestChamberMeans(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalBaseMonitor::hideKnownBadCells(), CSCOfflineMonitor::histoEfficiency(), DQMGenericClient::limitedFit(), L1TGCTClient::makeXProjection(), L1TGCTClient::makeYProjection(), DTTimeEvolutionHisto::normalizeTo(), HcalTrigPrimMonitor::processEvent(), HcalNZSMonitor::processEvent(), L1TdeRCT::readFEDVector(), L1TEventInfoClient::readQtResults(), EgHLTOfflineSummaryClient::runClient_(), DTLocalTriggerEfficiencyTest::runClientDiagnostic(), HcalDigisClient::scaleMETH2D(), CSCMonitorObject::SetBinContent(), ecaldqm::MESet::setBinContent_(), L1TDTTFClient::setGMTsummary(), HcalSubdetDigiMonitor::setMeElementBinContent(), DTTimeEvolutionHisto::setTimeSlotValue(), EBLaserClient::setup(), EELaserClient::setup(), EELedClient::setup(), EBTimingClient::setup(), EBPedestalClient::setup(), EBIntegrityClient::setup(), EEPedestalOnlineClient::setup(), EEIntegrityClient::setup(), EEPedestalClient::setup(), EBTestPulseClient::setup(), EETestPulseClient::setup(), EBPedestalOnlineClient::setup(), EETimingClient::setup(), HcalDetDiagTimingMonitor::setup(), HLXMonitor::SetupEventInfo(), ecaldqm::MESetTrend::shift_(), ShiftFillLast(), HcalSimHitsClient::SimHitsEndjob(), HcalEEUSMonitor::unpack(), HcalRawDataMonitor::UpdateMEs(), and ECALRecHitAnalyzer::WriteECALRecHits().

826 {
827  update();
828  accessRootObject(__PRETTY_FUNCTION__, 1)
829  ->SetBinContent(binx, content);
830 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinContent ( int  binx,
int  biny,
double  content 
)

set content of bin (2-D)

Definition at line 834 of file MonitorElement.cc.

References accessRootObject(), and update().

835 {
836  update();
837  accessRootObject(__PRETTY_FUNCTION__, 2)
838  ->SetBinContent(binx, biny, content); }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinContent ( int  binx,
int  biny,
int  binz,
double  content 
)

set content of bin (3-D)

Definition at line 842 of file MonitorElement.cc.

References accessRootObject(), and update().

843 {
844  update();
845  accessRootObject(__PRETTY_FUNCTION__, 3)
846  ->SetBinContent(binx, biny, binz, content); }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinEntries ( int  bin,
double  nentries 
)

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

Definition at line 877 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TPROFILE, DQM_KIND_TPROFILE2D, incompatible(), kind(), and update().

Referenced by PFClient::createProfilePlots(), HltSusyExoPostProcessor::endRun(), ecaldqm::MESet::setBinEntries_(), and ecaldqm::MESetTrend::shift_().

878 {
879  update();
880  if (kind() == DQM_KIND_TPROFILE)
881  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
882  ->SetBinEntries(bin, nentries);
883  else if (kind() == DQM_KIND_TPROFILE2D)
884  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
885  ->SetBinEntries(bin, nentries);
886  else
887  incompatible(__PRETTY_FUNCTION__);
888 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::setBinError ( int  binx,
double  error 
)

set uncertainty on content of bin (1-D)

Definition at line 850 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by HLTMonBitSummary::analyze(), EBSelectiveReadoutTask::analyze(), EBStatusFlagsClient::analyze(), EELaserClient::analyze(), EELedClient::analyze(), EEStatusFlagsClient::analyze(), EBLaserClient::analyze(), EBTimingClient::analyze(), EBTestPulseClient::analyze(), EETestPulseClient::analyze(), HLTJetMETDQMSource::analyze(), EETimingClient::analyze(), EESelectiveReadoutTask::analyze(), SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), EcalMixingModuleValidation::bunchSumTest(), SiPixelHitEfficiencyModule::computeEfficiencies(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), PFClient_JetRes::createResolutionPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HLTMonSimpleBTag::doEffCalc(), BTagValidator::endJob(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), RPCEfficiencyPerRingLayer::endRun(), RPCEfficiencySecond::endRun(), QcdLowPtDQM::filldNdeta(), HLXMonitor::FillHistograms(), HcalDetDiagLaserMonitor::fillHistos(), MTVHistoProducerAlgo::fillPlotFromVectors(), MuonTrackValidatorBase::fillPlotFromVectors(), DQMGenericClient::generic_eff(), CSCOfflineMonitor::histoEfficiency(), DQMGenericClient::limitedFit(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), and ShiftFillLast().

851 {
852  update();
853  accessRootObject(__PRETTY_FUNCTION__, 1)
854  ->SetBinError(binx, error);
855 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinError ( int  binx,
int  biny,
double  error 
)

set uncertainty on content of bin (2-D)

Definition at line 859 of file MonitorElement.cc.

References accessRootObject(), and update().

860 {
861  update();
862  accessRootObject(__PRETTY_FUNCTION__, 2)
863  ->SetBinError(binx, biny, error);
864 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinError ( int  binx,
int  biny,
int  binz,
double  error 
)

set uncertainty on content of bin (3-D)

Definition at line 868 of file MonitorElement.cc.

References accessRootObject(), and update().

869 {
870  update();
871  accessRootObject(__PRETTY_FUNCTION__, 3)
872  ->SetBinError(binx, biny, binz, error);
873 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinLabel ( int  bin,
const std::string &  label,
int  axis = 1 
)

set bin label for x, y or z axis (axis=1, 2, 3 respectively)

Definition at line 901 of file MonitorElement.cc.

References gather_cfg::cout, getAxis(), and update().

Referenced by BeamMonitor::analyze(), TriggerValidator::analyze(), CSCOfflineMonitor::applyCSClabels(), L1EmulatorErrorFlagClient::beginJob(), RPCDaqInfo::beginJob(), DQMFEDIntegrityClient::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), L1TDTTFClient::beginJob(), MonitorLTC::beginJob(), HLTMonPhotonClient::beginJob(), HLTMonPhotonSource::beginJob(), L1TDEMON::beginJob(), BasicHepMCValidation::beginJob(), HiggsValidation::beginJob(), PFJetAnalyzer::beginJob(), HTMHTAnalyzer::beginJob(), BeamMonitor::beginJob(), JetPtAnalyzer::beginJob(), MuCorrMETAnalyzer::beginJob(), TcMETAnalyzer::beginJob(), L1TDTTF::beginJob(), LaserAlignmentT0ProducerDQM::beginJob(), JetAnalyzer::beginJob(), HcalDataCertification::beginJob(), TopDiLeptonDQM::beginJob(), HcalDCSInfo::beginJob(), L1TRPCTF::beginJob(), HcalDAQInfo::beginJob(), HLTMon::beginJob(), PFMETAnalyzer::beginJob(), LogMessageMonitor::beginJob(), CaloMETAnalyzer::beginJob(), METAnalyzer::beginJob(), TauValidation::beginJob(), L1TCSCTF::beginJob(), EmDQMReco::beginJob(), RPCChamberQuality::beginRun(), TrackingTruthValid::beginRun(), HLTTauDQMPathSummaryPlotter::beginRun(), HcalSummaryClient::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), RPCEventSummary::beginRun(), HLTTauDQMPathPlotter::beginRun(), DTnoiseDBValidation::beginRun(), RPCEfficiencyShiftHisto::beginRun(), DQMProvInfo::beginRun(), HLTJetMETDQMSource::beginRun(), SiPixelTrackResidualSource::beginRun(), L1TDTTPG::beginRun(), BTagHLTOfflineSource::beginRun(), L1TdeCSCTF::beginRun(), JetMETHLTOfflineSource::beginRun(), EmDQM::beginRun(), FourVectorHLTOnline::beginRun(), RPCEfficiency::beginRun(), L1GtHwValidation::beginRun(), FourVectorHLTOffline::beginRun(), HcalDetDiagLaserMonitor::beginRun(), ecaldqm::MESetEcal::book(), L1TGMT::book_(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), HltSusyExoPostProcessor::bookEffMEProfileFromTH1(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackingQualityChecker::bookGlobalStatus(), L1TGT::bookHistograms(), EwkElecTauHistManager::bookHistograms(), L1GtHwValidation::bookHistograms(), L1TEventInfoClient::bookHistograms(), EwkMuTauHistManager::bookHistograms(), DTt0DBValidation::bookHistos(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerBaseTest::bookSectorHistos(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), CSCOfflineMonitor::bookTheHists(), TrackingCertificationInfo::bookTrackingCertificationMEs(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), RPCMonitorDigi::bookWheelDiskME(), DTTriggerEfficiencyTest::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), HcalTrigPrimMonitor::create_errorflag(), QcdUeDQM::createHistos(), QcdLowPtDQM::createHistos(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), MuonAlignment::endJob(), L1ScalersClient::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), DataCertificationJetMET::endRun(), RPCEfficiencyPerRingLayer::endRun(), MuonAlignmentSummary::endRun(), RPCEfficiencySecond::endRun(), SiPixelActionExecutor::fillFEDErrorSummary(), HLTScalersClient::HLTScalersClient(), L1ScalersClient::L1ScalersClient(), HcalRawDataMonitor::label_xChanns(), HcalRawDataMonitor::label_xFEDs(), HcalRawDataMonitor::label_ySpigots(), RPCFEDIntegrity::labelBins(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), rpcdqm::utils::labelYAxisRing(), rpcdqm::utils::labelYAxisRoll(), METTester::METTester(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), SetEtaPhiLabels(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTPG::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalNZSMonitor::setup(), HcalRecHitMonitor::setup(), HcalZDCMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), HcalDeadCellMonitor::setup(), HcalEEUSMonitor::setup(), EcalEndcapMonitorModule::setup(), HcalRawDataMonitor::setup(), EcalBarrelMonitorModule::setup(), EBSummaryClient::setup(), EESummaryClient::setup(), EBSelectiveReadoutTask::setup(), EBStatusFlagsTask::setup(), EEStatusFlagsTask::setup(), EBRawDataTask::setup(), EERawDataTask::setup(), EBIntegrityTask::setup(), EEIntegrityTask::setup(), HcalMonitorModule::setup(), HcalDigiMonitor::setup(), EESelectiveReadoutTask::setup(), HcalDetDiagTimingMonitor::setup(), FourVectorHLTOnline::setupHltLsPlots(), TrigResRateMon::setupHltLsPlots(), HcalDigiMonitor::setupSubdetHists(), L1TDTTF::setWheelLabel(), L1TDTTFClient::setWheelLabel(), ShiftFillLast(), and DTTimeEvolutionHisto::updateTimeSlot().

902 {
903  update();
904  if ( getAxis(__PRETTY_FUNCTION__, axis)->GetNbins() >= bin )
905  {
906  getAxis(__PRETTY_FUNCTION__, axis)
907  ->SetBinLabel(bin, label.c_str());
908  }
909  else
910  {
911  // edm::LogWarning ("MonitorElement")
912  std::cout << "*** MonitorElement: WARNING:"
913  <<"setBinLabel: attempting to set label of non-existent bin number \n";
914  }
915 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
tuple cout
Definition: gather_cfg.py:121
void MonitorElement::setEfficiencyFlag ( void  )
inline
void MonitorElement::setEntries ( double  nentries)
void MonitorElement::setLumi ( uint32_t  ls)
inlineprivate
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 137 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_RESET, and DQMNet::CoreObject::flags.

Referenced by AcceptanceHistoProducer::beginJob(), LaserDQM::initMonitors(), EcalEndcapMonitorModule::setup(), EcalBarrelMonitorModule::setup(), and HLXMonitor::SetupHists().

uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_RESET
Definition: DQMNet.h:56
DQMNet::CoreObject data_
void MonitorElement::setTitle ( const std::string &  title)
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 320 of file MonitorElement.cc.

References a, b, DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, python.tagInventory::entries, getBinContent(), getBinError(), getEntries(), getNbinsX(), i, incompatible(), getHLTprescales::index, kind(), timingPdfMaker::mean, N, pileupCalc::nbins, alignCSCRings::s, setBinContent(), setBinError(), setBinLabel(), setEntries(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, and update().

Referenced by BeamConditionsMonitor::endLuminosityBlock(), and BeamMonitor::FitAndFill().

321 {
322  update();
323  if (kind() == DQM_KIND_TH1F
324  || kind() == DQM_KIND_TH1S
325  || kind() == DQM_KIND_TH1D)
326  {
327  int nbins = getNbinsX();
328  int entries = (int)getEntries();
329  // first fill bins from left to right
330  int index = entries + 1 ;
331  int xlow = 2 ; int xup = nbins ;
332  // if more entries than bins then start shifting
333  if ( entries >= nbins )
334  {
335  index = nbins;
336  xlow = entries - nbins + 3 ; xup = entries+1 ;
337  // average first bin
338  double y1 = getBinContent(1);
339  double y2 = getBinContent(2);
340  double y1err = getBinError(1);
341  double y2err = getBinError(2);
342  double N = entries - nbins + 1.;
343  if ( ye == 0. || y1err == 0. || y2err == 0.)
344  {
345  // for errors zero calculate unweighted mean and its error
346  double sum = N*y1 + y2;
347  y1 = sum/(N+1.) ;
348  // FIXME check if correct
349  double s=(N+1.)*(N*y1*y1 + y2*y2) - sum*sum;
350  if (s>=0.)
351  y1err = sqrt(s)/(N+1.);
352  else
353  y1err = 0.;
354  }
355  else
356  {
357  // for errors non-zero calculate weighted mean and its error
358  double denom = (1./y1err + 1./y2err);
359  double mean = (y1/y1err + y2/y2err)/denom;
360  // FIXME check if correct
361  y1err = sqrt(((y1-mean)*(y1-mean)/y1err +
362  (y2-mean)*(y2-mean)/y2err)/denom/2.);
363  y1 = mean; // set y1 to mean for filling below
364  }
365  setBinContent(1,y1);
366  setBinError(1,y1err);
367  // shift remaining bins to the left
368  for ( int i = 3; i <= nbins ; i++)
369  {
372  }
373  }
374  // fill last bin with new values
375  setBinContent(index,y);
376  setBinError(index,ye);
377  // set entries
378  setEntries(entries+1);
379  // set axis labels and reset drawing option
380  char buffer [10];
381  sprintf (buffer, "%d", xlow*xscale);
382  std::string a(buffer); setBinLabel(2,a);
383  sprintf (buffer, "%d", xup*xscale);
384  std::string b(buffer); setBinLabel(nbins,b);
385  setBinLabel(1,"av.");
386  }
387  else
388  incompatible(__PRETTY_FUNCTION__);
389 }
int i
Definition: DBlmapReader.cc:9
void incompatible(const char *func) const
void setBinContent(int binx, double content)
set content of bin (1-D)
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)
void update(void)
Mark the object updated.
double getEntries(void) const
get # of entries
T sqrt(T t)
Definition: SSEVec.h:48
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
Kind kind(void) const
Get the type of the monitor element.
void setEntries(double nentries)
set # of entries
#define N
Definition: blowfish.cc:9
double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
double b
Definition: hdecay.h:120
double getBinContent(int binx) const
get content of bin (1-D)
double a
Definition: hdecay.h:121
int getNbinsX(void) const
get # of bins in X-axis
void MonitorElement::softReset ( void  )
private

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

Definition at line 996 of file MonitorElement.cc.

References addProfiles(), DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, DQM_KIND_TH2D, DQM_KIND_TH2F, DQM_KIND_TH2S, DQM_KIND_TH3F, DQM_KIND_TPROFILE, DQM_KIND_TPROFILE2D, incompatible(), kind(), object_, alignCSCRings::r, refvalue_, AlCaHLTBitMon_QueryRunRegistry::string, and update().

Referenced by DQMStore::softReset().

997 {
998  update();
999 
1000  // Create the reference object the first time this is called.
1001  // On subsequent calls accumulate the current value to the
1002  // reference, and then reset the current value. This way the
1003  // future contents will have the reference "subtracted".
1004  if (kind() == DQM_KIND_TH1F)
1005  {
1006  TH1F *orig = static_cast<TH1F *>(object_);
1007  TH1F *r = static_cast<TH1F *>(refvalue_);
1008  if (! r)
1009  {
1010  refvalue_ = r = new TH1F((std::string(orig->GetName()) + "_ref").c_str(),
1011  orig->GetTitle(),
1012  orig->GetNbinsX(),
1013  orig->GetXaxis()->GetXmin(),
1014  orig->GetXaxis()->GetXmax());
1015  r->SetDirectory(0);
1016  r->Reset();
1017  }
1018 
1019  r->Add(orig);
1020  orig->Reset();
1021  }
1022  else if (kind() == DQM_KIND_TH1S)
1023  {
1024  TH1S *orig = static_cast<TH1S *>(object_);
1025  TH1S *r = static_cast<TH1S *>(refvalue_);
1026  if (! r)
1027  {
1028  refvalue_ = r = new TH1S((std::string(orig->GetName()) + "_ref").c_str(),
1029  orig->GetTitle(),
1030  orig->GetNbinsX(),
1031  orig->GetXaxis()->GetXmin(),
1032  orig->GetXaxis()->GetXmax());
1033  r->SetDirectory(0);
1034  r->Reset();
1035  }
1036 
1037  r->Add(orig);
1038  orig->Reset();
1039  }
1040  else if (kind() == DQM_KIND_TH1D)
1041  {
1042  TH1D *orig = static_cast<TH1D *>(object_);
1043  TH1D *r = static_cast<TH1D *>(refvalue_);
1044  if (! r)
1045  {
1046  refvalue_ = r = new TH1D((std::string(orig->GetName()) + "_ref").c_str(),
1047  orig->GetTitle(),
1048  orig->GetNbinsX(),
1049  orig->GetXaxis()->GetXmin(),
1050  orig->GetXaxis()->GetXmax());
1051  r->SetDirectory(0);
1052  r->Reset();
1053  }
1054 
1055  r->Add(orig);
1056  orig->Reset();
1057  }
1058  else if (kind() == DQM_KIND_TH2F)
1059  {
1060  TH2F *orig = static_cast<TH2F *>(object_);
1061  TH2F *r = static_cast<TH2F *>(refvalue_);
1062  if (! r)
1063  {
1064  refvalue_ = r = new TH2F((std::string(orig->GetName()) + "_ref").c_str(),
1065  orig->GetTitle(),
1066  orig->GetNbinsX(),
1067  orig->GetXaxis()->GetXmin(),
1068  orig->GetXaxis()->GetXmax(),
1069  orig->GetNbinsY(),
1070  orig->GetYaxis()->GetXmin(),
1071  orig->GetYaxis()->GetXmax());
1072  r->SetDirectory(0);
1073  r->Reset();
1074  }
1075 
1076  r->Add(orig);
1077  orig->Reset();
1078  }
1079  else if (kind() == DQM_KIND_TH2S)
1080  {
1081  TH2S *orig = static_cast<TH2S *>(object_);
1082  TH2S *r = static_cast<TH2S *>(refvalue_);
1083  if (! r)
1084  {
1085  refvalue_ = r = new TH2S((std::string(orig->GetName()) + "_ref").c_str(),
1086  orig->GetTitle(),
1087  orig->GetNbinsX(),
1088  orig->GetXaxis()->GetXmin(),
1089  orig->GetXaxis()->GetXmax(),
1090  orig->GetNbinsY(),
1091  orig->GetYaxis()->GetXmin(),
1092  orig->GetYaxis()->GetXmax());
1093  r->SetDirectory(0);
1094  r->Reset();
1095  }
1096 
1097  r->Add(orig);
1098  orig->Reset();
1099  }
1100  else if (kind() == DQM_KIND_TH2D)
1101  {
1102  TH2D *orig = static_cast<TH2D *>(object_);
1103  TH2D *r = static_cast<TH2D *>(refvalue_);
1104  if (! r)
1105  {
1106  refvalue_ = r = new TH2D((std::string(orig->GetName()) + "_ref").c_str(),
1107  orig->GetTitle(),
1108  orig->GetNbinsX(),
1109  orig->GetXaxis()->GetXmin(),
1110  orig->GetXaxis()->GetXmax(),
1111  orig->GetNbinsY(),
1112  orig->GetYaxis()->GetXmin(),
1113  orig->GetYaxis()->GetXmax());
1114  r->SetDirectory(0);
1115  r->Reset();
1116  }
1117 
1118  r->Add(orig);
1119  orig->Reset();
1120  }
1121  else if (kind() == DQM_KIND_TH3F)
1122  {
1123  TH3F *orig = static_cast<TH3F *>(object_);
1124  TH3F *r = static_cast<TH3F *>(refvalue_);
1125  if (! r)
1126  {
1127  refvalue_ = r = new TH3F((std::string(orig->GetName()) + "_ref").c_str(),
1128  orig->GetTitle(),
1129  orig->GetNbinsX(),
1130  orig->GetXaxis()->GetXmin(),
1131  orig->GetXaxis()->GetXmax(),
1132  orig->GetNbinsY(),
1133  orig->GetYaxis()->GetXmin(),
1134  orig->GetYaxis()->GetXmax(),
1135  orig->GetNbinsZ(),
1136  orig->GetZaxis()->GetXmin(),
1137  orig->GetZaxis()->GetXmax());
1138  r->SetDirectory(0);
1139  r->Reset();
1140  }
1141 
1142  r->Add(orig);
1143  orig->Reset();
1144  }
1145  else if (kind() == DQM_KIND_TPROFILE)
1146  {
1147  TProfile *orig = static_cast<TProfile *>(object_);
1148  TProfile *r = static_cast<TProfile *>(refvalue_);
1149  if (! r)
1150  {
1151  refvalue_ = r = new TProfile((std::string(orig->GetName()) + "_ref").c_str(),
1152  orig->GetTitle(),
1153  orig->GetNbinsX(),
1154  orig->GetXaxis()->GetXmin(),
1155  orig->GetXaxis()->GetXmax(),
1156  orig->GetYaxis()->GetXmin(),
1157  orig->GetYaxis()->GetXmax(),
1158  orig->GetErrorOption());
1159  r->SetDirectory(0);
1160  r->Reset();
1161  }
1162 
1163  addProfiles(r, orig, r, 1, 1);
1164  orig->Reset();
1165  }
1166  else if (kind() == DQM_KIND_TPROFILE2D)
1167  {
1168  TProfile2D *orig = static_cast<TProfile2D *>(object_);
1169  TProfile2D *r = static_cast<TProfile2D *>(refvalue_);
1170  if (! r)
1171  {
1172  refvalue_ = r = new TProfile2D((std::string(orig->GetName()) + "_ref").c_str(),
1173  orig->GetTitle(),
1174  orig->GetNbinsX(),
1175  orig->GetXaxis()->GetXmin(),
1176  orig->GetXaxis()->GetXmax(),
1177  orig->GetNbinsY(),
1178  orig->GetYaxis()->GetXmin(),
1179  orig->GetYaxis()->GetXmax(),
1180  orig->GetZaxis()->GetXmin(),
1181  orig->GetZaxis()->GetXmax(),
1182  orig->GetErrorOption());
1183  r->SetDirectory(0);
1184  r->Reset();
1185  }
1186 
1187  addProfiles(r, orig, r, 1, 1);
1188  orig->Reset();
1189  }
1190  else
1191  incompatible(__PRETTY_FUNCTION__);
1192 }
void incompatible(const char *func) const
void update(void)
Mark the object updated.
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind(void) const
Get the type of the monitor element.
const uint32_t MonitorElement::streamId ( void  ) const
inline

Definition at line 373 of file MonitorElement.h.

References data_, and DQMNet::CoreObject::streamId.

Referenced by MonitorElement().

373 {return data_.streamId;}
DQMNet::CoreObject data_
uint32_t streamId
Definition: DQMNet.h:102
std::string MonitorElement::tagLabelString ( void  ) const

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

Definition at line 515 of file MonitorElement.cc.

References data_, DQMNet::CoreObject::objname, query::result, AlCaHLTBitMon_QueryRunRegistry::string, and DQMNet::CoreObject::tag.

516 {
517  char buf[32];
519  size_t len = sprintf(buf, "t=%" PRIu32, data_.tag);
520 
521  result.reserve(6 + 2*data_.objname.size() + len);
522  result += '<'; result += data_.objname; result += '>';
523  result += buf;
524  result += '<'; result += '/'; result += data_.objname; result += '>';
525  return result;
526 }
uint32_t tag
Definition: DQMNet.h:98
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
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 502 of file MonitorElement.cc.

References data_, DQMNet::CoreObject::objname, query::result, AlCaHLTBitMon_QueryRunRegistry::string, and valueString().

503 {
505  std::string val(valueString());
506  result.reserve(6 + 2*data_.objname.size() + val.size());
507  result += '<'; result += data_.objname; result += '>';
508  result += val;
509  result += '<'; result += '/'; result += data_.objname; result += '>';
510  return result;
511 }
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:105
std::string valueString(void) const
DQMNet::CoreObject data_
void MonitorElement::update ( void  )
inline

Mark the object updated.

Definition at line 132 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_NEW, and DQMNet::CoreObject::flags.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), addQReport(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), copyFunctions(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), doFill(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), Fill(), progressbar.ProgressBar::finish(), BeamMonitor::FitAndFill(), getRefRootObject(), getRefTH1(), getRefTH1D(), getRefTH1F(), getRefTH1S(), getRefTH2D(), getRefTH2F(), getRefTH2S(), getRefTH3F(), getRefTProfile(), getRefTProfile2D(), getRootObject(), getTH1(), getTH1D(), getTH1F(), getTH1S(), getTH2D(), getTH2F(), getTH2S(), getTH3F(), getTProfile(), getTProfile2D(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), HcalDeadCellMonitor::processEvent(), HcalRawDataMonitor::processEvent(), HcalDigiMonitor::processEvent(), HcalRecHitMonitor::processEvent_rechit(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Reset(), Vispa.Gui.FindDialog.FindDialog::reset(), runQTests(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), setAxisRange(), setAxisTimeDisplay(), setAxisTimeFormat(), setAxisTimeOffset(), setAxisTitle(), setBinContent(), setBinEntries(), setBinError(), setBinLabel(), setEntries(), Vispa.Gui.VispaWidget.VispaWidget::setText(), setTitle(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), ShiftFillLast(), softReset(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and HcalDigiMonitor::UpdateHists().

uint32_t flags
Definition: DQMNet.h:97
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:58
void MonitorElement::updateQReportStats ( void  )
private

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

Definition at line 1462 of file MonitorElement.cc.

References data_, DQMNet::DQM_PROP_REPORT_ERROR, DQMNet::DQM_PROP_REPORT_OTHER, DQMNet::DQM_PROP_REPORT_WARN, alignCSCRings::e, dqm::qstatus::ERROR, DQMNet::CoreObject::flags, i, DQMNet::CoreObject::qreports, dqm::qstatus::STATUS_OK, and dqm::qstatus::WARNING.

Referenced by runQTests().

1463 {
1464  data_.flags &= ~DQMNet::DQM_PROP_REPORT_ALARM;
1465  for (size_t i = 0, e = data_.qreports.size(); i < e; ++i)
1466  switch (data_.qreports[i].code)
1467  {
1469  break;
1470  case dqm::qstatus::WARNING:
1472  break;
1473  case dqm::qstatus::ERROR:
1475  break;
1476  default:
1478  break;
1479  }
1480 }
static const uint32_t DQM_PROP_REPORT_WARN
Definition: DQMNet.h:47
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
Definition: DQMNet.h:22
uint32_t flags
Definition: DQMNet.h:97
static const int WARNING
static const uint32_t DQM_PROP_REPORT_ERROR
Definition: DQMNet.h:46
static const uint32_t DQM_PROP_REPORT_OTHER
Definition: DQMNet.h:48
DQMNet::CoreObject data_
static const int STATUS_OK
static const int ERROR
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 483 of file MonitorElement.cc.

References DQM_KIND_INT, DQM_KIND_REAL, DQM_KIND_STRING, incompatible(), kind(), packScalarData(), query::result, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by EcalBarrelMonitorClient::analyze(), EcalEndcapMonitorClient::analyze(), TrackingUtility::getMEValue(), SiStripUtility::getMEValue(), HcalDetDiagLEDClient::htmlOutput(), HcalDetDiagPedestalClient::htmlOutput(), tagString(), HcalDetDiagLaserClient::validHtmlOutput(), HcalDetDiagLEDClient::validHtmlOutput(), and HcalDetDiagPedestalClient::validHtmlOutput().

484 {
486  if (kind() == DQM_KIND_INT)
487  packScalarData(result, "i=");
488  else if (kind() == DQM_KIND_REAL)
489  packScalarData(result, "f=");
490  else if (kind() == DQM_KIND_STRING)
491  packScalarData(result, "s=");
492  else
493  incompatible(__PRETTY_FUNCTION__);
494 
495  return result;
496 }
void incompatible(const char *func) const
void packScalarData(std::string &into, const char *prefix) const
convert scalar data into a string.
tuple result
Definition: query.py:137
Kind kind(void) const
Get the type of the monitor element.
bool MonitorElement::wasUpdated ( void  ) const
inline

true if ME was updated in last monitoring cycle

Definition at line 128 of file MonitorElement.h.

References data_, DQMNet::DQM_PROP_NEW, and DQMNet::CoreObject::flags.

Referenced by DQMService::flushStandalone(), and runQTests().

129  { return data_.flags & DQMNet::DQM_PROP_NEW; }
uint32_t flags
Definition: DQMNet.h:97
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:58

Friends And Related Function Documentation

friend class DQMService
friend

Definition at line 37 of file MonitorElement.h.

friend class DQMStore
friend

Definition at line 36 of file MonitorElement.h.

Member Data Documentation

DQMNet::CoreObject MonitorElement::data_
private
TH1* MonitorElement::object_
private
std::vector<QReport> MonitorElement::qreports_
private
TH1* MonitorElement::reference_
private
TH1* MonitorElement::refvalue_
private
Scalar MonitorElement::scalar_
private