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...
 
 MonitorElement (void)
 
 MonitorElement (const std::string *path, const std::string &name)
 
 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...
 
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)
 
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 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 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  )
MonitorElement::MonitorElement ( const std::string *  path,
const std::string &  name 
)

Definition at line 159 of file MonitorElement.cc.

References data_, DQMNet::CoreObject::dirname, DQM_KIND_INVALID, DQMNet::DQM_PROP_NEW, DQMNet::CoreObject::flags, mergeVDriftHistosByStation::name, MonitorElement::Scalar::num, DQMNet::CoreObject::objname, scaleCards::path, MonitorElement::Scalar::real, scalar_, DQMNet::CoreObject::tag, and DQMNet::CoreObject::version.

160  : object_(0),
161  reference_(0),
162  refvalue_(0)
163 {
164  data_.version = 0;
165  data_.dirname = path;
166  data_.objname = name;
167  data_.tag = 0;
169  scalar_.num = 0;
170  scalar_.real = 0;
171 }
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:100
list path
Definition: scaleCards.py:51
std::string objname
Definition: DQMNet.h:101
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:58
MonitorElement::MonitorElement ( const MonitorElement x)

Definition at line 173 of file MonitorElement.cc.

References object_, and refvalue_.

174  : data_(x.data_),
175  scalar_(x.scalar_),
176  object_(x.object_),
178  refvalue_(x.refvalue_),
180 {
181  if (object_)
182  object_ = static_cast<TH1 *>(object_->Clone());
183 
184  if (refvalue_)
185  refvalue_ = static_cast<TH1 *>(refvalue_->Clone());
186 }
std::vector< QReport > qreports_
DQMNet::CoreObject data_
MonitorElement::~MonitorElement ( void  )

Definition at line 213 of file MonitorElement.cc.

References object_, and refvalue_.

214 {
215  delete object_;
216  delete refvalue_;
217 }

Member Function Documentation

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

Definition at line 655 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().

656 {
657  if (kind() < DQM_KIND_TH1F)
658  raiseDQMError("MonitorElement", "Method '%s' cannot be invoked on monitor"
659  " element '%s' because it is not a root object",
660  func, data_.objname.c_str());
661 
662  return checkRootObject(data_.objname, object_, func, reqdim);
663 }
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:101
DQMNet::CoreObject data_
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 1222 of file MonitorElement.cc.

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

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

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

Definition at line 1272 of file MonitorElement.cc.

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

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

Add quality report, from DQMStore.

Definition at line 1426 of file MonitorElement.cc.

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

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

1427 {
1428  QReport *qr;
1429  DQMNet::QValue *qv;
1430  getQReport(true, desc.qtname, qr, qv);
1431  qr->qcriterion_ = qc;
1432  *qv = desc;
1433  update();
1434 }
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 1437 of file MonitorElement.cc.

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

1438 {
1439  QReport *qr;
1440  DQMNet::QValue *qv;
1441  getQReport(true, qc->getName(), qr, qv);
1443  qv->message = "NO_MESSAGE_ASSIGNED";
1444  qr->qcriterion_ = qc;
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)
std::string getName(void) const
get name of quality test
Definition: QTest.h:56
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 1351 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().

1352 {
1353  TH1 *orig = accessRootObject(__PRETTY_FUNCTION__, 1);
1354  if (orig->GetTitle() != from->GetTitle())
1355  orig->SetTitle(from->GetTitle());
1356 
1357  if (!isAccumulateEnabled())
1358  orig->Reset();
1359 
1360  if (isSoftResetEnabled())
1361  {
1362  if (kind() == DQM_KIND_TH1F
1363  || kind() == DQM_KIND_TH1S
1364  || kind() == DQM_KIND_TH1D
1365  || kind() == DQM_KIND_TH2F
1366  || kind() == DQM_KIND_TH2S
1367  || kind() == DQM_KIND_TH2D
1368  || kind() == DQM_KIND_TH3F)
1369  // subtract "reference"
1370  orig->Add(from, refvalue_, 1, -1);
1371  else if (kind() == DQM_KIND_TPROFILE)
1372  // subtract "reference"
1373  addProfiles(static_cast<TProfile *>(from),
1374  static_cast<TProfile *>(refvalue_),
1375  static_cast<TProfile *>(orig),
1376  1, -1);
1377  else if (kind() == DQM_KIND_TPROFILE2D)
1378  // subtract "reference"
1379  addProfiles(static_cast<TProfile2D *>(from),
1380  static_cast<TProfile2D *>(refvalue_),
1381  static_cast<TProfile2D *>(orig),
1382  1, -1);
1383  else
1384  incompatible(__PRETTY_FUNCTION__);
1385  }
1386  else
1387  orig->Add(from);
1388 
1389  copyFunctions(from, orig);
1390 }
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 ...
static std::string from(" from ")
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 1322 of file MonitorElement.cc.

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

Referenced by copyFrom().

1323 {
1324  // will copy functions only if local-copy and original-object are equal
1325  // (ie. no soft-resetting or accumulating is enabled)
1327  return;
1328 
1329  update();
1330  TList *fromf = from->GetListOfFunctions();
1331  TList *tof = to->GetListOfFunctions();
1332  for (int i = 0, nfuncs = fromf ? fromf->GetSize() : 0; i < nfuncs; ++i)
1333  {
1334  TObject *obj = fromf->At(i);
1335  // not interested in statistics
1336  if (!strcmp(obj->IsA()->GetName(), "TPaveStats"))
1337  continue;
1338 
1339  if (TF1 *fn = dynamic_cast<TF1 *>(obj))
1340  tof->Add(new TF1(*fn));
1341  //else if (dynamic_cast<TPaveStats *>(obj))
1342  // ; // FIXME? tof->Add(new TPaveStats(*stats));
1343  else
1344  raiseDQMError("MonitorElement", "Cannot extract function '%s' of type"
1345  " '%s' from monitor element '%s' for a copy",
1346  obj->GetName(), obj->IsA()->GetName(), data_.objname.c_str());
1347  }
1348 }
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:101
DQMNet::CoreObject data_
static std::string from(" from ")
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 1184 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().

1185 {
1186  if (refvalue_)
1187  {
1188  if (kind() == DQM_KIND_TH1F
1189  || kind() == DQM_KIND_TH1S
1190  || kind() == DQM_KIND_TH1D
1191  || kind() == DQM_KIND_TH2F
1192  || kind() == DQM_KIND_TH2S
1193  || kind() == DQM_KIND_TH2D
1194  || kind() == DQM_KIND_TH3F)
1195  {
1196  TH1 *orig = static_cast<TH1 *>(object_);
1197  orig->Add(refvalue_);
1198  }
1199  else if (kind() == DQM_KIND_TPROFILE)
1200  {
1201  TProfile *orig = static_cast<TProfile *>(object_);
1202  TProfile *r = static_cast<TProfile *>(refvalue_);
1203  addProfiles(orig, r, orig, 1, 1);
1204  }
1205  else if (kind() == DQM_KIND_TPROFILE2D)
1206  {
1207  TProfile2D *orig = static_cast<TProfile2D *>(object_);
1208  TProfile2D *r = static_cast<TProfile2D *>(refvalue_);
1209  addProfiles(orig, r, orig, 1, 1);
1210  }
1211  else
1212  incompatible(__PRETTY_FUNCTION__);
1213 
1214  delete refvalue_;
1215  refvalue_ = 0;
1216  }
1217 }
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 254 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 vdt::x.

Referenced by Fill().

255 {
256  update();
257  if (kind() == DQM_KIND_INT)
258  scalar_.num = static_cast<int64_t>(x);
259  else if (kind() == DQM_KIND_REAL)
260  scalar_.real = static_cast<double>(x);
261  else if (kind() == DQM_KIND_TH1F)
262  accessRootObject(__PRETTY_FUNCTION__, 1)
263  ->Fill(static_cast<double>(x), 1);
264  else if (kind() == DQM_KIND_TH1S)
265  accessRootObject(__PRETTY_FUNCTION__, 1)
266  ->Fill(static_cast<double>(x), 1);
267  else if (kind() == DQM_KIND_TH1D)
268  accessRootObject(__PRETTY_FUNCTION__, 1)
269  ->Fill(static_cast<double>(x), 1);
270  else
271  incompatible(__PRETTY_FUNCTION__);
272 }
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.
x
Definition: VDTMath.h:216
std::string MonitorElement::effLabelString ( void  ) const

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

Definition at line 518 of file MonitorElement.cc.

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

519 {
520  std::string result;
521 
522  result.reserve(6 + 2*data_.objname.size() + 3);
523  result += '<'; result += data_.objname; result += '>';
524  result += "e=1";
525  result += '<'; result += '/'; result += data_.objname; result += '>';
526  return result;
527 }
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:101
DQMNet::CoreObject data_
void MonitorElement::Fill ( long long  x)
inline

Definition at line 152 of file MonitorElement.h.

References doFill().

Referenced by SiStripDcsInfo::addBadModules(), edm::DQMHttpSource::addEventToDQMBackend(), EBSelectiveReadoutTask::anaDigi(), EESelectiveReadoutTask::anaDigi(), CSCComparatorDigiValidation::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCStripDigiValidation::analyze(), AlphaTVarAnalyzer::analyze(), RazorVarAnalyzer::analyze(), CSCWireDigiValidation::analyze(), CSCSegmentValidation::analyze(), ScoutingTestAnalyzer::analyze(), PerformanceAnalyzer::analyze(), HLTTauDQMCaloPlotter::analyze(), CSCRecHit2DValidation::analyze(), HLTTauDQMTrkPlotter::analyze(), HcalRecHitClient::analyze(), DiJetVarAnalyzer::analyze(), HLTTauDQMLitePathPlotter::analyze(), EwkMuDQM::analyze(), EwkElecDQM::analyze(), ElectronMcFakeValidator::analyze(), ElectronMcSignalValidator::analyze(), HcalNoiseMonitor::analyze(), RPCMon_SS_Dbx_Global::analyze(), RPCRecHitProbability::analyze(), HLTTauDQML1Plotter::analyze(), ESSummaryClient::analyze(), RPCMonitorDigi::analyze(), HCALRecHitAnalyzer::analyze(), EcalTBValidation::analyze(), RPCMonitorLinkSynchro::analyze(), ElectronGeneralAnalyzer::analyze(), ElectronAnalyzer::analyze(), RPCMonitorRaw::analyze(), CaloJetTesterUnCorr::analyze(), JPTJetTesterUnCorr::analyze(), PFJetTesterUnCorr::analyze(), SiPixelDigiValid::analyze(), ElectronTagProbeAnalyzer::analyze(), CaloJetTester::analyze(), CaloJetTesterUnCorr_HeavyIons::analyze(), PFJetTester::analyze(), MonitorLTC::analyze(), JPTJetTester::analyze(), SiStripMonitorFilter::analyze(), HLTTauDQMPathPlotter::analyze(), EwkMuLumiMonitorDQM::analyze(), SiStripDigiValid::analyze(), SiStripMonitorHLT::analyze(), EgammaBasicClusters::analyze(), RPCDigiValid::analyze(), SiStripMonitorDigi::analyze(), EBClusterTask::analyze(), EBCosmicTask::analyze(), RecoMuonValidator::analyze(), EBLaserTask::analyze(), EBPedestalOnlineTask::analyze(), EBPedestalTask::analyze(), EBOccupancyTask::analyze(), EBRawDataTask::analyze(), EBStatusFlagsTask::analyze(), TrackAnalyzer::analyze(), EECosmicTask::analyze(), EEClusterTask::analyze(), EELedTask::analyze(), EERawDataTask::analyze(), EELaserTask::analyze(), EEPedestalTask::analyze(), EEPedestalOnlineTask::analyze(), EEStatusFlagsTask::analyze(), EETestPulseTask::analyze(), EETrendTask::analyze(), EcalBarrelMonitorModule::analyze(), EBIntegrityTask::analyze(), EBTrendTask::analyze(), EBTestPulseTask::analyze(), CaloTowersAnalyzer::analyze(), EcalEndcapMonitorModule::analyze(), EEIntegrityTask::analyze(), EgammaSuperClusters::analyze(), SiStripMonitorCluster::analyze(), EBTimingTask::analyze(), DQMHcalPhiSymAlCaReco::analyze(), TkAlCaRecoMonitor::analyze(), DQMHcalDiJetsAlCaReco::analyze(), HcalRecHitMonitor::analyze(), HLTAlCaMonEcalPhiSym::analyze(), BxTiming::analyze(), CaloTowersValidation::analyze(), EBSelectiveReadoutTask::analyze(), HcalDetDiagLEDMonitor::analyze(), HLTMonBitSummary::analyze(), DQMSourceEleCalib::analyze(), EfficiencyAnalyzer::analyze(), PixelVTXMonitor::analyze(), HcalBaseDQMonitor::analyze(), DQMLumiMonitor::analyze(), VVVValidation::analyze(), AlcaBeamMonitor::analyze(), EcalPreshowerNoiseDistrib::analyze(), BasicHepMCHeavyIonValidation::analyze(), EETrendClient::analyze(), MuonRecoOneHLT::analyze(), EBTrendClient::analyze(), DQMProvInfo::analyze(), HLTMonBTagIPSource::analyze(), HLTMonBTagMuSource::analyze(), EETimingTask::analyze(), EBHltTask::analyze(), MuonEnergyDepositAnalyzer::analyze(), MuonRecoAnalyzer::analyze(), EEHltTask::analyze(), EEOccupancyTask::analyze(), BasicHepMCValidation::analyze(), DrellYanValidation::analyze(), HcalMonitorModule::analyze(), ZDCMonitorModule::analyze(), HcalDeadCellMonitor::analyze(), EESummaryClient::analyze(), SegmentTrackAnalyzer::analyze(), EBSummaryClient::analyze(), WValidation::analyze(), TrackSplittingMonitor::analyze(), MuonSeedsAnalyzer::analyze(), L1TDTTF::analyze(), HiggsValidation::analyze(), BeamMonitor::analyze(), L1TDTTPG::analyze(), EELaserClient::analyze(), L1Scalers::analyze(), EELedClient::analyze(), EBLaserClient::analyze(), EBTimingClient::analyze(), BasicGenParticleValidation::analyze(), GlobalTest::analyze(), TrackingMonitor::analyze(), EEPedestalClient::analyze(), EEPedestalOnlineClient::analyze(), EETestPulseClient::analyze(), DQMEventInfo::analyze(), EBPedestalClient::analyze(), EBPedestalOnlineClient::analyze(), EBTestPulseClient::analyze(), MBUEandQCDValidation::analyze(), HcalSimHitsValidation::analyze(), NoiseRates::analyze(), L1TScalersSCAL::analyze(), HcalNoiseRates::analyze(), ConverterTester::analyze(), EcalPreshowerDigisValidation::analyze(), SiPixelTrackResidualSource::analyze(), GlobalMuonMatchAnalyzer::analyze(), SiStripMonitorRawData::analyze(), EBRecoSummary::analyze(), ESRecoSummary::analyze(), EERecoSummary::analyze(), EETimingClient::analyze(), EcalBarrelDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), DuplicationChecker::analyze(), SiStripMonitorQuality::analyze(), EcalPreshowerSimHitsValidation::analyze(), DTNoiseTask::analyze(), DTSegmentAnalysisTask::analyze(), HLTAlCaMonPi0::analyze(), L1TCSCTPG::analyze(), SiPixelDigiSource::analyze(), DQMSourcePi0::analyze(), GeneralHLTOffline::analyze(), L1TRPCTF::analyze(), L1TGMT::analyze(), EcalSimHitsValidation::analyze(), DTScalerInfoTask::analyze(), HLTSeedL1LogicScalers::analyze(), MuonIdDQM::analyze(), SiPixelRawDataErrorSource::analyze(), L1TGT::analyze(), HcalRecHitsAnalyzer::analyze(), EESelectiveReadoutTask::analyze(), SiStripRecHitsValid::analyze(), HLTMon::analyze(), HcalRecHitsValidation::analyze(), EcalZmassTask::analyze(), L1TdeCSCTF::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), TriggerValidator::analyze(), EcalDigisValidation::analyze(), DTLocalTriggerBaseTask::analyze(), L1TCSCTF::analyze(), HLXMonitor::analyze(), MuonIdVal::analyze(), SiPixelErrorsDigisToCalibDigis::analyze(), SiPixelClusterSource::analyze(), GlobalDigisHistogrammer::analyze(), GlobalRecHitsHistogrammer::analyze(), TTbar_Kinematics::analyze(), L1TRPCTPG::analyze(), TauValidation::analyze(), SiStripTrackingRecHitsValid::analyze(), MuonIsolationDQM::analyze(), EmDQMReco::analyze(), MuIsoValidation::analyze(), SiPixelTrackingRecHitsValid::analyze(), TauTagValidation::analyze(), L1TCompare::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), HcalDigiMonitor::analyze(), RPCTTUMonitor::analyze(), EcalMixingModuleValidation::analyze(), ValidationHcalIsoTrackAlCaReco::analyze(), HcalTimingMonitorModule::analyze(), GlobalHitsHistogrammer::analyze(), GlobalHitsTester::analyze(), ECALRecHitAnalyzer::analyze(), FourVectorHLTOnline::analyze(), L1TRCT::analyze(), CastorMonitorModule::analyze(), TopValidation::analyze(), V0Validator::analyze(), EgHLTOfflineSource::analyze(), HLTScalers::analyze(), HcalDetDiagTimingMonitor::analyze(), RPCEfficiency::analyze(), L1TdeRCT::analyze(), L1TGCT::analyze(), HcalDetDiagPedestalMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), ZdcSimHitStudy::analyzeHits(), HcalSimHitStudy::analyzeHits(), SimHitsValidationHcal::analyzeHits(), ESSummaryClient::beginJob(), SiPixelCertification::beginJob(), RPCDaqInfo::beginJob(), EBDaqInfoTask::beginJob(), EBDcsInfoTask::beginJob(), L1TEventInfoClient::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), EBDataCertificationTask::beginJob(), EEDaqInfoTask::beginJob(), EEDataCertificationTask::beginJob(), DQMFEDIntegrityClient::beginJob(), EEDcsInfoTask::beginJob(), HLTEventInfoClient::beginJob(), BeamMonitor::beginJob(), Vx3DHLTAnalyzer::beginJob(), CastorMonitorModule::beginJob(), TrigResRateMon::beginJob(), RPCDaqInfo::beginLuminosityBlock(), HcalBaseDQMonitor::beginLuminosityBlock(), DQMEventInfo::beginLuminosityBlock(), DQMDaqInfo::beginLuminosityBlock(), HcalSummaryClient::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), RPCEventSummary::beginRun(), DTOfflineSummaryClients::beginRun(), DQMProvInfo::beginRun(), DTSummaryClients::beginRun(), DQMEventInfo::beginRun(), SiStripDaqInfo::beginRun(), EcalEndcapMonitorClient::beginRun(), EcalBarrelMonitorClient::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), DQMStore::bookFloat(), SiPixelDataQuality::bookGlobalQualityFlag(), L1TEMUEventInfoClient::bookHistograms(), DQMStore::bookInt(), HcalCoarsePedestalClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), HcalDataCertification::CertifyHcal(), CalibrationScanTask::checkAndSave(), CalibrationTask::checkAndSave(), HcalDetDiagPedestalMonitor::CheckStatus(), HcalMonitorModule::CheckSubdetectorStatus(), ZDCMonitorModule::CheckSubdetectorStatus(), RPCClusterSizeTest::clientOperation(), RPCEventSummary::clientOperation(), Digi2Raw2Digi::compare(), L1GtHwValidation::compareDaqRecord(), L1GtHwValidation::compareFDL(), L1GtHwValidation::compareGTFE(), EMShower::compute(), GlobalRecHitsAnalyzer::compute(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelDataQuality::computeGlobalQualityFlagByLumi(), EcalMixingModuleValidation::computeSDBunchDigi(), TkHistoMap::createTkHistoMap(), RPCTTUMonitor::discriminateDecision(), TrackAnalyzer::doTrackerSpecificFillHists(), DQMEventInfo::DQMEventInfo(), EcalSelectiveReadoutValidation::EcalSelectiveReadoutValidation(), EMShower::EMShower(), EcalBarrelMonitorModule::endJob(), EcalEndcapMonitorModule::endJob(), HcalNoiseRates::endJob(), HcalMonitorModule::endJob(), ZDCMonitorModule::endJob(), MuonAlignment::endJob(), RPCMonitorSync::endJob(), ESSummaryClient::endLumiAnalyze(), HcalTrigPrimMonitor::endLuminosityBlock(), SiPixelCertification::endLuminosityBlock(), DQMLumiMonitor::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), L1Scalers::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), EBDataCertificationTask::endLuminosityBlock(), EEDataCertificationTask::endLuminosityBlock(), L1TEventInfoClient::endLuminosityBlock(), HcalRawDataMonitor::endLuminosityBlock(), HcalZDCMonitor::endLuminosityBlock(), HcalMonitorModule::endLuminosityBlock(), ZDCMonitorModule::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(), HLTTauCertifier::endRun(), EcalBarrelMonitorModule::endRun(), DTOfflineSummaryClients::endRun(), RPCEfficiencyShiftHisto::endRun(), EcalEndcapMonitorModule::endRun(), ConverterTester::endRun(), EBDataCertificationTask::endRun(), DQMOfflineHLTEventInfoClient::endRun(), EEDataCertificationTask::endRun(), MuonAlignmentSummary::endRun(), HcalZDCMonitor::endRun(), PhotonDataCertification::endRun(), HcalMonitorModule::endRun(), ZDCMonitorModule::endRun(), EcalEndcapMonitorClient::endRun(), EcalBarrelMonitorClient::endRun(), L1TRPCTF::endRun(), HLTMuonCertSummary::endRun(), HLTOverallSummary::endRun(), EcalSelectiveReadoutValidation::endRun(), GlobalHitsTester::endRun(), RPCEfficiencySecond::endRun(), DQMStore::extract(), DTDataIntegrityTask::fedEntry(), DTDataIntegrityTask::fedFatal(), DTDataIntegrityTask::fedNonFatal(), FineDelayTask::fill(), SiPixelHitEfficiencyModule::fill(), CSCMonitorObject::Fill(), SiPixelRawDataErrorModule::fill(), SiPixelRecHitModule::fill(), SiPixelClusterModule::fill(), SiPixelDigiModule::fill(), MuonIdDQM::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(), HRes2DHit::Fill(), EcalSelectiveReadoutValidation::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(), SiStripCertificationInfo::fillDummySiStripCertification(), SiStripQualityChecker::fillDummyStatus(), SiStripDaqInfo::fillDummyStatus(), SiStripDcsInfo::fillDummyStatus(), SiStripCertificationInfo::fillDummyTrackingCertification(), 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(), HLXMonitor::FillHistoHFCompare(), SiStripSummaryCreator::fillHistos(), HcalDetDiagLEDMonitor::fillHistos(), HLTMon::fillHistos(), HcalDetDiagPedestalMonitor::fillHistos(), EmDQMReco::fillHistos(), HcalDetDiagLaserMonitor::fillHistos(), TrackAnalyzer::fillHistosForState(), TkAlCaRecoMonitor::fillHitmaps(), ZdcSimHitStudy::FillHitValHist(), QcdUeDQM::fillHltBits(), QcdLowPtDQM::fillHltBits(), JPTJetTesterUnCorr::fillMatchHists(), PFJetTesterUnCorr::fillMatchHists(), PFJetTester::fillMatchHists(), CaloJetTesterUnCorr::fillMatchHists(), JPTJetTester::fillMatchHists(), CaloJetTester::fillMatchHists(), CaloJetTesterUnCorr_HeavyIons::fillMatchHists(), ecaldqm::fillME(), SiStripMonitorTrack::fillME(), SiStripMonitorDigi::fillME(), SiStripMonitorCluster::fillME(), JetMETHLTOfflineSource::fillMEforMonTriggerSummary(), BTagHLTOfflineSource::fillMEforMonTriggerSummary(), L1TDTTF::fillMEs(), SiStripNoisesDQM::fillMEsForDet(), SiStripApvGainsDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForDet(), SiStripThresholdDQM::fillMEsForDet(), SiStripQualityDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForLayer(), SiStripPedestalsDQM::fillMEsForLayer(), SiStripThresholdDQM::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(), CSCStripDigiValidation::fillPedestalPlots(), 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(), SiStripCertificationInfo::fillTrackingCertificationMEs(), SiStripQualityChecker::fillTrackingStatus(), SiStripQualityChecker::fillTrackingStatusAtLumi(), SiStripMonitorDigi::fillTrend(), GlobalHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), TrigResRateMon::DatasetInfo::fillXsecPlot(), SiStripDaqInfo::findExcludedModule(), SiPixelInformationExtractor::findNoisyPixels(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), CSCOfflineMonitor::harvestChamberMeans(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalTimingMonitorModule::HcalTimingMonitorModule(), evf::iDie::initDQMEventInfo(), evf::iDie::initMonitorElements(), HcalDetDiagPedestalMonitor::LoadDataset(), HcalDetDiagLaserMonitor::LoadDataset(), DTTriggerEfficiencyTest::makeEfficiencyME(), DQMProvInfo::makeProvInfo(), HeavyFlavorValidation::match(), SiPixelTrackResidualModule::nfill(), SiPixelRecHitModule::nfill(), NoiseRatesClient::NoiseRatesEndjob(), HcalNoiseRatesClient::NoiseRatesEndjob(), evf::iDie::parseModuleHisto(), CastorDigiMonitor::perChanHists(), CastorLEDMonitor::perChanHists(), CastorRecHitPerChan::perChanHists(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), TauValidation::photons(), CSCWireDigiValidation::plotResolution(), CSCSegmentValidation::plotResolution(), CSCStripDigiValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), GlobalRecHitsAnalyzer::plotResolution(), DTDataIntegrityTask::preProcessEvent(), HcalDigiMonitor::process_Digi(), EETriggerTowerTask::processDigis(), EBTriggerTowerTask::processDigis(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorDataIntegrityMonitor::processEvent(), HcalNZSMonitor::processEvent(), CastorPSMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), CastorDigiMonitor::processEvent(), HcalCaloTowerMonitor::processEvent(), CastorEventDisplay::processEvent(), HcalBeamMonitor::processEvent(), HcalRecHitMonitor::processEvent(), CastorChannelQualityMonitor::processEvent(), CastorLEDMonitor::processEvent(), HcalEEUSMonitor::processEvent(), HcalZDCMonitor::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(), edm::EventStreamHttpReader::read(), L1TEMUEventInfoClient::readQtResults(), HcalBaseDQMonitor::reset(), ZDCMonitorModule::reset(), HcalMonitorModule::reset(), TauValidation::rtau(), EgHLTOfflineSummaryClient::runClient_(), DTLocalTriggerTask::runDCCAnalysis(), DQMFileSaver::saveForOffline(), DTTimeEvolutionHisto::setTimeSlotValue(), CastorPSMonitor::setup(), CastorDigiMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalCaloTowerMonitor::setup(), CastorTowerJetMonitor::setup(), HcalRecHitMonitor::setup(), CastorChannelQualityMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), CastorLEDMonitor::setup(), EcalEndcapMonitorModule::setup(), HcalZDCMonitor::setup(), EcalBarrelMonitorModule::setup(), HcalRawDataMonitor::setup(), HcalBaseDQMonitor::setup(), HcalMonitorModule::setup(), ZDCMonitorModule::setup(), HcalDigiMonitor::setup(), HLXMonitor::SetupEventInfo(), TauValidation::spinEffectsWHpm(), TauValidation::spinEffectsZH(), PFMETDQMAnalyzer::storeBadEvents(), PFCandidateDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), TauValidation::tauDecayChannel(), TauValidation::tauMother(), TauValidation::tauProngs(), TrackEfficiencyMonitor::testSTATracks(), TrackEfficiencyMonitor::testTrackerTracks(), CastorDataIntegrityMonitor::unpack(), HcalDataIntegrityTask::unpack(), HcalEEUSMonitor::unpack(), HcalRawDataMonitor::unpack(), ECALRecHitAnalyzer::WriteECALRecHits(), SubTaskSummaryStatus::WriteThreshold(), and XmasToDQMEventInfo::XmasToDQMEventInfo().

152 { 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
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( unsigned long long  x)
inline

Definition at line 153 of file MonitorElement.h.

References doFill().

153 { 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
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( unsigned long  x)
inline

Definition at line 154 of file MonitorElement.h.

References doFill().

154 { 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
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( long  x)
inline

Definition at line 155 of file MonitorElement.h.

References doFill().

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

Definition at line 156 of file MonitorElement.h.

References doFill().

156 { 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
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( int  x)
inline

Definition at line 157 of file MonitorElement.h.

References doFill().

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

Definition at line 158 of file MonitorElement.h.

References doFill().

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

Definition at line 159 of file MonitorElement.h.

References doFill().

159 { 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
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( char  x)
inline

Definition at line 160 of file MonitorElement.h.

References doFill().

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

Definition at line 161 of file MonitorElement.h.

References doFill().

161 { 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
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( float  x)
inline

Definition at line 163 of file MonitorElement.h.

References Fill().

Referenced by Fill().

163 { Fill(static_cast<double>(x)); }
void Fill(long long x)
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( double  x)

"Fill" ME methods for double

Definition at line 232 of file MonitorElement.cc.

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

233 {
234  update();
235  if (kind() == DQM_KIND_INT)
236  scalar_.num = static_cast<int64_t>(x);
237  else if (kind() == DQM_KIND_REAL)
238  scalar_.real = x;
239  else if (kind() == DQM_KIND_TH1F)
240  accessRootObject(__PRETTY_FUNCTION__, 1)
241  ->Fill(x, 1);
242  else if (kind() == DQM_KIND_TH1S)
243  accessRootObject(__PRETTY_FUNCTION__, 1)
244  ->Fill(x, 1);
245  else if (kind() == DQM_KIND_TH1D)
246  accessRootObject(__PRETTY_FUNCTION__, 1)
247  ->Fill(x, 1);
248  else
249  incompatible(__PRETTY_FUNCTION__);
250 }
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.
perl if(1 lt scalar(@::datatypes))
Definition: edlooper.cc:31
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( std::string &  value)

"Fill" ME methods for string

Definition at line 221 of file MonitorElement.cc.

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

222 {
223  update();
224  if (kind() == DQM_KIND_STRING)
225  scalar_.str = value;
226  else
227  incompatible(__PRETTY_FUNCTION__);
228 }
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 276 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().

277 {
278  update();
279  if (kind() == DQM_KIND_TH1F)
280  accessRootObject(__PRETTY_FUNCTION__, 1)
281  ->Fill(x, yw);
282  else if (kind() == DQM_KIND_TH1S)
283  accessRootObject(__PRETTY_FUNCTION__, 1)
284  ->Fill(x, yw);
285  else if (kind() == DQM_KIND_TH1D)
286  accessRootObject(__PRETTY_FUNCTION__, 1)
287  ->Fill(x, yw);
288  else if (kind() == DQM_KIND_TH2F)
289  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
290  ->Fill(x, yw, 1);
291  else if (kind() == DQM_KIND_TH2S)
292  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
293  ->Fill(x, yw, 1);
294  else if (kind() == DQM_KIND_TH2D)
295  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
296  ->Fill(x, yw, 1);
297  else if (kind() == DQM_KIND_TPROFILE)
298  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
299  ->Fill(x, yw, 1);
300  else
301  incompatible(__PRETTY_FUNCTION__);
302 }
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.
x
Definition: VDTMath.h:216
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 380 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().

381 {
382  update();
383  if (kind() == DQM_KIND_TH2F)
384  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
385  ->Fill(x, y, zw);
386  else if (kind() == DQM_KIND_TH2S)
387  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
388  ->Fill(x, y, zw);
389  else if (kind() == DQM_KIND_TH2D)
390  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
391  ->Fill(x, y, zw);
392  else if (kind() == DQM_KIND_TH3F)
393  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
394  ->Fill(x, y, zw, 1);
395  else if (kind() == DQM_KIND_TPROFILE)
396  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 2))
397  ->Fill(x, y, zw);
398  else if (kind() == DQM_KIND_TPROFILE2D)
399  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
400  ->Fill(x, y, zw, 1);
401  else
402  incompatible(__PRETTY_FUNCTION__);
403 }
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.
x
Definition: VDTMath.h:216
void MonitorElement::Fill ( double  x,
double  y,
double  z,
double  w 
)

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

Definition at line 407 of file MonitorElement.cc.

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

408 {
409  update();
410  if (kind() == DQM_KIND_TH3F)
411  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
412  ->Fill(x, y, z, w);
413  else if (kind() == DQM_KIND_TPROFILE2D)
414  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
415  ->Fill(x, y, z, w);
416  else
417  incompatible(__PRETTY_FUNCTION__);
418 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
double double double z
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
x
Definition: VDTMath.h:216
T w() const
uint32_t MonitorElement::flags ( void  ) const
inline

Get the object flags.

Definition at line 95 of file MonitorElement.h.

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

96  { 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 960 of file MonitorElement.cc.

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

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

961 {
962  TH1 *h = accessRootObject(func, axis-1);
963  TAxis *a = 0;
964  if (axis == 1)
965  a = h->GetXaxis();
966  else if (axis == 2)
967  a = h->GetYaxis();
968  else if (axis == 3)
969  a = h->GetZaxis();
970 
971  if (! a)
972  raiseDQMError("MonitorElement", "No such axis %d in monitor element"
973  " '%s' of type '%s'", axis, data_.objname.c_str(),
974  typeid(*h).name());
975 
976  return a;
977 }
TH1 * accessRootObject(const char *func, int reqdim) const
std::string objname
Definition: DQMNet.h:101
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
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 799 of file MonitorElement.cc.

References getAxis().

Referenced by PFClient::createEfficiencyPlots().

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

get content of bin (1-D)

Definition at line 712 of file MonitorElement.cc.

References accessRootObject().

Referenced by ESSummaryClient::analyze(), HCALRecHitAnalyzer::analyze(), HLTMonBitSummary::analyze(), EBSummaryClient::analyze(), EESummaryClient::analyze(), RPCDBPopConAnalyzer::analyze(), SiPixelDigiSource::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::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(), SiStripMonitorDigi::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), DTDCSByLumiSummary::endLuminosityBlock(), EBRawDataTask::endLuminosityBlock(), EERawDataTask::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), HLTEventInfoClient::endLuminosityBlock(), HcalLSbyLSMonitor::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), DTSummaryClients::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), DTCertificationSummary::endRun(), RPCDqmClient::endRun(), DQMHcalPhiSymAlCaReco::endRun(), DTOfflineSummaryClients::endRun(), RPCEfficiencyShiftHisto::endRun(), RPCEfficiencyPerRingLayer::endRun(), DTChamberEfficiencyClient::endRun(), RPCEfficiencySecond::endRun(), SiPixelActionExecutor::fillDeviations(), evf::iDie::fillDQMModFractionHist(), 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(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), UtilsClient::maskBinContent(), DTTimeEvolutionHisto::normalizeTo(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), RPCChamberQuality::performeClientOperation(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), UtilsClient::printBadChannels(), HcalBeamMonitor::processEvent(), SiStripFEDErrorsDQM::readHistogram(), CastorLEDMonitor::reset(), SiPixelDQMRocLevelAnalyzer::RocSumOneModule(), L1EmulatorErrorFlagClient::setSummary(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), ShiftFillLast(), DTDataIntegrityTask::TimeHistos(), HcalRawDataMonitor::UpdateMEs(), evf::iDie::updateRollingHistos(), DTTimeEvolutionHisto::updateTimeSlot(), and ECALRecHitAnalyzer::WriteECALRecHits().

713 { return accessRootObject(__PRETTY_FUNCTION__, 1)
714  ->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 718 of file MonitorElement.cc.

References accessRootObject().

719 { return accessRootObject(__PRETTY_FUNCTION__, 2)
720  ->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 724 of file MonitorElement.cc.

References accessRootObject().

725 { return accessRootObject(__PRETTY_FUNCTION__, 3)
726  ->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 754 of file MonitorElement.cc.

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

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

755 {
756  if (kind() == DQM_KIND_TPROFILE)
757  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
758  ->GetBinEntries(bin);
759  else if (kind() == DQM_KIND_TPROFILE2D)
760  return static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
761  ->GetBinEntries(bin);
762  else
763  {
764  incompatible(__PRETTY_FUNCTION__);
765  return 0;
766  }
767 }
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 736 of file MonitorElement.cc.

References accessRootObject().

737 { return accessRootObject(__PRETTY_FUNCTION__, 2)
738  ->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 742 of file MonitorElement.cc.

References accessRootObject().

743 { return accessRootObject(__PRETTY_FUNCTION__, 3)
744  ->GetBinError(binx, biny, binz); }
TH1 * accessRootObject(const char *func, int reqdim) const
double MonitorElement::getEntries ( void  ) 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 132 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

133  { 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 676 of file MonitorElement.cc.

References accessRootObject().

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

677 { return accessRootObject(__PRETTY_FUNCTION__, axis-1)
678  ->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 99 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(), HcalHotCellClient::beginRun(), HcalNZSClient::beginRun(), HcalCoarsePedestalClient::beginRun(), HcalDigiClient::beginRun(), HcalTrigPrimClient::beginRun(), RPCMon_SS_Dbx_Global::beginRun(), HcalRecHitClient::beginRun(), HcalSummaryClient::beginRun(), RPCBxTest::beginRun(), RPCOccupancyTest::beginRun(), HcalRawDataClient::beginRun(), RPCEventSummary::beginRun(), RPCRecHitProbability::beginRun(), RPCMonitorDigi::beginRun(), RPCDeadChannelTest::beginRun(), RPCMultiplicityTest::beginRun(), RPCClusterSizeTest::beginRun(), ZDCMonitorClient::beginRun(), EcalBarrelMonitorClient::beginRun(), EcalEndcapMonitorClient::beginRun(), L1TEMUEventInfoClient::bookHistograms(), RPCMonitorDigi::bookRegionME(), SiPixelActionExecutor::checkQTestResults(), EBLaserTask::cleanup(), EBOccupancyTask::cleanup(), EBClusterTask::cleanup(), EBDaqInfoTask::cleanup(), EBDcsInfoTask::cleanup(), EEClusterTask::cleanup(), EETrendTask::cleanup(), EcalBarrelMonitorModule::cleanup(), EBTrendTask::cleanup(), EcalEndcapMonitorModule::cleanup(), EEDaqInfoTask::cleanup(), EEDataCertificationTask::cleanup(), EEDcsInfoTask::cleanup(), EBTimingTask::cleanup(), EBDataCertificationTask::cleanup(), EBSelectiveReadoutTask::cleanup(), EERawDataTask::cleanup(), EBSummaryClient::cleanup(), EEStatusFlagsTask::cleanup(), EBRawDataTask::cleanup(), EBStatusFlagsTask::cleanup(), EESummaryClient::cleanup(), EBIntegrityTask::cleanup(), EEIntegrityTask::cleanup(), EBHltTask::cleanup(), EEHltTask::cleanup(), EETimingTask::cleanup(), EBTimingClient::cleanup(), HcalMonitorModule::cleanup(), ZDCMonitorModule::cleanup(), EESelectiveReadoutTask::cleanup(), FourVectorHLTOnline::countHLTGroupBXHitsEndLumiBlock(), PFClient::createResolutionPlots(), HLTMonSimpleBTag::doEffCalc(), L1TEMUEventInfoClient::dumpContentMonitorElements(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), PhotonDataCertification::endRun(), HLTMuonCertSummary::endRun(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiStripSummaryCreator::fillHistos(), SiStripQualityChecker::fillSubDetStatus(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), SiStripCertificationInfo::fillTrackingCertificationMEs(), SiStripQualityChecker::fillTrackingStatus(), SiStripQualityChecker::fillTrackingStatusAtLumi(), BeamMonitor::FitAndFill(), SiStripInformationExtractor::getCondDBHistos(), SiPixelDataQuality::getDetId(), SiPixelInformationExtractor::getDetId(), SiStripInformationExtractor::getGlobalHistos(), HcalUtilsClient::getHisto(), UtilsClient::getHisto(), getHisto(), getHisto2(), SiStripInformationExtractor::getHistosFromPath(), SiPixelInformationExtractor::getHistosFromPath(), getHistoTH3F(), getHistoTProfile(), getHistoTProfile2D(), SiStripQualityChecker::getModuleStatus(), SiStripInformationExtractor::getSingleModuleHistos(), SiPixelInformationExtractor::getSingleModuleHistos(), SiStripSummaryCreator::getSummaryME(), SiStripInformationExtractor::getTrackerMapHistos(), SiPixelInformationExtractor::getTrackerMapHistos(), CommissioningHistograms::histogram(), SiStripHistoPlotter::makeCondDBPlots(), SiPixelHistoPlotter::makePlot(), L1TDTTPGClient::makeRatioHisto(), SiStripBaseServiceFromDQM< T >::StringNotMatch::operator()(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), SiStripInformationExtractor::plotHistosFromLayout(), SiStripInformationExtractor::printAlarmList(), UtilsClient::printBadChannels(), SiStripActionExecutor::printShiftHistoParameters(), ElectronDqmAnalyzerBase::profileX(), ScoutingAnalyzerBase::profileX(), ElectronDqmAnalyzerBase::profileY(), ScoutingAnalyzerBase::profileY(), MEtoEDMConverter::putData(), SiStripInformationExtractor::readGlobalHistoList(), SiStripFEDErrorsDQM::readHistogram(), SiStripInformationExtractor::readModuleAndHistoList(), L1TEMUEventInfoClient::readQtResults(), SiStripInformationExtractor::readStatusMessage(), SiPixelInformationExtractor::readStatusMessage(), SiPixelHistoricInfoDQMClient::retrieveMEs(), SiPixelHistoricInfoEDAClient::retrieveMEs(), SiStripHistoryDQMService::returnDetComponent(), SiPixelHistoryDQMService::returnDetComponent(), DTLocalTriggerSynchTest::runClientDiagnostic(), EBSummaryClient::setup(), EESummaryClient::setup(), SubTaskSummaryStatus::WriteThreshold(), and CSCRecHit2DValidation::~CSCRecHit2DValidation().

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

get # of bins in X-axis

Definition at line 694 of file MonitorElement.cc.

References accessRootObject().

Referenced by SiStripMonitorQuality::analyze(), SiPixelDigiSource::analyze(), ecaldqm::MESetEcal::book(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), CaloTowersDQMClient::CaloTowersEndjob(), CaloTowersClient::CaloTowersEndjob(), RPCDeadChannelTest::clientOperation(), RPCEventSummary::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), PFClient::createEfficiencyPlots(), PFClient::createResolutionPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HLTMonSimpleBTag::doEffCalc(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), HcalSimHitsValidation::endJob(), EEDataCertificationTask::endLuminosityBlock(), L1TEventInfoClient::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), HLTEventInfoClient::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), RPCEfficiencyShiftHisto::endRun(), EEDataCertificationTask::endRun(), SiStripCertificationInfo::fillDummySiStripCertification(), SiStripQualityChecker::fillDummyStatus(), 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(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::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(), L1EmulatorErrorFlagClient::setSummary(), ShiftFillLast(), and DTDataIntegrityTask::TimeHistos().

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

get # of bins in Z-axis

Definition at line 706 of file MonitorElement.cc.

References accessRootObject().

707 { return accessRootObject(__PRETTY_FUNCTION__, 3)
708  ->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 103 of file MonitorElement.h.

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

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

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

get errors from last set of quality tests

Definition at line 583 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().

584 {
585  std::vector<QReport *> result;
586  result.reserve(qreports_.size());
587  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
588  if (data_.qreports[i].code == dqm::qstatus::ERROR)
589  {
590  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
591  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
592  result.push_back(const_cast<QReport *>(&qreports_[i]));
593  }
594  return result;
595 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:102
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 598 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().

599 {
600  std::vector<QReport *> result;
601  result.reserve(qreports_.size());
602  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
605  && data_.qreports[i].code != dqm::qstatus::ERROR)
606  {
607  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
608  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
609  result.push_back(const_cast<QReport *>(&qreports_[i]));
610  }
611  return result;
612 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:102
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 545 of file MonitorElement.cc.

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

546 {
547  QReport *qr;
548  DQMNet::QValue *qv;
549  const_cast<MonitorElement *>(this)->getQReport(false, qtname, qr, qv);
550  return qr;
551 }
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 1394 of file MonitorElement.cc.

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

1395 {
1396  assert(qreports_.size() == data_.qreports.size());
1397 
1398  qr = 0;
1399  qv = 0;
1400 
1401  size_t pos = 0, end = qreports_.size();
1402  while (pos < end && data_.qreports[pos].qtname != qtname)
1403  ++pos;
1404 
1405  if (pos == end && ! create)
1406  return;
1407  else if (pos == end)
1408  {
1409  data_.qreports.push_back(DQMNet::QValue());
1410  qreports_.push_back(QReport(0, 0));
1411 
1412  DQMNet::QValue &q = data_.qreports.back();
1414  q.qtresult = 0;
1415  q.qtname = qtname;
1416  q.message = "NO_MESSAGE_ASSIGNED";
1417  q.algorithm = "UNKNOWN_ALGORITHM";
1418  }
1419 
1420  qr = &qreports_[pos];
1421  qv = &data_.qreports[pos];
1422 }
QReports qreports
Definition: DQMNet.h:102
std::string algorithm
Definition: DQMNet.h:92
std::vector< QReport > qreports_
static const int DID_NOT_RUN
#define end
Definition: vmac.h:38
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 554 of file MonitorElement.cc.

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

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

555 {
556  std::vector<QReport *> result;
557  result.reserve(qreports_.size());
558  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
559  {
560  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
561  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
562  result.push_back(const_cast<QReport *>(&qreports_[i]));
563  }
564  return result;
565 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:102
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 568 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().

569 {
570  std::vector<QReport *> result;
571  result.reserve(qreports_.size());
572  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
573  if (data_.qreports[i].code == dqm::qstatus::WARNING)
574  {
575  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
576  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
577  result.push_back(const_cast<QReport *>(&qreports_[i]));
578  }
579  return result;
580 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:102
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 1566 of file MonitorElement.cc.

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

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

1567 {
1568  const_cast<MonitorElement *>(this)->update();
1569  return checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 0);
1570 }
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:101
DQMNet::CoreObject data_
TH1D * MonitorElement::getRefTH1D ( void  ) const

Definition at line 1591 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().

1592 {
1593  assert(kind() == DQM_KIND_TH1D);
1594  const_cast<MonitorElement *>(this)->update();
1595  return static_cast<TH1D *>
1596  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1597 }
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:101
DQMNet::CoreObject data_
TH1F * MonitorElement::getRefTH1F ( void  ) const

Definition at line 1573 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().

1574 {
1575  assert(kind() == DQM_KIND_TH1F);
1576  const_cast<MonitorElement *>(this)->update();
1577  return static_cast<TH1F *>
1578  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1579 }
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:101
DQMNet::CoreObject data_
TH1S * MonitorElement::getRefTH1S ( void  ) const

Definition at line 1582 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().

1583 {
1584  assert(kind() == DQM_KIND_TH1S);
1585  const_cast<MonitorElement *>(this)->update();
1586  return static_cast<TH1S *>
1587  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1588 }
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:101
DQMNet::CoreObject data_
TH2D * MonitorElement::getRefTH2D ( void  ) const

Definition at line 1618 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

1619 {
1620  assert(kind() == DQM_KIND_TH2D);
1621  const_cast<MonitorElement *>(this)->update();
1622  return static_cast<TH2D *>
1623  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1624 }
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:101
DQMNet::CoreObject data_
TH2F * MonitorElement::getRefTH2F ( void  ) const

Definition at line 1600 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

1601 {
1602  assert(kind() == DQM_KIND_TH2F);
1603  const_cast<MonitorElement *>(this)->update();
1604  return static_cast<TH2F *>
1605  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1606 }
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:101
DQMNet::CoreObject data_
TH2S * MonitorElement::getRefTH2S ( void  ) const

Definition at line 1609 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

1610 {
1611  assert(kind() == DQM_KIND_TH2S);
1612  const_cast<MonitorElement *>(this)->update();
1613  return static_cast<TH2S *>
1614  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1615 }
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:101
DQMNet::CoreObject data_
TH3F * MonitorElement::getRefTH3F ( void  ) const

Definition at line 1627 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

1628 {
1629  assert(kind() == DQM_KIND_TH3F);
1630  const_cast<MonitorElement *>(this)->update();
1631  return static_cast<TH3F *>
1632  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 3));
1633 }
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:101
DQMNet::CoreObject data_
TProfile * MonitorElement::getRefTProfile ( void  ) const

Definition at line 1636 of file MonitorElement.cc.

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

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

1637 {
1638  assert(kind() == DQM_KIND_TPROFILE);
1639  const_cast<MonitorElement *>(this)->update();
1640  return static_cast<TProfile *>
1641  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1642 }
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:101
DQMNet::CoreObject data_
TProfile2D * MonitorElement::getRefTProfile2D ( void  ) const

Definition at line 1645 of file MonitorElement.cc.

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

1646 {
1647  assert(kind() == DQM_KIND_TPROFILE2D);
1648  const_cast<MonitorElement *>(this)->update();
1649  return static_cast<TProfile2D *>
1650  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1651 }
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:101
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 688 of file MonitorElement.cc.

References accessRootObject().

Referenced by BeamMonitor::FitAndFill().

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

Definition at line 1472 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(), FUShmDQMOutputService::findMonitorElements(), 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(), ecaldqm::setBinContentME(), ecaldqm::setBinEntriesME(), and ecaldqm::setBinErrorME().

1473 {
1474  const_cast<MonitorElement *>(this)->update();
1475  return object_;
1476 }
void update(void)
Mark the object updated.
const std::string& MonitorElement::getStringValue ( void  ) const
inline

Definition at line 345 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

346  {
347  assert(kind() == DQM_KIND_STRING);
348  return scalar_.str;
349  }
Kind kind(void) const
Get the type of the monitor element.
const uint32_t MonitorElement::getTag ( void  ) const
inline

Definition at line 359 of file MonitorElement.h.

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

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

Definition at line 351 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().

352  {
355  tags.push_back(data_.tag);
356  return tags;
357  }
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 1479 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by SiPixelOfflineCalibAnalysisBase::addTF1ToDQMMonitoringElement(), BeamMonitor::analyze(), MBUEandQCDValidation::analyze(), LogMessageMonitor::analyze(), HLTScalers::analyze(), TrackerOfflineValidationSummary::associateModuleHistsWithTree(), TrackAnalyzer::beginJob(), TkAlCaRecoMonitor::beginJob(), BeamConditionsMonitor::beginJob(), VertexMonitor::beginJob(), TrackingMonitor::beginJob(), BeamMonitor::beginJob(), EERawDataTask::beginLuminosityBlock(), EBRawDataTask::beginLuminosityBlock(), EERawDataTask::beginRun(), EBRawDataTask::beginRun(), BTagHLTOfflineSource::beginRun(), JetMETHLTOfflineSource::beginRun(), ecaldqm::MESetEcal::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(), 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(), SiStripQualityDQM::fillMEsForLayer(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripQualityDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), CSCMonitorObject::GetBinError(), CSCMonitorObject::GetEntries(), CSCMonitorObject::GetMaximumBin(), SiStripSummaryCreator::getSummaryME(), CSCMonitorObject::getTH1(), MuonIsolationDQM::GetTH1FromMonitorElement(), MuIsoValidation::GetTH1FromMonitorElement(), CSCMonitorObject::getTH1Lock(), SiStripHistoPlotter::makeCondDBPlots(), PlotCombiner::makePlot(), SiStripHistoPlotter::makePlot(), EcalSelectiveReadoutValidation::normalizeHists(), ecaldqm::SummaryClient::producePlots(), SusyPostProcessor::QuantilePlots(), CSCMonitorObject::SetAxisRange(), CSCMonitorObject::SetBinError(), CSCMonitorObject::SetMaximum(), CSCMonitorObject::SetNormFactor(), DTLocalTriggerTask::setQLabels(), DTLocalTriggerBaseTask::setQLabels(), ecaldqm::MESetTrend::shift_(), TauValidation::spinEffectsZH(), BTagHLTOfflineSource::TriggerPosition(), JetMETHLTOfflineSource::TriggerPosition(), SiStripFEDCheckPlugin::updateHistograms(), L1TTestsSummary::updateL1TOccupancyMonitor(), L1TTestsSummary::updateL1TRateMonitor(), and L1TTestsSummary::updateL1TSyncMonitor().

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

Definition at line 1502 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(), and MeanWithinExpected::runTest().

1503 {
1504  assert(kind() == DQM_KIND_TH1D);
1505  const_cast<MonitorElement *>(this)->update();
1506  return static_cast<TH1D *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1507 }
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 1486 of file MonitorElement.cc.

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

Referenced by SiStripGainFromData::algoBeginJob(), HLTJetMETDQMSource::analyze(), GeneralHLTOffline::analyze(), RPCMonitorLinkSynchro::beginJob(), HLTMonPhotonClient::beginJob(), TrackEfficiencyClient::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), HLTMonElectronConsumer::beginJob(), L1TGMTClient::beginRun(), HLTMonBitSummary::beginRun(), DQMProvInfo::beginRun(), HLTInclusiveVBFSource::beginRun(), TriggerValidator::beginRun(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), ElectronDqmAnalyzerBase::bookH1(), ElectronDqmAnalyzerBase::bookH1andDivide(), ElectronDqmAnalyzerBase::bookH1withSumw2(), RPCValidHistograms::bookHistograms(), L1TDTTFClient::buildSummaries(), ElectronDqmAnalyzerBase::cloneH1(), DQMStore::collate1D(), EffPurFromHistos::compute(), HTrackVariables::computeEfficiency(), FourVectorHLTOnline::countHLTGroupHitsEndLumiBlock(), TrigResRateMon::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOnline::countHLTGroupL1HitsEndLumiBlock(), TrigResRateMon::countHLTGroupL1HitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupL1HitsEndLumiBlock(), PFClient::createEfficiencyPlots(), L1TdeRCT::DivideME1D(), MuonTestSummary::doEnergyTests(), fitUtilities::doGaussFit(), HDQMfitUtilities::doGaussFit(), MuonTestSummary::doKinematicsTests(), fitUtilities::doLanGaussFit(), HDQMfitUtilities::doLanGaussFit(), MuonTestSummary::doMuonIDTests(), 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(), RPCBxTest::endRun(), TauDQMHistEffProducer::endRun(), TopHLTDiMuonDQMClient::endRun(), EfficiencyPlotter::endRun(), FourVectorHLTClient::endRun(), DTResolutionAnalysisTest::endRun(), MuonRecoTest::endRun(), MuCorrMETAnalyzer::endRun(), TcMETAnalyzer::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(), TrigResRateMon::DatasetInfo::fillRawCountsForPath(), SiPixelActionExecutor::fillSummary(), FastTimerServiceClient::fillSummaryPlots(), TrigResRateMon::filltestHisto(), TrigResRateMon::fillXsecPerDataset(), FlavourHistograms< T >::FlavourHistograms(), MuonTestSummary::GaussFit(), L1TGMTClient::get1DHisto(), L1TEventInfoClient::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::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(), HLTTauDQMCaloPlotter::HLTTauDQMCaloPlotter(), HLTTauDQML1Plotter::HLTTauDQML1Plotter(), HLTTauDQMLitePathPlotter::HLTTauDQMLitePathPlotter(), HLTTauDQMTrkPlotter::HLTTauDQMTrkPlotter(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), L1TGMTClient::makeEfficiency1D(), DTLocalTriggerEfficiencyTest::makeEfficiencyME(), EgHLTOfflineClient::makeEffMonElem2Leg(), TopElectronHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndFail(), EgHLTOfflineClient::makeEffMonElemFromPassAndFailAndTagTag(), TcMETAnalyzer::makeRatePlot(), MuCorrMETAnalyzer::makeRatePlot(), PFMETAnalyzer::makeRatePlot(), METAnalyzer::makeRatePlot(), CaloMETAnalyzer::makeRatePlot(), L1TGMTClient::makeRatio1D(), DTLocalTriggerSynchTest::makeRatioME(), L1TDTTFClient::makeSummary(), FourVectorHLTClient::normalizeHLTMatrix(), TrigResRateMon::normalizeHLTMatrix(), DQMClientExample::performClient(), DTSegmentAnalysisTest::performClientDiagnostic(), BTagDifferentialPlot::plot(), EffPurFromHistos::plot(), FlavourHistograms< T >::plot(), HLTTauDQMSummaryPlotter::plotEfficiencyHisto(), HLTTauDQMSummaryPlotter::plotIntegratedEffHisto(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), FastTimerService::preBeginRun(), 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(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), GeneralHLTOffline::setupHltMatrix(), FourVectorHLTOnline::setupHltMatrix(), TrigResRateMon::setupHltMatrix(), FourVectorHLTOffline::setupHltMatrix(), TrigResRateMon::setupStreamMatrix(), TrackIPHistograms< T >::TrackIPHistograms(), and HLTMonBTagClient::update().

1487 {
1488  assert(kind() == DQM_KIND_TH1F);
1489  const_cast<MonitorElement *>(this)->update();
1490  return static_cast<TH1F *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1491 }
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 1494 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(), and MeanWithinExpected::runTest().

1495 {
1496  assert(kind() == DQM_KIND_TH1S);
1497  const_cast<MonitorElement *>(this)->update();
1498  return static_cast<TH1S *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1499 }
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 1526 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(), and ContentsWithinExpected::runTest().

1527 {
1528  assert(kind() == DQM_KIND_TH2D);
1529  const_cast<MonitorElement *>(this)->update();
1530  return static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1531 }
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 1510 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(), RPCMonitorLinkSynchro::beginJob(), RPCMonitorRaw::beginJob(), BeamMonitor::beginJob(), L1TDTTF::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), L1TCSCTF::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), CastorMonitorModule::beginJob(), L1TdeRCT::beginJob(), HcalBeamMonitor::beginLuminosityBlock(), HcalSummaryClient::beginRun(), CaloTowerAnalyzer::beginRun(), L1TGMTClient::beginRun(), HLTMonBitSummary::beginRun(), DQMProvInfo::beginRun(), ZDCMonitorClient::beginRun(), HLTInclusiveVBFSource::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::createResolutionPlots(), L1TdeRCT::DivideME2D(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), L1TEMUEventInfoClient::dumpContentMonitorElements(), RPCMonitorRaw::endJob(), RPCMonitorLinkSynchro::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), DTOccupancyTest::endLuminosityBlock(), DTNoiseAnalysisTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTChamberEfficiencyTest::endLuminosityBlock(), DTNoiseTest::endLuminosityBlock(), DataCertificationJetMET::endRun(), FourVectorHLTClient::endRun(), PhotonDataCertification::endRun(), DTChamberEfficiencyClient::endRun(), MuonRecoTest::endRun(), HLTMuonCertSummary::endRun(), HLTOverallSummary::endRun(), SiStripSummaryCreator::fillHistos(), GeneralHLTOffline::fillHltMatrix(), OccupancyPlotter::fillHltMatrix(), FourVectorHLTOnline::fillHltMatrix(), FourVectorHLTOffline::fillHltMatrix(), SiPixelActionExecutor::fillOccupancy(), SiStripQualityChecker::fillStatusHistogram(), SiPixelInformationExtractor::findNoisyPixels(), FitSlicesYTool::FitSlicesYTool(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), L1TGMTClient::get2DHisto(), L1TEventInfoClient::get2DHisto(), HLTEventInfoClient::get2DHisto(), L1TDTTPGClient::get2DHisto(), FourVectorHLTClient::get2DHisto(), getAnyHisto(), getHisto2(), SiStripHistoPlotter::getProjection(), getTH2F(), L1TDTTFClient::getTH2F(), MuIsoValidation::GetTH2FromMonitorElement(), HcalDetDiagPedestalClient::hasErrors_Temp(), HcalCoarsePedestalClient::hasErrors_Temp(), HcalDeadCellClient::hasErrors_Temp(), HcalDetDiagTimingClient::hasErrors_Temp(), HcalDetDiagNoiseMonitorClient::hasErrors_Temp(), HcalDigiClient::hasErrors_Temp(), HcalHotCellClient::hasErrors_Temp(), HcalNZSClient::hasErrors_Temp(), HcalTrigPrimClient::hasErrors_Temp(), HcalBeamClient::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(), Comp2RefEqualH::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), CompareLastFilledBin::runTest(), HcalBeamMonitor::SetEtaLabels(), CastorPSMonitor::setup(), CastorChannelQualityMonitor::setup(), HcalZDCMonitor::setup(), 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().

1511 {
1512  assert(kind() == DQM_KIND_TH2F);
1513  const_cast<MonitorElement *>(this)->update();
1514  return static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1515 }
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 1518 of file MonitorElement.cc.

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

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

1519 {
1520  assert(kind() == DQM_KIND_TH2S);
1521  const_cast<MonitorElement *>(this)->update();
1522  return static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1523 }
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 1534 of file MonitorElement.cc.

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

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

1535 {
1536  assert(kind() == DQM_KIND_TH3F);
1537  const_cast<MonitorElement *>(this)->update();
1538  return static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 3));
1539 }
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 805 of file MonitorElement.cc.

References accessRootObject().

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

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

Definition at line 1542 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(), EmDQMPostProcessor::dividehistos(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), AlcaBeamMonitorClient::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), EmDQMPostProcessor::endRun(), HltSusyExoPostProcessor::endRun(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), FastTimerServiceClient::fillSummaryPlots(), TrigResRateMon::filltestHisto(), ElectronMcFakePostValidator::finalize(), ElectronMcSignalPostValidator::finalize(), BeamMonitor::FitAndFill(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), L1TEventInfoClient::get1DProfile(), HLTEventInfoClient::get1DProfile(), L1TDTTPGClient::get1DProfile(), FourVectorHLTClient::get1DProfile(), getAnyHisto(), getHistoTProfile(), SiStripHistoPlotter::getProjection(), getTProfile(), MuIsoValidation::GetTProfileFromMonitorElement(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), HLTTauDQMSummaryPlotter::plotEfficiencyHisto(), HLTTauDQMSummaryPlotter::plotIntegratedEffHisto(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), FastTimerService::preBeginRun(), 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(), HcalNZSMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalBeamMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), and TrigResRateMon::setupHltMatrix().

1543 {
1544  assert(kind() == DQM_KIND_TPROFILE);
1545  const_cast<MonitorElement *>(this)->update();
1546  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1547 }
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
double MonitorElement::getYmax ( void  ) const
private

get max Y value (for profiles)

Definition at line 785 of file MonitorElement.cc.

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

786 {
787  if (kind() == DQM_KIND_TPROFILE)
788  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
789  ->GetYmax();
790  else
791  {
792  incompatible(__PRETTY_FUNCTION__);
793  return 0;
794  }
795 }
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 771 of file MonitorElement.cc.

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

772 {
773  if (kind() == DQM_KIND_TPROFILE)
774  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
775  ->GetYmin();
776  else
777  {
778  incompatible(__PRETTY_FUNCTION__);
779  return 0;
780  }
781 }
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.
bool MonitorElement::hasError ( void  ) const
inline

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

Definition at line 182 of file MonitorElement.h.

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

Referenced by SiPixelDataQuality::computeGlobalQualityFlag(), 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 190 of file MonitorElement.h.

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

Referenced by 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 186 of file MonitorElement.h.

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

Referenced by SiPixelActionExecutor::checkQTestResults(), 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 648 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().

649 {
650  raiseDQMError("MonitorElement", "Method '%s' cannot be invoked on monitor"
651  " element '%s'", func, data_.objname.c_str());
652 }
std::string objname
Definition: DQMNet.h:101
DQMNet::CoreObject data_
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 274 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 195 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 270 of file MonitorElement.h.

References refvalue_.

Referenced by copyFrom(), and copyFunctions().

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

Get the type of the monitor element.

Definition at line 91 of file MonitorElement.h.

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

Referenced by accessRootObject(), MEtoEDMConverter::beginRun(), copyFrom(), PFClient::createEfficiencyPlots(), SiStripMonitorDigi::createMEs(), 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(), SiStripCertificationInfo::fillTrackingCertificationMEs(), DQMService::flushStandalone(), ecaldqm::getBinContentME(), getBinEntries(), ecaldqm::getBinEntriesME(), ecaldqm::getBinErrorME(), ecaldqm::getBinME(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), getFloatValue(), PFClient::getHistogramParameters(), getIntValue(), 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(), 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
bool MonitorElement::operator< ( const MonitorElement x) const
inline

Compare monitor elements, for ordering in sets.

Definition at line 85 of file MonitorElement.h.

References data_, and DQMNet::setOrder().

86  {
87  return DQMNet::setOrder(data_, x.data_);
88  }
DQMNet::CoreObject data_
static bool setOrder(const CoreObject &a, const CoreObject &b)
Definition: DQMNet.h:174
MonitorElement & MonitorElement::operator= ( const MonitorElement x)

Definition at line 189 of file MonitorElement.cc.

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

190 {
191  if (this != &x)
192  {
193  delete object_;
194  delete refvalue_;
195 
196  data_ = x.data_;
197  scalar_ = x.scalar_;
198  object_ = x.object_;
200  refvalue_ = x.refvalue_;
201  qreports_ = x.qreports_;
202 
203  if (object_)
204  object_ = static_cast<TH1 *>(object_->Clone());
205 
206  if (refvalue_)
207  refvalue_ = static_cast<TH1 *>(refvalue_->Clone());
208  }
209 
210  return *this;
211 }
std::vector< QReport > qreports_
DQMNet::CoreObject data_
void MonitorElement::packQualityData ( std::string &  into) const

serialise quality report information into a string.

Definition at line 463 of file MonitorElement.cc.

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

464 {
466 }
QReports qreports
Definition: DQMNet.h:102
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 438 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().

439 {
440  char buf[64];
441  if (kind() == DQM_KIND_INT)
442  {
443  snprintf(buf, sizeof(buf), "%s%" PRId64, prefix, scalar_.num);
444  into = buf;
445  }
446  else if (kind() == DQM_KIND_REAL)
447  {
448  snprintf(buf, sizeof(buf), "%s%.*g", prefix, DBL_DIG+2, scalar_.real);
449  into = buf;
450  }
451  else if (kind() == DQM_KIND_STRING)
452  {
453  into.reserve(strlen(prefix) + scalar_.str.size());
454  into += prefix;
455  into += scalar_.str;
456  }
457  else
458  incompatible(__PRETTY_FUNCTION__);
459 }
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 530 of file MonitorElement.cc.

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

531 {
532  char buf[64];
533  std::string result;
534  size_t titlelen = data_.objname.size() + qv.qtname.size() + 1;
535  size_t buflen = sprintf(buf, "qr=st:%d:%.*g:", qv.code, DBL_DIG+2, qv.qtresult);
536 
537  result.reserve(7 + 2*titlelen + buflen + qv.algorithm.size() + qv.message.size());
538  result += '<'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
539  result += buf; result += qv.algorithm; result += ':'; result += qv.message;
540  result += '<'; result += '/'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
541  return result;
542 }
std::string algorithm
Definition: DQMNet.h:92
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:101
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 422 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(), EBIntegrityClient::analyze(), EBTestPulseClient::analyze(), EEIntegrityClient::analyze(), EBPedestalClient::analyze(), EEPedestalClient::analyze(), EEPedestalOnlineClient::analyze(), EBPedestalOnlineClient::analyze(), EETestPulseClient::analyze(), EBTriggerTowerClient::analyze(), EETriggerTowerClient::analyze(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), EETimingClient::analyze(), SiPixelDigiSource::analyze(), SiPixelClusterSource::analyze(), HcalTrigPrimMonitor::beginLuminosityBlock(), HcalBeamMonitor::beginLuminosityBlock(), HcalCoarsePedestalMonitor::beginLuminosityBlock(), SiStripMonitorDigi::beginLuminosityBlock(), AlcaBeamMonitor::beginLuminosityBlock(), EBRawDataTask::beginLuminosityBlock(), EERawDataTask::beginLuminosityBlock(), EBStatusFlagsTask::beginLuminosityBlock(), EEStatusFlagsTask::beginLuminosityBlock(), EEIntegrityTask::beginLuminosityBlock(), SiPixelEDAClient::beginLuminosityBlock(), EBIntegrityTask::beginLuminosityBlock(), HcalRawDataMonitor::beginLuminosityBlock(), HcalLSbyLSMonitor::beginLuminosityBlock(), HcalBaseDQMonitor::beginLuminosityBlock(), HcalHotCellMonitor::beginLuminosityBlock(), HcalDigiMonitor::beginLuminosityBlock(), HLTScalers::beginLuminosityBlock(), L1TOccupancyClient::beginRun(), MuonAlignmentSummary::beginRun(), SiStripMonitorRawData::beginRun(), SiStripDaqInfo::beginRun(), MEtoEDMConverter::beginRun(), DQMStore::book(), DQMLumiMonitor::bookHistograms(), L1TDTTFClient::buildSummaries(), HcalCoarsePedestalClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), HcalDetDiagPedestalMonitor::CheckStatus(), PFClient::createEfficiencyPlots(), PFClient::createResolutionPlots(), SiStripMonitorDigi::endLuminosityBlock(), HcalDeadCellMonitor::endLuminosityBlock(), HcalRawDataMonitor::endLuminosityBlock(), DTSummaryClients::endLuminosityBlock(), HcalDigiMonitor::endLuminosityBlock(), EELedTask::endRun(), DTOfflineSummaryClients::endRun(), QcdLowPtDQM::filldNdeta(), SiStripDaqInfo::fillDummyStatus(), SiStripDcsInfo::fillDummyStatus(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelActionExecutor::fillFEDErrorSummary(), HcalDetDiagLEDMonitor::fillHistos(), HcalDetDiagPedestalMonitor::fillHistos(), HcalDetDiagLaserMonitor::fillHistos(), RPCChamberQuality::fillMonitorElements(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripDcsInfo::fillStatus(), SiStripDaqInfo::findExcludedModule(), BeamMonitor::FitAndFill(), DQMStore::forceReset(), SiPixelActionExecutor::getFEDSummaryME(), SiPixelActionExecutor::getGrandSummaryME(), SiStripBaseCondObjDQM::getModMEs(), SiStripMonitorQuality::getQualityME(), SiPixelActionExecutor::getSummaryME(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), HcalBaseMonitor::periodicReset(), CastorEventDisplay::processEvent(), HcalNZSMonitor::reset(), HcalLSbyLSMonitor::reset(), HcalBeamMonitor::reset(), HcalDataIntegrityTask::reset(), HcalHotCellMonitor::reset(), EBLaserTask::reset(), EEClusterTask::reset(), EELaserTask::reset(), EBOccupancyTask::reset(), EBPedestalOnlineTask::reset(), EBPedestalTask::reset(), EEPedestalTask::reset(), EEPedestalOnlineTask::reset(), EETestPulseTask::reset(), EECosmicTask::reset(), EBClusterTask::reset(), EBCosmicTask::reset(), HcalDeadCellMonitor::reset(), EETrendTask::reset(), EBTestPulseTask::reset(), EBTrendTask::reset(), RPCFEDIntegrity::reset(), EcalBarrelMonitorModule::reset(), EBTimingTask::reset(), EBDaqInfoTask::reset(), EBSelectiveReadoutTask::reset(), EBDcsInfoTask::reset(), EcalEndcapMonitorModule::reset(), EBDataCertificationTask::reset(), EEDcsInfoTask::reset(), EEDaqInfoTask::reset(), EEDataCertificationTask::reset(), EBStatusFlagsTask::reset(), EBRawDataTask::reset(), EEStatusFlagsTask::reset(), EERawDataTask::reset(), EBIntegrityTask::reset(), EEIntegrityTask::reset(), EETrendClient::reset(), EBTrendClient::reset(), EBHltTask::reset(), EETimingTask::reset(), EEHltTask::reset(), EEOccupancyTask::reset(), EBTriggerTowerTask::reset(), EETriggerTowerTask::reset(), HcalBaseDQMonitor::reset(), HcalMonitorModule::reset(), ZDCMonitorModule::reset(), EESelectiveReadoutTask::reset(), HcalDigiMonitor::reset(), DQMStore::reset(), SiStripMonitorPedestals::resetMEs(), SiStripMonitorDigi::ResetModuleMEs(), SiStripMonitorCluster::ResetModuleMEs(), SiStripCertificationInfo::resetSiStripCertificationMEs(), SiStripQualityChecker::resetStatus(), SiStripCertificationInfo::resetTrackingCertificationMEs(), BeamMonitor::RestartFitting(), EBTimingClient::setup(), EELedClient::setup(), EBLaserClient::setup(), EELaserClient::setup(), EEPedestalOnlineClient::setup(), EBIntegrityClient::setup(), EETestPulseClient::setup(), EBPedestalOnlineClient::setup(), EBTestPulseClient::setup(), EBPedestalClient::setup(), EEPedestalClient::setup(), EEIntegrityClient::setup(), EETriggerTowerClient::setup(), EBTriggerTowerClient::setup(), EETimingClient::setup(), HcalBaseDQMonitor::setup(), PFMETDQMAnalyzer::storeBadEvents(), PFCandidateDQMAnalyzer::storeBadEvents(), and PFJetDQMAnalyzer::storeBadEvents().

423 {
424  update();
425  if (kind() == DQM_KIND_INT)
426  scalar_.num = 0;
427  else if (kind() == DQM_KIND_REAL)
428  scalar_.real = 0;
429  else if (kind() == DQM_KIND_STRING)
430  scalar_.str.clear();
431  else
432  return accessRootObject(__PRETTY_FUNCTION__, 1)
433  ->Reset();
434 }
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 283 of file MonitorElement.h.

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

Referenced by DQMStore::reset().

284  { 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 279 of file MonitorElement.h.

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

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

280  { data_.flags &= ~DQMNet::DQM_PROP_NEW; }
Definition: DQMNet.h:22
uint32_t flags
Definition: DQMNet.h:97
DQMNet::CoreObject data_
void MonitorElement::runQTests ( void  )

run all quality tests

Definition at line 616 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(), update(), updateQReportStats(), and wasUpdated().

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

617 {
618  assert(qreports_.size() == data_.qreports.size());
619 
620  // Rerun quality tests where the ME or the quality algorithm was modified.
621  bool dirty = wasUpdated();
622  for (size_t i = 0, e = data_.qreports.size(); i < e; ++i)
623  {
625  QReport &qr = qreports_[i];
626  QCriterion *qc = qr.qcriterion_;
627  qr.qvalue_ = &qv;
628 
629  // if (qc && (dirty || qc->wasModified())) // removed for new QTest (abm-090503)
630  if (qc && dirty)
631  {
632  assert(qc->getName() == qv.qtname);
633  std::string oldMessage = qv.message;
634  int oldStatus = qv.code;
635 
636  qc->runTest(this, qr, qv);
637 
638  if (oldStatus != qv.code || oldMessage != qv.message)
639  update();
640  }
641  }
642 
643  // Update QReport statistics.
645 }
QCriterion * qcriterion_
Definition: QReport.h:51
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:102
std::string getName(void) const
get name of quality test
Definition: QTest.h:56
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 288 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 
)

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

Definition at line 907 of file MonitorElement.cc.

References getAxis(), and update().

Referenced by HcalDataCertification::beginJob(), HcalDCSInfo::beginJob(), HcalDAQInfo::beginJob(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), RPCEfficiencySecond::endRun(), HLXMonitor::FillHistograms(), HcalDetDiagLaserMonitor::fillHistos(), and DTDataIntegrityTask::TimeHistos().

908 {
909  update();
910  getAxis(__PRETTY_FUNCTION__, axis)
911  ->SetRangeUser(xmin, xmax);
912 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
void MonitorElement::setAxisTimeDisplay ( int  value,
int  axis = 1 
)

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

Definition at line 925 of file MonitorElement.cc.

References getAxis(), and update().

926 {
927  update();
928  getAxis(__PRETTY_FUNCTION__, axis)
929  ->SetTimeDisplay(value);
930 }
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 934 of file MonitorElement.cc.

References getAxis(), and update().

935 {
936  update();
937  getAxis(__PRETTY_FUNCTION__, axis)
938  ->SetTimeFormat(format);
939 }
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 943 of file MonitorElement.cc.

References getAxis(), and update().

944 {
945  update();
946  getAxis(__PRETTY_FUNCTION__, axis)
947  ->SetTimeOffset(toffset, option);
948 }
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 916 of file MonitorElement.cc.

References getAxis(), and update().

Referenced by CSCOfflineMonitor::applyCSClabels(), DQMHOAlCaRecoStream::beginJob(), ESSummaryClient::beginJob(), TrackAnalyzer::beginJob(), DQMHcalDiJetsAlCaReco::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), HLTAlCaMonEcalPhiSym::beginJob(), TkAlCaRecoMonitor::beginJob(), L1EmulatorErrorFlagClient::beginJob(), EBDcsInfoTask::beginJob(), EBDaqInfoTask::beginJob(), L1TEventInfoClient::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), BxTiming::beginJob(), L1TDTTFClient::beginJob(), EBDataCertificationTask::beginJob(), EEDaqInfoTask::beginJob(), EEDataCertificationTask::beginJob(), EEDcsInfoTask::beginJob(), MuonRecoOneHLT::beginJob(), DQMFEDIntegrityClient::beginJob(), BeamConditionsMonitor::beginJob(), HLTEventInfoClient::beginJob(), AlcaBeamMonitor::beginJob(), DTDataIntegrityTest::beginJob(), VertexMonitor::beginJob(), MuonEnergyDepositAnalyzer::beginJob(), MuonRecoAnalyzer::beginJob(), DTBlockedROChannelsTest::beginJob(), TrackBuildingAnalyzer::beginJob(), TrackingMonitor::beginJob(), BeamMonitor::beginJob(), SegmentTrackAnalyzer::beginJob(), TrackSplittingMonitor::beginJob(), MuonSeedsAnalyzer::beginJob(), PFJetAnalyzer::beginJob(), TrackEfficiencyClient::beginJob(), TrackEfficiencyMonitor::beginJob(), L1TDTTF::beginJob(), L1TDTTPG::beginJob(), HLTAlCaMonPi0::beginJob(), DQMSourcePi0::beginJob(), JetAnalyzer::beginJob(), SiStripFEDCheckPlugin::beginJob(), LogMessageMonitor::beginJob(), HLTMon::beginJob(), L1TRPCTF::beginJob(), TTbarSpinCorrHepMCAnalyzer::beginJob(), L1TdeCSCTF::beginJob(), L1TCSCTF::beginJob(), TTbar_Kinematics::beginJob(), TauValidation::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), Vx3DHLTAnalyzer::beginJob(), L1TCompare::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), PiZeroAnalyzer::beginJob(), RPCBxTest::beginRun(), L1TGMTClient::beginRun(), DTOfflineSummaryClients::beginRun(), SiStripLAProfileBooker::beginRun(), AlcaBeamMonitor::beginRun(), DQMProvInfo::beginRun(), DTSummaryClients::beginRun(), SiPixelTrackResidualSource::beginRun(), SiStripMonitorRawData::beginRun(), EcalBarrelMonitorClient::beginRun(), HLTSeedL1LogicScalers::beginRun(), EcalEndcapMonitorClient::beginRun(), FourVectorHLTOnline::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(), SiPixelRawDataErrorModule::bookFED(), SiPixelDataQuality::bookGlobalQualityFlag(), JPTJetAnalyzer::bookHistogram(), L1TGT::bookHistograms(), L1TEMUEventInfoClient::bookHistograms(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerBaseTask::bookHistos(), TrackAnalyzer::bookHistosForState(), 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(), DTTriggerEfficiencyTest::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTLocalTriggerTask::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), HcalTrigPrimMonitor::create_fg_correlation(), HcalTrigPrimMonitor::create_tp_correlation(), MonitorTrackResiduals::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createSubDetMEs(), SiStripMonitorDigi::createSubDetMEs(), TrackAnalyzer::doTrackerSpecificInitialization(), BTagValidator::endJob(), RPCDcsInfoClient::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(), MuonIsolationDQM::InitHistos(), L1TScalersSCAL::L1TScalersSCAL(), rpcdqm::utils::labelXAxisSegment(), JetMETDQMOfflineClient::runClient_(), CSCMonitorObject::setAxisTitle(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapThLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), HcalNZSMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), EcalEndcapMonitorModule::setup(), HcalZDCMonitor::setup(), EECosmicTask::setup(), EBCosmicTask::setup(), EELaserTask::setup(), EELedTask::setup(), EEPedestalOnlineTask::setup(), EEPedestalTask::setup(), EEClusterTask::setup(), EBLaserTask::setup(), EETestPulseTask::setup(), EBClusterTask::setup(), EBOccupancyTask::setup(), EBPedestalTask::setup(), EBPedestalOnlineTask::setup(), EETrendTask::setup(), EcalBarrelMonitorModule::setup(), EBTestPulseTask::setup(), EBTrendTask::setup(), EBTimingTask::setup(), EBSelectiveReadoutTask::setup(), HcalRawDataMonitor::setup(), EBRawDataTask::setup(), EBStatusFlagsTask::setup(), EEStatusFlagsTask::setup(), EBSummaryClient::setup(), EESummaryClient::setup(), EERawDataTask::setup(), EBTrendClient::setup(), EBIntegrityTask::setup(), EEIntegrityTask::setup(), EETrendClient::setup(), EEOccupancyTask::setup(), EETimingTask::setup(), EELedClient::setup(), EBLaserClient::setup(), EELaserClient::setup(), EBTimingClient::setup(), EETestPulseClient::setup(), EBPedestalOnlineClient::setup(), EEIntegrityClient::setup(), EEPedestalClient::setup(), EBPedestalClient::setup(), EBTestPulseClient::setup(), EBIntegrityClient::setup(), EEPedestalOnlineClient::setup(), EETriggerTowerClient::setup(), EBTriggerTowerClient::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().

917 {
918  update();
919  getAxis(__PRETTY_FUNCTION__, axis)
920  ->SetTitle(title.c_str());
921 }
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 813 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by HcalDigiClient::analyze(), HcalSummaryClient::analyze(), ESSummaryClient::analyze(), HCALRecHitAnalyzer::analyze(), ESIntegrityClient::analyze(), ZDCMonitorClient::analyze(), BxTiming::analyze(), EBSelectiveReadoutTask::analyze(), HLTMonBitSummary::analyze(), EBSummaryClient::analyze(), EESummaryClient::analyze(), EBLaserClient::analyze(), EELaserClient::analyze(), EELedClient::analyze(), EBTimingClient::analyze(), EBPedestalOnlineClient::analyze(), EBPedestalClient::analyze(), EEIntegrityClient::analyze(), EBTestPulseClient::analyze(), EEPedestalClient::analyze(), EEPedestalOnlineClient::analyze(), EBIntegrityClient::analyze(), HLTJetMETDQMSource::analyze(), EETestPulseClient::analyze(), L1TScalersSCAL::analyze(), EBTriggerTowerClient::analyze(), EETriggerTowerClient::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(), ZDCMonitorClient::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(), RPCEventSummary::clientOperation(), RPCDeadChannelTest::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), PFClient::createEfficiencyPlots(), PFClient::createResolutionPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HLTMonSimpleBTag::doEffCalc(), BTagValidator::endJob(), DQMHcalPhiSymAlCaReco::endJob(), HcalSimHitsValidation::endJob(), MuonAlignment::endJob(), RPCDcsInfo::endLuminosityBlock(), DQMDcsInfo::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), HcalDeadCellMonitor::endLuminosityBlock(), EEDataCertificationTask::endLuminosityBlock(), EBDataCertificationTask::endLuminosityBlock(), EBRawDataTask::endLuminosityBlock(), L1EmulatorErrorFlagClient::endLuminosityBlock(), EERawDataTask::endLuminosityBlock(), HcalRawDataMonitor::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), HcalLSbyLSMonitor::endLuminosityBlock(), HcalZDCMonitor::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), HcalDAQInfo::endLuminosityBlock(), HcalDCSInfo::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), DQMHcalPhiSymAlCaReco::endRun(), RPCEfficiencyPerRingLayer::endRun(), RPCEfficiencyShiftHisto::endRun(), EEDataCertificationTask::endRun(), EBDataCertificationTask::endRun(), MuonAlignmentSummary::endRun(), EcalBarrelMonitorClient::endRun(), EcalEndcapMonitorClient::endRun(), RPCEfficiencySecond::endRun(), HcalRecHitMonitor::fill_Nevents(), SiPixelActionExecutor::fillDeviations(), QcdLowPtDQM::filldNdeta(), evf::iDie::fillDQMModFractionHist(), 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(), EEDaqInfoTask::fillMonitorElements(), EEDcsInfoTask::fillMonitorElements(), SiPixelActionExecutor::fillOccupancy(), MTVHistoProducerAlgo::fillPlotFromVector(), MuonTrackValidatorBase::fillPlotFromVector(), MTVHistoProducerAlgo::fillPlotFromVectors(), MuonTrackValidatorBase::fillPlotFromVectors(), HcalSummaryClient::fillReportSummary(), HLXMonitor::FillReportSummary(), HcalSummaryClient::fillReportSummaryLSbyLS(), FillUnphysicalHEHFBins(), DTTriggerLutTest::fillWhPlot(), DTLocalTriggerLutTest::fillWhPlot(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), BeamMonitor::FitAndFill(), DQMGenericClient::generic_eff(), FitSlicesYTool::getFittedMean(), FitSlicesYTool::getFittedMeanWithError(), FitSlicesYTool::getFittedSigma(), FitSlicesYTool::getFittedSigmaWithError(), CSCOfflineMonitor::harvestChamberMeans(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalBaseMonitor::hideKnownBadCells(), CSCOfflineMonitor::histoEfficiency(), DQMGenericClient::limitedFit(), L1TGCTClient::makeXProjection(), L1TGCTClient::makeYProjection(), DTTimeEvolutionHisto::normalizeTo(), HcalNZSMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), L1TdeRCT::readFEDVector(), L1TEMUEventInfoClient::readQtResults(), EgHLTOfflineSummaryClient::runClient_(), DTLocalTriggerEfficiencyTest::runClientDiagnostic(), CSCMonitorObject::SetBinContent(), ecaldqm::MESet::setBinContent_(), L1TDTTFClient::setGMTsummary(), HcalSubdetDigiMonitor::setMeElementBinContent(), DTTimeEvolutionHisto::setTimeSlotValue(), EELedClient::setup(), EBTimingClient::setup(), EBLaserClient::setup(), EELaserClient::setup(), EBIntegrityClient::setup(), EETestPulseClient::setup(), EBPedestalOnlineClient::setup(), EEPedestalOnlineClient::setup(), EBTestPulseClient::setup(), EEIntegrityClient::setup(), EBPedestalClient::setup(), EEPedestalClient::setup(), EETimingClient::setup(), HcalDetDiagTimingMonitor::setup(), HLXMonitor::SetupEventInfo(), ecaldqm::MESetTrend::shift_(), ShiftFillLast(), HcalEEUSMonitor::unpack(), HcalRawDataMonitor::UpdateMEs(), evf::iDie::updateRollingHistos(), and ECALRecHitAnalyzer::WriteECALRecHits().

814 {
815  update();
816  accessRootObject(__PRETTY_FUNCTION__, 1)
817  ->SetBinContent(binx, content);
818 }
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 822 of file MonitorElement.cc.

References accessRootObject(), and update().

823 {
824  update();
825  accessRootObject(__PRETTY_FUNCTION__, 2)
826  ->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 830 of file MonitorElement.cc.

References accessRootObject(), and update().

831 {
832  update();
833  accessRootObject(__PRETTY_FUNCTION__, 3)
834  ->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 865 of file MonitorElement.cc.

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

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

866 {
867  update();
868  if (kind() == DQM_KIND_TPROFILE)
869  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
870  ->SetBinEntries(bin, nentries);
871  else if (kind() == DQM_KIND_TPROFILE2D)
872  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
873  ->SetBinEntries(bin, nentries);
874  else
875  incompatible(__PRETTY_FUNCTION__);
876 }
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 838 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by EBSelectiveReadoutTask::analyze(), HLTMonBitSummary::analyze(), EBStatusFlagsClient::analyze(), EELaserClient::analyze(), EELedClient::analyze(), EEStatusFlagsClient::analyze(), EBLaserClient::analyze(), EBTimingClient::analyze(), HLTJetMETDQMSource::analyze(), EBTestPulseClient::analyze(), EETestPulseClient::analyze(), EETimingClient::analyze(), EESelectiveReadoutTask::analyze(), SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), EcalMixingModuleValidation::bunchSumTest(), SiPixelHitEfficiencyModule::computeEfficiencies(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), 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_(), ShiftFillLast(), and evf::iDie::updateRollingHistos().

839 {
840  update();
841  accessRootObject(__PRETTY_FUNCTION__, 1)
842  ->SetBinError(binx, error);
843 }
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 847 of file MonitorElement.cc.

References accessRootObject(), and update().

848 {
849  update();
850  accessRootObject(__PRETTY_FUNCTION__, 2)
851  ->SetBinError(binx, biny, error);
852 }
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 856 of file MonitorElement.cc.

References accessRootObject(), and update().

857 {
858  update();
859  accessRootObject(__PRETTY_FUNCTION__, 3)
860  ->SetBinError(binx, biny, binz, error);
861 }
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 889 of file MonitorElement.cc.

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

Referenced by BeamMonitor::analyze(), TriggerValidator::analyze(), CSCOfflineMonitor::applyCSClabels(), MonitorLTC::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), L1EmulatorErrorFlagClient::beginJob(), RPCDaqInfo::beginJob(), L1TDTTFClient::beginJob(), DQMFEDIntegrityClient::beginJob(), L1TdeGCT::beginJob(), HLTMonPhotonSource::beginJob(), HLTMonPhotonClient::beginJob(), L1TDEMON::beginJob(), MuonRecoAnalyzer::beginJob(), SegmentTrackAnalyzer::beginJob(), BeamMonitor::beginJob(), BasicHepMCValidation::beginJob(), HiggsValidation::beginJob(), PFJetAnalyzer::beginJob(), HTMHTAnalyzer::beginJob(), L1TDTTF::beginJob(), JetPtAnalyzer::beginJob(), L1TDTTPG::beginJob(), TcMETAnalyzer::beginJob(), LaserAlignmentT0ProducerDQM::beginJob(), MuCorrMETAnalyzer::beginJob(), JetAnalyzer::beginJob(), TopDiLeptonDQM::beginJob(), HcalDataCertification::beginJob(), HcalDCSInfo::beginJob(), HcalDAQInfo::beginJob(), LogMessageMonitor::beginJob(), L1TFED::beginJob(), L1TRPCTF::beginJob(), HLTMon::beginJob(), PFMETAnalyzer::beginJob(), CaloMETAnalyzer::beginJob(), L1TdeCSCTF::beginJob(), METAnalyzer::beginJob(), L1TCSCTF::beginJob(), TauValidation::beginJob(), EmDQMReco::beginJob(), RPCChamberQuality::beginRun(), HcalSummaryClient::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), RPCEventSummary::beginRun(), DTnoiseDBValidation::beginRun(), DQMProvInfo::beginRun(), RPCEfficiencyShiftHisto::beginRun(), SiPixelTrackResidualSource::beginRun(), HLTJetMETDQMSource::beginRun(), BTagHLTOfflineSource::beginRun(), JetMETHLTOfflineSource::beginRun(), FourVectorHLTOnline::beginRun(), L1GtHwValidation::beginRun(), FourVectorHLTOffline::beginRun(), HcalDetDiagLaserMonitor::beginRun(), ecaldqm::MESetEcal::book(), L1TGMT::book_(), HltSusyExoPostProcessor::bookEffMEProfileFromTH1(), SiPixelDataQuality::bookGlobalQualityFlag(), L1TGT::bookHistograms(), EwkElecTauHistManager::bookHistograms(), L1GtHwValidation::bookHistograms(), L1TEMUEventInfoClient::bookHistograms(), EwkMuTauHistManager::bookHistograms(), DTt0DBValidation::bookHistos(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerBaseTest::bookSectorHistos(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), 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(), evf::iDie::fillDQMModFractionHist(), SiPixelActionExecutor::fillFEDErrorSummary(), HLTScalersClient::HLTScalersClient(), HLTTauDQMLitePathPlotter::HLTTauDQMLitePathPlotter(), HLTTauDQMPathPlotter::HLTTauDQMPathPlotter(), evf::iDie::initMonitorElements(), 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(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), RPCEfficiency::RPCEfficiency(), SetEtaPhiLabels(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapThLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalNZSMonitor::setup(), HcalNoiseMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalDeadCellMonitor::setup(), HcalEEUSMonitor::setup(), EcalEndcapMonitorModule::setup(), HcalZDCMonitor::setup(), EcalBarrelMonitorModule::setup(), EBSelectiveReadoutTask::setup(), HcalRawDataMonitor::setup(), EBRawDataTask::setup(), EBStatusFlagsTask::setup(), EBSummaryClient::setup(), EERawDataTask::setup(), EESummaryClient::setup(), EEStatusFlagsTask::setup(), EBIntegrityTask::setup(), EEIntegrityTask::setup(), ZDCMonitorModule::setup(), HcalMonitorModule::setup(), HcalDigiMonitor::setup(), EESelectiveReadoutTask::setup(), HcalDetDiagTimingMonitor::setup(), FourVectorHLTOnline::setupHltLsPlots(), TrigResRateMon::setupHltLsPlots(), HcalDigiMonitor::setupSubdetHists(), L1TDTTF::setWheelLabel(), L1TDTTFClient::setWheelLabel(), ShiftFillLast(), evf::iDie::updateRollingHistos(), and DTTimeEvolutionHisto::updateTimeSlot().

890 {
891  update();
892  if ( getAxis(__PRETTY_FUNCTION__, axis)->GetNbins() >= bin )
893  {
894  getAxis(__PRETTY_FUNCTION__, axis)
895  ->SetBinLabel(bin, label.c_str());
896  }
897  else
898  {
899  // edm::LogWarning ("MonitorElement")
900  std::cout << "*** MonitorElement: WARNING:"
901  <<"setBinLabel: attempting to set label of non-existent bin number \n";
902  }
903 }
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

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

Definition at line 141 of file MonitorElement.h.

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

Referenced by DQMStore::extract().

uint32_t flags
Definition: DQMNet.h:97
static const uint32_t DQM_PROP_EFFICIENCY_PLOT
Definition: DQMNet.h:63
DQMNet::CoreObject data_
void MonitorElement::setEntries ( double  nentries)

set # of entries

Definition at line 880 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by EBSummaryClient::analyze(), EESummaryClient::analyze(), EBLaserClient::analyze(), EELaserClient::analyze(), EELedClient::analyze(), EBTestPulseClient::analyze(), EETestPulseClient::analyze(), PhotonOfflineClient::dividePlots(), CSCMonitorObject::SetEntries(), ecaldqm::MESetTrend::shift_(), and ShiftFillLast().

881 {
882  update();
883  accessRootObject(__PRETTY_FUNCTION__, 1)
884  ->SetEntries(nentries);
885 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
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 128 of file MonitorElement.h.

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

Referenced by 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 308 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(), and update().

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

309 {
310  update();
311  if (kind() == DQM_KIND_TH1F
312  || kind() == DQM_KIND_TH1S
313  || kind() == DQM_KIND_TH1D)
314  {
315  int nbins = getNbinsX();
316  int entries = (int)getEntries();
317  // first fill bins from left to right
318  int index = entries + 1 ;
319  int xlow = 2 ; int xup = nbins ;
320  // if more entries than bins then start shifting
321  if ( entries >= nbins )
322  {
323  index = nbins;
324  xlow = entries - nbins + 3 ; xup = entries+1 ;
325  // average first bin
326  double y1 = getBinContent(1);
327  double y2 = getBinContent(2);
328  double y1err = getBinError(1);
329  double y2err = getBinError(2);
330  double N = entries - nbins + 1.;
331  if ( ye == 0. || y1err == 0. || y2err == 0.)
332  {
333  // for errors zero calculate unweighted mean and its error
334  double sum = N*y1 + y2;
335  y1 = sum/(N+1.) ;
336  // FIXME check if correct
337  double s=(N+1.)*(N*y1*y1 + y2*y2) - sum*sum;
338  if (s>=0.)
339  y1err = sqrt(s)/(N+1.);
340  else
341  y1err = 0.;
342  }
343  else
344  {
345  // for errors non-zero calculate weighted mean and its error
346  double denom = (1./y1err + 1./y2err);
347  double mean = (y1/y1err + y2/y2err)/denom;
348  // FIXME check if correct
349  y1err = sqrt(((y1-mean)*(y1-mean)/y1err +
350  (y2-mean)*(y2-mean)/y2err)/denom/2.);
351  y1 = mean; // set y1 to mean for filling below
352  }
353  setBinContent(1,y1);
354  setBinError(1,y1err);
355  // shift remaining bins to the left
356  for ( int i = 3; i <= nbins ; i++)
357  {
360  }
361  }
362  // fill last bin with new values
363  setBinContent(index,y);
364  setBinError(index,ye);
365  // set entries
366  setEntries(entries+1);
367  // set axis labels and reset drawing option
368  char buffer [10];
369  sprintf (buffer, "%d", xlow*xscale);
370  std::string a(buffer); setBinLabel(2,a);
371  sprintf (buffer, "%d", xup*xscale);
372  std::string b(buffer); setBinLabel(nbins,b);
373  setBinLabel(1,"av.");
374  }
375  else
376  incompatible(__PRETTY_FUNCTION__);
377 }
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:46
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 984 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_, and update().

Referenced by DQMStore::softReset().

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

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

Definition at line 503 of file MonitorElement.cc.

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

504 {
505  char buf[32];
506  std::string result;
507  size_t len = sprintf(buf, "t=%" PRIu32, data_.tag);
508 
509  result.reserve(6 + 2*data_.objname.size() + len);
510  result += '<'; result += data_.objname; result += '>';
511  result += buf;
512  result += '<'; result += '/'; result += data_.objname; result += '>';
513  return result;
514 }
uint32_t tag
Definition: DQMNet.h:98
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:101
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 490 of file MonitorElement.cc.

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

491 {
492  std::string result;
493  std::string val(valueString());
494  result.reserve(6 + 2*data_.objname.size() + val.size());
495  result += '<'; result += data_.objname; result += '>';
496  result += val;
497  result += '<'; result += '/'; result += data_.objname; result += '>';
498  return result;
499 }
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:101
std::string valueString(void) const
DQMNet::CoreObject data_
void MonitorElement::update ( void  )
inline

Mark the object updated.

Definition at line 123 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(), CastorEventDisplay::processEvent(), HcalRawDataMonitor::processEvent(), HcalDeadCellMonitor::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 1450 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().

1451 {
1452  data_.flags &= ~DQMNet::DQM_PROP_REPORT_ALARM;
1453  for (size_t i = 0, e = data_.qreports.size(); i < e; ++i)
1454  switch (data_.qreports[i].code)
1455  {
1457  break;
1458  case dqm::qstatus::WARNING:
1460  break;
1461  case dqm::qstatus::ERROR:
1463  break;
1464  default:
1466  break;
1467  }
1468 }
static const uint32_t DQM_PROP_REPORT_WARN
Definition: DQMNet.h:47
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:102
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 471 of file MonitorElement.cc.

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

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

472 {
473  std::string result;
474  if (kind() == DQM_KIND_INT)
475  packScalarData(result, "i=");
476  else if (kind() == DQM_KIND_REAL)
477  packScalarData(result, "f=");
478  else if (kind() == DQM_KIND_STRING)
479  packScalarData(result, "s=");
480  else
481  incompatible(__PRETTY_FUNCTION__);
482 
483  return result;
484 }
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 119 of file MonitorElement.h.

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

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

120  { 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