CMS 3D CMS Logo

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
}
 

Public Member Functions

std::string effLabelString () 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 () 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 () const
 get # of entries More...
 
double getFloatValue () const
 
const std::string getFullname () const
 get full name of ME including Pathname More...
 
int64_t getIntValue () const
 
bool getLumiFlag () 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 () const
 get name of ME More...
 
int getNbinsX () const
 get # of bins in X-axis More...
 
int getNbinsY () const
 get # of bins in Y-axis More...
 
int getNbinsZ () const
 get # of bins in Z-axis More...
 
const std::string & getPathname () const
 get pathname of parent folder More...
 
std::vector< QReport * > getQErrors () const
 get errors from last set of quality tests More...
 
std::vector< QReport * > getQOthers () 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 () const
 get map of QReports More...
 
std::vector< QReport * > getQWarnings () const
 get warnings from last set of quality tests More...
 
TObject * getRefRootObject () const
 
TH1 * getRefTH1 () const
 
TH1D * getRefTH1D () const
 
TH1F * getRefTH1F () const
 
TH1S * getRefTH1S () const
 
TH2D * getRefTH2D () const
 
TH2F * getRefTH2F () const
 
TH2S * getRefTH2S () const
 
TH3F * getRefTH3F () const
 
TProfile * getRefTProfile () const
 
TProfile2D * getRefTProfile2D () 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 () const
 
const std::string & getStringValue () const
 
const uint32_t getTag () const
 
DQMNet::TagList getTags () const
 
TH1 * getTH1 () const
 
TH1D * getTH1D () const
 
TH1F * getTH1F () const
 
TH1S * getTH1S () const
 
TH2D * getTH2D () const
 
TH2F * getTH2F () const
 
TH2S * getTH2S () const
 
TH3F * getTH3F () const
 
std::string getTitle () const
 get MonitorElement title More...
 
TProfile * getTProfile () const
 
TProfile2D * getTProfile2D () const
 
bool hasError () const
 true if at least of one of the quality tests returned an error More...
 
bool hasOtherReport () const
 true if at least of one of the tests returned some other (non-ok) status More...
 
bool hasWarning () const
 true if at least of one of the quality tests returned a warning More...
 
bool isEfficiency () const
 
Kind kind () const
 Get the type of the monitor element. More...
 
const uint32_t lumi () const
 
const uint32_t moduleId () const
 
 MonitorElement ()
 
 MonitorElement (const std::string *path, const std::string &name)
 
 MonitorElement (const std::string *path, const std::string &name, uint32_t run, uint32_t moduleId)
 
 MonitorElement (const MonitorElement &, MonitorElementNoCloneTag)
 
 MonitorElement (const MonitorElement &)
 
 MonitorElement (MonitorElement &&)
 
bool operator< (const MonitorElement &x) const
 Compare monitor elements, for ordering in sets. More...
 
MonitorElementoperator= (const MonitorElement &)=delete
 
MonitorElementoperator= (MonitorElement &&)=delete
 
void packQualityData (std::string &into) const
 serialise quality report information into a string. More...
 
void packScalarData (std::string &into, const char *prefix) const
 convert scalar data into a string. More...
 
std::string qualityTagString (const DQMNet::QValue &qv) const
 
void Reset ()
 reset ME (ie. contents, errors, etc) More...
 
const uint32_t run () const
 
void runQTests ()
 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 setEntries (double nentries)
 set # of entries More...
 
void setLumiFlag ()
 this ME is meant to be stored for each luminosity section More...
 
void setResetMe (bool)
 
void setTitle (const std::string &title)
 set (ie. change) histogram/profile title More...
 
void ShiftFillLast (double y, double ye=0., int32_t xscale=1)
 
void softReset ()
 
std::string tagLabelString () const
 return label string for the monitor element tag (eg. <name>t=12345</name>) More...
 
std::string tagString () const
 
void update ()
 Mark the object updated. More...
 
std::string valueString () const
 
bool wasUpdated () const
 true if ME was updated in last monitoring cycle More...
 
 ~MonitorElement ()
 

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 ()
 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 () const
 get max Y value (for profiles) More...
 
double getYmin () 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 () const
 whether ME contents should be accumulated over multiple monitoring periods; default: false More...
 
bool isSoftResetEnabled () const
 whether soft-reset is enabled; default is false More...
 
bool markedToDelete () const
 true if ME is marked for deletion More...
 
void markToDelete ()
 
bool resetMe () const
 true if ME should be reset at end of monitoring cycle More...
 
void resetUpdate ()
 reset "was updated" flag More...
 
void setAccumulate (bool)
 
void setAxisTimeOffset (double toffset, const char *option="local", int axis=1)
 set the time offset, if option = "gmt" then the offset is treated as a GMT time More...
 
void setLumi (uint32_t ls)
 
void updateQReportStats ()
 Refresh QReport stats, usually after MEs were read in from a file. More...
 

Private Attributes

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

Friends

class DQMService
 
class DQMStore
 

Detailed Description

The base class for all MonitorElements (ME)

Definition at line 37 of file MonitorElement.h.

Member Enumeration Documentation

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

Definition at line 49 of file MonitorElement.h.

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

Constructor & Destructor Documentation

MonitorElement::MonitorElement ( )

Definition at line 151 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.

152  : object_(nullptr),
153  reference_(nullptr),
154  refvalue_(nullptr)
155 {
156  data_.version = 0;
157  data_.dirname = nullptr;
158  data_.run = 0;
159  data_.lumi = 0;
160  data_.streamId = 0;
161  data_.moduleId = 0;
162  data_.tag = 0;
164  scalar_.num = 0;
165  scalar_.real = 0;
166 }
uint32_t moduleId
Definition: DQMNet.h:105
uint64_t version
Definition: DQMNet.h:101
uint32_t flags
Definition: DQMNet.h:99
uint32_t tag
Definition: DQMNet.h:100
const std::string * dirname
Definition: DQMNet.h:106
uint32_t run
Definition: DQMNet.h:102
uint32_t lumi
Definition: DQMNet.h:103
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:59
uint32_t streamId
Definition: DQMNet.h:104
MonitorElement::MonitorElement ( const std::string *  path,
const std::string &  name 
)

Definition at line 168 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, dataset::name, MonitorElement::Scalar::num, DQMNet::CoreObject::objname, callgraph::path, MonitorElement::Scalar::real, DQMNet::CoreObject::run, scalar_, DQMNet::CoreObject::streamId, DQMNet::CoreObject::tag, and DQMNet::CoreObject::version.

170  : object_(nullptr),
171  reference_(nullptr),
172  refvalue_(nullptr)
173 {
174  data_.version = 0;
175  data_.run = 0;
176  data_.lumi = 0;
177  data_.streamId = 0;
178  data_.moduleId = 0;
179  data_.dirname = path;
180  data_.objname = name;
181  data_.tag = 0;
183  scalar_.num = 0;
184  scalar_.real = 0;
185 }
uint32_t moduleId
Definition: DQMNet.h:105
uint64_t version
Definition: DQMNet.h:101
uint32_t flags
Definition: DQMNet.h:99
uint32_t tag
Definition: DQMNet.h:100
const std::string * dirname
Definition: DQMNet.h:106
uint32_t run
Definition: DQMNet.h:102
uint32_t lumi
Definition: DQMNet.h:103
std::string objname
Definition: DQMNet.h:107
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:59
uint32_t streamId
Definition: DQMNet.h:104
MonitorElement::MonitorElement ( const std::string *  path,
const std::string &  name,
uint32_t  run,
uint32_t  moduleId 
)

Definition at line 187 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(), dataset::name, MonitorElement::Scalar::num, DQMNet::CoreObject::objname, callgraph::path, MonitorElement::Scalar::real, DQMNet::CoreObject::run, run(), scalar_, DQMNet::CoreObject::streamId, DQMNet::CoreObject::tag, and DQMNet::CoreObject::version.

191  : object_(nullptr),
192  reference_(nullptr),
193  refvalue_(nullptr)
194 {
195  data_.version = 0;
196  data_.run = run;
197  data_.lumi = 0;
198  data_.streamId = 0;
200  data_.dirname = path;
201  data_.objname = name;
202  data_.tag = 0;
204  scalar_.num = 0;
205  scalar_.real = 0;
206 }
uint32_t moduleId
Definition: DQMNet.h:105
uint64_t version
Definition: DQMNet.h:101
uint32_t flags
Definition: DQMNet.h:99
uint32_t tag
Definition: DQMNet.h:100
const std::string * dirname
Definition: DQMNet.h:106
uint32_t run
Definition: DQMNet.h:102
uint32_t lumi
Definition: DQMNet.h:103
std::string objname
Definition: DQMNet.h:107
DQMNet::CoreObject data_
const uint32_t moduleId() const
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:59
uint32_t streamId
Definition: DQMNet.h:104
const uint32_t run() const
MonitorElement::MonitorElement ( const MonitorElement x,
MonitorElementNoCloneTag   
)

Definition at line 208 of file MonitorElement.cc.

209  : data_(x.data_),
210  scalar_(x.scalar_),
211  object_(nullptr),
213  refvalue_(nullptr),
215 {
216 }
std::vector< QReport > qreports_
DQMNet::CoreObject data_
MonitorElement::MonitorElement ( const MonitorElement x)

Definition at line 218 of file MonitorElement.cc.

References object_, and refvalue_.

220 {
221  if (x.object_)
222  object_ = static_cast<TH1 *>(x.object_->Clone());
223 
224  if (x.refvalue_)
225  refvalue_ = static_cast<TH1 *>(x.refvalue_->Clone());
226 }
MonitorElement::MonitorElement ( MonitorElement &&  o)

Definition at line 228 of file MonitorElement.cc.

References connectstrParser::o, object_, and refvalue_.

230 {
231  object_ = o.object_;
232  refvalue_ = o.refvalue_;
233 
234  o.object_ = nullptr;
235  o.refvalue_ = nullptr;
236 }
MonitorElement::~MonitorElement ( )

Definition at line 238 of file MonitorElement.cc.

References object_, and refvalue_.

239 {
240  delete object_;
241  delete refvalue_;
242 }

Member Function Documentation

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

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

709 {
710  if (kind() < DQM_KIND_TH1F)
711  raiseDQMError("MonitorElement", "Method '%s' cannot be invoked on monitor"
712  " element '%s' because it is not a root object",
713  func, data_.objname.c_str());
714 
715  return checkRootObject(data_.objname, object_, func, reqdim);
716 }
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
std::string objname
Definition: DQMNet.h:107
DQMNet::CoreObject data_
Kind kind() const
Get the type of the monitor element.
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 1219 of file MonitorElement.cc.

References Abs(), stringResolutionProvider_cfi::bin, ws_sso_content_reader::content, relativeConstraints::error, and mps_fire::i.

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

1220 {
1221  assert(h1);
1222  assert(h2);
1223  assert(sum);
1224 
1225  static const Int_t NUM_STAT = 6;
1226  Double_t stats1[NUM_STAT];
1227  Double_t stats2[NUM_STAT];
1228  Double_t stats3[NUM_STAT];
1229 
1230  bool isRebinOn = sum->CanExtendAllAxes();
1231  sum->SetCanExtend(TH1::kNoAxis);
1232 
1233  for (Int_t i = 0; i < NUM_STAT; ++i)
1234  stats1[i] = stats2[i] = stats3[i] = 0;
1235 
1236  h1->GetStats(stats1);
1237  h2->GetStats(stats2);
1238 
1239  for (Int_t i = 0; i < NUM_STAT; ++i)
1240  stats3[i] = c1*stats1[i] + c2*stats2[i];
1241 
1242  stats3[1] = c1*TMath::Abs(c1)*stats1[1]
1243  + c2*TMath::Abs(c2)*stats2[1];
1244 
1245  Double_t entries = c1*h1->GetEntries() + c2* h2->GetEntries();
1246  TArrayD* h1sumw2 = h1->GetSumw2();
1247  TArrayD* h2sumw2 = h2->GetSumw2();
1248  for (Int_t bin = 0, nbin = sum->GetNbinsX()+1; bin <= nbin; ++bin)
1249  {
1250  Double_t entries = c1*h1->GetBinEntries(bin)
1251  + c2*h2->GetBinEntries(bin);
1252  Double_t content = c1*h1->GetBinEntries(bin)*h1->GetBinContent(bin)
1253  + c2*h2->GetBinEntries(bin)*h2->GetBinContent(bin);
1254  Double_t error = TMath::Sqrt(c1*TMath::Abs(c1)*h1sumw2->fArray[bin]
1255  + c2*TMath::Abs(c2)*h2sumw2->fArray[bin]);
1256  sum->SetBinContent(bin, content);
1257  sum->SetBinError(bin, error);
1258  sum->SetBinEntries(bin, entries);
1259  }
1260 
1261  sum->SetEntries(entries);
1262  sum->PutStats(stats3);
1263  if (isRebinOn) sum->SetCanExtend(TH1::kAllAxes);
1264 }
T Abs(T a)
Definition: MathUtil.h:49
bin
set the eta bin as selection string.
void MonitorElement::addProfiles ( TProfile2D *  h1,
TProfile2D *  h2,
TProfile2D *  sum,
float  c1,
float  c2 
)
private

Definition at line 1269 of file MonitorElement.cc.

References Abs(), stringResolutionProvider_cfi::bin, ws_sso_content_reader::content, relativeConstraints::error, and mps_fire::i.

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

Add quality report, from DQMStore.

Definition at line 1423 of file MonitorElement.cc.

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

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

1424 {
1425  QReport *qr;
1426  DQMNet::QValue *qv;
1427  getQReport(true, desc.qtname, qr, qv);
1428  qr->qcriterion_ = qc;
1429  *qv = desc;
1430  update();
1431 }
QCriterion * qcriterion_
Definition: QReport.h:51
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (null pointer if QReport does not exist)
void update()
Mark the object updated.
std::string qtname
Definition: DQMNet.h:93
void MonitorElement::addQReport ( QCriterion qc)
private

Definition at line 1434 of file MonitorElement.cc.

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

1435 {
1436  QReport *qr;
1437  DQMNet::QValue *qv;
1438  getQReport(true, qc->getName(), qr, qv);
1440  qv->message = "NO_MESSAGE_ASSIGNED";
1441  qr->qcriterion_ = qc;
1442  update();
1443 }
QCriterion * qcriterion_
Definition: QReport.h:51
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (null pointer if QReport does not exist)
void update()
Mark the object updated.
static const int DID_NOT_RUN
std::string message
Definition: DQMNet.h:92
std::string getName() const
get name of quality test
Definition: QTest.h:60
bool MonitorElement::CheckBinLabels ( const TAxis *  a1,
const TAxis *  a2 
)
static

Check the consistency of the axis labels.

Definition at line 247 of file MonitorElement.cc.

References mps_fire::i.

Referenced by DQMStore::checkBinningMatches().

248 {
249  // check that axis have same labels
250  THashList *l1 = (const_cast<TAxis*>(a1))->GetLabels();
251  THashList *l2 = (const_cast<TAxis*>(a2))->GetLabels();
252 
253  if (!l1 && !l2 )
254  return true;
255  if (!l1 || !l2 ) {
256  return false;
257  }
258  // check now labels sizes are the same
259  if (l1->GetSize() != l2->GetSize() ) {
260  return false;
261  }
262  for (int i = 1; i <= a1->GetNbins(); ++i) {
263  TString label1 = a1->GetBinLabel(i);
264  TString label2 = a2->GetBinLabel(i);
265  if (label1 != label2) {
266  return false;
267  }
268  }
269  return true;
270 }
void MonitorElement::copyFrom ( TH1 *  from)
private

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

1349 {
1350  TH1 *orig = accessRootObject(__PRETTY_FUNCTION__, 1);
1351  if (orig->GetTitle() != from->GetTitle())
1352  orig->SetTitle(from->GetTitle());
1353 
1354  if (!isAccumulateEnabled())
1355  orig->Reset();
1356 
1357  if (isSoftResetEnabled())
1358  {
1359  if (kind() == DQM_KIND_TH1F
1360  || kind() == DQM_KIND_TH1S
1361  || kind() == DQM_KIND_TH1D
1362  || kind() == DQM_KIND_TH2F
1363  || kind() == DQM_KIND_TH2S
1364  || kind() == DQM_KIND_TH2D
1365  || kind() == DQM_KIND_TH3F)
1366  // subtract "reference"
1367  orig->Add(from, refvalue_, 1, -1);
1368  else if (kind() == DQM_KIND_TPROFILE)
1369  // subtract "reference"
1370  addProfiles(static_cast<TProfile *>(from),
1371  static_cast<TProfile *>(refvalue_),
1372  static_cast<TProfile *>(orig),
1373  1, -1);
1374  else if (kind() == DQM_KIND_TPROFILE2D)
1375  // subtract "reference"
1376  addProfiles(static_cast<TProfile2D *>(from),
1377  static_cast<TProfile2D *>(refvalue_),
1378  static_cast<TProfile2D *>(orig),
1379  1, -1);
1380  else
1381  incompatible(__PRETTY_FUNCTION__);
1382  }
1383  else
1384  orig->Add(from);
1385 
1386  copyFunctions(from, orig);
1387 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
bool isSoftResetEnabled() const
whether soft-reset is enabled; default is false
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
void copyFunctions(TH1 *from, TH1 *to)
Kind kind() const
Get the type of the monitor element.
bool isAccumulateEnabled() const
whether ME contents should be accumulated over multiple monitoring periods; default: false ...
void MonitorElement::copyFunctions ( TH1 *  from,
TH1 *  to 
)
private

Definition at line 1319 of file MonitorElement.cc.

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

Referenced by copyFrom().

1320 {
1321  // will copy functions only if local-copy and original-object are equal
1322  // (ie. no soft-resetting or accumulating is enabled)
1324  return;
1325 
1326  update();
1327  TList *fromf = from->GetListOfFunctions();
1328  TList *tof = to->GetListOfFunctions();
1329  for (int i = 0, nfuncs = fromf ? fromf->GetSize() : 0; i < nfuncs; ++i)
1330  {
1331  TObject *obj = fromf->At(i);
1332  // not interested in statistics
1333  if (!strcmp(obj->IsA()->GetName(), "TPaveStats"))
1334  continue;
1335 
1336  if (auto *fn = dynamic_cast<TF1 *>(obj))
1337  tof->Add(new TF1(*fn));
1338  //else if (dynamic_cast<TPaveStats *>(obj))
1339  // ; // FIXME? tof->Add(new TPaveStats(*stats));
1340  else
1341  raiseDQMError("MonitorElement", "Cannot extract function '%s' of type"
1342  " '%s' from monitor element '%s' for a copy",
1343  obj->GetName(), obj->IsA()->GetName(), data_.objname.c_str());
1344  }
1345 }
bool isSoftResetEnabled() const
whether soft-reset is enabled; default is false
void update()
Mark the object updated.
std::string objname
Definition: DQMNet.h:107
DQMNet::CoreObject data_
bool isAccumulateEnabled() const
whether ME contents should be accumulated over multiple monitoring periods; default: false ...
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void MonitorElement::disableSoftReset ( )
private

reverts action of softReset

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

1182 {
1183  if (refvalue_)
1184  {
1185  if (kind() == DQM_KIND_TH1F
1186  || kind() == DQM_KIND_TH1S
1187  || kind() == DQM_KIND_TH1D
1188  || kind() == DQM_KIND_TH2F
1189  || kind() == DQM_KIND_TH2S
1190  || kind() == DQM_KIND_TH2D
1191  || kind() == DQM_KIND_TH3F)
1192  {
1193  auto *orig = static_cast<TH1 *>(object_);
1194  orig->Add(refvalue_);
1195  }
1196  else if (kind() == DQM_KIND_TPROFILE)
1197  {
1198  auto *orig = static_cast<TProfile *>(object_);
1199  auto *r = static_cast<TProfile *>(refvalue_);
1200  addProfiles(orig, r, orig, 1, 1);
1201  }
1202  else if (kind() == DQM_KIND_TPROFILE2D)
1203  {
1204  auto *orig = static_cast<TProfile2D *>(object_);
1205  auto *r = static_cast<TProfile2D *>(refvalue_);
1206  addProfiles(orig, r, orig, 1, 1);
1207  }
1208  else
1209  incompatible(__PRETTY_FUNCTION__);
1210 
1211  delete refvalue_;
1212  refvalue_ = nullptr;
1213  }
1214 }
void incompatible(const char *func) const
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind() const
Get the type of the monitor element.
void MonitorElement::doFill ( int64_t  x)
private

"Fill" ME method for int64_t

Definition at line 307 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.

308 {
309  update();
310  if (kind() == DQM_KIND_INT)
311  scalar_.num = static_cast<int64_t>(x);
312  else if (kind() == DQM_KIND_REAL)
313  scalar_.real = static_cast<double>(x);
314  else if (kind() == DQM_KIND_TH1F)
315  accessRootObject(__PRETTY_FUNCTION__, 1)
316  ->Fill(static_cast<double>(x), 1);
317  else if (kind() == DQM_KIND_TH1S)
318  accessRootObject(__PRETTY_FUNCTION__, 1)
319  ->Fill(static_cast<double>(x), 1);
320  else if (kind() == DQM_KIND_TH1D)
321  accessRootObject(__PRETTY_FUNCTION__, 1)
322  ->Fill(static_cast<double>(x), 1);
323  else
324  incompatible(__PRETTY_FUNCTION__);
325 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
Mark the object updated.
Kind kind() const
Get the type of the monitor element.
std::string MonitorElement::effLabelString ( ) const

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

Definition at line 571 of file MonitorElement.cc.

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

Referenced by DQMStore::saveMonitorElementToROOT().

572 {
574 
575  result.reserve(6 + 2*data_.objname.size() + 3);
576  result += '<'; result += data_.objname; result += '>';
577  result += "e=1";
578  result += '<'; result += '/'; result += data_.objname; result += '>';
579  return result;
580 }
std::string objname
Definition: DQMNet.h:107
DQMNet::CoreObject data_
void MonitorElement::Fill ( long long  x)
inline

Definition at line 166 of file MonitorElement.h.

References cuy::doFill.

Referenced by TPTask::_process(), RecHitTask::_process(), LEDTask::_process(), DigiPhase1Task::_process(), DigiTask::_process(), SiStripDcsInfo::addBadModules(), AlphaTVarAnalyzer::analyze(), GEMCoPadDigiValidation::analyze(), GEMPadDigiValidation::analyze(), ScoutingTestAnalyzer::analyze(), ME0HitsValidation::analyze(), GEMStripDigiValidation::analyze(), GEMHitsValidation::analyze(), GEMRecHitsValidation::analyze(), RazorVarAnalyzer::analyze(), ME0DigisValidation::analyze(), DQMHOAlCaRecoStream::analyze(), CSCRecHit2DValidation::analyze(), CSCSegmentValidation::analyze(), DiJetVarAnalyzer::analyze(), CSCCLCTDigiValidation::analyze(), CSCStripDigiValidation::analyze(), CSCALCTDigiValidation::analyze(), PerformanceAnalyzer::analyze(), CSCWireDigiValidation::analyze(), ME0RecHitsValidation::analyze(), CSCComparatorDigiValidation::analyze(), HLTTauDQML1Plotter::analyze(), TrackingTruthValid::analyze(), L1Scalers::analyze(), ME0SegmentsValidation::analyze(), L1TScalersSCAL::analyze(), SiStripDigiValid::analyze(), L1TdeStage2EMTF::analyze(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), OuterTrackerMonitorTTTrack::analyze(), EcalTBValidation::analyze(), ElectronMcSignalValidatorMiniAOD::analyze(), SiPixelDigiValid::analyze(), RPCMonitorRaw::analyze(), RPCRecHitProbability::analyze(), L1TStage2EMTF::analyze(), L1TStage2uGMTMuon::analyze(), RPCMonitorDigi::analyze(), SiStripMonitorFilter::analyze(), SiStripMonitorHLT::analyze(), L1TStage2MuonComp::analyze(), L1TStage2RegionalMuonCandComp::analyze(), EventShapeDQM::analyze(), HLTTauDQMPathSummaryPlotter::analyze(), EgammaBasicClusters::analyze(), MonitorLTC::analyze(), L1TStage2CaloLayer2::analyze(), ElectronMcSignalValidator::analyze(), ElectronGeneralAnalyzer::analyze(), RPCMonitorLinkSynchro::analyze(), HCALRecHitAnalyzer::analyze(), L1THIonImp::analyze(), L1TPUM::analyze(), L1TStage2uGMT::analyze(), OuterTrackerMonitorTrackingParticles::analyze(), TrackTypeMonitor::analyze(), ElectronTagProbeAnalyzer::analyze(), HLTTauDQMTagAndProbePlotter::analyze(), EgammaSuperClusters::analyze(), GEMDQMStatusDigi::analyze(), EwkMuDQM::analyze(), HeavyIonUCCDQM::analyze(), PrimaryVertexMonitor::analyze(), HLTTauDQMPathPlotter::analyze(), L1TMP7ZeroSupp::analyze(), DQMHcalPhiSymAlCaReco::analyze(), TotemDAQTriggerDQMSource::analyze(), AlcaBeamMonitor::analyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), EwkElecDQM::analyze(), L1TdeStage2CaloLayer1::analyze(), SUSY_HLT_InclusiveHT::analyze(), CaloTowersValidation::analyze(), StandaloneTrackMonitor::analyze(), DQMHcalDiJetsAlCaReco::analyze(), TkAlCaRecoMonitor::analyze(), TrackerHitAnalyzer::analyze(), SiPixelRecHitsValid::analyze(), EcalPileUpDepMonitor::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), SiStripMonitorDigi::analyze(), WValidation::analyze(), CTPPSCommonDQMSource::analyze(), DQMLumiMonitor::analyze(), BasicHepMCHeavyIonValidation::analyze(), PixelVTXMonitor::analyze(), TrackingRecoMaterialAnalyser::analyze(), EwkMuLumiMonitorDQM::analyze(), DQMSourceEleCalib::analyze(), SUSY_HLT_Muon_BJet::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), DrellYanValidation::analyze(), ElectronMcFakeValidator::analyze(), RecoMuonValidator::analyze(), CTPPSPixelDQMSource::analyze(), EcalPreshowerNoiseDistrib::analyze(), BasicGenParticleValidation::analyze(), BasicHepMCValidation::analyze(), dqm::TrackAnalyzer::analyze(), L1TDTTF::analyze(), MBUEandQCDValidation::analyze(), BxTiming::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), SUSY_HLT_Electron_BJet::analyze(), SimplePhotonAnalyzer::analyze(), BPhysicsSpectrum::analyze(), BPhysicsValidation::analyze(), HiggsValidation::analyze(), ElectronAnalyzer::analyze(), Tau3MuMonitor::analyze(), DQMEventInfo::analyze(), L1TdeStage2uGT::analyze(), ConverterTester::analyze(), L1TObjectsTiming::analyze(), SiStripMonitorCluster::analyze(), CaloTowersAnalyzer::analyze(), L1TStage2OMTF::analyze(), TrackBuildingAnalyzer::analyze(), L1TStage2uGTTiming::analyze(), BeamMonitor::analyze(), SUSY_HLT_alphaT::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_ElecFakes::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SUSY_HLT_MuonFakes::analyze(), SUSY_HLT_VBF_Mu::analyze(), HotlineDQM::analyze(), SUSY_HLT_Razor::analyze(), EcalPreshowerDigisValidation::analyze(), DuplicationChecker::analyze(), JetTester::analyze(), TrackSplittingMonitor::analyze(), EcalBarrelSimHitsValidation::analyze(), HcalSimHitsValidation::analyze(), NoiseRates::analyze(), V0Monitor::analyze(), L1TDTTPG::analyze(), EcalEndcapSimHitsValidation::analyze(), EcalPreshowerSimHitsValidation::analyze(), L1TRCT::analyze(), TestSuite::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), EcalZmassTask::analyze(), HcalNoiseRates::analyze(), EcalBarrelDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), SiStripMonitorQuality::analyze(), L1TStage2uGT::analyze(), HGCalShowerSeparation::analyze(), GlobalTest::analyze(), GlobalMuonMatchAnalyzer::analyze(), DQMSourcePi0::analyze(), L1TCSCTPG::analyze(), HLTSeedL1LogicScalers::analyze(), SiPixelDigiSource::analyze(), L1TGMT::analyze(), L1TRPCTF::analyze(), SiStripMonitorRawData::analyze(), HcalCollapseAnalyzer::analyze(), MuonIdDQM::analyze(), GeneralHLTOffline::analyze(), HGCGeometryValidation::analyze(), EcalSimHitsValidation::analyze(), B2GDoubleLeptonHLTValidation::analyze(), SiPixelTrackResidualSource::analyze(), B2GHadronicHLTValidation::analyze(), B2GSingleLeptonHLTValidation::analyze(), DTSegmentAnalysisTask::analyze(), TopSingleLeptonHLTValidation::analyze(), HLXMonitor::analyze(), PixelLumiDQM::analyze(), DiJetMonitor::analyze(), RPCTTUMonitor::analyze(), DQMExample_Step1::analyze(), SUSY_HLT_SingleLepton::analyze(), DTScalerInfoTask::analyze(), PhotonValidatorMiniAOD::analyze(), SiPixelRawDataErrorSource::analyze(), TopDiLeptonHLTValidation::analyze(), TauValidation::analyze(), HcalRecHitsValidation::analyze(), BDHadronTrackMonitoringAnalyzer::analyze(), HigPhotonJetHLTOfflineSource::analyze(), METplusTrackMonitor::analyze(), DTNoiseTask::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), ZDCDigiStudy::analyze(), HcalRecHitsAnalyzer::analyze(), L1TdeRCT::analyze(), LepHTMonitor::analyze(), DTLocalTriggerBaseTask::analyze(), TTbar_Kinematics::analyze(), GlobalDigisHistogrammer::analyze(), ZdcSimHitStudy::analyze(), ECALMultifitAnalyzer_HI::analyze(), DiDispStaMuonMonitor::analyze(), MuonIdVal::analyze(), L1TGT::analyze(), EcalDigisValidation::analyze(), L1TStage2BMTF::analyze(), GlobalRecHitsHistogrammer::analyze(), TopMonitor::analyze(), SiPixelClusterSource::analyze(), L1TStage2CaloLayer1::analyze(), SiPixelErrorsDigisToCalibDigis::analyze(), DTDataIntegrityTask::analyze(), L1TRPCTPG::analyze(), L1TCSCTF::analyze(), PhotonMonitor::analyze(), TrackingMonitor::analyze(), MuIsoValidation::analyze(), HGCalHitValidation::analyze(), HLTScalers::analyze(), SiPixelTrackingRecHitsValid::analyze(), MuonMonitor::analyze(), JetTester_HeavyIons::analyze(), L1TdeStage2CaloLayer2::analyze(), L1TCompare::analyze(), TauTagValidation::analyze(), JetMonitor::analyze(), CastorMonitorModule::analyze(), GlobalHitsHistogrammer::analyze(), GlobalHitsTester::analyze(), ECALRecHitAnalyzer::analyze(), JetAnalyzer_HeavyIons_matching::analyze(), L1TStage2uGTCaloLayer2Comp::analyze(), JetAnalyzer_HeavyIons::analyze(), L1TTauOffline::analyze(), BPHMonitor::analyze(), EcalMixingModuleValidation::analyze(), EmDQMReco::analyze(), EgHLTOfflineSource::analyze(), RPCEfficiency::analyze(), HLTObjectsMonitor::analyze(), L1TGCT::analyze(), PackedCandidateTrackValidator::analyze(), ZCounting::analyzeElectrons(), HGCalHitValidation::analyzeHGCalRecHit(), HGCalHitValidation::analyzeHGCalSimHit(), SimHitsValidationHcal::analyzeHits(), HcalSimHitStudy::analyzeHits(), ZdcSimHitStudy::analyzeHits(), ZCounting::analyzeMuons(), DQMProvInfo::analyzeProvInfo(), TrackBuildingAnalyzer::analyzeRegions(), DQMFEDIntegrityClient::beginJob(), BeamMonitor::beginJob(), DQMEventInfo::beginLuminosityBlock(), DQMDaqInfo::beginLuminosityBlock(), SiStripDaqInfo::beginRun(), L1TEMTFEventInfoClient::book(), L1TEventInfoClient::book(), DQMStore::bookFloat_(), SiPixelDataQuality::bookGlobalQualityFlag(), DQMEventInfo::bookHistograms(), L1TRCT::bookHistograms(), Vx3DHLTAnalyzer::bookHistograms(), DTLocalTriggerSynchTask::bookHistograms(), DQMProvInfo::bookHistogramsProvInfo(), DQMStore::bookInt_(), SiPixelPhase1Summary::bookSummaries(), BPHMonitor::case11_selection(), RPCClusterSizeTest::clientOperation(), RPCEventSummary::clientOperation(), L1GtHwValidation::compareDaqRecord(), L1TStage2uGTCaloLayer2Comp::compareEGs(), L1TdeStage2CaloLayer2::compareEGs(), L1GtHwValidation::compareFDL(), L1GtHwValidation::compareGTFE(), L1TdeStage2CaloLayer2::compareJets(), L1TStage2uGTCaloLayer2Comp::compareJets(), L1TStage2uGTCaloLayer2Comp::compareSums(), L1TdeStage2CaloLayer2::compareSums(), L1TStage2uGTCaloLayer2Comp::compareTaus(), L1TdeStage2CaloLayer2::compareTaus(), GlobalRecHitsAnalyzer::compute(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelDataQuality::computeGlobalQualityFlagByLumi(), PrimaryVertexAnalyzer4PUSlimmed::computePairDistance(), EcalMixingModuleValidation::computeSDBunchDigi(), L1TGT::countPfsIndicesPerLs(), TkHistoMap::createTkHistoMap(), RPCTTUMonitor::discriminateDecision(), RPCDcsInfoClient::dqmEndJob(), RPCRecHitValidClient::dqmEndJob(), HLTTauCertifier::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), DTOfflineSummaryClients::dqmEndJob(), MuonAlignmentSummary::dqmEndJob(), MuonTestSummary::dqmEndJob(), DQMCorrelationClient::dqmEndJob(), HLTMuonCertSummary::dqmEndJob(), RPCDaqInfo::dqmEndLuminosityBlock(), RPCEventSummary::dqmEndLuminosityBlock(), DTDCSSummary::dqmEndLuminosityBlock(), SiPixelCertification::dqmEndLuminosityBlock(), SiPixelDaqInfo::dqmEndLuminosityBlock(), DTCertificationSummary::dqmEndLuminosityBlock(), DTDAQInfo::dqmEndLuminosityBlock(), DTSummaryClients::dqmEndLuminosityBlock(), ECALpedestalPCLHarvester::dqmPlots(), HcalNoiseRates::endJob(), MuonAlignment::endJob(), ESSummaryClient::endLumiAnalyze(), L1Scalers::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), DQMLumiMonitor::endLuminosityBlock(), SiStripMonitorDigi::endLuminosityBlock(), SiPixelDigiSource::endLuminosityBlock(), L1TStage2CaloLayer1::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), QcdLowPtDQM::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), DQMProvInfo::endLuminosityBlockEventInfo(), DQMDcsInfoClient::endRun(), RPCBxTest::endRun(), ConverterTester::endRun(), EcalSelectiveReadoutValidation::endRun(), HLTOverallSummary::endRun(), DQMStore::extract(), DTDataIntegrityTask::fedEntry(), DTDataIntegrityTask::fedFatal(), DTDataIntegrityTask::fedNonFatal(), FineDelayTask::fill(), hcaldqm::ContainerD::fill(), hcaldqm::ContainerI::fill(), hcaldqm::ContainerS::fill(), SiPixelHitEfficiencyModule::fill(), CSCMonitorObject::Fill(), hcaldqm::ContainerSingleProf2D::fill(), hcaldqm::ContainerSingle1D::fill(), SiPixelRecHitModule::fill(), hcaldqm::ContainerSingle2D::fill(), SiPixelClusterModule::fill(), ConcurrentMonitorElement::fill(), MuonIdDQM::Fill(), MuonIdVal::Fill(), BPhysicsValidation::ParticleMonitor::Fill(), EmDQMReco::FourVectorMonitorElements::fill(), NanoAODDQM::Count1D::fill(), SiPixelDigiModule::fill(), HTrackVariables::Fill(), L1ValidatorHists::Fill(), BasicHepMCValidation::ParticleMonitor::Fill(), egHLT::MonElemManager< T, varType >::fill(), NanoAODDQM::Profile1D::fill(), egHLT::MonElemManager2D< T, varTypeX, varTypeY >::fill(), Fill(), HResolution::Fill(), RecoMuonValidator::MuonME::fill(), EcalSelectiveReadoutValidation::fill(), dqmoffline::l1t::fill2DWithinLimits(), ecaldqm::MESet::fill_(), DQMSourceEleCalib::fillAroundBarrel(), DQMSourceEleCalib::fillAroundEndcap(), SiPixelRecHitsValid::fillBarrel(), MixCollectionValidation::fillCaloHitTime(), SiPixelHitEfficiencySource::fillClusterProbability(), SiStripMonitorTrack::fillControlViewHistos(), BasicHepMCValidation::ParticleMonitor::FillCount(), 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(), HLXMonitor::FillEventInfo(), SiStripFEDCheckPlugin::fillFatalError(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelActionExecutor::fillFEDErrorSummary(), SiPixelRecHitsValid::fillForward(), LaserAlignmentT0ProducerDQM::FillFromProcessedDigis(), LaserAlignmentT0ProducerDQM::FillFromRawDigis(), GlobalHitsAnalyzer::fillG4MC(), MixCollectionValidation::fillGenParticleMulti(), RPCMultiplicityTest::fillGlobalME(), RPCNoisyStripTest::fillGlobalME(), RPCOccupancyTest::fillGlobalME(), SiStripQualityDQM::fillGrandSummaryMEs(), GlobalHitsAnalyzer::fillHCal(), GlobalDigisAnalyzer::fillHCal(), GlobalRecHitsAnalyzer::fillHCal(), DQMFEDIntegrityClient::fillHistograms(), HLXMonitor::FillHistograms(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), HLXMonitor::FillHistoHFCompare(), SiStripSummaryCreator::fillHistos(), HistoFillerReco< T >::fillHistos(), dqm::TrackAnalyzer::fillHistosForState(), TkAlCaRecoMonitor::fillHitmaps(), ZdcSimHitStudy::FillHitValHist(), QcdUeDQM::fillHltBits(), QcdLowPtDQM::fillHltBits(), MuonPFAnalyzer::fillInRange(), HistogramManager::fillInternal(), ElectronTagProbeAnalyzer::fillMatchedHistos(), JetTester::fillMatchHists(), JetMonitor::FillME(), SiStripMonitorDigi::fillME(), SiStripMonitorCluster::fillME(), SiStripMonitorTrack::fillME(), SiStripRecHitsValid::fillME(), SiStripTrackingRecHitsValid::fillME(), JetMETHLTOfflineSource::fillMEforMonTriggerSummary(), L1TDTTF::fillMEs(), SiStripNoisesDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForDet(), SiStripThresholdDQM::fillMEsForDet(), SiStripApvGainsDQM::fillMEsForDet(), SiStripQualityDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForLayer(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripPedestalsDQM::fillMEsForLayer(), SiStripThresholdDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), SiStripApvGainsDQM::fillMEsForLayer(), SiStripQualityDQM::fillMEsForLayer(), MixCollectionValidation::fillMultiplicity(), GlobalHitsAnalyzer::fillMuon(), GlobalDigisAnalyzer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), SiStripFEDCheckPlugin::fillNonFatalError(), L1ValidatorHists::FillNumber(), CSCStripDigiValidation::fillPedestalPlots(), MuonTrackValidatorBase::fillPlotNoFlow(), BeamSpotProblemMonitor::FillPlots(), FastTimerServiceClient::fillPlotsVsLumi(), SiStripFEDCheckPlugin::fillPresent(), RCTMonitor::FillRCT(), ESSummaryClient::fillReportSummary(), HLXMonitor::FillReportSummary(), CSCStripDigiValidation::fillSignalPlots(), MixCollectionValidation::fillSimHitTime(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripDcsInfo::fillStatus(), SiStripQualityChecker::fillSubDetStatus(), SiPixelPhase1Summary::fillSummaries(), SiPixelActionExecutor::fillSummary(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), TrackingQualityChecker::fillTrackingStatus(), TrackingQualityChecker::fillTrackingStatusAtLumi(), SiStripMonitorDigi::fillTrend(), GlobalHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), TrackIPHistograms< T >::fillVariable(), FlavourHistograms< T >::fillVariable(), FlavourHistograms2D< T, G >::fillVariable(), dqmoffline::l1t::fillWithinLimits(), HGCalHitCalibration::fillWithRecHits(), GEMTrackMatch::FillWithTrigger(), SiStripDaqInfo::findExcludedModule(), SiPixelInformationExtractor::findNoisyPixels(), BeamMonitor::FitAndFill(), SiStripGainsPCLHarvester::gainQualityMonitor(), SiStripCablingDQM::getActiveDetIds(), EDMtoMEConverter::Tokens< T >::getData(), L1TRate::getXSexFitsOMDS(), L1TRate::getXSexFitsPython(), SiPixelDigiModule::getZeroLoEffROCs(), DTTriggerEfficiencyTest::makeEfficiencyME(), HeavyFlavorValidation::match(), RPCDaqInfo::myBooker(), RPCDataCertification::myBooker(), RPCDCSSummary::myBooker(), SiPixelTrackResidualModule::nfill(), SiPixelRecHitModule::nfill(), NoiseRatesClient::NoiseRatesEndjob(), HcalNoiseRatesClient::NoiseRatesEndjob(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), TauValidation::photons(), CSCWireDigiValidation::plotResolution(), CSCStripDigiValidation::plotResolution(), CSCSegmentValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), GlobalRecHitsAnalyzer::plotResolution(), StandaloneTrackMonitor::processClusters(), CastorDigiMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorRecHitMonitor::processEventJets(), CastorRecHitMonitor::processEventTowers(), DTDataIntegrityTask::processFED(), StandaloneTrackMonitor::processHit(), DTDataIntegrityTask::processROS25(), DTDataIntegrityTask::processuROS(), SiStripGainFromCalibTree::qualityMonitor(), SusyPostProcessor::QuantilePlots(), L1TEMTFEventInfoClient::readQtResults(), L1TEventInfoClient::readQtResults(), EgHLTOfflineSummaryClient::runClient_(), DTLocalTriggerTask::runTMAnalysis(), DQMFileSaver::saveForOffline(), DTTimeEvolutionHisto::setTimeSlotValue(), HLXMonitor::SetupEventInfo(), TauValidation::spinEffectsWHpm(), TauValidation::spinEffectsZH(), TauValidation::tauDecayChannel(), TauValidation::tauMother(), TrackEfficiencyMonitor::testSTATracks(), TrackEfficiencyMonitor::testTrackerTracks(), DQMNet::unpackQualityData(), PrimaryVertexMonitor::vertexPlots(), NanoAODDQM::Plot1D::vfill(), and ECALRecHitAnalyzer::WriteECALRecHits().

166 { fits_in_int64_t<long long>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( unsigned long long  x)
inline

Definition at line 167 of file MonitorElement.h.

References cuy::doFill.

167 { fits_in_int64_t<unsigned long long>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( unsigned long  x)
inline

Definition at line 168 of file MonitorElement.h.

References cuy::doFill.

168 { fits_in_int64_t<unsigned long>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( long  x)
inline

Definition at line 169 of file MonitorElement.h.

References cuy::doFill.

169 { fits_in_int64_t<long>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( unsigned int  x)
inline

Definition at line 170 of file MonitorElement.h.

References cuy::doFill.

170 { fits_in_int64_t<unsigned int>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( int  x)
inline

Definition at line 171 of file MonitorElement.h.

References cuy::doFill.

171 { fits_in_int64_t<int>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( short  x)
inline

Definition at line 172 of file MonitorElement.h.

References cuy::doFill.

172 { fits_in_int64_t<short>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( unsigned short  x)
inline

Definition at line 173 of file MonitorElement.h.

References cuy::doFill.

173 { fits_in_int64_t<unsigned short>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( char  x)
inline

Definition at line 174 of file MonitorElement.h.

References cuy::doFill.

174 { fits_in_int64_t<char>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( unsigned char  x)
inline

Definition at line 175 of file MonitorElement.h.

References cuy::doFill.

175 { fits_in_int64_t<unsigned char>(); doFill(static_cast<int64_t>(x)); }
void doFill(int64_t x)
"Fill" ME method for int64_t
void MonitorElement::Fill ( float  x)
inline

Definition at line 177 of file MonitorElement.h.

References Fill(), HcalObjRepresent::Fill(), tablePrinter::prefix, HcalObjRepresent::Reset(), AlCaHLTBitMon_QueryRunRegistry::string, w, x, y, z, and zw().

Referenced by Fill().

177 { Fill(static_cast<double>(x)); }
void Fill(long long x)
void MonitorElement::Fill ( double  x)

"Fill" ME methods for double

Definition at line 285 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.

286 {
287  update();
288  if (kind() == DQM_KIND_INT)
289  scalar_.num = static_cast<int64_t>(x);
290  else if (kind() == DQM_KIND_REAL)
291  scalar_.real = x;
292  else if (kind() == DQM_KIND_TH1F)
293  accessRootObject(__PRETTY_FUNCTION__, 1)
294  ->Fill(x, 1);
295  else if (kind() == DQM_KIND_TH1S)
296  accessRootObject(__PRETTY_FUNCTION__, 1)
297  ->Fill(x, 1);
298  else if (kind() == DQM_KIND_TH1D)
299  accessRootObject(__PRETTY_FUNCTION__, 1)
300  ->Fill(x, 1);
301  else
302  incompatible(__PRETTY_FUNCTION__);
303 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
Mark the object updated.
Kind kind() const
Get the type of the monitor element.
void MonitorElement::Fill ( std::string &  value)

"Fill" ME methods for string

Definition at line 274 of file MonitorElement.cc.

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

275 {
276  update();
277  if (kind() == DQM_KIND_STRING)
278  scalar_.str = value;
279  else
280  incompatible(__PRETTY_FUNCTION__);
281 }
void incompatible(const char *func) const
void update()
Mark the object updated.
Kind kind() 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 329 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().

330 {
331  update();
332  if (kind() == DQM_KIND_TH1F)
333  accessRootObject(__PRETTY_FUNCTION__, 1)
334  ->Fill(x, yw);
335  else if (kind() == DQM_KIND_TH1S)
336  accessRootObject(__PRETTY_FUNCTION__, 1)
337  ->Fill(x, yw);
338  else if (kind() == DQM_KIND_TH1D)
339  accessRootObject(__PRETTY_FUNCTION__, 1)
340  ->Fill(x, yw);
341  else if (kind() == DQM_KIND_TH2F)
342  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
343  ->Fill(x, yw, 1);
344  else if (kind() == DQM_KIND_TH2S)
345  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
346  ->Fill(x, yw, 1);
347  else if (kind() == DQM_KIND_TH2D)
348  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
349  ->Fill(x, yw, 1);
350  else if (kind() == DQM_KIND_TPROFILE)
351  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
352  ->Fill(x, yw, 1);
353  else
354  incompatible(__PRETTY_FUNCTION__);
355 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void Fill(long long x)
void update()
Mark the object updated.
Kind kind() const
Get the type of the monitor element.
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 433 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().

434 {
435  update();
436  if (kind() == DQM_KIND_TH2F)
437  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
438  ->Fill(x, y, zw);
439  else if (kind() == DQM_KIND_TH2S)
440  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
441  ->Fill(x, y, zw);
442  else if (kind() == DQM_KIND_TH2D)
443  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
444  ->Fill(x, y, zw);
445  else if (kind() == DQM_KIND_TH3F)
446  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
447  ->Fill(x, y, zw, 1);
448  else if (kind() == DQM_KIND_TPROFILE)
449  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 2))
450  ->Fill(x, y, zw);
451  else if (kind() == DQM_KIND_TPROFILE2D)
452  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
453  ->Fill(x, y, zw, 1);
454  else
455  incompatible(__PRETTY_FUNCTION__);
456 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void Fill(long long x)
void update()
Mark the object updated.
auto zw(V v) -> Vec2< typename std::remove_reference< decltype(v[0])>::type >
Definition: ExtVec.h:75
Kind kind() const
Get the type of the monitor element.
void MonitorElement::Fill ( double  x,
double  y,
double  z,
double  w 
)

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

Definition at line 460 of file MonitorElement.cc.

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

461 {
462  update();
463  if (kind() == DQM_KIND_TH3F)
464  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
465  ->Fill(x, y, z, w);
466  else if (kind() == DQM_KIND_TPROFILE2D)
467  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
468  ->Fill(x, y, z, w);
469  else
470  incompatible(__PRETTY_FUNCTION__);
471 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
const double w
Definition: UKUtility.cc:23
void Fill(long long x)
void update()
Mark the object updated.
Kind kind() const
Get the type of the monitor element.
uint32_t MonitorElement::flags ( ) const
inline

Get the object flags.

Definition at line 109 of file MonitorElement.h.

References DQMNet::CoreObject::flags.

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

Definition at line 1017 of file MonitorElement.cc.

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

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

1018 {
1019  TH1 *h = accessRootObject(func, axis-1);
1020  TAxis *a = nullptr;
1021  if (axis == 1)
1022  a = h->GetXaxis();
1023  else if (axis == 2)
1024  a = h->GetYaxis();
1025  else if (axis == 3)
1026  a = h->GetZaxis();
1027 
1028  if (! a)
1029  raiseDQMError("MonitorElement", "No such axis %d in monitor element"
1030  " '%s' of type '%s'", axis, data_.objname.c_str(),
1031  typeid(*h).name());
1032 
1033  return a;
1034 }
TH1 * accessRootObject(const char *func, int reqdim) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::string objname
Definition: DQMNet.h:107
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 852 of file MonitorElement.cc.

References getAxis(), and AlCaHLTBitMon_QueryRunRegistry::string.

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

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

get content of bin (1-D)

Definition at line 765 of file MonitorElement.cc.

References accessRootObject().

Referenced by HCALRecHitAnalyzer::analyze(), L1TDTTFClient::buildPhiEtaPlotO(), L1TDTTFClient::buildPhiEtaPlotOFC(), EcalMixingModuleValidation::bunchSumTest(), PixelLumiDQM::calculateBunchMask(), TrackingAnalyser::checkTrackerFEDsInLS(), TrackingAnalyser::checkTrackerFEDsWdataInLS(), RPCClusterSizeTest::clientOperation(), RPCDeadChannelTest::clientOperation(), RPCEventSummary::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelDataQuality::computeGlobalQualityFlagByLumi(), PFClient_JetRes::createEfficiencyPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), MuonTestSummary::doMultiplicityTests(), MuonTestSummary::doMuonIDTests(), MuonTestSummary::doResidualsTests(), HltSusyExoPostProcessor::dqmEndJob(), RPCEfficiencyPerRingLayer::dqmEndJob(), DQMExample_Step2::dqmEndJob(), RPCDqmClient::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), JetTesterPostProcessor::dqmEndJob(), METTesterPostProcessorHarvesting::dqmEndJob(), DTCertificationSummary::dqmEndJob(), DTOfflineSummaryClients::dqmEndJob(), DTChamberEfficiencyClient::dqmEndJob(), RPCDqmClient::dqmEndLuminosityBlock(), SiPixelDaqInfo::dqmEndLuminosityBlock(), SiPixelEDAClient::dqmEndLuminosityBlock(), DTDCSByLumiSummary::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTSummaryClients::dqmEndLuminosityBlock(), HcalSimHitsValidation::endJob(), hcaldqm::RawRunSummary::endLuminosityBlock(), hcaldqm::DigiRunSummary::endLuminosityBlock(), SiStripMonitorDigi::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), PixelLumiDQM::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), DQMHcalPhiSymAlCaReco::endRun(), 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(), ESSummaryClient::fillReportSummary(), SiPixelPhase1Summary::fillSummaries(), SiPixelActionExecutor::fillSummary(), SiPixelPhase1Summary::fillTrendPlots(), DTLocalTriggerLutTest::fillWhPlot(), DTTriggerLutTest::fillWhPlot(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetDet1D::getBinContent(), hcaldqm::ContainerSingle1D::getBinContent(), hcaldqm::ContainerSingle2D::getBinContent(), CSCMonitorObject::GetBinContent(), ecaldqm::MESet::ConstBin::getBinContent(), SiPixelTrackResidualSource::getepixrococcupancyofftrk(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), SiPixelClusterSource::getrococcupancye(), DTBlockedROChannelsTest::DTLinkBinsMap::getValueLinkBin(), DTBlockedROChannelsTest::DTRobBinsMap::getValueRobBin(), DTBlockedROChannelsTest::DTRobBinsMap::getValueRos(), SiPixelDigiModule::getZeroLoEffROCs(), HcalDigisClient::integralMETH2D(), TotemRPDQMHarvester::MakeHitNumberRatios(), TotemRPDQMHarvester::MakePlaneEfficiencyHistograms(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), SiPixelActionExecutor::normaliseAvDigiOcc(), SiPixelActionExecutor::normaliseAvDigiOccVsLumi(), DTTimeEvolutionHisto::normalizeTo(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), RPCChamberQuality::performeClientOperation(), HLTTauPostProcessor::plotFilterEfficiencies(), L1TStage2CaloLayer2DEClientSummary::processHistograms(), SiStripPopConFEDErrorsHandlerFromDQM::readHistogram(), SiStripMonitorTrack::return2DME(), SiPixelDQMRocLevelAnalyzer::RocSumOneModule(), HcalDigisClient::scaleMETH2D(), L1EmulatorErrorFlagClient::setSummary(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), ShiftFillLast(), HcalSimHitsClient::SimHitsEndjob(), DTTimeEvolutionHisto::updateTimeSlot(), and ECALRecHitAnalyzer::WriteECALRecHits().

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

References accessRootObject().

772 { return accessRootObject(__PRETTY_FUNCTION__, 2)
773  ->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 777 of file MonitorElement.cc.

References accessRootObject().

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

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

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

808 {
809  if (kind() == DQM_KIND_TPROFILE)
810  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
811  ->GetBinEntries(bin);
812  else if (kind() == DQM_KIND_TPROFILE2D)
813  return static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
814  ->GetBinEntries(bin);
815  else
816  {
817  incompatible(__PRETTY_FUNCTION__);
818  return 0;
819  }
820 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
bin
set the eta bin as selection string.
Kind kind() 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 789 of file MonitorElement.cc.

References accessRootObject().

790 { return accessRootObject(__PRETTY_FUNCTION__, 2)
791  ->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 795 of file MonitorElement.cc.

References accessRootObject().

796 { return accessRootObject(__PRETTY_FUNCTION__, 3)
797  ->GetBinError(binx, biny, binz); }
TH1 * accessRootObject(const char *func, int reqdim) const
double MonitorElement::getEntries ( ) const
double MonitorElement::getFloatValue ( ) const
inline
const std::string MonitorElement::getFullname ( ) const
inline
int64_t MonitorElement::getIntValue ( ) const
inline
bool MonitorElement::getLumiFlag ( ) const
inline

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

Definition at line 146 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

147  { return data_.flags & DQMNet::DQM_PROP_LUMI; }
uint32_t flags
Definition: DQMNet.h:99
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_LUMI
Definition: DQMNet.h:61
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 729 of file MonitorElement.cc.

References accessRootObject().

Referenced by MuonAlignmentSummary::dqmEndJob(), and BeamMonitor::FitAndFill().

730 { return accessRootObject(__PRETTY_FUNCTION__, axis-1)
731  ->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 113 of file MonitorElement.h.

References DQMNet::CoreObject::objname.

Referenced by BeamMonitor::analyze(), HLTSeedL1LogicScalers::analyze(), BeamMonitor::beginJob(), RPCBxTest::beginRun(), L1TEMTFEventInfoClient::book(), L1TEventInfoClient::book(), PFClient::createResolutionPlots(), L1EmulatorErrorFlagClient::dqmEndJob(), HLTMuonCertSummary::dqmEndJob(), plotting.Plot::draw(), L1TEMTFEventInfoClient::dumpContentMonitorElements(), L1TEventInfoClient::dumpContentMonitorElements(), DQMDcsInfoClient::endRun(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiStripSummaryCreator::fillHistos(), SiStripQualityChecker::fillSubDetStatus(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), TrackingQualityChecker::fillTrackingStatus(), TrackingQualityChecker::fillTrackingStatusAtLumi(), BeamMonitor::FitAndFill(), SiPixelDataQuality::getDetId(), SiPixelInformationExtractor::getDetId(), ESClient::getHisto(), SiStripQualityChecker::getModuleStatus(), SiStripSummaryCreator::getSummaryME(), CommissioningHistograms::histogram(), SiStripHistoPlotter::makeCondDBPlots(), L1TDTTPGClient::makeRatioHisto(), NanoAODDQM::Plot::name(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), SiStripInformationExtractor::plotHistosFromLayout(), SiStripInformationExtractor::printAlarmList(), APVGain::APVmon::printAll(), TrackingActionExecutor::printShiftHistoParameters(), SiStripActionExecutor::printShiftHistoParameters(), ElectronDqmHarvesterBase::profileX(), ScoutingAnalyzerBase::profileX(), ElectronDqmHarvesterBase::profileY(), ScoutingAnalyzerBase::profileY(), MEtoEDMConverter::putData(), SiStripPopConFEDErrorsHandlerFromDQM::readHistogram(), SiStripPopConHistoryDQM::returnDetComponent(), DTLocalTriggerSynchTest::runClientDiagnostic(), and CSCRecHit2DValidation::~CSCRecHit2DValidation().

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

get # of bins in X-axis

Definition at line 747 of file MonitorElement.cc.

References accessRootObject().

Referenced by L1TStage2RegionalMuonCandComp::analyze(), dqm::TrackAnalyzer::analyze(), SiStripMonitorQuality::analyze(), TrackBuildingAnalyzer::analyze(), JetAnalyzer_HeavyIons::analyze(), ecaldqm::MESetDet2D::book(), ecaldqm::MESetDet1D::book(), L1TStage2RegionalMuonCandComp::bookHistograms(), PixelLumiDQM::calculateBunchMask(), CaloTowersClient::CaloTowersEndjob(), CaloTowersDQMClient::CaloTowersEndjob(), RPCDeadChannelTest::clientOperation(), RPCEventSummary::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient::createResolutionPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), MuonTrackValidatorBase::doProfileX(), HltSusyExoPostProcessor::dqmEndJob(), DQMExample_Step2::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), METTesterPostProcessorHarvesting::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), JetTesterPostProcessor::dqmEndJob(), SiPixelEDAClient::dqmEndLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), 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(), SiPixelInformationExtractor::getNormalization(), SiPixelInformationExtractor::getNormalization2D(), SiStripSummaryCreator::getSummaryME(), SiPixelDigiModule::getZeroLoEffROCs(), RPCFEDIntegrity::labelBins(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), TotemRPDQMHarvester::MakeHitNumberRatios(), TotemRPDQMHarvester::MakePlaneEfficiencyHistograms(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), L1TGCTClient::makeXProjection(), L1TGCTClient::makeYProjection(), DTTimeEvolutionHisto::normalizeTo(), HLTTauPostProcessor::plotFilterEfficiencies(), SiStripPopConFEDErrorsHandlerFromDQM::readHistogram(), HcalDigisClient::scaleMETH2D(), L1EmulatorErrorFlagClient::setSummary(), ShiftFillLast(), and HcalSimHitsClient::SimHitsEndjob().

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

get # of bins in Z-axis

Definition at line 759 of file MonitorElement.cc.

References accessRootObject().

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

get pathname of parent folder

Definition at line 117 of file MonitorElement.h.

References DQMNet::CoreObject::dirname.

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

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

get errors from last set of quality tests

Definition at line 636 of file MonitorElement.cc.

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

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

637 {
638  std::vector<QReport *> result;
639  result.reserve(qreports_.size());
640  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
641  if (data_.qreports[i].code == dqm::qstatus::ERROR)
642  {
643  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
644  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
645  result.push_back(const_cast<QReport *>(&qreports_[i]));
646  }
647  return result;
648 }
QReports qreports
Definition: DQMNet.h:108
std::vector< QReport > qreports_
DQMNet::CoreObject data_
static const int ERROR
std::vector< QReport * > MonitorElement::getQOthers ( ) const

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

Definition at line 651 of file MonitorElement.cc.

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

Referenced by QTestStatusChecker::processAlarms().

652 {
653  std::vector<QReport *> result;
654  result.reserve(qreports_.size());
655  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
658  && data_.qreports[i].code != dqm::qstatus::ERROR)
659  {
660  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
661  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
662  result.push_back(const_cast<QReport *>(&qreports_[i]));
663  }
664  return result;
665 }
QReports qreports
Definition: DQMNet.h:108
std::vector< QReport > qreports_
static const int WARNING
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 598 of file MonitorElement.cc.

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

599 {
600  QReport *qr;
601  DQMNet::QValue *qv;
602  const_cast<MonitorElement *>(this)->getQReport(false, qtname, qr, qv);
603  return qr;
604 }
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (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 1391 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.

1392 {
1393  assert(qreports_.size() == data_.qreports.size());
1394 
1395  qr = nullptr;
1396  qv = nullptr;
1397 
1398  size_t pos = 0, end = qreports_.size();
1399  while (pos < end && data_.qreports[pos].qtname != qtname)
1400  ++pos;
1401 
1402  if (pos == end && ! create)
1403  return;
1404  else if (pos == end)
1405  {
1406  data_.qreports.emplace_back();
1407  qreports_.push_back(QReport(nullptr, nullptr));
1408 
1409  DQMNet::QValue &q = data_.qreports.back();
1411  q.qtresult = 0;
1412  q.qtname = qtname;
1413  q.message = "NO_MESSAGE_ASSIGNED";
1414  q.algorithm = "UNKNOWN_ALGORITHM";
1415  }
1416 
1417  qr = &qreports_[pos];
1418  qv = &data_.qreports[pos];
1419 }
QReports qreports
Definition: DQMNet.h:108
std::string algorithm
Definition: DQMNet.h:94
def create(alignables, pedeDump, additionalData, outputFile, config)
std::vector< QReport > qreports_
static const int DID_NOT_RUN
#define end
Definition: vmac.h:39
std::string qtname
Definition: DQMNet.h:93
DQMNet::CoreObject data_
std::string message
Definition: DQMNet.h:92
float qtresult
Definition: DQMNet.h:91
std::vector< QReport * > MonitorElement::getQReports ( ) const
std::vector< QReport * > MonitorElement::getQWarnings ( ) const

get warnings from last set of quality tests

Definition at line 621 of file MonitorElement.cc.

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

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

622 {
623  std::vector<QReport *> result;
624  result.reserve(qreports_.size());
625  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
626  if (data_.qreports[i].code == dqm::qstatus::WARNING)
627  {
628  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
629  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
630  result.push_back(const_cast<QReport *>(&qreports_[i]));
631  }
632  return result;
633 }
QReports qreports
Definition: DQMNet.h:108
std::vector< QReport > qreports_
static const int WARNING
DQMNet::CoreObject data_
TObject * MonitorElement::getRefRootObject ( void  ) const
TH1 * MonitorElement::getRefTH1 ( ) const

Definition at line 1563 of file MonitorElement.cc.

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

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

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

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

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

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

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

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

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

Definition at line 1615 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest(), and Comp2Ref2DChi2::runTest().

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

Definition at line 1597 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest(), and Comp2Ref2DChi2::runTest().

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

Definition at line 1606 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest(), and Comp2Ref2DChi2::runTest().

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

Definition at line 1624 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

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

Definition at line 1633 of file MonitorElement.cc.

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

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

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

Definition at line 1642 of file MonitorElement.cc.

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

Referenced by Comp2Ref2DChi2::runTest().

1643 {
1644  assert(kind() == DQM_KIND_TPROFILE2D);
1645  const_cast<MonitorElement *>(this)->update();
1646  return static_cast<TProfile2D *>
1647  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1648 }
void update()
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
std::string objname
Definition: DQMNet.h:107
DQMNet::CoreObject data_
Kind kind() const
Get the type of the monitor element.
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 741 of file MonitorElement.cc.

References accessRootObject().

Referenced by BeamMonitor::FitAndFill().

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

Definition at line 370 of file MonitorElement.h.

References callgraph::kind, and MonitorElement::Scalar::str.

Referenced by MEtoEDMConverter::putData().

371  {
372  assert(kind() == DQM_KIND_STRING);
373  return scalar_.str;
374  }
Kind kind() const
Get the type of the monitor element.
const uint32_t MonitorElement::getTag ( ) const
inline

Definition at line 384 of file MonitorElement.h.

References DQMNet::CoreObject::tag.

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

Definition at line 376 of file MonitorElement.h.

References DQMNet::DQM_PROP_TAGGED, DQMNet::CoreObject::flags, and DQMNet::CoreObject::tag.

Referenced by MEtoEDMConverter::putData().

377  {
378  DQMNet::TagList tags;
380  tags.push_back(data_.tag);
381  return tags;
382  }
uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_TAGGED
Definition: DQMNet.h:55
uint32_t tag
Definition: DQMNet.h:100
DQMNet::CoreObject data_
std::vector< uint32_t > TagList
Definition: DQMNet.h:85
TH1 * MonitorElement::getTH1 ( void  ) const

Definition at line 1476 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by HcalOnlineHarvesting::_dqmEndLuminosityBlock(), SiPixelOfflineCalibAnalysisBase::addTF1ToDQMMonitoringElement(), MBUEandQCDValidation::analyze(), BeamMonitor::analyze(), LogMessageMonitor::analyze(), HLTScalers::analyze(), L1TSync::analyze(), L1TSync_Offline::analyze(), TrackerOfflineValidationSummary::associateModuleHistsWithTree(), BeamConditionsMonitor::beginJob(), BeamMonitor::beginJob(), ecaldqm::MESetEcal::book(), L1TTestsSummary::book(), HistogramManager::book(), dqmoffline::l1t::L1TEfficiencyPlotHandler::book(), QcdUeDQM::book1D(), QcdLowPtDQM::book1D(), DQMHelper::book1dHisto(), QcdLowPtDQM::book2D(), DQMHelper::book2dHisto(), ScoutingAnalyzerBase::bookH1(), ElectronDqmAnalyzerBase::bookH1(), ElectronDqmHarvesterBase::bookH1andDivide(), ScoutingAnalyzerBase::bookH1andDivide(), ScoutingAnalyzerBase::bookH1BinArray(), ScoutingAnalyzerBase::bookH1withSumw2(), ElectronDqmAnalyzerBase::bookH1withSumw2(), ScoutingAnalyzerBase::bookH1withSumw2BinArray(), ElectronDqmAnalyzerBase::bookH2(), ScoutingAnalyzerBase::bookH2(), ElectronDqmHarvesterBase::bookH2andDivide(), ScoutingAnalyzerBase::bookH2andDivide(), ElectronDqmAnalyzerBase::bookH2withSumw2(), ScoutingAnalyzerBase::bookH2withSumw2(), DiJetVarAnalyzer::bookHistograms(), RPCValidHistograms::bookHistograms(), RPCRecHitValid::bookHistograms(), TkAlCaRecoMonitor::bookHistograms(), V0Monitor::bookHistograms(), QcdUeDQM::bookHistograms(), Vx3DHLTAnalyzer::bookHistograms(), SiPixelClusterSource::bookHistograms(), LogMessageMonitor::bookHistograms(), TrackingMonitor::bookHistograms(), JetMETHLTOfflineSource::bookHistograms(), QcdLowPtDQM::bookHistograms(), dqm::TrackAnalyzer::bookHistosForBeamSpot(), SiStripMonitorTrack::bookMETrend(), SiStripMonitorCluster::bookMETrend(), ElectronDqmAnalyzerBase::bookP1(), SiStripMonitorTrack::bookSubDetMEs(), DQMGenericTnPClient::calculateEfficiency(), HeavyFlavorHarvesting::calculateEfficiency(), DQMStore::checkBinningMatches(), dqmoffline::l1t::L1TEfficiencyPlotHandler::computeEfficiency(), SiStripMonitorDigi::createMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripHistoPlotter::createStaticPlot(), SiStripMonitorDigi::createSubDetMEs(), SiStripMonitorCluster::createSubDetMEs(), hcaldqm::ContainerSingle1D::customize(), hcaldqm::ContainerSingle2D::customize(), hcaldqm::Container2D::customize(), hcaldqm::Container1D::customize(), ConcurrentMonitorElement::disableAlphanumeric(), divide(), L1TSync::doFractionInSync(), dqmCopyRecursively(), RPCEfficiencyPerRingLayer::dqmEndJob(), RPCRecHitValidClient::dqmEndJob(), DTRecHitClients::dqmEndJob(), DT4DSegmentClients::dqmEndJob(), DT2DSegmentClients::dqmEndJob(), TauDQMHistEffProducer::dqmEndJob(), DQMScaleToClient::dqmEndJob(), DQMCorrelationClient::dqmEndJob(), ConcurrentMonitorElement::enableSumw2(), hcaldqm::DigiRunSummary::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HistogramManager::executeExtend(), HistogramManager::executeGroupBy(), hcaldqm::ContainerSingle1D::extendAxisRange(), hcaldqm::ContainerSingle2D::extendAxisRange(), ecaldqm::MESet::fill_(), SiPixelActionExecutor::fillEfficiencySummary(), SiStripQualityDQM::fillGrandSummaryMEs(), DQMMessageLoggerClient::fillHistograms(), SiStripSummaryCreator::fillHistos(), MuonPFAnalyzer::fillInRange(), SiStripQualityDQM::fillMEsForLayer(), MuonTrackValidatorBase::fillPlotNoFlow(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripBackPlaneCorrectionDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripQualityDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), SiPixelPhase1Summary::fillTrendPlots(), ecaldqm::MESetDet1D::findBin(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), L1TSync::getBeamConfOMDS(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetDet1D::getBinContent(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetDet1D::getBinEntries(), ecaldqm::MESetProjection::getBinError(), ecaldqm::MESetDet1D::getBinError(), CSCMonitorObject::GetBinError(), EDMtoMEConverter::Tokens< T >::getData(), CSCMonitorObject::GetEntries(), CSCMonitorObject::GetMaximumBin(), HLTBTagHarvestingAnalyzer::GetNumDenumerators(), SiStripSummaryCreator::getSummaryME(), DQMCorrelationClient::getTH1(), CSCMonitorObject::getTH1(), MuIsoValidation::GetTH1FromMonitorElement(), MuonIsolationDQM::GetTH1FromMonitorElement(), CSCMonitorObject::getTH1Lock(), L1TRate_Offline::getXSexFitsPython(), VertexMonitor::initHisto(), HistogramManager::loadFromDQMStore(), SiStripHistoPlotter::makeCondDBPlots(), TotemRPDQMHarvester::MakePlaneEfficiencyHistograms(), PlotCombiner::makePlot(), SiStripHistoPlotter::makePlot(), SusyPostProcessor::QuantilePlots(), ecaldqm::MESetDet2D::reset(), ecaldqm::MESetDet1D::reset(), CSCMonitorObject::SetAxisRange(), DQMCorrelationClient::setAxisTitle(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetDet1D::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetDet1D::setBinEntries(), ecaldqm::MESetProjection::setBinError(), ecaldqm::MESetDet1D::setBinError(), CSCMonitorObject::SetBinError(), MuonPFAnalyzer::setCodeLabels(), CSCMonitorObject::SetMaximum(), rpcdqm::RPCMEHelper::setNoAlphanumeric(), CSCMonitorObject::SetNormFactor(), DTLocalTriggerTask::setQLabels(), DTLocalTriggerBaseTask::setQLabels(), DTLocalTriggerTask::setQLabelsTheta(), DTLocalTriggerBaseTask::setQLabelsTheta(), ConcurrentMonitorElement::setXTitle(), ConcurrentMonitorElement::setYTitle(), ecaldqm::MESetTrend::shift_(), JetMETHLTOfflineSource::TriggerPosition(), SiStripFEDCheckPlugin::updateHistograms(), L1TTestsSummary::updateL1TOccupancyMonitor(), L1TTestsSummary::updateL1TRateMonitor(), L1TTestsSummary::updateL1TSyncMonitor(), and L1ValidatorHists::Write().

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

Definition at line 1483 of file MonitorElement.cc.

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

Referenced by HcalOnlineHarvesting::_dqmEndLuminosityBlock(), SiStripGainFromData::algoBeginJob(), L1TStage2EMTF::analyze(), L1TdeStage2CaloLayer1::analyze(), GeneralHLTOffline::analyze(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), L1TStage2RatioClient::book(), dqmoffline::l1t::L1TEfficiencyPlotHandler::book(), Benchmark::book1D(), dqmoffline::l1t::L1TDiffHarvesting::L1TDiffPlotHandler::bookDiff(), ElectronDqmAnalyzerBase::bookH1(), ElectronDqmHarvesterBase::bookH1(), ElectronDqmHarvesterBase::bookH1andDivide(), ElectronDqmAnalyzerBase::bookH1withSumw2(), ElectronDqmHarvesterBase::bookH1withSumw2(), ElectronDqmHarvesterBase::bookH2(), ElectronDqmHarvesterBase::bookH2withSumw2(), ME0DigisValidation::bookHistograms(), RPCValidHistograms::bookHistograms(), CastorDigiMonitor::bookHistograms(), CastorRecHitMonitor::bookHistograms(), L1TStage2MuonComp::bookHistograms(), L1TStage2RegionalMuonCandComp::bookHistograms(), RPCMonitorLinkSynchro::bookHistograms(), GEMDQMStatusDigi::bookHistograms(), PrimaryVertexMonitor::bookHistograms(), dqm::RamdiskMonitor::bookHistograms(), QcdPhotonsDQM::bookHistograms(), L1TdeStage2CaloLayer1::bookHistograms(), L1TdeStage2uGT::bookHistograms(), HLTInclusiveVBFSource::bookHistograms(), L1TStage2uGTCaloLayer2Comp::bookHistograms(), CastorMonitorModule::bookHistograms(), DQMProvInfo::bookHistogramsLhcInfo(), TrackEfficiencyClient::bookMEs(), ElectronDqmHarvesterBase::bookP1(), L1TDTTFClient::buildSummaries(), CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots(), ElectronDqmHarvesterBase::cloneH1(), DQMStore::collate1D(), EffPurFromHistos::compute(), EffPurFromHistos2D::compute(), dqmoffline::l1t::L1TDiffHarvesting::L1TDiffPlotHandler::computeDiff(), HTrackVariables::computeEfficiency(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createEfficiencyPlots(), L1TdeRCT::DivideME1D(), MuonTestSummary::doEnergyTests(), fitUtilities::doGaussFit(), HDQMfitUtilities::doGaussFit(), MuonTestSummary::doKinematicsTests(), fitUtilities::doLanGaussFit(), HDQMfitUtilities::doLanGaussFit(), MuonTestSummary::doMuonIDTests(), HltSusyExoPostProcessor::dqmEndJob(), OuterTrackerMCHarvester::dqmEndJob(), RPCRecHitProbabilityClient::dqmEndJob(), L1TGMTClient::dqmEndJob(), DQMHcalIsoTrackPostProcessor::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), MuonGEMHitsHarvestor::dqmEndJob(), TriggerRatesMonitorClient::dqmEndJob(), SusyPostProcessor::dqmEndJob(), TauDQMHistEffProducer::dqmEndJob(), EfficiencyPlotter::dqmEndJob(), EcalZmassClient::dqmEndJob(), MuonRecoTest::dqmEndJob(), TrackEfficiencyClient::dqmEndJob(), DTResolutionAnalysisTest::dqmEndJob(), JetMETHLTOfflineClient::dqmEndJob(), RPCDcsInfoClient::dqmEndLuminosityBlock(), BrilClient::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTEfficiencyTest::dqmEndLuminosityBlock(), HarvestingAnalyzer::endJob(), ESPedestalClient::endJobAnalyze(), RPCMonitorLinkSynchro::endLuminosityBlock(), DQMDcsInfoClient::endLuminosityBlock(), L1TdeStage2CaloLayer1::endLuminosityBlock(), L1TStage2CaloLayer1::endLuminosityBlock(), RPCBxTest::endRun(), ZDCDigiStudy::endRun(), METAnalyzer::endRun(), TauDQMHistPlotter::endRun(), LaserDQM::fillAdcCounts(), SiStripQualityChecker::fillDetectorStatusAtLumi(), MillePedeDQMModule::fillExpertHisto(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), BTagDifferentialPlot::fillHisto(), DQMFEDIntegrityClient::fillHistograms(), HLXMonitor::FillHistograms(), SiStripSummaryCreator::fillHistos(), GeneralHLTOffline::fillHltMatrix(), EgHLTOfflineClient::FillHLTvsOfflineHist(), FastTimerServiceClient::fillPathSummaryPlots(), FastTimerServiceClient::fillProcessSummaryPlots(), SiPixelActionExecutor::fillSummary(), ThroughputServiceClient::fillSummaryPlots(), dqmoffline::l1t::fillWithinLimits(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), FlavourHistograms< T >::FlavourHistograms(), MuonTestSummary::GaussFit(), L1TGMTClient::get1DHisto(), L1TDTTPGClient::get1DHisto(), 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(), JetMETDQMPostProcessor::getHistogram(), EmDQMPostProcessor::getHistogram(), PFClient_JetRes::getHistogramParameters(), PFClient::getHistogramParameters(), FlavourHistograms< T >::getHistoVector(), SiStripHistoPlotter::getProjection(), SiStripSummaryCreator::getSummaryME(), L1TDTTFClient::getTH1F(), HcalDigisClient::HcalDigisEndjob(), FlavourHistograms< T >::histo_all(), FlavourHistograms< T >::histo_b(), FlavourHistograms< T >::histo_c(), FlavourHistograms< T >::histo_d(), FlavourHistograms< T >::histo_dus(), FlavourHistograms< T >::histo_dusg(), FlavourHistograms< T >::histo_g(), FlavourHistograms< T >::histo_ni(), FlavourHistograms< T >::histo_pu(), FlavourHistograms< T >::histo_s(), FlavourHistograms< T >::histo_u(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), PhotonDataCertification::invMassZtest(), L1TGMTClient::makeEfficiency1D(), DTLocalTriggerEfficiencyTest::makeEfficiencyME(), EgHLTOfflineClient::makeEffMonElem2Leg(), EgHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndFail(), EgHLTOfflineClient::makeEffMonElemFromPassAndFailAndTagTag(), TotemRPDQMHarvester::MakeHitNumberRatios(), TotemRPDQMHarvester::MakePlaneEfficiencyHistograms(), METAnalyzer::makeRatePlot(), L1TGMTClient::makeRatio1D(), DTLocalTriggerSynchTest::makeRatioME(), L1TDTTFClient::makeSummary(), DQMClientExample::performClient(), DTSegmentAnalysisTest::performClientDiagnostic(), BTagDifferentialPlot::plot(), EffPurFromHistos::plot(), FlavourHistograms< T >::plot(), HLTTauPostProcessor::plotFilterEfficiencies(), TotemRPDQMSource::PotPlots::PotPlots(), CTPPSDiamondDQMSource::PotPlots::PotPlots(), CastorDigiMonitor::processEvent(), L1TStage2RatioClient::processHistograms(), L1TStage2CaloLayer2DEClient::processHistograms(), L1TCSCTFClient::processHistograms(), MEtoEDMConverter::putData(), MuonTestSummary::ResidualCheck(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentSigma::runTest(), MeanWithinExpected::runTest(), CompareLastFilledBin::runTest(), CheckVariance::runTest(), GenericHistoryDQM::setDBValuesForUser(), DTTimeEvolutionHisto::setTimeSlotValue(), and TrackIPHistograms< T >::TrackIPHistograms().

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

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

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

Definition at line 1523 of file MonitorElement.cc.

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

Referenced by CTPPSPixelDQMSource::bookHistograms(), DQMStore::collate2DD(), DQMCorrelationClient::getTH1(), ScoutingAnalyzerBase::profileX(), ScoutingAnalyzerBase::profileY(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), Comp2Ref2DChi2::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentSigma::runTest(), and ContentsWithinExpected::runTest().

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

Definition at line 1507 of file MonitorElement.cc.

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

Referenced by HcalOnlineHarvesting::_dqmEndLuminosityBlock(), SiStripGainFromData::algoBeginJob(), GEMDQMStatusDigi::AMCBinN(), L1TStage2EMTF::analyze(), JetAnalyzer_HeavyIons::analyze(), CTPPSCommonDQMSource::ArmPlots::ArmPlots(), BeamMonitor::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), L1TdeStage2CaloLayer1::beginLuminosityBlock(), L1TStage2CaloLayer1::beginLuminosityBlock(), dqmoffline::l1t::L1TEfficiencyPlotHandler::book(), Benchmark::book2D(), dqmoffline::l1t::L1TDiffHarvesting::L1TDiffPlotHandler::bookDiff(), ElectronDqmAnalyzerBase::bookH2(), ElectronDqmHarvesterBase::bookH2(), ElectronDqmHarvesterBase::bookH2andDivide(), ElectronDqmAnalyzerBase::bookH2withSumw2(), ElectronDqmHarvesterBase::bookH2withSumw2(), RPCValidHistograms::bookHistograms(), CastorDigiMonitor::bookHistograms(), CastorRecHitMonitor::bookHistograms(), L1TStage2EMTF::bookHistograms(), RPCMonitorLinkSynchro::bookHistograms(), RPCMonitorRaw::bookHistograms(), HLTTauDQMTagAndProbePlotter::bookHistograms(), RPCRecHitValid::bookHistograms(), CaloTowerAnalyzer::bookHistograms(), GEMDQMStatusDigi::bookHistograms(), HLTTauDQMPathPlotter::bookHistograms(), L1TdeStage2CaloLayer1::bookHistograms(), PhysicsObjectsMonitor::bookHistograms(), CTPPSPixelDQMSource::bookHistograms(), CastorLEDMonitor::bookHistograms(), L1TDTTF::bookHistograms(), ZDCDigiStudy::bookHistograms(), HLTInclusiveVBFSource::bookHistograms(), ZdcSimHitStudy::bookHistograms(), L1TdeRCT::bookHistograms(), L1TStage2CaloLayer1::bookHistograms(), L1TCSCTF::bookHistograms(), JetAnalyzer::bookHistograms(), PrimaryVertexAnalyzer4PUSlimmed::bookHistograms(), DQMProvInfo::bookHistogramsEventInfo(), DQMStore::collate2D(), dqmoffline::l1t::L1TDiffHarvesting::L1TDiffPlotHandler::computeDiff(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), ElasticPlotDQMSource::DiagonalPlots::DiagonalPlots(), FlavourHistograms2D< T, G >::divide(), EmDQMPostProcessor::dividehistos2D(), L1TdeRCT::DivideME2D(), MuonTrackValidatorBase::doProfileX(), TrackingDQMClientHeavyIons::dqmEndJob(), L1TGMTClient::dqmEndJob(), TriggerRatesMonitorClient::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), MuonRecoTest::dqmEndJob(), PhotonDataCertification::dqmEndJob(), DTChamberEfficiencyClient::dqmEndJob(), HLTMuonCertSummary::dqmEndJob(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTNoiseAnalysisTest::dqmEndLuminosityBlock(), DTOccupancyTest::dqmEndLuminosityBlock(), DTOccupancyTestML::dqmEndLuminosityBlock(), DTChamberEfficiencyTest::dqmEndLuminosityBlock(), DTResolutionTest::dqmEndLuminosityBlock(), L1TEMTFEventInfoClient::dumpContentMonitorElements(), L1TEventInfoClient::dumpContentMonitorElements(), RPCMonitorLinkSynchro::endLuminosityBlock(), TotemTimingDQMSource::endLuminosityBlock(), HigPhotonJetHLTOfflineSource::endRun(), HLTOverallSummary::endRun(), dqmoffline::l1t::fill2DWithinLimits(), SiPixelActionExecutor::fillEfficiency(), SiStripSummaryCreator::fillHistos(), SiPixelActionExecutor::fillOccupancy(), SiStripQualityChecker::fillStatusHistogram(), TrackingQualityChecker::fillStatusHistogram(), TrackingCertificationInfo::fillTrackingCertificationMEs(), SiPixelInformationExtractor::findNoisyPixels(), FitSlicesYTool::FitSlicesYTool(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), GEMDQMStatusDigi::GEBBinN(), L1TGMTClient::get2DHisto(), L1TDTTPGClient::get2DHisto(), EmDQMPostProcessor::get2DHistogram(), SiStripBadModuleFedErrESSource::getFedBadChannelList(), FlavourHistograms2D< T, G >::getHistoVector(), HLTBTagHarvestingAnalyzer::GetNumDenumerators(), SiStripHistoPlotter::getProjection(), L1TOccupancyClientHistogramService::getRebinnedHistogram(), DQMCorrelationClient::getTH1(), L1TDTTFClient::getTH2F(), MuIsoValidation::GetTH2FromMonitorElement(), FlavourHistograms2D< T, G >::histo_all(), FlavourHistograms2D< T, G >::histo_b(), FlavourHistograms2D< T, G >::histo_c(), FlavourHistograms2D< T, G >::histo_d(), FlavourHistograms2D< T, G >::histo_dus(), FlavourHistograms2D< T, G >::histo_dusg(), FlavourHistograms2D< T, G >::histo_g(), FlavourHistograms2D< T, G >::histo_ni(), FlavourHistograms2D< T, G >::histo_pu(), FlavourHistograms2D< T, G >::histo_s(), FlavourHistograms2D< T, G >::histo_u(), CTPPSCommonDQMSource::GlobalPlots::Init(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), DQMGenericClient::limitedFit(), L1TGMTClient::makeEfficiency2D(), DTTriggerEfficiencyTest::makeEfficiencyME(), DTLocalTriggerEfficiencyTest::makeEfficiencyME2D(), TotemRPDQMHarvester::MakeHitNumberRatios(), TotemRPDQMHarvester::MakePlaneEfficiencyHistograms(), L1TDTTPGClient::makeRatioHisto(), L1TDTTFClient::makeSummary(), DTSegmentAnalysisTest::performClientDiagnostic(), FlavourHistograms2D< T, G >::plot(), CTPPSDiamondDQMSource::PotPlots::PotPlots(), CastorDigiMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorLEDMonitor::processEvent(), L1TGCTClient::processHistograms(), ElectronDqmHarvesterBase::profileX(), ElectronDqmHarvesterBase::profileY(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), Comp2Ref2DChi2::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentSigma::runTest(), ContentsWithinExpected::runTest(), CompareLastFilledBin::runTest(), SiStripPopConHistoryDQM::setDBValuesForUser(), HLXMonitor::SetupEventInfo(), and L1ValidatorHists::Write().

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

Definition at line 1515 of file MonitorElement.cc.

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

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

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

Definition at line 1531 of file MonitorElement.cc.

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

Referenced by DQMStore::collate3D(), MEtoEDMConverter::putData(), and Comp2RefEqualH::runTest().

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

get MonitorElement title

Definition at line 858 of file MonitorElement.cc.

References accessRootObject().

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

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

Definition at line 1539 of file MonitorElement.cc.

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

Referenced by EcalSelectiveReadoutValidation::analyzeTP(), StripValidationPlots::beginJob(), dqmoffline::l1t::L1TDiffHarvesting::L1TDiffPlotHandler::bookDiff(), CTPPSPixelDQMSource::bookHistograms(), CastorMonitorModule::bookHistograms(), ElectronDqmAnalyzerBase::bookP1(), ElectronDqmHarvesterBase::bookP1(), ScoutingAnalyzerBase::bookP1(), Benchmark::bookProfile(), TrackingAnalyser::checkTrackerFEDsInLS(), TrackingAnalyser::checkTrackerFEDsWdataInLS(), DQMStore::collateProfile(), dqmoffline::l1t::L1TDiffHarvesting::L1TDiffPlotHandler::computeDiff(), PFClient::createProfilePlots(), EmDQMPostProcessor::dividehistos(), JetMETDQMPostProcessor::dividehistos(), MuonTrackValidatorBase::doProfileX(), EmDQMPostProcessor::dqmEndJob(), HltSusyExoPostProcessor::dqmEndJob(), AlcaBeamMonitorClient::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), FastTimerServiceClient::fillPlotsVsLumi(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripBackPlaneCorrectionDQM::fillSummaryMEs(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), BeamMonitor::FitAndFill(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), L1TDTTPGClient::get1DProfile(), FlavourHistograms2D< T, G >::getProfileVector(), SiStripHistoPlotter::getProjection(), MuIsoValidation::GetTProfileFromMonitorElement(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), HLTTauPostProcessor::plotFilterEfficiencies(), FlavourHistograms2D< T, G >::profile_all(), FlavourHistograms2D< T, G >::profile_b(), FlavourHistograms2D< T, G >::profile_c(), FlavourHistograms2D< T, G >::profile_d(), FlavourHistograms2D< T, G >::profile_dus(), FlavourHistograms2D< T, G >::profile_dusg(), FlavourHistograms2D< T, G >::profile_g(), FlavourHistograms2D< T, G >::profile_ni(), FlavourHistograms2D< T, G >::profile_pu(), FlavourHistograms2D< T, G >::profile_s(), FlavourHistograms2D< T, G >::profile_u(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsWithinExpected::runTest(), and CheckVariance::runTest().

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

Definition at line 1547 of file MonitorElement.cc.

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

Referenced by CastorDigiMonitor::bookHistograms(), CTPPSPixelDQMSource::bookHistograms(), DQMStore::collateProfile2D(), L1TDTTPGClient::get2DProfile(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), MEtoEDMConverter::putData(), Comp2Ref2DChi2::runTest(), ContentsWithinExpected::runTest(), and CompareToMedian::runTest().

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

get max Y value (for profiles)

Definition at line 838 of file MonitorElement.cc.

References accessRootObject(), DQM_KIND_TPROFILE, incompatible(), kind(), and AlCaHLTBitMon_QueryRunRegistry::string.

839 {
840  if (kind() == DQM_KIND_TPROFILE)
841  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
842  ->GetYmax();
843  else
844  {
845  incompatible(__PRETTY_FUNCTION__);
846  return 0;
847  }
848 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind() const
Get the type of the monitor element.
double MonitorElement::getYmin ( ) const
private

get min Y value (for profiles)

Definition at line 824 of file MonitorElement.cc.

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

825 {
826  if (kind() == DQM_KIND_TPROFILE)
827  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
828  ->GetYmin();
829  else
830  {
831  incompatible(__PRETTY_FUNCTION__);
832  return 0;
833  }
834 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind() const
Get the type of the monitor element.
void MonitorElement::globalize ( )
inlineprivate

Definition at line 77 of file MonitorElement.h.

References DQMNet::CoreObject::moduleId.

77  {
78  data_.moduleId = 0;
79  }
uint32_t moduleId
Definition: DQMNet.h:105
DQMNet::CoreObject data_
bool MonitorElement::hasError ( void  ) const
inline

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

Definition at line 196 of file MonitorElement.h.

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

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

uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_REPORT_ERROR
Definition: DQMNet.h:47
DQMNet::CoreObject data_
bool MonitorElement::hasOtherReport ( ) const
inline

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

Definition at line 204 of file MonitorElement.h.

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

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

uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_REPORT_OTHER
Definition: DQMNet.h:49
DQMNet::CoreObject data_
bool MonitorElement::hasWarning ( ) const
inline

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

Definition at line 200 of file MonitorElement.h.

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

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

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

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

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

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

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

Definition at line 68 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_.

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

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

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

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

Definition at line 288 of file MonitorElement.h.

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

Referenced by copyFrom(), and copyFunctions().

uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_ACCUMULATE
Definition: DQMNet.h:56
DQMNet::CoreObject data_
bool MonitorElement::isEfficiency ( ) const
inline
bool MonitorElement::isSoftResetEnabled ( ) const
inlineprivate

whether soft-reset is enabled; default is false

Definition at line 284 of file MonitorElement.h.

Referenced by copyFrom(), and copyFunctions().

285  { return refvalue_ != nullptr; }
Kind MonitorElement::kind ( ) const
inline

Get the type of the monitor element.

Definition at line 105 of file MonitorElement.h.

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

Referenced by accessRootObject(), dqmoffline::l1t::L1TEfficiencyPlotHandler::book(), SiStripMonitorCluster::bookMETrend(), copyFrom(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createEfficiencyPlots(), SiStripMonitorDigi::createMEs(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), SiStripMonitorDigi::createSubDetMEs(), SiStripMonitorCluster::createSubDetMEs(), disableSoftReset(), doFill(), Fill(), SiStripQualityChecker::fillDetectorStatusAtLumi(), SiStripSummaryCreator::fillHistos(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripQualityChecker::fillStatusHistogram(), TrackingQualityChecker::fillStatusHistogram(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), TrackingQualityChecker::fillTrackingStatusAtLumi(), DQMService::flushStandalone(), getBinEntries(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), SiStripBadModuleFedErrESSource::getFedBadChannelList(), PFClient_JetRes::getHistogramParameters(), PFClient::getHistogramParameters(), TrackingUtility::getMEValue(), SiStripUtility::getMEValue(), SiStripQualityChecker::getModuleStatus(), SiStripHistoPlotter::getProjection(), getRefTH1D(), getRefTH1F(), getRefTH1S(), getRefTH2D(), getRefTH2F(), getRefTH2S(), getRefTH3F(), getRefTProfile(), getRefTProfile2D(), SiStripSummaryCreator::getSummaryME(), DQMCorrelationClient::getTH1(), getTH1D(), getTH1F(), getTH1S(), getTH2D(), getTH2F(), getTH2S(), getTH3F(), getTProfile(), getTProfile2D(), getYmax(), getYmin(), initialise(), dqmoffline::l1t::L1TDiffHarvesting::L1TDiffPlotHandler::loadHistograms(), SiStripHistoPlotter::makePlot(), packScalarData(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), MEtoEDMConverter::putData(), Reset(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2Ref2DChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentSigma::runTest(), ContentsWithinExpected::runTest(), MeanWithinExpected::runTest(), CompareToMedian::runTest(), CompareLastFilledBin::runTest(), CheckVariance::runTest(), DQMStore::saveMonitorElementToPB(), DQMStore::saveMonitorElementToROOT(), DQMStore::scaleElements(), setBinEntries(), ShiftFillLast(), softReset(), and valueString().

uint32_t flags
Definition: DQMNet.h:99
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_TYPE_MASK
Definition: DQMNet.h:26
const uint32_t MonitorElement::lumi ( ) const
inline

Definition at line 388 of file MonitorElement.h.

References DQMNet::CoreObject::lumi.

388 {return data_.lumi;}
uint32_t lumi
Definition: DQMNet.h:103
DQMNet::CoreObject data_
bool MonitorElement::markedToDelete ( ) const
inlineprivate

true if ME is marked for deletion

Definition at line 292 of file MonitorElement.h.

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

uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_MARKTODELETE
Definition: DQMNet.h:65
DQMNet::CoreObject data_
void MonitorElement::markToDelete ( )
inlineprivate

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

Definition at line 297 of file MonitorElement.h.

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

uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_MARKTODELETE
Definition: DQMNet.h:65
DQMNet::CoreObject data_
const uint32_t MonitorElement::moduleId ( ) const
inline

Definition at line 389 of file MonitorElement.h.

References DQMNet::CoreObject::moduleId.

Referenced by MonitorElement().

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

Compare monitor elements, for ordering in sets.

Definition at line 96 of file MonitorElement.h.

References data_, and DQMNet::setOrder().

97  {
98  return DQMNet::setOrder(data_, x.data_);
99  }
DQMNet::CoreObject data_
static bool setOrder(const CoreObject &a, const CoreObject &b)
Definition: DQMNet.h:180
MonitorElement& MonitorElement::operator= ( const MonitorElement )
delete
MonitorElement& MonitorElement::operator= ( MonitorElement &&  )
delete
void MonitorElement::packQualityData ( std::string &  into) const

serialise quality report information into a string.

Definition at line 516 of file MonitorElement.cc.

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

517 {
519 }
QReports qreports
Definition: DQMNet.h:108
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 491 of file MonitorElement.cc.

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

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

492 {
493  char buf[64];
494  if (kind() == DQM_KIND_INT)
495  {
496  snprintf(buf, sizeof(buf), "%s%" PRId64, prefix, scalar_.num);
497  into = buf;
498  }
499  else if (kind() == DQM_KIND_REAL)
500  {
501  snprintf(buf, sizeof(buf), "%s%.*g", prefix, DBL_DIG+2, scalar_.real);
502  into = buf;
503  }
504  else if (kind() == DQM_KIND_STRING)
505  {
506  into.reserve(strlen(prefix) + scalar_.str.size());
507  into += prefix;
508  into += scalar_.str;
509  }
510  else
511  incompatible(__PRETTY_FUNCTION__);
512 }
void incompatible(const char *func) const
Kind kind() const
Get the type of the monitor element.
std::string MonitorElement::qualityTagString ( const DQMNet::QValue qv) const

Definition at line 583 of file MonitorElement.cc.

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

Referenced by DQMStore::saveMonitorElementToROOT().

584 {
585  char buf[64];
587  size_t titlelen = data_.objname.size() + qv.qtname.size() + 1;
588  size_t buflen = sprintf(buf, "qr=st:%d:%.*g:", qv.code, DBL_DIG+2, qv.qtresult);
589 
590  result.reserve(7 + 2*titlelen + buflen + qv.algorithm.size() + qv.message.size());
591  result += '<'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
592  result += buf; result += qv.algorithm; result += ':'; result += qv.message;
593  result += '<'; result += '/'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
594  return result;
595 }
std::string algorithm
Definition: DQMNet.h:94
std::string objname
Definition: DQMNet.h:107
std::string qtname
Definition: DQMNet.h:93
DQMNet::CoreObject data_
std::string message
Definition: DQMNet.h:92
float qtresult
Definition: DQMNet.h:91
void MonitorElement::Reset ( )

reset ME (ie. contents, errors, etc)

Definition at line 475 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(), EcalBarrelSimHitsValidation::analyze(), EcalEndcapSimHitsValidation::analyze(), AlcaBeamMonitor::beginLuminosityBlock(), SiStripMonitorDigi::beginLuminosityBlock(), PixelLumiDQM::beginLuminosityBlock(), TrackingMonitor::beginLuminosityBlock(), HLTScalers::beginLuminosityBlock(), SiStripDaqInfo::beginRun(), L1TStage2RatioClient::book(), L1TStage2CaloLayer2DEClient::book(), L1TStage2CaloLayer2DEClientSummary::book(), L1TOccupancyClient::book(), DQMStore::book_(), DQMLumiMonitor::bookHistograms(), SiStripMonitorRawData::bookHistograms(), L1TDTTFClient::buildSummaries(), L1TGT::countPfsIndicesPerLs(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createEfficiencyPlots(), PFClient::createResolutionPlots(), DTOfflineSummaryClients::dqmEndJob(), MuonAlignmentSummary::dqmEndJob(), SiPixelEDAClient::dqmEndLuminosityBlock(), DTSummaryClients::dqmEndLuminosityBlock(), BeamSpotProblemMonitor::endJob(), TotemTimingDQMSource::endLuminosityBlock(), BeamSpotProblemMonitor::endRun(), QcdLowPtDQM::filldNdeta(), SiStripDaqInfo::fillDummyStatus(), SiStripDcsInfo::fillDummyStatus(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelActionExecutor::fillFEDErrorSummary(), RPCChamberQuality::fillMonitorElements(), BeamSpotProblemMonitor::FillPlots(), FastTimerServiceClient::fillPlotsVsLumi(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripDcsInfo::fillStatus(), SiPixelActionExecutor::fillSummary(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), SiPixelPhase1Summary::fillTrendPlots(), SiStripDaqInfo::findExcludedModule(), BeamMonitor::FitAndFill(), DQMStore::forceReset(), SiPixelActionExecutor::getFEDSummaryME(), SiPixelActionExecutor::getGrandSummaryME(), SiStripBaseCondObjDQM::getModMEs(), SiStripMonitorQuality::getQualityME(), SiPixelActionExecutor::getSummaryME(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), DQMStore::postGlobalBeginLumi(), hcaldqm::ContainerSingle1D::reset(), hcaldqm::ContainerSingle2D::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(), and ecaldqm::MESetTrend::shift_().

476 {
477  update();
478  if (kind() == DQM_KIND_INT)
479  scalar_.num = 0;
480  else if (kind() == DQM_KIND_REAL)
481  scalar_.real = 0;
482  else if (kind() == DQM_KIND_STRING)
483  scalar_.str.clear();
484  else
485  return accessRootObject(__PRETTY_FUNCTION__, 1)
486  ->Reset();
487 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
Mark the object updated.
Kind kind() const
Get the type of the monitor element.
bool MonitorElement::resetMe ( ) const
inlineprivate

true if ME should be reset at end of monitoring cycle

Definition at line 306 of file MonitorElement.h.

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

307  { return data_.flags & DQMNet::DQM_PROP_RESET; }
uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_RESET
Definition: DQMNet.h:57
DQMNet::CoreObject data_
void MonitorElement::resetUpdate ( )
inlineprivate

reset "was updated" flag

Definition at line 302 of file MonitorElement.h.

References DQMNet::CoreObject::flags.

303  { data_.flags &= ~DQMNet::DQM_PROP_NEW; }
Definition: DQMNet.h:23
uint32_t flags
Definition: DQMNet.h:99
DQMNet::CoreObject data_
const uint32_t MonitorElement::run ( ) const
inline

Definition at line 387 of file MonitorElement.h.

References DQMNet::CoreObject::run.

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

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

run all quality tests

Definition at line 669 of file MonitorElement.cc.

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

670 {
671  assert(qreports_.size() == data_.qreports.size());
672 
673  // Rerun quality tests where the ME or the quality algorithm was modified.
674  bool dirty = wasUpdated();
675  for (size_t i = 0, e = data_.qreports.size(); i < e; ++i)
676  {
678  QReport &qr = qreports_[i];
679  QCriterion *qc = qr.qcriterion_;
680  qr.qvalue_ = &qv;
681 
682  // if (qc && (dirty || qc->wasModified())) // removed for new QTest (abm-090503)
683  if (qc && dirty)
684  {
685  assert(qc->getName() == qv.qtname);
686  std::string oldMessage = qv.message;
687  int oldStatus = qv.code;
688 
689  qc->runTest(this, qr, qv);
690 
691  if (oldStatus != qv.code || oldMessage != qv.message)
692  update();
693  }
694  }
695 
696  // Update QReport statistics.
698 }
QCriterion * qcriterion_
Definition: QReport.h:51
QReports qreports
Definition: DQMNet.h:108
std::vector< QReport > qreports_
bool wasUpdated() const
true if ME was updated in last monitoring cycle
void update()
Mark the object updated.
void updateQReportStats()
Refresh QReport stats, usually after MEs were read in from a file.
std::string qtname
Definition: DQMNet.h:93
DQMNet::CoreObject data_
virtual float runTest(const MonitorElement *me)
Definition: QTest.cc:28
DQMNet::QValue * qvalue_
Definition: QReport.h:50
std::string message
Definition: DQMNet.h:92
std::string getName() const
get name of quality test
Definition: QTest.h:60
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 311 of file MonitorElement.h.

References alignmentValidation::c1, beamerCreator::create(), DQMNet::DQM_PROP_ACCUMULATE, DQMNet::CoreObject::flags, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by DQMStore::setAccumulate().

uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_ACCUMULATE
Definition: DQMNet.h:56
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 982 of file MonitorElement.cc.

References getAxis(), and update().

Referenced by ConcurrentMonitorElement::setAxisTimeDisplay().

983 {
984  update();
985  getAxis(__PRETTY_FUNCTION__, axis)
986  ->SetTimeDisplay(value);
987 }
void update()
Mark the object updated.
Definition: value.py:1
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 991 of file MonitorElement.cc.

References getAxis(), and update().

Referenced by ConcurrentMonitorElement::setAxisTimeFormat().

992 {
993  update();
994  getAxis(__PRETTY_FUNCTION__, axis)
995  ->SetTimeFormat(format);
996 }
void update()
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 1000 of file MonitorElement.cc.

References getAxis(), and update().

1001 {
1002  update();
1003  getAxis(__PRETTY_FUNCTION__, axis)
1004  ->SetTimeOffset(toffset, option);
1005 }
void update()
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 973 of file MonitorElement.cc.

References getAxis(), and update().

Referenced by CSCOfflineMonitor::applyCSClabels(), DQMFEDIntegrityClient::beginJob(), BeamConditionsMonitor::beginJob(), BeamMonitor::beginJob(), BeamSpotProblemMonitor::beginJob(), RPCBxTest::beginRun(), SiStripLAProfileBooker::beginRun(), ecaldqm::MESetNonObject::book(), ESSummaryClient::book(), ESIntegrityClient::book(), L1TStage2RatioClient::book(), ecaldqm::MESetEcal::book(), SiPixelTrackResidualModule::book(), L1TDTTFClient::book(), SiPixelHitEfficiencyModule::book(), L1TTestsSummary::book(), SiPixelRecHitModule::book(), SiPixelClusterModule::book(), SiPixelDigiModule::book(), SiStripMonitorTrack::book(), L1TEMTFEventInfoClient::book(), L1TEventInfoClient::book(), DQMHelper::book1dHisto(), DQMHelper::book2dHisto(), SiStripBadComponentInfo::bookBadComponentHistos(), DTLocalTriggerTask::bookBarrelHistos(), DTLocalTriggerBaseTest::bookCmsHistos(), DTTriggerLutTest::bookCmsHistos1d(), SiStripBaseCondObjDQM::bookCumulMEs(), SiPixelActionExecutor::bookEfficiency(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackingQualityChecker::bookGlobalStatus(), DQMHOAlCaRecoStream::bookHistograms(), L1TScalersSCAL::bookHistograms(), ESIntegrityTask::bookHistograms(), ESOccupancyTask::bookHistograms(), L1TdeStage2EMTF::bookHistograms(), L1TStage2EMTF::bookHistograms(), L1TStage2uGMTMuon::bookHistograms(), OuterTrackerMonitorTTCluster::bookHistograms(), OuterTrackerMonitorTTStub::bookHistograms(), L1TStage2MuonComp::bookHistograms(), L1TStage2RegionalMuonCandComp::bookHistograms(), OuterTrackerMonitorTTTrack::bookHistograms(), ZDCTask::bookHistograms(), ESTrendTask::bookHistograms(), LEDTask::bookHistograms(), L1TStage2uGMT::bookHistograms(), ESRawDataTask::bookHistograms(), ESTimingTask::bookHistograms(), L1TMP7ZeroSupp::bookHistograms(), PrimaryVertexMonitor::bookHistograms(), OuterTrackerMonitorTrackingParticles::bookHistograms(), DQMHcalPhiSymAlCaReco::bookHistograms(), dqm::RamdiskMonitor::bookHistograms(), AlcaBeamMonitor::bookHistograms(), DigiTask::bookHistograms(), TkAlCaRecoMonitor::bookHistograms(), DQMHcalDiJetsAlCaReco::bookHistograms(), EcalPileUpDepMonitor::bookHistograms(), MuonTiming::bookHistograms(), MuonSeedsAnalyzer::bookHistograms(), MuonEnergyDepositAnalyzer::bookHistograms(), Tau3MuMonitor::bookHistograms(), MuonRecoAnalyzer::bookHistograms(), SegmentTrackAnalyzer::bookHistograms(), BxTiming::bookHistograms(), DQMScalInfo::bookHistograms(), L1TDTTF::bookHistograms(), HLTBTagPerformanceAnalyzer::bookHistograms(), TrackSplittingMonitor::bookHistograms(), L1TStage2uGT::bookHistograms(), DQMHcalIsoTrackAlCaReco::bookHistograms(), SiPixelHitEfficiencySource::bookHistograms(), SiStripMonitorQuality::bookHistograms(), TrackEfficiencyMonitor::bookHistograms(), HLTSeedL1LogicScalers::bookHistograms(), DQMSourcePi0::bookHistograms(), SiStripMonitorRawData::bookHistograms(), L1TDTTPG::bookHistograms(), ZDCDigiStudy::bookHistograms(), SiPixelTrackResidualSource::bookHistograms(), MuonRecoOneHLT::bookHistograms(), L1TRPCTF::bookHistograms(), L1TGMT::bookHistograms(), ZdcSimHitStudy::bookHistograms(), L1TdeStage2CaloLayer2::bookHistograms(), Vx3DHLTAnalyzer::bookHistograms(), L1TGT::bookHistograms(), GlobalDigisHistogrammer::bookHistograms(), SiStripFEDCheckPlugin::bookHistograms(), GlobalRecHitsHistogrammer::bookHistograms(), LogMessageMonitor::bookHistograms(), SiPixelClusterSource::bookHistograms(), L1TdeCSCTF::bookHistograms(), MuonIsolationDQM::bookHistograms(), TrackingMonitor::bookHistograms(), L1TCSCTF::bookHistograms(), MuIsoValidation::bookHistograms(), PiZeroAnalyzer::bookHistograms(), GlobalHitsHistogrammer::bookHistograms(), CSCOfflineMonitor::bookHistograms(), L1TCompare::bookHistograms(), GlobalHitsAnalyzer::bookHistograms(), JetAnalyzer::bookHistograms(), HLTObjectMonitorProtonLead::bookHistograms(), HLTObjectMonitor::bookHistograms(), HLTObjectsMonitor::bookHistograms(), L1TBPTX::bookHistograms(), GlobalDigisAnalyzer::bookHistograms(), GlobalRecHitsAnalyzer::bookHistograms(), DQMProvInfo::bookHistogramsEventInfo(), DQMProvInfo::bookHistogramsLhcInfo(), DTTriggerEfficiencyTest::bookHistos(), DTResolutionAnalysisTest::bookHistos(), DTNoiseAnalysisTest::bookHistos(), DTSegmentAnalysisTest::bookHistos(), DTChamberEfficiencyClient::bookHistos(), DTChamberEfficiencyTest::bookHistos(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerBaseTask::bookHistos(), dqm::TrackAnalyzer::bookHistosForBeamSpot(), dqm::TrackAnalyzer::bookHistosForHitProperties(), dqm::TrackAnalyzer::bookHistosForLScertification(), dqm::TrackAnalyzer::bookHistosForState(), dqm::TrackAnalyzer::bookHistosForTrackerSpecific(), SiPixelHLTSource::bookMEs(), TrackEfficiencyClient::bookMEs(), SiPixelDigiSource::bookMEs(), SiPixelRawDataErrorSource::bookMEs(), JetAnalyzer::bookMESetSelection(), SiStripMonitorDigi::bookMETrend(), SiStripMonitorCluster::bookMETrend(), METAnalyzer::bookMonitorElement(), SiPixelInformationExtractor::bookNoisyPixels(), DTPreCalibrationTask::bookOccupancyPlot(), SiPixelActionExecutor::bookOccupancyPlots(), SiStripBaseCondObjDQM::bookProfileMEs(), RPCMonitorDigi::bookRegionME(), RPCMonitorDigi::bookSectorRingME(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripMonitorTrack::bookSubDetMEs(), SiPixelPhase1Summary::bookSummaries(), SiStripBaseCondObjDQM::bookSummaryCumulMEs(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), DTPreCalibrationTask::bookTimeBoxes(), TrackingCertificationInfo::bookTrackingCertificationMEs(), DTTriggerEfficiencyTest::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), DTLocalTriggerTask::bookWheelHistos(), SiStripRecHitsValid::createLayerMEs(), SiStripTrackingRecHitsValid::createLayerMEs(), MonitorTrackResidualsBase< pixel_or_strip >::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripTrackingRecHitsValid::createSimpleHitsMEs(), SiStripRecHitsValid::createStereoAndMatchedMEs(), SiStripTrackingRecHitsValid::createStereoAndMatchedMEs(), SiStripMonitorDigi::createSubDetMEs(), SiStripMonitorCluster::createSubDetMEs(), SiStripRecHitsValid::createSubDetMEs(), SiStripRecHitsValid::createTotalMEs(), hcaldqm::ContainerSingle1D::customize(), hcaldqm::ContainerSingle2D::customize(), hcaldqm::Container2D::customize(), hcaldqm::Container1D::customize(), RPCDcsInfoClient::dqmEndJob(), L1TGMTClient::dqmEndJob(), DQMExample_Step2::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), BDHadronTrackMonitoringHarvester::dqmEndJob(), L1EmulatorErrorFlagClient::dqmEndJob(), DTOfflineSummaryClients::dqmEndJob(), MuonTestSummary::dqmEndJob(), DTCertificationSummary::dqmEndLuminosityBlock(), DTDAQInfo::dqmEndLuminosityBlock(), DTDCSByLumiSummary::dqmEndLuminosityBlock(), DTBlockedROChannelsTest::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTSummaryClients::dqmEndLuminosityBlock(), DTOccupancyTest::dqmEndLuminosityBlock(), DTOccupancyTestML::dqmEndLuminosityBlock(), DQMDcsInfoClient::endRun(), SiStripQualityDQM::fillGrandSummaryMEs(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), VertexMonitor::initHisto(), TrackBuildingAnalyzer::initHisto(), rpcdqm::utils::labelXAxisSegment(), HLTTauPostProcessor::plotFilterEfficiencies(), DQMCorrelationClient::setAxisTitle(), CSCMonitorObject::setAxisTitle(), ConcurrentMonitorElement::setAxisTitle(), HTMonitor::setHTitle(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTPG::setMapThLabel(), TriggerDQMBase::setMETitle(), RazorMonitor::setMETitle(), JetMonitor::setMETitle(), METMonitor::setMETitle(), BPHMonitor::setMETitle(), NoBPTXMonitor::setNoBPTXTitle(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), TrackIPHistograms< T >::settitle(), FlavourHistograms< T >::settitle(), FlavourHistograms2D< T, G >::settitle(), DiDispStaMuonMonitor::setTitle(), PhotonMonitor::setTitle(), MuonMonitor::setTitle(), HLXMonitor::SetupHists(), L1TDTTF::setWheelLabel(), and L1TDTTFClient::setWheelLabel().

974 {
975  update();
976  getAxis(__PRETTY_FUNCTION__, axis)
977  ->SetTitle(title.c_str());
978 }
void update()
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 866 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by HcalOfflineHarvesting::_dqmEndJob(), HcalOnlineHarvesting::_dqmEndLuminosityBlock(), L1TScalersSCAL::analyze(), HCALRecHitAnalyzer::analyze(), BxTiming::analyze(), SiPixelDigiSource::analyze(), SiPixelRawDataErrorSource::analyze(), HLTScalers::analyze(), dqm::RamdiskMonitor::analyzeFile(), BeamMonitor::beginJob(), L1TdeStage2CaloLayer1::beginLuminosityBlock(), L1TStage2CaloLayer1::beginLuminosityBlock(), DQMProvInfo::blankPreviousLumiSections(), SiPixelDataQuality::bookGlobalQualityFlag(), ME0DigisValidation::bookHistograms(), HCALRecHitAnalyzer::bookHistograms(), ECALRecHitAnalyzer::bookHistograms(), DQMProvInfo::bookHistogramsLhcInfo(), SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), L1TDTTFClient::buildHighQualityPlot(), L1TDTTFClient::buildPhiEtaPlotO(), L1TDTTFClient::buildPhiEtaPlotOFC(), L1TDTTFClient::buildSummaries(), EcalMixingModuleValidation::bunchSumTest(), RPCOccupancyTest::clientOperation(), RPCDeadChannelTest::clientOperation(), RPCEventSummary::clientOperation(), SiPixelHitEfficiencyModule::computeEfficiencies(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), SiStripBadComponentInfo::createSummary(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HltSusyExoPostProcessor::dqmEndJob(), RPCDcsInfoClient::dqmEndJob(), RPCEfficiencyPerRingLayer::dqmEndJob(), DQMExample_Step2::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), BDHadronTrackMonitoringHarvester::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), JetTesterPostProcessor::dqmEndJob(), METTesterPostProcessorHarvesting::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), MuonAlignmentSummary::dqmEndJob(), RPCEventSummary::dqmEndLuminosityBlock(), L1EmulatorErrorFlagClient::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), HcalSimHitsValidation::endJob(), MuonAlignment::endJob(), ESPedestalClient::endJobAnalyze(), ESIntegrityClient::endLumiAnalyze(), hcaldqm::DigiRunSummary::endLuminosityBlock(), RPCDcsInfo::endLuminosityBlock(), DQMDcsInfo::endLuminosityBlock(), CTPPSCommonDQMSource::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), SiPixelDigiSource::endLuminosityBlock(), PixelLumiDQM::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), DQMProvInfo::endLuminosityBlockEventInfo(), DQMProvInfo::endLuminosityBlockLhcInfo(), DQMDcsInfoClient::endRun(), DQMHcalPhiSymAlCaReco::endRun(), CorrPCCProducer::endRunProduce(), ecaldqm::MESetDet2D::fill_(), SiPixelActionExecutor::fillDeviations(), QcdLowPtDQM::filldNdeta(), SiPixelActionExecutor::fillEfficiency(), SiPixelActionExecutor::fillEfficiencySummary(), SiPixelActionExecutor::fillFEDErrorSummary(), HCALRecHitAnalyzer::FillGeometry(), ECALRecHitAnalyzer::FillGeometry(), RPCMultiplicityTest::fillGlobalME(), RPCNoisyStripTest::fillGlobalME(), RPCOccupancyTest::fillGlobalME(), SiPixelDataQuality::fillGlobalQualityPlot(), DQMFEDIntegrityClient::fillHistograms(), HLXMonitor::FillHistograms(), SiStripSummaryCreator::fillHistos(), METTesterPostProcessor::FillMETRes(), SiPixelActionExecutor::fillOccupancy(), ESSummaryClient::fillReportSummary(), HLXMonitor::FillReportSummary(), SiPixelPhase1Summary::fillSummaries(), DTLocalTriggerLutTest::fillWhPlot(), DTTriggerLutTest::fillWhPlot(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), BeamMonitor::FitAndFill(), DQMGenericClient::generic_eff(), SiPixelTrackResidualSource::getepixrococcupancyofftrk(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), FitSlicesYTool::getFittedMean(), FitSlicesYTool::getFittedMeanWithError(), FitSlicesYTool::getFittedSigma(), FitSlicesYTool::getFittedSigmaWithError(), SiPixelClusterSource::getrococcupancye(), HcalDigisClient::HcalDigisEndjob(), DQMGenericClient::limitedFit(), TotemRPDQMHarvester::MakeHitNumberRatios(), TotemRPDQMHarvester::MakePlaneEfficiencyHistograms(), METAnalyzer::makeRatePlot(), L1TGCTClient::makeXProjection(), L1TGCTClient::makeYProjection(), RPCDeadChannelTest::myBooker(), RPCDataCertification::myBooker(), RPCDCSSummary::myBooker(), SiPixelActionExecutor::normaliseAvDigiOcc(), SiPixelActionExecutor::normaliseAvDigiOccVsLumi(), DTTimeEvolutionHisto::normalizeTo(), L1TStage2CaloLayer2DEClientSummary::processHistograms(), L1TdeRCT::readFEDVector(), L1TEMTFEventInfoClient::readQtResults(), L1TEventInfoClient::readQtResults(), ecaldqm::MESetDet2D::reset(), ecaldqm::MESetDet1D::reset(), SiStripMonitorTrack::return2DME(), EgHLTOfflineSummaryClient::runClient_(), DTLocalTriggerEfficiencyTest::runClientDiagnostic(), HcalDigisClient::scaleMETH2D(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetDet1D::setBinContent(), hcaldqm::ContainerSingle1D::setBinContent(), CSCMonitorObject::SetBinContent(), hcaldqm::ContainerSingle2D::setBinContent(), ecaldqm::MESet::Bin::setBinContent(), L1TDTTFClient::setGMTsummary(), DTTimeEvolutionHisto::setTimeSlotValue(), HLXMonitor::SetupEventInfo(), ecaldqm::MESetTrend::shift_(), ShiftFillLast(), HcalSimHitsClient::SimHitsEndjob(), HGCalSimHitsClient::simHitsEndjob(), and ECALRecHitAnalyzer::WriteECALRecHits().

867 {
868  update();
869  accessRootObject(__PRETTY_FUNCTION__, 1)
870  ->SetBinContent(binx, content);
871 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
Mark the object updated.
void MonitorElement::setBinContent ( int  binx,
int  biny,
double  content 
)

set content of bin (2-D)

Definition at line 875 of file MonitorElement.cc.

References accessRootObject(), and update().

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

set content of bin (3-D)

Definition at line 883 of file MonitorElement.cc.

References accessRootObject(), and update().

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

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

Definition at line 918 of file MonitorElement.cc.

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

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

919 {
920  update();
921  if (kind() == DQM_KIND_TPROFILE)
922  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
923  ->SetBinEntries(bin, nentries);
924  else if (kind() == DQM_KIND_TPROFILE2D)
925  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
926  ->SetBinEntries(bin, nentries);
927  else
928  incompatible(__PRETTY_FUNCTION__);
929 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
Mark the object updated.
bin
set the eta bin as selection string.
Kind kind() 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 891 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), EcalMixingModuleValidation::bunchSumTest(), SiPixelHitEfficiencyModule::computeEfficiencies(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), PFClient_JetRes::createResolutionPlots(), ConversionPostprocessing::dividePlots(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), HltSusyExoPostProcessor::dqmEndJob(), RPCEfficiencyPerRingLayer::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), PixelLumiDQM::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), CorrPCCProducer::endRunProduce(), QcdLowPtDQM::filldNdeta(), HLXMonitor::FillHistograms(), METTesterPostProcessor::FillMETRes(), DQMGenericClient::generic_eff(), HcalDigisClient::HcalDigisEndjob(), DQMGenericClient::limitedFit(), TotemRPDQMHarvester::MakePlaneEfficiencyHistograms(), ecaldqm::MESetDet2D::reset(), ecaldqm::MESetDet1D::reset(), HcalDigisClient::scaleMETH2D(), ecaldqm::MESetProjection::setBinError(), ecaldqm::MESetDet1D::setBinError(), ecaldqm::MESet::Bin::setBinError(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), and ShiftFillLast().

892 {
893  update();
894  accessRootObject(__PRETTY_FUNCTION__, 1)
895  ->SetBinError(binx, error);
896 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
Mark the object updated.
void MonitorElement::setBinError ( int  binx,
int  biny,
double  error 
)

set uncertainty on content of bin (2-D)

Definition at line 900 of file MonitorElement.cc.

References accessRootObject(), and update().

901 {
902  update();
903  accessRootObject(__PRETTY_FUNCTION__, 2)
904  ->SetBinError(binx, biny, error);
905 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
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 909 of file MonitorElement.cc.

References accessRootObject(), and update().

910 {
911  update();
912  accessRootObject(__PRETTY_FUNCTION__, 3)
913  ->SetBinError(binx, biny, binz, error);
914 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
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 942 of file MonitorElement.cc.

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

Referenced by HcalOfflineHarvesting::_dqmEndJob(), HcalOnlineHarvesting::_dqmEndLuminosityBlock(), BeamMonitor::analyze(), HigPhotonJetHLTOfflineSource::analyze(), CSCOfflineMonitor::applyCSClabels(), DQMFEDIntegrityClient::beginJob(), BeamMonitor::beginJob(), ecaldqm::MESetNonObject::book(), ecaldqm::MESetDet2D::book(), ecaldqm::MESetDet1D::book(), ecaldqm::MESetEcal::book(), L1TStage2CaloLayer2DEClientSummary::book(), L1TDTTFClient::book(), SiStripMonitorTrack::book(), L1TEMTFEventInfoClient::book(), L1TEventInfoClient::book(), SiStripBadComponentInfo::bookBadComponentHistos(), SiPixelActionExecutor::bookEfficiency(), HltSusyExoPostProcessor::bookEffMEProfileFromTH1(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackingQualityChecker::bookGlobalStatus(), GEMCheckGeometry::bookHistograms(), L1TdeStage2EMTF::bookHistograms(), TrackingTruthValid::bookHistograms(), L1TStage2EMTF::bookHistograms(), HLTTauDQMPathSummaryPlotter::bookHistograms(), L1TStage2MuonComp::bookHistograms(), L1TStage2RegionalMuonCandComp::bookHistograms(), L1TStage2uGMT::bookHistograms(), MonitorLTC::bookHistograms(), HLTTauDQMPathPlotter::bookHistograms(), DQMMessageLogger::bookHistograms(), DQMHcalPhiSymAlCaReco::bookHistograms(), QcdPhotonsDQM::bookHistograms(), L1TdeGCT::bookHistograms(), L1TDEMON::bookHistograms(), BasicHepMCValidation::bookHistograms(), HTMHTAnalyzer::bookHistograms(), MuonTiming::bookHistograms(), HiggsValidation::bookHistograms(), TopDiLeptonDQM::bookHistograms(), L1TStage2uGTTiming::bookHistograms(), MuonRecoAnalyzer::bookHistograms(), SegmentTrackAnalyzer::bookHistograms(), LaserAlignmentT0ProducerDQM::bookHistograms(), L1TDTTF::bookHistograms(), L1TDTTPG::bookHistograms(), L1TFED::bookHistograms(), SiPixelTrackResidualSource::bookHistograms(), MuonRecoOneHLT::bookHistograms(), L1TRPCTF::bookHistograms(), TauValidation::bookHistograms(), QcdUeDQM::bookHistograms(), L1TGMT::bookHistograms(), L1TRate::bookHistograms(), L1TdeStage2CaloLayer2::bookHistograms(), L1TRate_Offline::bookHistograms(), L1TGT::bookHistograms(), L1TStage2BMTF::bookHistograms(), SiPixelClusterSource::bookHistograms(), LogMessageMonitor::bookHistograms(), L1TStage2uGTCaloLayer2Comp::bookHistograms(), EwkElecTauHistManager::bookHistograms(), L1TCSCTF::bookHistograms(), JetMETHLTOfflineSource::bookHistograms(), EmDQM::bookHistograms(), CSCOfflineMonitor::bookHistograms(), EmDQMReco::bookHistograms(), JetAnalyzer::bookHistograms(), L1TSync::bookHistograms(), RPCEfficiency::bookHistograms(), HLTObjectsMonitor::bookHistograms(), L1TSync_Offline::bookHistograms(), L1GtHwValidation::bookHistograms(), L1TBPTX::bookHistograms(), QcdLowPtDQM::bookHistograms(), BeamHaloAnalyzer::bookHistograms(), EwkMuTauHistManager::bookHistograms(), PackedCandidateTrackValidator::bookHistograms(), DQMProvInfo::bookHistogramsEventInfo(), DQMProvInfo::bookHistogramsLhcInfo(), DTNoiseAnalysisTest::bookHistos(), DTSegmentAnalysisTest::bookHistos(), DTResolutionTest::bookHistos(), DTOccupancyTest::bookHistos(), DTOccupancyTestML::bookHistos(), DTEfficiencyTest::bookHistos(), DTDataIntegrityTask::bookHistos(), dqm::TrackAnalyzer::bookHistosForHitProperties(), DTDataIntegrityTask::bookHistosROS(), DTDataIntegrityTask::bookHistosuROS(), METAnalyzer::bookMonitorElement(), DTLocalTriggerBaseTest::bookSectorHistos(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiPixelPhase1Summary::bookSummaries(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), TrackingCertificationInfo::bookTrackingCertificationMEs(), DTTriggerEfficiencyTest::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), hcaldqm::ContainerSingle1D::customize(), hcaldqm::ContainerSingle2D::customize(), hcaldqm::Container2D::customize(), hcaldqm::Container1D::customize(), HltSusyExoPostProcessor::dqmEndJob(), RPCDcsInfoClient::dqmEndJob(), RPCEfficiencyPerRingLayer::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), BDHadronTrackMonitoringHarvester::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), L1EmulatorErrorFlagClient::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), MuonAlignmentSummary::dqmEndJob(), RPCEventSummary::dqmEndLuminosityBlock(), MuonAlignment::endJob(), L1ScalersClient::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), DQMDcsInfoClient::endRun(), SiPixelActionExecutor::fillFEDErrorSummary(), HLTScalersClient::HLTScalersClient(), TrackBuildingAnalyzer::initHisto(), L1ScalersClient::L1ScalersClient(), RPCFEDIntegrity::labelBins(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), rpcdqm::utils::labelYAxisRing(), rpcdqm::utils::labelYAxisRoll(), RPCDataCertification::myBooker(), RPCDaqInfo::myBooker(), RPCDCSSummary::myBooker(), RPCChamberQuality::myBooker(), HLTTauPostProcessor::plotFilterEfficiencies(), ConcurrentMonitorElement::setBinLabel(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTPG::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), DTTimeEvolutionHisto::setTimeSlotValue(), L1TDTTF::setWheelLabel(), L1TDTTFClient::setWheelLabel(), ShiftFillLast(), TopSingleLeptonHLTValidation::triggerBinLabels(), B2GHadronicHLTValidation::triggerBinLabels(), B2GDoubleLeptonHLTValidation::triggerBinLabels(), B2GSingleLeptonHLTValidation::triggerBinLabels(), TopDiLeptonHLTValidation::triggerBinLabels(), and DTTimeEvolutionHisto::updateTimeSlot().

943 {
944  update();
945  if ( getAxis(__PRETTY_FUNCTION__, axis)->GetNbins() >= bin )
946  {
947  getAxis(__PRETTY_FUNCTION__, axis)
948  ->SetBinLabel(bin, label.c_str());
949  }
950  else
951  {
952 #if WITHOUT_CMS_FRAMEWORK
953  std::cout
954 #else
955  edm::LogWarning("MonitorElement")
956 #endif
957  << "*** MonitorElement: WARNING:"
958  <<"setBinLabel: attempting to set label of non-existent bin number for ME: "<< getFullname() << " \n";
959  }
960 }
void update()
Mark the object updated.
bin
set the eta bin as selection string.
TAxis * getAxis(const char *func, int axis) const
const std::string getFullname() const
get full name of ME including Pathname
void MonitorElement::setEfficiencyFlag ( )
inline

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

Definition at line 155 of file MonitorElement.h.

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

Referenced by HcalOnlineHarvesting::_dqmEndLuminosityBlock(), L1TStage2RatioClient::book(), L1TStage2CaloLayer2DEClient::book(), L1ValidatorHists::Book(), dqmoffline::l1t::L1TEfficiencyPlotHandler::book(), ElectronDqmHarvesterBase::bookH1andDivide(), ElectronDqmHarvesterBase::bookH2andDivide(), HLTBTagHarvestingAnalyzer::calculateEfficiency1D(), EffPurFromHistos::compute(), PFClient_JetRes::createEfficiencyPlots(), PFClient::createEfficiencyPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), EmDQMPostProcessor::dividehistos(), JetMETDQMPostProcessor::dividehistos(), PhotonPostprocessing::dividePlots(), PhotonOfflineClient::dividePlots(), EmDQMPostProcessor::dqmEndJob(), EfficiencyPlotter::dqmEndJob(), DQMStore::extract(), DQMGenericClient::generic_eff(), HLTBTagHarvestingAnalyzer::mistagrate(), HLTBTagHarvestingAnalyzer::modulesrate(), FlavourHistograms< T >::setEfficiencyFlag(), and FlavourHistograms2D< T, G >::setEfficiencyFlag().

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

set # of entries

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

934 {
935  update();
936  accessRootObject(__PRETTY_FUNCTION__, 1)
937  ->SetEntries(nentries);
938 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update()
Mark the object updated.
void MonitorElement::setLumi ( uint32_t  ls)
inlineprivate
void MonitorElement::setLumiFlag ( )
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 142 of file MonitorElement.h.

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

Referenced by LaserDQM::initMonitors(), and HLXMonitor::SetupHists().

uint32_t flags
Definition: DQMNet.h:99
static const uint32_t DQM_PROP_RESET
Definition: DQMNet.h:57
DQMNet::CoreObject data_
void MonitorElement::setTitle ( const std::string &  title)
void MonitorElement::ShiftFillLast ( double  y,
double  ye = 0.,
int32_t  xscale = 1 
)

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

Definition at line 361 of file MonitorElement.cc.

References a, b, edmScanValgrind::buffer, DQM_KIND_TH1D, DQM_KIND_TH1F, DQM_KIND_TH1S, getBinContent(), getBinError(), getEntries(), getNbinsX(), mps_fire::i, incompatible(), createfilelist::int, kind(), SiStripPI::mean, N, pileupCalc::nbins, alignCSCRings::s, setBinContent(), setBinError(), setBinLabel(), setEntries(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, and update().

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

362 {
363  update();
364  if (kind() == DQM_KIND_TH1F
365  || kind() == DQM_KIND_TH1S
366  || kind() == DQM_KIND_TH1D)
367  {
368  int nbins = getNbinsX();
369  auto entries = (int)getEntries();
370  // first fill bins from left to right
371  int index = entries + 1 ;
372  int xlow = 2 ; int xup = nbins ;
373  // if more entries than bins then start shifting
374  if ( entries >= nbins )
375  {
376  index = nbins;
377  xlow = entries - nbins + 3 ; xup = entries+1 ;
378  // average first bin
379  double y1 = getBinContent(1);
380  double y2 = getBinContent(2);
381  double y1err = getBinError(1);
382  double y2err = getBinError(2);
383  double N = entries - nbins + 1.;
384  if ( ye == 0. || y1err == 0. || y2err == 0.)
385  {
386  // for errors zero calculate unweighted mean and its error
387  double sum = N*y1 + y2;
388  y1 = sum/(N+1.) ;
389  // FIXME check if correct
390  double s=(N+1.)*(N*y1*y1 + y2*y2) - sum*sum;
391  if (s>=0.)
392  y1err = sqrt(s)/(N+1.);
393  else
394  y1err = 0.;
395  }
396  else
397  {
398  // for errors non-zero calculate weighted mean and its error
399  double denom = (1./y1err + 1./y2err);
400  double mean = (y1/y1err + y2/y2err)/denom;
401  // FIXME check if correct
402  y1err = sqrt(((y1-mean)*(y1-mean)/y1err +
403  (y2-mean)*(y2-mean)/y2err)/denom/2.);
404  y1 = mean; // set y1 to mean for filling below
405  }
406  setBinContent(1,y1);
407  setBinError(1,y1err);
408  // shift remaining bins to the left
409  for ( int i = 3; i <= nbins ; i++)
410  {
413  }
414  }
415  // fill last bin with new values
416  setBinContent(index,y);
417  setBinError(index,ye);
418  // set entries
419  setEntries(entries+1);
420  // set axis labels and reset drawing option
421  char buffer [10];
422  sprintf (buffer, "%d", xlow*xscale);
423  std::string a(buffer); setBinLabel(2,a);
424  sprintf (buffer, "%d", xup*xscale);
425  std::string b(buffer); setBinLabel(nbins,b);
426  setBinLabel(1,"av.");
427  }
428  else
429  incompatible(__PRETTY_FUNCTION__);
430 }
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()
Mark the object updated.
T sqrt(T t)
Definition: SSEVec.h:18
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
void setEntries(double nentries)
set # of entries
double getEntries() const
get # 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() const
get # of bins in X-axis
Kind kind() const
Get the type of the monitor element.
void MonitorElement::softReset ( )

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

Definition at line 1041 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 HLXMonitor::FillHistograms(), HLXMonitor::ResetAll(), and DQMStore::softReset().

1042 {
1043  update();
1044 
1045  // Create the reference object the first time this is called.
1046  // On subsequent calls accumulate the current value to the
1047  // reference, and then reset the current value. This way the
1048  // future contents will have the reference "subtracted".
1049  if (kind() == DQM_KIND_TH1F)
1050  {
1051  auto *orig = static_cast<TH1F *>(object_);
1052  auto *r = static_cast<TH1F *>(refvalue_);
1053  if (! r)
1054  {
1055  refvalue_ = r = (TH1F*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1056  r->SetDirectory(nullptr);
1057  r->Reset();
1058  }
1059 
1060  r->Add(orig);
1061  orig->Reset();
1062  }
1063  else if (kind() == DQM_KIND_TH1S)
1064  {
1065  auto *orig = static_cast<TH1S *>(object_);
1066  auto *r = static_cast<TH1S *>(refvalue_);
1067  if (! r)
1068  {
1069  refvalue_ = r = (TH1S*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1070  r->SetDirectory(nullptr);
1071  r->Reset();
1072  }
1073 
1074  r->Add(orig);
1075  orig->Reset();
1076  }
1077  else if (kind() == DQM_KIND_TH1D)
1078  {
1079  auto *orig = static_cast<TH1D *>(object_);
1080  auto *r = static_cast<TH1D *>(refvalue_);
1081  if (! r)
1082  {
1083  refvalue_ = r = (TH1D*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1084  r->SetDirectory(nullptr);
1085  r->Reset();
1086  }
1087 
1088  r->Add(orig);
1089  orig->Reset();
1090  }
1091  else if (kind() == DQM_KIND_TH2F)
1092  {
1093  auto *orig = static_cast<TH2F *>(object_);
1094  auto *r = static_cast<TH2F *>(refvalue_);
1095  if (! r)
1096  {
1097  refvalue_ = r = (TH2F*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1098  r->SetDirectory(nullptr);
1099  r->Reset();
1100  }
1101 
1102  r->Add(orig);
1103  orig->Reset();
1104  }
1105  else if (kind() == DQM_KIND_TH2S)
1106  {
1107  auto *orig = static_cast<TH2S *>(object_);
1108  auto *r = static_cast<TH2S *>(refvalue_);
1109  if (! r)
1110  {
1111  refvalue_ = r = (TH2S*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1112  r->SetDirectory(nullptr);
1113  r->Reset();
1114  }
1115 
1116  r->Add(orig);
1117  orig->Reset();
1118  }
1119  else if (kind() == DQM_KIND_TH2D)
1120  {
1121  auto *orig = static_cast<TH2D *>(object_);
1122  auto *r = static_cast<TH2D *>(refvalue_);
1123  if (! r)
1124  {
1125  refvalue_ = r = (TH2D*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1126  r->SetDirectory(nullptr);
1127  r->Reset();
1128  }
1129 
1130  r->Add(orig);
1131  orig->Reset();
1132  }
1133  else if (kind() == DQM_KIND_TH3F)
1134  {
1135  auto *orig = static_cast<TH3F *>(object_);
1136  auto *r = static_cast<TH3F *>(refvalue_);
1137  if (! r)
1138  {
1139  refvalue_ = r = (TH3F*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1140  r->SetDirectory(nullptr);
1141  r->Reset();
1142  }
1143 
1144  r->Add(orig);
1145  orig->Reset();
1146  }
1147  else if (kind() == DQM_KIND_TPROFILE)
1148  {
1149  auto *orig = static_cast<TProfile *>(object_);
1150  auto *r = static_cast<TProfile *>(refvalue_);
1151  if (! r)
1152  {
1153  refvalue_ = r = (TProfile*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1154  r->SetDirectory(nullptr);
1155  r->Reset();
1156  }
1157 
1158  addProfiles(r, orig, r, 1, 1);
1159  orig->Reset();
1160  }
1161  else if (kind() == DQM_KIND_TPROFILE2D)
1162  {
1163  auto *orig = static_cast<TProfile2D *>(object_);
1164  auto *r = static_cast<TProfile2D *>(refvalue_);
1165  if (! r)
1166  {
1167  refvalue_ = r = (TProfile2D*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1168  r->SetDirectory(nullptr);
1169  r->Reset();
1170  }
1171 
1172  addProfiles(r, orig, r, 1, 1);
1173  orig->Reset();
1174  }
1175  else
1176  incompatible(__PRETTY_FUNCTION__);
1177 }
void incompatible(const char *func) const
void update()
Mark the object updated.
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind() const
Get the type of the monitor element.
std::string MonitorElement::tagLabelString ( ) const

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

Definition at line 556 of file MonitorElement.cc.

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

Referenced by DQMStore::saveMonitorElementToROOT().

557 {
558  char buf[32];
560  size_t len = sprintf(buf, "t=%" PRIu32, data_.tag);
561 
562  result.reserve(6 + 2*data_.objname.size() + len);
563  result += '<'; result += data_.objname; result += '>';
564  result += buf;
565  result += '<'; result += '/'; result += data_.objname; result += '>';
566  return result;
567 }
uint32_t tag
Definition: DQMNet.h:100
std::string objname
Definition: DQMNet.h:107
DQMNet::CoreObject data_
std::string MonitorElement::tagString ( ) 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 543 of file MonitorElement.cc.

References data_, DQMNet::CoreObject::objname, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, heppy_batch::val, and valueString().

Referenced by DQMStore::saveMonitorElementToPB(), and DQMStore::saveMonitorElementToROOT().

544 {
547  result.reserve(6 + 2*data_.objname.size() + val.size());
548  result += '<'; result += data_.objname; result += '>';
549  result += val;
550  result += '<'; result += '/'; result += data_.objname; result += '>';
551  return result;
552 }
std::string valueString() const
std::string objname
Definition: DQMNet.h:107
DQMNet::CoreObject data_
void MonitorElement::update ( )
inline

Mark the object updated.

Definition at line 137 of file MonitorElement.h.

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

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.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(), MatrixUtil.Steps::overwrite(), 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(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

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

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

Definition at line 1447 of file MonitorElement.cc.

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

Referenced by runQTests().

1448 {
1449  data_.flags &= ~DQMNet::DQM_PROP_REPORT_ALARM;
1450  for (auto & qreport : data_.qreports)
1451  switch (qreport.code)
1452  {
1454  break;
1455  case dqm::qstatus::WARNING:
1457  break;
1458  case dqm::qstatus::ERROR:
1460  break;
1461  default:
1463  break;
1464  }
1465 }
static const uint32_t DQM_PROP_REPORT_WARN
Definition: DQMNet.h:48
QReports qreports
Definition: DQMNet.h:108
Definition: DQMNet.h:23
uint32_t flags
Definition: DQMNet.h:99
static const int WARNING
static const uint32_t DQM_PROP_REPORT_ERROR
Definition: DQMNet.h:47
static const uint32_t DQM_PROP_REPORT_OTHER
Definition: DQMNet.h:49
DQMNet::CoreObject data_
static const int STATUS_OK
static const int ERROR
std::string MonitorElement::valueString ( ) 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 524 of file MonitorElement.cc.

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

Referenced by TrackingUtility::getMEValue(), SiStripUtility::getMEValue(), and tagString().

525 {
527  if (kind() == DQM_KIND_INT)
528  packScalarData(result, "i=");
529  else if (kind() == DQM_KIND_REAL)
530  packScalarData(result, "f=");
531  else if (kind() == DQM_KIND_STRING)
532  packScalarData(result, "s=");
533  else
534  incompatible(__PRETTY_FUNCTION__);
535 
536  return result;
537 }
void incompatible(const char *func) const
void packScalarData(std::string &into, const char *prefix) const
convert scalar data into a string.
Kind kind() const
Get the type of the monitor element.
bool MonitorElement::wasUpdated ( ) const
inline

true if ME was updated in last monitoring cycle

Definition at line 133 of file MonitorElement.h.

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

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

134  { return data_.flags & DQMNet::DQM_PROP_NEW; }
uint32_t flags
Definition: DQMNet.h:99
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_NEW
Definition: DQMNet.h:59

Friends And Related Function Documentation

friend class DQMService
friend

Definition at line 40 of file MonitorElement.h.

friend class DQMStore
friend

Definition at line 39 of file MonitorElement.h.

Member Data Documentation

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

Definition at line 68 of file MonitorElement.h.

Referenced by doFill(), Fill(), initialise(), MonitorElement(), packScalarData(), and Reset().