CMS 3D CMS Logo

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

#include <MonitorElement.h>

Classes

struct  fits_in_int64_t
 
struct  Scalar
 

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Friends

class DQMService
 
class DQMStore
 

Detailed Description

The base class for all MonitorElements (ME)

Definition at line 34 of file MonitorElement.h.

Member Typedef Documentation

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

Definition at line 63 of file MonitorElement.h.

Member Enumeration Documentation

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

Definition at line 46 of file MonitorElement.h.

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

Constructor & Destructor Documentation

MonitorElement::MonitorElement ( void  )

Definition at line 147 of file MonitorElement.cc.

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

148  : object_(0),
149  reference_(0),
150  refvalue_(0)
151 {
152  data_.version = 0;
153  data_.dirname = 0;
154  data_.run = 0;
155  data_.lumi = 0;
156  data_.streamId = 0;
157  data_.moduleId = 0;
158  data_.tag = 0;
160  scalar_.num = 0;
161  scalar_.real = 0;
162 }
uint32_t moduleId
Definition: DQMNet.h:103
uint64_t version
Definition: DQMNet.h:99
uint32_t flags
Definition: DQMNet.h:97
uint32_t tag
Definition: DQMNet.h:98
const std::string * dirname
Definition: DQMNet.h:104
uint32_t run
Definition: DQMNet.h:100
uint32_t lumi
Definition: DQMNet.h:101
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:58
uint32_t streamId
Definition: DQMNet.h:102
MonitorElement::MonitorElement ( const std::string *  path,
const std::string &  name,
uint32_t  run = 0,
uint32_t  streamId = 0,
uint32_t  moduleId = 0 
)

Definition at line 164 of file MonitorElement.cc.

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

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

Definition at line 186 of file MonitorElement.cc.

References object_, and refvalue_.

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

Definition at line 226 of file MonitorElement.cc.

References object_, and refvalue_.

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

Member Function Documentation

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

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

697 {
698  if (kind() < DQM_KIND_TH1F)
699  raiseDQMError("MonitorElement", "Method '%s' cannot be invoked on monitor"
700  " element '%s' because it is not a root object",
701  func, data_.objname.c_str());
702 
703  return checkRootObject(data_.objname, object_, func, reqdim);
704 }
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
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 1263 of file MonitorElement.cc.

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

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

1264 {
1265  assert(h1);
1266  assert(h2);
1267  assert(sum);
1268 
1269  static const Int_t NUM_STAT = 6;
1270  Double_t stats1[NUM_STAT];
1271  Double_t stats2[NUM_STAT];
1272  Double_t stats3[NUM_STAT];
1273 
1274  bool isRebinOn = sum->TestBit(TH1::kCanRebin);
1275  sum->ResetBit(TH1::kCanRebin);
1276 
1277  for (Int_t i = 0; i < NUM_STAT; ++i)
1278  stats1[i] = stats2[i] = stats3[i] = 0;
1279 
1280  h1->GetStats(stats1);
1281  h2->GetStats(stats2);
1282 
1283  for (Int_t i = 0; i < NUM_STAT; ++i)
1284  stats3[i] = c1*stats1[i] + c2*stats2[i];
1285 
1286  stats3[1] = c1*TMath::Abs(c1)*stats1[1]
1287  + c2*TMath::Abs(c2)*stats2[1];
1288 
1289  Double_t entries = c1*h1->GetEntries() + c2* h2->GetEntries();
1290  TArrayD* h1sumw2 = h1->GetSumw2();
1291  TArrayD* h2sumw2 = h2->GetSumw2();
1292  for (Int_t bin = 0, nbin = sum->GetNbinsX()+1; bin <= nbin; ++bin)
1293  {
1294  Double_t entries = c1*h1->GetBinEntries(bin)
1295  + c2*h2->GetBinEntries(bin);
1296  Double_t content = c1*h1->GetBinEntries(bin)*h1->GetBinContent(bin)
1297  + c2*h2->GetBinEntries(bin)*h2->GetBinContent(bin);
1298  Double_t error = TMath::Sqrt(c1*TMath::Abs(c1)*h1sumw2->fArray[bin]
1299  + c2*TMath::Abs(c2)*h2sumw2->fArray[bin]);
1300  sum->SetBinContent(bin, content);
1301  sum->SetBinError(bin, error);
1302  sum->SetBinEntries(bin, entries);
1303  }
1304 
1305  sum->SetEntries(entries);
1306  sum->PutStats(stats3);
1307  if (isRebinOn) sum->SetBit(TH1::kCanRebin);
1308 }
int i
Definition: DBlmapReader.cc:9
void MonitorElement::addProfiles ( TProfile2D *  h1,
TProfile2D *  h2,
TProfile2D *  sum,
float  c1,
float  c2 
)
private

Definition at line 1313 of file MonitorElement.cc.

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

1314 {
1315  assert(h1);
1316  assert(h2);
1317  assert(sum);
1318 
1319  static const Int_t NUM_STAT = 9;
1320  Double_t stats1[NUM_STAT];
1321  Double_t stats2[NUM_STAT];
1322  Double_t stats3[NUM_STAT];
1323 
1324  bool isRebinOn = sum->TestBit(TH1::kCanRebin);
1325  sum->ResetBit(TH1::kCanRebin);
1326 
1327  for (Int_t i = 0; i < NUM_STAT; ++i)
1328  stats1[i] = stats2[i] = stats3[i] = 0;
1329 
1330  h1->GetStats(stats1);
1331  h2->GetStats(stats2);
1332 
1333  for (Int_t i = 0; i < NUM_STAT; i++)
1334  stats3[i] = c1*stats1[i] + c2*stats2[i];
1335 
1336  stats3[1] = c1*TMath::Abs(c1)*stats1[1]
1337  + c2*TMath::Abs(c2)*stats2[1];
1338 
1339  Double_t entries = c1*h1->GetEntries() + c2*h2->GetEntries();
1340  TArrayD *h1sumw2 = h1->GetSumw2();
1341  TArrayD *h2sumw2 = h2->GetSumw2();
1342  for (Int_t xbin = 0, nxbin = sum->GetNbinsX()+1; xbin <= nxbin; ++xbin)
1343  for (Int_t ybin = 0, nybin = sum->GetNbinsY()+1; ybin <= nybin; ++ybin)
1344  {
1345  Int_t bin = sum->GetBin(xbin, ybin);
1346  Double_t entries = c1*h1->GetBinEntries(bin)
1347  + c2*h2->GetBinEntries(bin);
1348  Double_t content = c1*h1->GetBinEntries(bin)*h1->GetBinContent(bin)
1349  + c2*h2->GetBinEntries(bin)*h2->GetBinContent(bin);
1350  Double_t error = TMath::Sqrt(c1*TMath::Abs(c1)*h1sumw2->fArray[bin]
1351  + c2*TMath::Abs(c2)*h2sumw2->fArray[bin]);
1352 
1353  sum->SetBinContent(bin, content);
1354  sum->SetBinError(bin, error);
1355  sum->SetBinEntries(bin, entries);
1356  }
1357  sum->SetEntries(entries);
1358  sum->PutStats(stats3);
1359  if (isRebinOn) sum->SetBit(TH1::kCanRebin);
1360 }
int i
Definition: DBlmapReader.cc:9
void MonitorElement::addQReport ( const DQMNet::QValue desc,
QCriterion qc 
)
private

Add quality report, from DQMStore.

Definition at line 1467 of file MonitorElement.cc.

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

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

1468 {
1469  QReport *qr;
1470  DQMNet::QValue *qv;
1471  getQReport(true, desc.qtname, qr, qv);
1472  qr->qcriterion_ = qc;
1473  *qv = desc;
1474  update();
1475 }
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 1478 of file MonitorElement.cc.

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

1479 {
1480  QReport *qr;
1481  DQMNet::QValue *qv;
1482  getQReport(true, qc->getName(), qr, qv);
1484  qv->message = "NO_MESSAGE_ASSIGNED";
1485  qr->qcriterion_ = qc;
1486  update();
1487 }
QCriterion * qcriterion_
Definition: QReport.h:51
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to &lt;qtname&gt; (null pointer if QReport does not exist)
std::string getName(void) const
get name of quality test
Definition: QTest.h:57
void update(void)
Mark the object updated.
static const int DID_NOT_RUN
std::string message
Definition: DQMNet.h:90
bool MonitorElement::CheckBinLabels ( const TAxis *  a1,
const TAxis *  a2 
)
static

Check the consistency of the axis labels.

Definition at line 235 of file MonitorElement.cc.

References i.

Referenced by DQMStore::checkBinningMatches().

236 {
237  // check that axis have same labels
238  THashList *l1 = (const_cast<TAxis*>(a1))->GetLabels();
239  THashList *l2 = (const_cast<TAxis*>(a2))->GetLabels();
240 
241  if (!l1 && !l2 )
242  return true;
243  if (!l1 || !l2 ) {
244  return false;
245  }
246  // check now labels sizes are the same
247  if (l1->GetSize() != l2->GetSize() ) {
248  return false;
249  }
250  for (int i = 1; i <= a1->GetNbins(); ++i) {
251  TString label1 = a1->GetBinLabel(i);
252  TString label2 = a2->GetBinLabel(i);
253  if (label1 != label2) {
254  return false;
255  }
256  }
257  return true;
258 }
int i
Definition: DBlmapReader.cc:9
void MonitorElement::copyFrom ( TH1 *  from)
private

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

1393 {
1394  TH1 *orig = accessRootObject(__PRETTY_FUNCTION__, 1);
1395  if (orig->GetTitle() != from->GetTitle())
1396  orig->SetTitle(from->GetTitle());
1397 
1398  if (!isAccumulateEnabled())
1399  orig->Reset();
1400 
1401  if (isSoftResetEnabled())
1402  {
1403  if (kind() == DQM_KIND_TH1F
1404  || kind() == DQM_KIND_TH1S
1405  || kind() == DQM_KIND_TH1D
1406  || kind() == DQM_KIND_TH2F
1407  || kind() == DQM_KIND_TH2S
1408  || kind() == DQM_KIND_TH2D
1409  || kind() == DQM_KIND_TH3F)
1410  // subtract "reference"
1411  orig->Add(from, refvalue_, 1, -1);
1412  else if (kind() == DQM_KIND_TPROFILE)
1413  // subtract "reference"
1414  addProfiles(static_cast<TProfile *>(from),
1415  static_cast<TProfile *>(refvalue_),
1416  static_cast<TProfile *>(orig),
1417  1, -1);
1418  else if (kind() == DQM_KIND_TPROFILE2D)
1419  // subtract "reference"
1420  addProfiles(static_cast<TProfile2D *>(from),
1421  static_cast<TProfile2D *>(refvalue_),
1422  static_cast<TProfile2D *>(orig),
1423  1, -1);
1424  else
1425  incompatible(__PRETTY_FUNCTION__);
1426  }
1427  else
1428  orig->Add(from);
1429 
1430  copyFunctions(from, orig);
1431 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind(void) const
Get the type of the monitor element.
bool isAccumulateEnabled(void) const
whether ME contents should be accumulated over multiple monitoring periods; default: false ...
void copyFunctions(TH1 *from, TH1 *to)
bool isSoftResetEnabled(void) const
whether soft-reset is enabled; default is false
void MonitorElement::copyFunctions ( TH1 *  from,
TH1 *  to 
)
private

Definition at line 1363 of file MonitorElement.cc.

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

Referenced by copyFrom().

1364 {
1365  // will copy functions only if local-copy and original-object are equal
1366  // (ie. no soft-resetting or accumulating is enabled)
1368  return;
1369 
1370  update();
1371  TList *fromf = from->GetListOfFunctions();
1372  TList *tof = to->GetListOfFunctions();
1373  for (int i = 0, nfuncs = fromf ? fromf->GetSize() : 0; i < nfuncs; ++i)
1374  {
1375  TObject *obj = fromf->At(i);
1376  // not interested in statistics
1377  if (!strcmp(obj->IsA()->GetName(), "TPaveStats"))
1378  continue;
1379 
1380  if (TF1 *fn = dynamic_cast<TF1 *>(obj))
1381  tof->Add(new TF1(*fn));
1382  //else if (dynamic_cast<TPaveStats *>(obj))
1383  // ; // FIXME? tof->Add(new TPaveStats(*stats));
1384  else
1385  raiseDQMError("MonitorElement", "Cannot extract function '%s' of type"
1386  " '%s' from monitor element '%s' for a copy",
1387  obj->GetName(), obj->IsA()->GetName(), data_.objname.c_str());
1388  }
1389 }
int i
Definition: DBlmapReader.cc:9
void update(void)
Mark the object updated.
bool isAccumulateEnabled(void) const
whether ME contents should be accumulated over multiple monitoring periods; default: false ...
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
bool isSoftResetEnabled(void) const
whether soft-reset is enabled; default is false
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void MonitorElement::disableSoftReset ( void  )
private

reverts action of softReset

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

1226 {
1227  if (refvalue_)
1228  {
1229  if (kind() == DQM_KIND_TH1F
1230  || kind() == DQM_KIND_TH1S
1231  || kind() == DQM_KIND_TH1D
1232  || kind() == DQM_KIND_TH2F
1233  || kind() == DQM_KIND_TH2S
1234  || kind() == DQM_KIND_TH2D
1235  || kind() == DQM_KIND_TH3F)
1236  {
1237  TH1 *orig = static_cast<TH1 *>(object_);
1238  orig->Add(refvalue_);
1239  }
1240  else if (kind() == DQM_KIND_TPROFILE)
1241  {
1242  TProfile *orig = static_cast<TProfile *>(object_);
1243  TProfile *r = static_cast<TProfile *>(refvalue_);
1244  addProfiles(orig, r, orig, 1, 1);
1245  }
1246  else if (kind() == DQM_KIND_TPROFILE2D)
1247  {
1248  TProfile2D *orig = static_cast<TProfile2D *>(object_);
1249  TProfile2D *r = static_cast<TProfile2D *>(refvalue_);
1250  addProfiles(orig, r, orig, 1, 1);
1251  }
1252  else
1253  incompatible(__PRETTY_FUNCTION__);
1254 
1255  delete refvalue_;
1256  refvalue_ = 0;
1257  }
1258 }
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 295 of file MonitorElement.cc.

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

Referenced by Fill().

296 {
297  update();
298  if (kind() == DQM_KIND_INT)
299  scalar_.num = static_cast<int64_t>(x);
300  else if (kind() == DQM_KIND_REAL)
301  scalar_.real = static_cast<double>(x);
302  else if (kind() == DQM_KIND_TH1F)
303  accessRootObject(__PRETTY_FUNCTION__, 1)
304  ->Fill(static_cast<double>(x), 1);
305  else if (kind() == DQM_KIND_TH1S)
306  accessRootObject(__PRETTY_FUNCTION__, 1)
307  ->Fill(static_cast<double>(x), 1);
308  else if (kind() == DQM_KIND_TH1D)
309  accessRootObject(__PRETTY_FUNCTION__, 1)
310  ->Fill(static_cast<double>(x), 1);
311  else
312  incompatible(__PRETTY_FUNCTION__);
313 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
std::string MonitorElement::effLabelString ( void  ) const

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

Definition at line 559 of file MonitorElement.cc.

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

560 {
562 
563  result.reserve(6 + 2*data_.objname.size() + 3);
564  result += '<'; result += data_.objname; result += '>';
565  result += "e=1";
566  result += '<'; result += '/'; result += data_.objname; result += '>';
567  return result;
568 }
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
void MonitorElement::Fill ( long long  x)
inline

Definition at line 164 of file MonitorElement.h.

References doFill().

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

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

Definition at line 165 of file MonitorElement.h.

References doFill().

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

Definition at line 166 of file MonitorElement.h.

References doFill().

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

Definition at line 167 of file MonitorElement.h.

References doFill().

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

Definition at line 168 of file MonitorElement.h.

References doFill().

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

Definition at line 169 of file MonitorElement.h.

References doFill().

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

Definition at line 170 of file MonitorElement.h.

References doFill().

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

Definition at line 171 of file MonitorElement.h.

References doFill().

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

Definition at line 172 of file MonitorElement.h.

References doFill().

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

Definition at line 173 of file MonitorElement.h.

References doFill().

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

Definition at line 175 of file MonitorElement.h.

References Fill().

Referenced by Fill().

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

"Fill" ME methods for double

Definition at line 273 of file MonitorElement.cc.

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

274 {
275  update();
276  if (kind() == DQM_KIND_INT)
277  scalar_.num = static_cast<int64_t>(x);
278  else if (kind() == DQM_KIND_REAL)
279  scalar_.real = x;
280  else if (kind() == DQM_KIND_TH1F)
281  accessRootObject(__PRETTY_FUNCTION__, 1)
282  ->Fill(x, 1);
283  else if (kind() == DQM_KIND_TH1S)
284  accessRootObject(__PRETTY_FUNCTION__, 1)
285  ->Fill(x, 1);
286  else if (kind() == DQM_KIND_TH1D)
287  accessRootObject(__PRETTY_FUNCTION__, 1)
288  ->Fill(x, 1);
289  else
290  incompatible(__PRETTY_FUNCTION__);
291 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
if(dp >Float(M_PI)) dp-
Definition: DDAxes.h:10
void MonitorElement::Fill ( std::string &  value)

"Fill" ME methods for string

Definition at line 262 of file MonitorElement.cc.

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

263 {
264  update();
265  if (kind() == DQM_KIND_STRING)
266  scalar_.str = value;
267  else
268  incompatible(__PRETTY_FUNCTION__);
269 }
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 317 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().

318 {
319  update();
320  if (kind() == DQM_KIND_TH1F)
321  accessRootObject(__PRETTY_FUNCTION__, 1)
322  ->Fill(x, yw);
323  else if (kind() == DQM_KIND_TH1S)
324  accessRootObject(__PRETTY_FUNCTION__, 1)
325  ->Fill(x, yw);
326  else if (kind() == DQM_KIND_TH1D)
327  accessRootObject(__PRETTY_FUNCTION__, 1)
328  ->Fill(x, yw);
329  else if (kind() == DQM_KIND_TH2F)
330  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
331  ->Fill(x, yw, 1);
332  else if (kind() == DQM_KIND_TH2S)
333  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
334  ->Fill(x, yw, 1);
335  else if (kind() == DQM_KIND_TH2D)
336  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
337  ->Fill(x, yw, 1);
338  else if (kind() == DQM_KIND_TPROFILE)
339  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
340  ->Fill(x, yw, 1);
341  else
342  incompatible(__PRETTY_FUNCTION__);
343 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
void MonitorElement::Fill ( double  x,
double  y,
double  zw 
)

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

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

422 {
423  update();
424  if (kind() == DQM_KIND_TH2F)
425  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
426  ->Fill(x, y, zw);
427  else if (kind() == DQM_KIND_TH2S)
428  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
429  ->Fill(x, y, zw);
430  else if (kind() == DQM_KIND_TH2D)
431  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
432  ->Fill(x, y, zw);
433  else if (kind() == DQM_KIND_TH3F)
434  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
435  ->Fill(x, y, zw, 1);
436  else if (kind() == DQM_KIND_TPROFILE)
437  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 2))
438  ->Fill(x, y, zw);
439  else if (kind() == DQM_KIND_TPROFILE2D)
440  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
441  ->Fill(x, y, zw, 1);
442  else
443  incompatible(__PRETTY_FUNCTION__);
444 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
auto zw(V v) -> Vec2< typenamestd::remove_reference< decltype(v[0])>::type >
Definition: ExtVec.h:36
void update(void)
Mark the object updated.
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
void MonitorElement::Fill ( double  x,
double  y,
double  z,
double  w 
)

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

Definition at line 448 of file MonitorElement.cc.

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

449 {
450  update();
451  if (kind() == DQM_KIND_TH3F)
452  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
453  ->Fill(x, y, z, w);
454  else if (kind() == DQM_KIND_TPROFILE2D)
455  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
456  ->Fill(x, y, z, w);
457  else
458  incompatible(__PRETTY_FUNCTION__);
459 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
float float float z
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
T w() const
Definition: DDAxes.h:10
uint32_t MonitorElement::flags ( void  ) const
inline

Get the object flags.

Definition at line 107 of file MonitorElement.h.

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

108  { 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 1001 of file MonitorElement.cc.

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

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

1002 {
1003  TH1 *h = accessRootObject(func, axis-1);
1004  TAxis *a = 0;
1005  if (axis == 1)
1006  a = h->GetXaxis();
1007  else if (axis == 2)
1008  a = h->GetYaxis();
1009  else if (axis == 3)
1010  a = h->GetZaxis();
1011 
1012  if (! a)
1013  raiseDQMError("MonitorElement", "No such axis %d in monitor element"
1014  " '%s' of type '%s'", axis, data_.objname.c_str(),
1015  typeid(*h).name());
1016 
1017  return a;
1018 }
TH1 * accessRootObject(const char *func, int reqdim) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
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 840 of file MonitorElement.cc.

References getAxis().

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

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

get content of bin (1-D)

Definition at line 753 of file MonitorElement.cc.

References accessRootObject().

Referenced by ESSummaryClient::analyze(), HCALRecHitAnalyzer::analyze(), HLTMonBitSummary::analyze(), RPCDBPopConAnalyzer::analyze(), SiPixelEDAClient::beginLuminosityBlock(), L1TDTTFClient::buildPhiEtaPlotO(), L1TDTTFClient::buildPhiEtaPlotOFC(), EcalMixingModuleValidation::bunchSumTest(), HcalTrigPrimClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), RPCOccupancyTest::clientOperation(), RPCClusterSizeTest::clientOperation(), RPCDeadChannelTest::clientOperation(), RPCEventSummary::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelDataQuality::computeGlobalQualityFlagByLumi(), PFClient_JetRes::createEfficiencyPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HLTMonSimpleBTag::doEffCalc(), MuonTestSummary::doMultiplicityTests(), MuonTestSummary::doMuonIDTests(), MuonTestSummary::doResidualsTests(), DQMExample_Step2::dqmEndJob(), SiPixelActionExecutor::dumpBarrelRefValues(), SiPixelActionExecutor::dumpEndcapRefValues(), SiStripMonitorFilter::endJob(), SiStripMonitorHLT::endJob(), DQMHcalPhiSymAlCaReco::endJob(), HcalSimHitsValidation::endJob(), ESSummaryClient::endLumiAnalyze(), RPCDqmClient::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), DTDCSByLumiSummary::endLuminosityBlock(), SiStripMonitorDigi::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), HcalLSbyLSMonitor::endLuminosityBlock(), HLTEventInfoClient::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), DTSummaryClients::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), DTCertificationSummary::endRun(), RPCDqmClient::endRun(), DTOfflineSummaryClients::endRun(), DQMHcalPhiSymAlCaReco::endRun(), RPCEfficiencyPerRingLayer::endRun(), RPCEfficiencyShiftHisto::endRun(), DTChamberEfficiencyClient::endRun(), RPCEfficiencySecond::endRun(), HcalDigisValidation::eval_occupancy(), SiPixelActionExecutor::fillDeviations(), SiPixelActionExecutor::fillEfficiency(), 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(), ElectronMcFakePostValidator::finalize(), ElectronMcSignalPostValidator::finalize(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetDet1D::getBinContent(), CSCMonitorObject::GetBinContent(), ecaldqm::MESet::ConstBin::getBinContent(), HcalSubdetDigiMonitor::getMeElementBinContent(), SiPixelDigiModule::getZeroLoEffROCs(), CSCOfflineMonitor::harvestChamberMeans(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalDigisClient::integralMETH2D(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), DTTimeEvolutionHisto::normalizeTo(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), RPCChamberQuality::performeClientOperation(), HLTTauPostProcessor::plotFilterEfficiencies(), HcalBeamMonitor::processEvent(), SiStripFEDErrorsDQM::readHistogram(), CastorLEDMonitor::reset(), SiPixelDQMRocLevelAnalyzer::RocSumOneModule(), HcalDigisClient::scaleMETH2D(), L1EmulatorErrorFlagClient::setSummary(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), ShiftFillLast(), HcalSimHitsClient::SimHitsEndjob(), DTDataIntegrityTask::TimeHistos(), HcalRawDataMonitor::UpdateMEs(), DTTimeEvolutionHisto::updateTimeSlot(), and ECALRecHitAnalyzer::WriteECALRecHits().

754 { return accessRootObject(__PRETTY_FUNCTION__, 1)
755  ->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 759 of file MonitorElement.cc.

References accessRootObject().

760 { return accessRootObject(__PRETTY_FUNCTION__, 2)
761  ->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 765 of file MonitorElement.cc.

References accessRootObject().

766 { return accessRootObject(__PRETTY_FUNCTION__, 3)
767  ->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 795 of file MonitorElement.cc.

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

Referenced by ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetDet1D::getBinEntries(), ecaldqm::MESet::ConstBin::getBinEntries(), and ecaldqm::MESetTrend::shift_().

796 {
797  if (kind() == DQM_KIND_TPROFILE)
798  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
799  ->GetBinEntries(bin);
800  else if (kind() == DQM_KIND_TPROFILE2D)
801  return static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
802  ->GetBinEntries(bin);
803  else
804  {
805  incompatible(__PRETTY_FUNCTION__);
806  return 0;
807  }
808 }
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 777 of file MonitorElement.cc.

References accessRootObject().

778 { return accessRootObject(__PRETTY_FUNCTION__, 2)
779  ->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 783 of file MonitorElement.cc.

References accessRootObject().

784 { return accessRootObject(__PRETTY_FUNCTION__, 3)
785  ->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 144 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

145  { 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 717 of file MonitorElement.cc.

References accessRootObject().

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

718 { return accessRootObject(__PRETTY_FUNCTION__, axis-1)
719  ->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 111 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(), HcalCoarsePedestalClient::beginRun(), HcalDeadCellClient::beginRun(), HcalDetDiagLEDClient::beginRun(), HcalDetDiagNoiseMonitorClient::beginRun(), HcalDetDiagPedestalClient::beginRun(), HcalBeamClient::beginRun(), HcalDetDiagTimingClient::beginRun(), HcalDigiClient::beginRun(), HcalHotCellClient::beginRun(), HcalNZSClient::beginRun(), HcalTrigPrimClient::beginRun(), HcalRecHitClient::beginRun(), HcalSummaryClient::beginRun(), RPCBxTest::beginRun(), RPCMon_SS_Dbx_Global::beginRun(), RPCOccupancyTest::beginRun(), HcalRawDataClient::beginRun(), RPCEventSummary::beginRun(), RPCDeadChannelTest::beginRun(), RPCMultiplicityTest::beginRun(), RPCClusterSizeTest::beginRun(), ZDCMonitorClient::beginRun(), L1TEventInfoClient::bookHistograms(), SiPixelActionExecutor::checkQTestResults(), HcalMonitorModule::cleanup(), FourVectorHLTOnline::countHLTGroupBXHitsEndLumiBlock(), PFClient::createResolutionPlots(), HLTMonSimpleBTag::doEffCalc(), HLTMuonCertSummary::dqmEndJob(), L1TEventInfoClient::dumpContentMonitorElements(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiStripSummaryCreator::fillHistos(), SiStripQualityChecker::fillSubDetStatus(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), BeamMonitor::FitAndFill(), SiPixelDataQuality::getDetId(), SiPixelInformationExtractor::getDetId(), ESClient::getHisto(), HcalUtilsClient::getHisto(), getHisto(), getHisto2(), getHistoTH3F(), getHistoTProfile(), getHistoTProfile2D(), SiStripQualityChecker::getModuleStatus(), SiStripSummaryCreator::getSummaryME(), CommissioningHistograms::histogram(), SiStripHistoPlotter::makeCondDBPlots(), SiPixelHistoPlotter::makePlot(), L1TDTTPGClient::makeRatioHisto(), SiStripBaseServiceFromDQM< T >::StringNotMatch::operator()(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), SiStripInformationExtractor::plotHistosFromLayout(), SiStripInformationExtractor::printAlarmList(), TrackingActionExecutor::printShiftHistoParameters(), SiStripActionExecutor::printShiftHistoParameters(), ElectronDqmAnalyzerBase::profileX(), ScoutingAnalyzerBase::profileX(), ElectronDqmAnalyzerBase::profileY(), ScoutingAnalyzerBase::profileY(), MEtoEDMConverter::putData(), SiStripFEDErrorsDQM::readHistogram(), L1TEventInfoClient::readQtResults(), SiPixelHistoricInfoDQMClient::retrieveMEs(), SiPixelHistoricInfoEDAClient::retrieveMEs(), SiStripHistoryDQMService::returnDetComponent(), SiPixelHistoryDQMService::returnDetComponent(), DTLocalTriggerSynchTest::runClientDiagnostic(), SubTaskSummaryStatus::WriteThreshold(), and CSCRecHit2DValidation::~CSCRecHit2DValidation().

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

get # of bins in X-axis

Definition at line 735 of file MonitorElement.cc.

References accessRootObject().

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

736 { return accessRootObject(__PRETTY_FUNCTION__, 1)
737  ->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 747 of file MonitorElement.cc.

References accessRootObject().

748 { return accessRootObject(__PRETTY_FUNCTION__, 3)
749  ->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 115 of file MonitorElement.h.

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

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

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

get errors from last set of quality tests

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

625 {
626  std::vector<QReport *> result;
627  result.reserve(qreports_.size());
628  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
629  if (data_.qreports[i].code == dqm::qstatus::ERROR)
630  {
631  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
632  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
633  result.push_back(const_cast<QReport *>(&qreports_[i]));
634  }
635  return result;
636 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::vector< QReport > qreports_
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
static const int ERROR
std::vector< QReport * > MonitorElement::getQOthers ( void  ) const

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

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

640 {
641  std::vector<QReport *> result;
642  result.reserve(qreports_.size());
643  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
646  && data_.qreports[i].code != dqm::qstatus::ERROR)
647  {
648  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
649  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
650  result.push_back(const_cast<QReport *>(&qreports_[i]));
651  }
652  return result;
653 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::vector< QReport > qreports_
static const int WARNING
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
static const int STATUS_OK
static const int ERROR
const QReport * MonitorElement::getQReport ( const std::string &  qtname) const

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

Definition at line 586 of file MonitorElement.cc.

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

587 {
588  QReport *qr;
589  DQMNet::QValue *qv;
590  const_cast<MonitorElement *>(this)->getQReport(false, qtname, qr, qv);
591  return qr;
592 }
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 1435 of file MonitorElement.cc.

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

1436 {
1437  assert(qreports_.size() == data_.qreports.size());
1438 
1439  qr = 0;
1440  qv = 0;
1441 
1442  size_t pos = 0, end = qreports_.size();
1443  while (pos < end && data_.qreports[pos].qtname != qtname)
1444  ++pos;
1445 
1446  if (pos == end && ! create)
1447  return;
1448  else if (pos == end)
1449  {
1450  data_.qreports.push_back(DQMNet::QValue());
1451  qreports_.push_back(QReport(0, 0));
1452 
1453  DQMNet::QValue &q = data_.qreports.back();
1455  q.qtresult = 0;
1456  q.qtname = qtname;
1457  q.message = "NO_MESSAGE_ASSIGNED";
1458  q.algorithm = "UNKNOWN_ALGORITHM";
1459  }
1460 
1461  qr = &qreports_[pos];
1462  qv = &data_.qreports[pos];
1463 }
QReports qreports
Definition: DQMNet.h:106
std::string algorithm
Definition: DQMNet.h:92
std::vector< QReport > qreports_
static const int DID_NOT_RUN
#define end
Definition: vmac.h:37
std::string qtname
Definition: DQMNet.h:91
DQMNet::CoreObject data_
std::string message
Definition: DQMNet.h:90
float qtresult
Definition: DQMNet.h:89
SurfaceDeformation * create(int type, const std::vector< double > &params)
std::vector< QReport * > MonitorElement::getQReports ( void  ) const

get map of QReports

Definition at line 595 of file MonitorElement.cc.

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

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

596 {
597  std::vector<QReport *> result;
598  result.reserve(qreports_.size());
599  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
600  {
601  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
602  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
603  result.push_back(const_cast<QReport *>(&qreports_[i]));
604  }
605  return result;
606 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::vector< QReport > qreports_
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
std::vector< QReport * > MonitorElement::getQWarnings ( void  ) const

get warnings from last set of quality tests

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

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

Definition at line 1607 of file MonitorElement.cc.

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

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

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

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

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

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

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

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

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

Definition at line 1659 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

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

Definition at line 1641 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

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

Definition at line 1650 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

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

Definition at line 1668 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

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

Definition at line 1677 of file MonitorElement.cc.

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

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

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

Definition at line 1686 of file MonitorElement.cc.

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

1687 {
1688  assert(kind() == DQM_KIND_TPROFILE2D);
1689  const_cast<MonitorElement *>(this)->update();
1690  return static_cast<TProfile2D *>
1691  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1692 }
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
double MonitorElement::getRMS ( int  axis = 1) const
double MonitorElement::getRMSError ( int  axis = 1) const

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

Definition at line 729 of file MonitorElement.cc.

References accessRootObject().

Referenced by BeamMonitor::FitAndFill().

730 { return accessRootObject(__PRETTY_FUNCTION__, axis-1)
731  ->GetRMSError(axis); }
TH1 * accessRootObject(const char *func, int reqdim) const
TObject * MonitorElement::getRootObject ( void  ) const
const std::string& MonitorElement::getStringValue ( void  ) const
inline

Definition at line 357 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

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

Definition at line 371 of file MonitorElement.h.

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

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

Definition at line 363 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

364  {
367  tags.push_back(data_.tag);
368  return tags;
369  }
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 1520 of file MonitorElement.cc.

References accessRootObject(), and update().

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

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

Definition at line 1543 of file MonitorElement.cc.

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

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

1544 {
1545  assert(kind() == DQM_KIND_TH1D);
1546  const_cast<MonitorElement *>(this)->update();
1547  return static_cast<TH1D *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1548 }
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 1527 of file MonitorElement.cc.

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

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

1528 {
1529  assert(kind() == DQM_KIND_TH1F);
1530  const_cast<MonitorElement *>(this)->update();
1531  return static_cast<TH1F *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1532 }
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 1535 of file MonitorElement.cc.

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

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

1536 {
1537  assert(kind() == DQM_KIND_TH1S);
1538  const_cast<MonitorElement *>(this)->update();
1539  return static_cast<TH1S *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1540 }
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 1567 of file MonitorElement.cc.

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

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

1568 {
1569  assert(kind() == DQM_KIND_TH2D);
1570  const_cast<MonitorElement *>(this)->update();
1571  return static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1572 }
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 1551 of file MonitorElement.cc.

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

Referenced by SiStripGainFromData::algoBeginJob(), SiStripGainFromCalibTree::algoComputeMPVandGain(), HcalDigiClient::analyze(), HcalSummaryClient::analyze(), FourVectorHLTOnline::analyze(), CastorMonitorModule::analyze(), BeamMonitor::beginJob(), L1TDTTF::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), ZDCDigiStudy::beginJob(), ZdcSimHitStudy::beginJob(), L1TCSCTF::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), HcalBeamMonitor::beginLuminosityBlock(), CastorPSMonitor::beginRun(), HcalSummaryClient::beginRun(), L1TGMTClient::beginRun(), CastorChannelQualityMonitor::beginRun(), HLTMonBitSummary::beginRun(), ZDCMonitorClient::beginRun(), DQMProvInfo::beginRun(), HLTInclusiveVBFSource::beginRun(), L1TdeRCT::beginRun(), CastorMonitorModule::beginRun(), ElectronDqmAnalyzerBase::bookH2(), ElectronDqmAnalyzerBase::bookH2andDivide(), ElectronDqmAnalyzerBase::bookH2withSumw2(), RPCValidHistograms::bookHistograms(), RPCMonitorLinkSynchro::bookHistograms(), RPCMonitorRaw::bookHistograms(), CaloTowerAnalyzer::bookHistograms(), JetAnalyzer::bookHistograms(), HcalCoarsePedestalClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), DQMStore::collate2D(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), FourVectorHLTOnline::countHLTGroupBXHitsEndLumiBlock(), TrigResRateMon::countHLTGroupBXHitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupBXHitsEndLumiBlock(), TrigResRateMon::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOnline::countHLTPathHitsEndLumiBlock(), TrigResRateMon::countHLTPathHitsEndLumiBlock(), FourVectorHLTOffline::countHLTPathHitsEndLumiBlock(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), L1TdeRCT::DivideME2D(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), DataCertificationJetMET::dqmEndJob(), MuonRecoTest::dqmEndJob(), HLTMuonCertSummary::dqmEndJob(), L1TEventInfoClient::dumpContentMonitorElements(), RPCMonitorLinkSynchro::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), DTOccupancyTest::endLuminosityBlock(), DTNoiseAnalysisTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTChamberEfficiencyTest::endLuminosityBlock(), DTNoiseTest::endLuminosityBlock(), PhotonDataCertification::endRun(), FourVectorHLTClient::endRun(), DTChamberEfficiencyClient::endRun(), HLTOverallSummary::endRun(), SiStripSummaryCreator::fillHistos(), OccupancyPlotter::fillHltMatrix(), FourVectorHLTOnline::fillHltMatrix(), FourVectorHLTOffline::fillHltMatrix(), SiPixelActionExecutor::fillOccupancy(), SiStripQualityChecker::fillStatusHistogram(), TrackingQualityChecker::fillStatusHistogram(), TrackingCertificationInfo::fillTrackingCertificationMEs(), CSCOfflineMonitor::finalize(), SiPixelInformationExtractor::findNoisyPixels(), FitSlicesYTool::FitSlicesYTool(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), L1TGMTClient::get2DHisto(), HLTEventInfoClient::get2DHisto(), L1TDTTPGClient::get2DHisto(), FourVectorHLTClient::get2DHisto(), getAnyHisto(), getHisto2(), SiStripHistoPlotter::getProjection(), getTH2F(), L1TDTTFClient::getTH2F(), MuIsoValidation::GetTH2FromMonitorElement(), HcalDetDiagPedestalClient::hasErrors_Temp(), HcalCoarsePedestalClient::hasErrors_Temp(), HcalTrigPrimClient::hasErrors_Temp(), HcalDetDiagNoiseMonitorClient::hasErrors_Temp(), HcalDetDiagTimingClient::hasErrors_Temp(), HcalDigiClient::hasErrors_Temp(), HcalDeadCellClient::hasErrors_Temp(), HcalHotCellClient::hasErrors_Temp(), HcalNZSClient::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_pu(), FlavourHistograms2D< double, double >::histo_s(), FlavourHistograms2D< double, double >::histo_u(), 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(), SiStripGainFromCalibTree::produceTagFilter(), ElectronDqmAnalyzerBase::profileX(), ElectronDqmAnalyzerBase::profileY(), MEtoEDMConverter::putData(), RPCRecHitValid::RPCRecHitValid(), Comp2RefEqualH::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), CompareLastFilledBin::runTest(), DQMStore::scaleElements(), HcalBeamMonitor::SetEtaLabels(), HcalBaseDQMonitor::setup(), HLXMonitor::SetupEventInfo(), FourVectorHLTOnline::setupHltBxPlots(), TrigResRateMon::setupHltBxPlots(), FourVectorHLTOffline::setupHltBxPlots(), FourVectorHLTOnline::setupHltLsPlots(), TrigResRateMon::setupHltLsPlots(), FourVectorHLTOffline::setupHltLsPlots(), FourVectorHLTOnline::setupHltMatrix(), FourVectorHLTOffline::setupHltMatrix(), TrigResRateMon::setupStreamMatrix(), and SiStripGainFromCalibTree::storeOnTree().

1552 {
1553  assert(kind() == DQM_KIND_TH2F);
1554  const_cast<MonitorElement *>(this)->update();
1555  return static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1556 }
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 1559 of file MonitorElement.cc.

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

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

1560 {
1561  assert(kind() == DQM_KIND_TH2S);
1562  const_cast<MonitorElement *>(this)->update();
1563  return static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1564 }
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 1575 of file MonitorElement.cc.

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

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

1576 {
1577  assert(kind() == DQM_KIND_TH3F);
1578  const_cast<MonitorElement *>(this)->update();
1579  return static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 3));
1580 }
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 846 of file MonitorElement.cc.

References accessRootObject().

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

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

Definition at line 1583 of file MonitorElement.cc.

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

Referenced by StripValidationPlots::beginJob(), ElectronDqmAnalyzerBase::bookP1(), ScoutingAnalyzerBase::bookP1(), TrigResRateMon::bookTestHisto(), DQMStore::collateProfile(), PFClient::createProfilePlots(), EmDQMPostProcessor::dividehistos(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), EmDQMPostProcessor::dqmEndJob(), AlcaBeamMonitorClient::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), FastTimerServiceClient::fillPathSummaryPlots(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripBackPlaneCorrectionDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), TrigResRateMon::filltestHisto(), ElectronMcFakePostValidator::finalize(), ElectronMcSignalPostValidator::finalize(), BeamMonitor::FitAndFill(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), HLTEventInfoClient::get1DProfile(), L1TDTTPGClient::get1DProfile(), FourVectorHLTClient::get1DProfile(), getAnyHisto(), getHistoTProfile(), SiStripHistoPlotter::getProjection(), getTProfile(), MuIsoValidation::GetTProfileFromMonitorElement(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), HLTTauPostProcessor::plotFilterEfficiencies(), 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_pu(), FlavourHistograms2D< double, double >::profile_s(), FlavourHistograms2D< double, double >::profile_u(), MEtoEDMConverter::putData(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsWithinExpected::runTest(), CheckVariance::runTest(), DQMStore::scaleElements(), HcalNZSMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalBeamMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), and TrigResRateMon::setupHltMatrix().

1584 {
1585  assert(kind() == DQM_KIND_TPROFILE);
1586  const_cast<MonitorElement *>(this)->update();
1587  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1588 }
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 826 of file MonitorElement.cc.

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

827 {
828  if (kind() == DQM_KIND_TPROFILE)
829  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
830  ->GetYmax();
831  else
832  {
833  incompatible(__PRETTY_FUNCTION__);
834  return 0;
835  }
836 }
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 812 of file MonitorElement.cc.

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

813 {
814  if (kind() == DQM_KIND_TPROFILE)
815  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
816  ->GetYmin();
817  else
818  {
819  incompatible(__PRETTY_FUNCTION__);
820  return 0;
821  }
822 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::globalize ( )
inlineprivate
bool MonitorElement::hasError ( void  ) const
inline

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

Definition at line 194 of file MonitorElement.h.

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

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

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

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

Definition at line 202 of file MonitorElement.h.

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

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

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

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

Definition at line 198 of file MonitorElement.h.

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

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

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

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

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

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

36 {
37  switch (kind)
38  {
39  case DQM_KIND_INT:
40  case DQM_KIND_REAL:
41  case DQM_KIND_STRING:
42  case DQM_KIND_TH1F:
43  case DQM_KIND_TH1S:
44  case DQM_KIND_TH1D:
45  case DQM_KIND_TH2F:
46  case DQM_KIND_TH2S:
47  case DQM_KIND_TH2D:
48  case DQM_KIND_TH3F:
49  case DQM_KIND_TPROFILE:
51  data_.flags &= ~DQMNet::DQM_PROP_TYPE_MASK;
52  data_.flags |= kind;
53  break;
54 
55  default:
56  raiseDQMError("MonitorElement", "cannot initialise monitor element"
57  " to invalid type %d", (int) kind);
58  }
59 
60  return this;
61 }
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 64 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_.

65 {
67  switch (kind)
68  {
69  case DQM_KIND_TH1F:
70  assert(dynamic_cast<TH1F *>(rootobj));
71  assert(! reference_ || dynamic_cast<TH1F *>(reference_));
72  object_ = rootobj;
73  break;
74 
75  case DQM_KIND_TH1S:
76  assert(dynamic_cast<TH1S *>(rootobj));
77  assert(! reference_ || dynamic_cast<TH1S *>(reference_));
78  object_ = rootobj;
79  break;
80 
81  case DQM_KIND_TH1D:
82  assert(dynamic_cast<TH1D *>(rootobj));
83  assert(! reference_ || dynamic_cast<TH1D *>(reference_));
84  object_ = rootobj;
85  break;
86 
87  case DQM_KIND_TH2F:
88  assert(dynamic_cast<TH2F *>(rootobj));
89  assert(! reference_ || dynamic_cast<TH2F *>(reference_));
90  object_ = rootobj;
91  break;
92 
93  case DQM_KIND_TH2S:
94  assert(dynamic_cast<TH2S *>(rootobj));
95  assert(! reference_ || dynamic_cast<TH2S *>(reference_));
96  object_ = rootobj;
97  break;
98 
99  case DQM_KIND_TH2D:
100  assert(dynamic_cast<TH2D *>(rootobj));
101  assert(! reference_ || dynamic_cast<TH1D *>(reference_));
102  object_ = rootobj;
103  break;
104 
105  case DQM_KIND_TH3F:
106  assert(dynamic_cast<TH3F *>(rootobj));
107  assert(! reference_ || dynamic_cast<TH3F *>(reference_));
108  object_ = rootobj;
109  break;
110 
111  case DQM_KIND_TPROFILE:
112  assert(dynamic_cast<TProfile *>(rootobj));
113  assert(! reference_ || dynamic_cast<TProfile *>(reference_));
114  object_ = rootobj;
115  break;
116 
117  case DQM_KIND_TPROFILE2D:
118  assert(dynamic_cast<TProfile2D *>(rootobj));
119  assert(! reference_ || dynamic_cast<TProfile2D *>(reference_));
120  object_ = rootobj;
121  break;
122 
123  default:
124  raiseDQMError("MonitorElement", "cannot initialise monitor element"
125  " as a root object with type %d", (int) kind);
126  }
127 
128  if (reference_)
130 
131  return this;
132 }
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 135 of file MonitorElement.cc.

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

136 {
137  initialise(kind);
138  if (kind == DQM_KIND_STRING)
139  scalar_.str = value;
140  else
141  raiseDQMError("MonitorElement", "cannot initialise monitor element"
142  " as a string with type %d", (int) kind);
143 
144  return this;
145 }
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 286 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 207 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 282 of file MonitorElement.h.

References refvalue_.

Referenced by copyFrom(), and copyFunctions().

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

Get the type of the monitor element.

Definition at line 103 of file MonitorElement.h.

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

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

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

Definition at line 375 of file MonitorElement.h.

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

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

Definition at line 377 of file MonitorElement.h.

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

Referenced by MonitorElement().

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

Compare monitor elements, for ordering in sets.

Definition at line 94 of file MonitorElement.h.

References data_, and DQMNet::setOrder().

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

Definition at line 202 of file MonitorElement.cc.

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

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

serialise quality report information into a string.

Definition at line 504 of file MonitorElement.cc.

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

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

convert scalar data into a string.

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

480 {
481  char buf[64];
482  if (kind() == DQM_KIND_INT)
483  {
484  snprintf(buf, sizeof(buf), "%s%" PRId64, prefix, scalar_.num);
485  into = buf;
486  }
487  else if (kind() == DQM_KIND_REAL)
488  {
489  snprintf(buf, sizeof(buf), "%s%.*g", prefix, DBL_DIG+2, scalar_.real);
490  into = buf;
491  }
492  else if (kind() == DQM_KIND_STRING)
493  {
494  into.reserve(strlen(prefix) + scalar_.str.size());
495  into += prefix;
496  into += scalar_.str;
497  }
498  else
499  incompatible(__PRETTY_FUNCTION__);
500 }
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 571 of file MonitorElement.cc.

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

572 {
573  char buf[64];
575  size_t titlelen = data_.objname.size() + qv.qtname.size() + 1;
576  size_t buflen = sprintf(buf, "qr=st:%d:%.*g:", qv.code, DBL_DIG+2, qv.qtresult);
577 
578  result.reserve(7 + 2*titlelen + buflen + qv.algorithm.size() + qv.message.size());
579  result += '<'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
580  result += buf; result += qv.algorithm; result += ':'; result += qv.message;
581  result += '<'; result += '/'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
582  return result;
583 }
std::string algorithm
Definition: DQMNet.h:92
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:105
std::string qtname
Definition: DQMNet.h:91
DQMNet::CoreObject data_
std::string message
Definition: DQMNet.h:90
float qtresult
Definition: DQMNet.h:89
void MonitorElement::Reset ( void  )

reset ME (ie. contents, errors, etc)

Definition at line 463 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(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), SiPixelDigiSource::analyze(), SiPixelClusterSource::analyze(), HcalTrigPrimMonitor::beginLuminosityBlock(), HcalBeamMonitor::beginLuminosityBlock(), HcalCoarsePedestalMonitor::beginLuminosityBlock(), AlcaBeamMonitor::beginLuminosityBlock(), HcalRawDataMonitor::beginLuminosityBlock(), SiStripMonitorDigi::beginLuminosityBlock(), HcalLSbyLSMonitor::beginLuminosityBlock(), SiPixelEDAClient::beginLuminosityBlock(), HcalHotCellMonitor::beginLuminosityBlock(), HcalBaseDQMonitor::beginLuminosityBlock(), TrackingMonitor::beginLuminosityBlock(), HcalDigiMonitor::beginLuminosityBlock(), HLTScalers::beginLuminosityBlock(), MuonAlignmentSummary::beginRun(), L1TOccupancyClient::beginRun(), SiStripDaqInfo::beginRun(), MEtoEDMConverter::beginRun(), DQMStore::book(), DQMLumiMonitor::bookHistograms(), SiStripMonitorRawData::bookHistograms(), L1TDTTFClient::buildSummaries(), HcalTrigPrimClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), HcalDetDiagPedestalMonitor::CheckStatus(), L1TGT::countPfsIndicesPerLs(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createEfficiencyPlots(), PFClient::createResolutionPlots(), BeamSpotProblemMonitor::endJob(), HcalDeadCellMonitor::endLuminosityBlock(), HcalRawDataMonitor::endLuminosityBlock(), DTSummaryClients::endLuminosityBlock(), HcalDigiMonitor::endLuminosityBlock(), DTOfflineSummaryClients::endRun(), BeamSpotProblemMonitor::endRun(), QcdLowPtDQM::filldNdeta(), SiStripDaqInfo::fillDummyStatus(), SiStripDcsInfo::fillDummyStatus(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelActionExecutor::fillFEDErrorSummary(), HcalDetDiagLEDMonitor::fillHistos(), HcalDetDiagPedestalMonitor::fillHistos(), HcalDetDiagLaserMonitor::fillHistos(), RPCChamberQuality::fillMonitorElements(), BeamSpotProblemMonitor::FillPlots(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripDcsInfo::fillStatus(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), SiStripDaqInfo::findExcludedModule(), BeamMonitor::FitAndFill(), DQMStore::forceReset(), SiPixelActionExecutor::getFEDSummaryME(), SiPixelActionExecutor::getGrandSummaryME(), SiStripBaseCondObjDQM::getModMEs(), SiStripMonitorQuality::getQualityME(), SiPixelActionExecutor::getSummaryME(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), HcalBaseMonitor::periodicReset(), HcalNZSMonitor::reset(), HcalLSbyLSMonitor::reset(), HcalBeamMonitor::reset(), HcalDataIntegrityTask::reset(), HcalHotCellMonitor::reset(), HcalDeadCellMonitor::reset(), HcalBaseDQMonitor::reset(), HcalMonitorModule::reset(), HcalDigiMonitor::reset(), DQMStore::reset(), TrackingQualityChecker::resetGlobalStatus(), TrackingQualityChecker::resetLSStatus(), SiStripMonitorPedestals::resetMEs(), SiStripMonitorDigi::ResetModuleMEs(), SiStripMonitorCluster::ResetModuleMEs(), SiPixelDigiModule::resetRocMap(), SiStripCertificationInfo::resetSiStripCertificationMEs(), SiStripQualityChecker::resetStatus(), TrackingCertificationInfo::resetTrackingCertificationMEs(), TrackingCertificationInfo::resetTrackingCertificationMEsAtLumi(), BeamMonitor::RestartFitting(), HcalBaseDQMonitor::setup(), ecaldqm::MESetTrend::shift_(), PFMETDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), and PFCandidateDQMAnalyzer::storeBadEvents().

464 {
465  update();
466  if (kind() == DQM_KIND_INT)
467  scalar_.num = 0;
468  else if (kind() == DQM_KIND_REAL)
469  scalar_.real = 0;
470  else if (kind() == DQM_KIND_STRING)
471  scalar_.str.clear();
472  else
473  return accessRootObject(__PRETTY_FUNCTION__, 1)
474  ->Reset();
475 }
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 295 of file MonitorElement.h.

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

Referenced by DQMStore::reset().

296  { 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 291 of file MonitorElement.h.

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

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

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

Definition at line 374 of file MonitorElement.h.

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

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

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

run all quality tests

Definition at line 657 of file MonitorElement.cc.

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

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

658 {
659  assert(qreports_.size() == data_.qreports.size());
660 
661  // Rerun quality tests where the ME or the quality algorithm was modified.
662  bool dirty = wasUpdated();
663  for (size_t i = 0, e = data_.qreports.size(); i < e; ++i)
664  {
666  QReport &qr = qreports_[i];
667  QCriterion *qc = qr.qcriterion_;
668  qr.qvalue_ = &qv;
669 
670  // if (qc && (dirty || qc->wasModified())) // removed for new QTest (abm-090503)
671  if (qc && dirty)
672  {
673  assert(qc->getName() == qv.qtname);
674  std::string oldMessage = qv.message;
675  int oldStatus = qv.code;
676 
677  qc->runTest(this, qr, qv);
678 
679  if (oldStatus != qv.code || oldMessage != qv.message)
680  update();
681  }
682  }
683 
684  // Update QReport statistics.
686 }
QCriterion * qcriterion_
Definition: QReport.h:51
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
std::string getName(void) const
get name of quality test
Definition: QTest.h:57
void updateQReportStats(void)
Refresh QReport stats, usually after MEs were read in from a file.
std::vector< QReport > qreports_
void update(void)
Mark the object updated.
bool wasUpdated(void) const
true if ME was updated in last monitoring cycle
std::string qtname
Definition: DQMNet.h:91
DQMNet::CoreObject data_
virtual float runTest(const MonitorElement *me)
Definition: QTest.cc:27
DQMNet::QValue * qvalue_
Definition: QReport.h:50
std::string message
Definition: DQMNet.h:90
void MonitorElement::setAccumulate ( bool  )
inlineprivate

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

Definition at line 300 of file MonitorElement.h.

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

Referenced by DQMStore::setAccumulate().

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

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

Definition at line 966 of file MonitorElement.cc.

References getAxis(), and update().

967 {
968  update();
969  getAxis(__PRETTY_FUNCTION__, axis)
970  ->SetTimeDisplay(value);
971 }
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 975 of file MonitorElement.cc.

References getAxis(), and update().

976 {
977  update();
978  getAxis(__PRETTY_FUNCTION__, axis)
979  ->SetTimeFormat(format);
980 }
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 984 of file MonitorElement.cc.

References getAxis(), and update().

985 {
986  update();
987  getAxis(__PRETTY_FUNCTION__, axis)
988  ->SetTimeOffset(toffset, option);
989 }
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 957 of file MonitorElement.cc.

References getAxis(), and update().

Referenced by CSCOfflineMonitor::applyCSClabels(), DQMHOAlCaRecoStream::beginJob(), ESSummaryClient::beginJob(), HLTAlCaMonEcalPhiSym::beginJob(), L1EmulatorErrorFlagClient::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), DQMFEDIntegrityClient::beginJob(), L1TDTTFClient::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), BeamConditionsMonitor::beginJob(), AlcaBeamMonitor::beginJob(), DTDataIntegrityTest::beginJob(), TkAlCaRecoMonitor::beginJob(), DQMHcalDiJetsAlCaReco::beginJob(), HLTEventInfoClient::beginJob(), DTBlockedROChannelsTest::beginJob(), BeamMonitor::beginJob(), BeamSpotProblemMonitor::beginJob(), TrackEfficiencyClient::beginJob(), L1TDTTF::beginJob(), HLTAlCaMonPi0::beginJob(), DQMSourcePi0::beginJob(), L1TRPCTF::beginJob(), ZDCDigiStudy::beginJob(), HLTMon::beginJob(), ZdcSimHitStudy::beginJob(), L1TCSCTF::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), PiZeroAnalyzer::beginJob(), RPCBxTest::beginRun(), L1TGMTClient::beginRun(), PrimaryVertexMonitor::beginRun(), DTOfflineSummaryClients::beginRun(), AlcaBeamMonitor::beginRun(), SiStripLAProfileBooker::beginRun(), BxTiming::beginRun(), DTSummaryClients::beginRun(), DQMProvInfo::beginRun(), L1TDTTPG::beginRun(), HLTSeedL1LogicScalers::beginRun(), L1TdeCSCTF::beginRun(), L1TCompare::beginRun(), FourVectorHLTOnline::beginRun(), Vx3DHLTAnalyzer::beginRun(), FourVectorHLTOffline::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), SiPixelHitEfficiencyModule::book(), SiPixelTrackResidualModule::book(), HLTMonBTagIPSource::book(), HLTMonBTagMuSource::book(), HLTMonBTagClient::book(), SiPixelRecHitModule::book(), SiPixelDigiModule::book(), SiPixelClusterModule::book(), L1TGMT::book_(), DTLocalTriggerTask::bookBarrelHistos(), DTLocalTriggerBaseTest::bookCmsHistos(), DTTriggerLutTest::bookCmsHistos1d(), SiStripBaseCondObjDQM::bookCumulMEs(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackingQualityChecker::bookGlobalStatus(), ESIntegrityTask::bookHistograms(), ESOccupancyTask::bookHistograms(), ESTrendTask::bookHistograms(), ESTimingTask::bookHistograms(), ESRawDataTask::bookHistograms(), EcalPileUpDepMonitor::bookHistograms(), MuonRecoAnalyzer::bookHistograms(), MuonSeedsAnalyzer::bookHistograms(), SegmentTrackAnalyzer::bookHistograms(), MuonEnergyDepositAnalyzer::bookHistograms(), SiStripMonitorQuality::bookHistograms(), SiStripMonitorRawData::bookHistograms(), TrackEfficiencyMonitor::bookHistograms(), TrackSplittingMonitor::bookHistograms(), SiPixelTrackResidualSource::bookHistograms(), MuonRecoOneHLT::bookHistograms(), TTbarSpinCorrHepMCAnalyzer::bookHistograms(), SiStripFEDCheckPlugin::bookHistograms(), TrackingMonitor::bookHistograms(), TTbar_Kinematics::bookHistograms(), TauValidation::bookHistograms(), LogMessageMonitor::bookHistograms(), MuonIsolationDQM::bookHistograms(), L1TGT::bookHistograms(), MuIsoValidation::bookHistograms(), JetAnalyzer::bookHistograms(), L1TEventInfoClient::bookHistograms(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerBaseTask::bookHistos(), TrackAnalyzer::bookHistosForBeamSpot(), TrackAnalyzer::bookHistosForHitProperties(), TrackAnalyzer::bookHistosForLScertification(), TrackAnalyzer::bookHistosForState(), TrackAnalyzer::bookHistosForTrackerSpecific(), SiPixelHLTSource::bookMEs(), SiPixelDigiSource::bookMEs(), SiPixelRawDataErrorSource::bookMEs(), JetAnalyzer::bookMESetSelection(), SiStripMonitorDigi::bookMETrend(), SiStripMonitorCluster::bookMETrend(), METAnalyzer::bookMonitorElement(), SiPixelInformationExtractor::bookNoisyPixels(), SiPixelActionExecutor::bookOccupancyPlots(), HLTOniaSource::bookOniaTriggerMEs(), SiStripBaseCondObjDQM::bookProfileMEs(), RPCMonitorDigi::bookRegionME(), RPCMonitorDigi::bookSectorRingME(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripBaseCondObjDQM::bookSummaryCumulMEs(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), TrigResRateMon::bookTestHisto(), CSCOfflineMonitor::bookTheHists(), TrackingCertificationInfo::bookTrackingCertificationMEs(), DTTriggerEfficiencyTest::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTLocalTriggerTask::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), HcalTrigPrimMonitor::create_fg_correlation(), HcalTrigPrimMonitor::create_tp_correlation(), SiStripRecHitsValid::createLayerMEs(), SiStripTrackingRecHitsValid::createLayerMEs(), MonitorTrackResiduals::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripTrackingRecHitsValid::createSimpleHitsMEs(), SiStripRecHitsValid::createStereoAndMatchedMEs(), SiStripTrackingRecHitsValid::createStereoAndMatchedMEs(), SiStripMonitorCluster::createSubDetMEs(), SiStripMonitorDigi::createSubDetMEs(), SiStripRecHitsValid::createSubDetMEs(), SiStripRecHitsValid::createTotalMEs(), ecaldqm::MESetNonObject::doBook_(), ecaldqm::MESetEcal::doBook_(), DQMExample_Step2::dqmEndJob(), MuonTestSummary::dqmEndJob(), BTagValidator::endJob(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), RPCEfficiencySecond::endRun(), SiStripQualityDQM::fillGrandSummaryMEs(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisHistogrammer::GlobalDigisHistogrammer(), GlobalHitsAnalyzer::GlobalHitsAnalyzer(), GlobalHitsHistogrammer::GlobalHitsHistogrammer(), GlobalRecHitsAnalyzer::GlobalRecHitsAnalyzer(), GlobalRecHitsHistogrammer::GlobalRecHitsHistogrammer(), TrackBuildingAnalyzer::initHisto(), VertexMonitor::initHisto(), L1TScalersSCAL::L1TScalersSCAL(), rpcdqm::utils::labelXAxisSegment(), HLTTauPostProcessor::plotFilterEfficiencies(), CSCMonitorObject::setAxisTitle(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTPG::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), HcalNZSMonitor::setup(), HcalZDCMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::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().

958 {
959  update();
960  getAxis(__PRETTY_FUNCTION__, axis)
961  ->SetTitle(title.c_str());
962 }
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 854 of file MonitorElement.cc.

References accessRootObject(), and update().

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

855 {
856  update();
857  accessRootObject(__PRETTY_FUNCTION__, 1)
858  ->SetBinContent(binx, content);
859 }
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 863 of file MonitorElement.cc.

References accessRootObject(), and update().

864 {
865  update();
866  accessRootObject(__PRETTY_FUNCTION__, 2)
867  ->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 871 of file MonitorElement.cc.

References accessRootObject(), and update().

872 {
873  update();
874  accessRootObject(__PRETTY_FUNCTION__, 3)
875  ->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 906 of file MonitorElement.cc.

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

Referenced by PFClient::createProfilePlots(), HltSusyExoPostProcessor::endRun(), ecaldqm::MESetDet2D::reset(), ecaldqm::MESetDet1D::reset(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetDet1D::setBinEntries(), ecaldqm::MESet::Bin::setBinEntries(), and ecaldqm::MESetTrend::shift_().

907 {
908  update();
909  if (kind() == DQM_KIND_TPROFILE)
910  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
911  ->SetBinEntries(bin, nentries);
912  else if (kind() == DQM_KIND_TPROFILE2D)
913  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
914  ->SetBinEntries(bin, nentries);
915  else
916  incompatible(__PRETTY_FUNCTION__);
917 }
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 879 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by HLTMonBitSummary::analyze(), HLTJetMETDQMSource::analyze(), SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), EcalMixingModuleValidation::bunchSumTest(), SiPixelHitEfficiencyModule::computeEfficiencies(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), PFClient_JetRes::createResolutionPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HLTMonSimpleBTag::doEffCalc(), BTagValidator::endJob(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), RPCEfficiencyPerRingLayer::endRun(), RPCEfficiencySecond::endRun(), QcdLowPtDQM::filldNdeta(), HLXMonitor::FillHistograms(), HcalDetDiagLaserMonitor::fillHistos(), MTVHistoProducerAlgo::fillPlotFromVectors(), MuonTrackValidatorBase::fillPlotFromVectors(), DQMGenericClient::generic_eff(), CSCOfflineMonitor::histoEfficiency(), DQMGenericClient::limitedFit(), ecaldqm::MESetDet2D::reset(), ecaldqm::MESetDet1D::reset(), ecaldqm::MESetProjection::setBinError(), ecaldqm::MESetDet1D::setBinError(), ecaldqm::MESet::Bin::setBinError(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), and ShiftFillLast().

880 {
881  update();
882  accessRootObject(__PRETTY_FUNCTION__, 1)
883  ->SetBinError(binx, error);
884 }
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 888 of file MonitorElement.cc.

References accessRootObject(), and update().

889 {
890  update();
891  accessRootObject(__PRETTY_FUNCTION__, 2)
892  ->SetBinError(binx, biny, error);
893 }
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 897 of file MonitorElement.cc.

References accessRootObject(), and update().

898 {
899  update();
900  accessRootObject(__PRETTY_FUNCTION__, 3)
901  ->SetBinError(binx, biny, binz, error);
902 }
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 930 of file MonitorElement.cc.

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

Referenced by BeamMonitor::analyze(), TriggerValidator::analyze(), CSCOfflineMonitor::applyCSClabels(), RPCDaqInfo::beginJob(), L1EmulatorErrorFlagClient::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), DQMFEDIntegrityClient::beginJob(), L1TDTTFClient::beginJob(), HLTMonPhotonClient::beginJob(), HLTMonPhotonSource::beginJob(), L1TDEMON::beginJob(), BeamMonitor::beginJob(), L1TDTTF::beginJob(), LaserAlignmentT0ProducerDQM::beginJob(), HcalDataCertification::beginJob(), HcalDCSInfo::beginJob(), TopDiLeptonDQM::beginJob(), HcalDAQInfo::beginJob(), L1TRPCTF::beginJob(), HLTMon::beginJob(), L1TCSCTF::beginJob(), RPCChamberQuality::beginRun(), HcalSummaryClient::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), RPCEventSummary::beginRun(), DTnoiseDBValidation::beginRun(), RPCEfficiencyShiftHisto::beginRun(), DQMProvInfo::beginRun(), HLTJetMETDQMSource::beginRun(), L1TDTTPG::beginRun(), BTagHLTOfflineSource::beginRun(), L1TdeCSCTF::beginRun(), JetMETHLTOfflineSource::beginRun(), FourVectorHLTOnline::beginRun(), L1GtHwValidation::beginRun(), FourVectorHLTOffline::beginRun(), HcalDetDiagLaserMonitor::beginRun(), L1TGMT::book_(), HltSusyExoPostProcessor::bookEffMEProfileFromTH1(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackingQualityChecker::bookGlobalStatus(), TrackingTruthValid::bookHistograms(), HLTTauDQMPathSummaryPlotter::bookHistograms(), HLTTauDQMPathPlotter::bookHistograms(), MonitorLTC::bookHistograms(), BasicHepMCValidation::bookHistograms(), HTMHTAnalyzer::bookHistograms(), MuonRecoAnalyzer::bookHistograms(), HiggsValidation::bookHistograms(), SegmentTrackAnalyzer::bookHistograms(), SiPixelTrackResidualSource::bookHistograms(), L1TFED::bookHistograms(), MuonRecoOneHLT::bookHistograms(), TauValidation::bookHistograms(), LogMessageMonitor::bookHistograms(), L1TGT::bookHistograms(), JetAnalyzer::bookHistograms(), EwkElecTauHistManager::bookHistograms(), EmDQM::bookHistograms(), L1GtHwValidation::bookHistograms(), EmDQMReco::bookHistograms(), L1TEventInfoClient::bookHistograms(), RPCEfficiency::bookHistograms(), BeamHaloAnalyzer::bookHistograms(), EwkMuTauHistManager::bookHistograms(), DTt0DBValidation::bookHistos(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerBaseTest::bookSectorHistos(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), CSCOfflineMonitor::bookTheHists(), TrackingCertificationInfo::bookTrackingCertificationMEs(), DTTriggerEfficiencyTest::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), HcalTrigPrimMonitor::create_errorflag(), QcdUeDQM::createHistos(), QcdLowPtDQM::createHistos(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), ecaldqm::MESetNonObject::doBook_(), ecaldqm::MESetDet2D::doBook_(), ecaldqm::MESetDet1D::doBook_(), ecaldqm::MESetEcal::doBook_(), DataCertificationJetMET::dqmEndJob(), MuonAlignment::endJob(), L1ScalersClient::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), RPCEfficiencyPerRingLayer::endRun(), MuonAlignmentSummary::endRun(), RPCEfficiencySecond::endRun(), SiPixelActionExecutor::fillFEDErrorSummary(), HWWAnalyzer::FillHistograms(), HLTScalersClient::HLTScalersClient(), L1ScalersClient::L1ScalersClient(), HcalRawDataMonitor::label_xChanns(), HcalRawDataMonitor::label_xFEDs(), HcalRawDataMonitor::label_ySpigots(), RPCFEDIntegrity::labelBins(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), rpcdqm::utils::labelYAxisRing(), rpcdqm::utils::labelYAxisRoll(), HLTTauPostProcessor::plotFilterEfficiencies(), SetEtaPhiLabels(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTPG::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalNZSMonitor::setup(), HcalZDCMonitor::setup(), HcalRecHitMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), HcalDeadCellMonitor::setup(), HcalEEUSMonitor::setup(), HcalRawDataMonitor::setup(), HcalMonitorModule::setup(), HcalDigiMonitor::setup(), HcalDetDiagTimingMonitor::setup(), FourVectorHLTOnline::setupHltLsPlots(), TrigResRateMon::setupHltLsPlots(), HcalDigiMonitor::setupSubdetHists(), L1TDTTF::setWheelLabel(), L1TDTTFClient::setWheelLabel(), ShiftFillLast(), and DTTimeEvolutionHisto::updateTimeSlot().

931 {
932  update();
933  if ( getAxis(__PRETTY_FUNCTION__, axis)->GetNbins() >= bin )
934  {
935  getAxis(__PRETTY_FUNCTION__, axis)
936  ->SetBinLabel(bin, label.c_str());
937  }
938  else
939  {
940  // edm::LogWarning ("MonitorElement")
941  std::cout << "*** MonitorElement: WARNING:"
942  <<"setBinLabel: attempting to set label of non-existent bin number \n";
943  }
944 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
tuple cout
Definition: gather_cfg.py:121
void MonitorElement::setEfficiencyFlag ( void  )
inline
void MonitorElement::setEntries ( double  nentries)

set # of entries

Definition at line 921 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PhotonOfflineClient::dividePlots(), CSCMonitorObject::SetEntries(), ecaldqm::MESetTrend::shift_(), and ShiftFillLast().

922 {
923  update();
924  accessRootObject(__PRETTY_FUNCTION__, 1)
925  ->SetEntries(nentries);
926 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setLumi ( uint32_t  ls)
inlineprivate
void MonitorElement::setLumiFlag ( void  )
inline
void MonitorElement::setResetMe ( bool  )
inline

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

Definition at line 140 of file MonitorElement.h.

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

Referenced by AcceptanceHistoProducer::beginJob(), LaserDQM::initMonitors(), 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)

set (ie. change) histogram/profile title

Definition at line 993 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by TopDiLeptonDQM::beginJob(), L1TOccupancyClient::beginRun(), L1TEventInfoClient::bookHistograms(), L1ScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), Vispa.Gui.PortWidget.PortWidget::setName(), and Vispa.Views.LineDecayView.LineDecayContainer::setPxlObject().

994 {
995  update();
996  accessRootObject(__PRETTY_FUNCTION__, 1)
997  ->SetTitle(title.c_str());
998 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
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 349 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(), cmsHarvester::index, kind(), timingPdfMaker::mean, N, pileupCalc::nbins, alignCSCRings::s, setBinContent(), setBinError(), setBinLabel(), setEntries(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, and update().

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

350 {
351  update();
352  if (kind() == DQM_KIND_TH1F
353  || kind() == DQM_KIND_TH1S
354  || kind() == DQM_KIND_TH1D)
355  {
356  int nbins = getNbinsX();
357  int entries = (int)getEntries();
358  // first fill bins from left to right
359  int index = entries + 1 ;
360  int xlow = 2 ; int xup = nbins ;
361  // if more entries than bins then start shifting
362  if ( entries >= nbins )
363  {
364  index = nbins;
365  xlow = entries - nbins + 3 ; xup = entries+1 ;
366  // average first bin
367  double y1 = getBinContent(1);
368  double y2 = getBinContent(2);
369  double y1err = getBinError(1);
370  double y2err = getBinError(2);
371  double N = entries - nbins + 1.;
372  if ( ye == 0. || y1err == 0. || y2err == 0.)
373  {
374  // for errors zero calculate unweighted mean and its error
375  double sum = N*y1 + y2;
376  y1 = sum/(N+1.) ;
377  // FIXME check if correct
378  double s=(N+1.)*(N*y1*y1 + y2*y2) - sum*sum;
379  if (s>=0.)
380  y1err = sqrt(s)/(N+1.);
381  else
382  y1err = 0.;
383  }
384  else
385  {
386  // for errors non-zero calculate weighted mean and its error
387  double denom = (1./y1err + 1./y2err);
388  double mean = (y1/y1err + y2/y2err)/denom;
389  // FIXME check if correct
390  y1err = sqrt(((y1-mean)*(y1-mean)/y1err +
391  (y2-mean)*(y2-mean)/y2err)/denom/2.);
392  y1 = mean; // set y1 to mean for filling below
393  }
394  setBinContent(1,y1);
395  setBinError(1,y1err);
396  // shift remaining bins to the left
397  for ( int i = 3; i <= nbins ; i++)
398  {
401  }
402  }
403  // fill last bin with new values
404  setBinContent(index,y);
405  setBinError(index,ye);
406  // set entries
407  setEntries(entries+1);
408  // set axis labels and reset drawing option
409  char buffer [10];
410  sprintf (buffer, "%d", xlow*xscale);
411  std::string a(buffer); setBinLabel(2,a);
412  sprintf (buffer, "%d", xup*xscale);
413  std::string b(buffer); setBinLabel(nbins,b);
414  setBinLabel(1,"av.");
415  }
416  else
417  incompatible(__PRETTY_FUNCTION__);
418 }
int i
Definition: DBlmapReader.cc:9
void incompatible(const char *func) const
void setBinContent(int binx, double content)
set content of bin (1-D)
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
void update(void)
Mark the object updated.
double getEntries(void) const
get # of entries
T sqrt(T t)
Definition: SSEVec.h:48
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
Kind kind(void) const
Get the type of the monitor element.
void setEntries(double nentries)
set # of entries
#define N
Definition: blowfish.cc:9
double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
double b
Definition: hdecay.h:120
double getBinContent(int binx) const
get content of bin (1-D)
double a
Definition: hdecay.h:121
int getNbinsX(void) const
get # of bins in X-axis
void MonitorElement::softReset ( void  )
private

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

Definition at line 1025 of file MonitorElement.cc.

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

Referenced by DQMStore::softReset().

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

Definition at line 376 of file MonitorElement.h.

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

Referenced by MonitorElement().

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

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

Definition at line 544 of file MonitorElement.cc.

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

545 {
546  char buf[32];
548  size_t len = sprintf(buf, "t=%" PRIu32, data_.tag);
549 
550  result.reserve(6 + 2*data_.objname.size() + len);
551  result += '<'; result += data_.objname; result += '>';
552  result += buf;
553  result += '<'; result += '/'; result += data_.objname; result += '>';
554  return result;
555 }
uint32_t tag
Definition: DQMNet.h:98
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:105
DQMNet::CoreObject data_
std::string MonitorElement::tagString ( void  ) const

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

Definition at line 531 of file MonitorElement.cc.

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

532 {
534  std::string val(valueString());
535  result.reserve(6 + 2*data_.objname.size() + val.size());
536  result += '<'; result += data_.objname; result += '>';
537  result += val;
538  result += '<'; result += '/'; result += data_.objname; result += '>';
539  return result;
540 }
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:105
std::string valueString(void) const
DQMNet::CoreObject data_
void MonitorElement::update ( void  )
inline

Mark the object updated.

Definition at line 135 of file MonitorElement.h.

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

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

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

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

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

1492 {
1493  data_.flags &= ~DQMNet::DQM_PROP_REPORT_ALARM;
1494  for (size_t i = 0, e = data_.qreports.size(); i < e; ++i)
1495  switch (data_.qreports[i].code)
1496  {
1498  break;
1499  case dqm::qstatus::WARNING:
1501  break;
1502  case dqm::qstatus::ERROR:
1504  break;
1505  default:
1507  break;
1508  }
1509 }
static const uint32_t DQM_PROP_REPORT_WARN
Definition: DQMNet.h:47
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:106
Definition: DQMNet.h:22
uint32_t flags
Definition: DQMNet.h:97
static const int WARNING
static const uint32_t DQM_PROP_REPORT_ERROR
Definition: DQMNet.h:46
static const uint32_t DQM_PROP_REPORT_OTHER
Definition: DQMNet.h:48
DQMNet::CoreObject data_
static const int STATUS_OK
static const int ERROR
std::string MonitorElement::valueString ( void  ) const

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

Definition at line 512 of file MonitorElement.cc.

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

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

513 {
515  if (kind() == DQM_KIND_INT)
516  packScalarData(result, "i=");
517  else if (kind() == DQM_KIND_REAL)
518  packScalarData(result, "f=");
519  else if (kind() == DQM_KIND_STRING)
520  packScalarData(result, "s=");
521  else
522  incompatible(__PRETTY_FUNCTION__);
523 
524  return result;
525 }
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 131 of file MonitorElement.h.

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

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

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