CMS 3D CMS Logo

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

#include <MonitorElement.h>

Classes

struct  fits_in_int64_t
 
struct  Scalar
 

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Friends

class DQMService
 
class DQMStore
 

Detailed Description

The base class for all MonitorElements (ME)

Definition at line 37 of file MonitorElement.h.

Member Typedef Documentation

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

Definition at line 66 of file MonitorElement.h.

Member Enumeration Documentation

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

Definition at line 49 of file MonitorElement.h.

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

Constructor & Destructor Documentation

MonitorElement::MonitorElement ( void  )

Definition at line 147 of file MonitorElement.cc.

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

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

Definition at line 164 of file MonitorElement.cc.

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

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

Definition at line 186 of file MonitorElement.cc.

187  : data_(x.data_),
188  scalar_(x.scalar_),
189  object_(nullptr),
191  refvalue_(nullptr),
193 {
194 }
std::vector< QReport > qreports_
DQMNet::CoreObject data_
MonitorElement::MonitorElement ( const MonitorElement x)

Definition at line 196 of file MonitorElement.cc.

References object_, and refvalue_.

198 {
199  if (x.object_)
200  object_ = static_cast<TH1 *>(x.object_->Clone());
201 
202  if (x.refvalue_)
203  refvalue_ = static_cast<TH1 *>(x.refvalue_->Clone());
204 }
MonitorElement::MonitorElement ( MonitorElement &&  o)

Definition at line 206 of file MonitorElement.cc.

References python.connectstrParser::o, object_, and refvalue_.

208 {
209  object_ = o.object_;
210  refvalue_ = o.refvalue_;
211 
212  o.object_ = nullptr;
213  o.refvalue_ = nullptr;
214 }
MonitorElement::~MonitorElement ( void  )

Definition at line 216 of file MonitorElement.cc.

References object_, and refvalue_.

217 {
218  delete object_;
219  delete refvalue_;
220 }

Member Function Documentation

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

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

687 {
688  if (kind() < DQM_KIND_TH1F)
689  raiseDQMError("MonitorElement", "Method '%s' cannot be invoked on monitor"
690  " element '%s' because it is not a root object",
691  func, data_.objname.c_str());
692 
693  return checkRootObject(data_.objname, object_, func, reqdim);
694 }
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void MonitorElement::addProfiles ( TProfile *  h1,
TProfile *  h2,
TProfile *  sum,
float  c1,
float  c2 
)
private

Definition at line 1193 of file MonitorElement.cc.

References Abs(), assert(), newFWLiteAna::bin, ws_sso_content_reader::content, python.tagInventory::entries, relativeConstraints::error, and i.

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

1194 {
1195  assert(h1);
1196  assert(h2);
1197  assert(sum);
1198 
1199  static const Int_t NUM_STAT = 6;
1200  Double_t stats1[NUM_STAT];
1201  Double_t stats2[NUM_STAT];
1202  Double_t stats3[NUM_STAT];
1203 
1204  bool isRebinOn = sum->TestBit(TH1::kCanRebin);
1205  sum->ResetBit(TH1::kCanRebin);
1206 
1207  for (Int_t i = 0; i < NUM_STAT; ++i)
1208  stats1[i] = stats2[i] = stats3[i] = 0;
1209 
1210  h1->GetStats(stats1);
1211  h2->GetStats(stats2);
1212 
1213  for (Int_t i = 0; i < NUM_STAT; ++i)
1214  stats3[i] = c1*stats1[i] + c2*stats2[i];
1215 
1216  stats3[1] = c1*TMath::Abs(c1)*stats1[1]
1217  + c2*TMath::Abs(c2)*stats2[1];
1218 
1219  Double_t entries = c1*h1->GetEntries() + c2* h2->GetEntries();
1220  TArrayD* h1sumw2 = h1->GetSumw2();
1221  TArrayD* h2sumw2 = h2->GetSumw2();
1222  for (Int_t bin = 0, nbin = sum->GetNbinsX()+1; bin <= nbin; ++bin)
1223  {
1224  Double_t entries = c1*h1->GetBinEntries(bin)
1225  + c2*h2->GetBinEntries(bin);
1226  Double_t content = c1*h1->GetBinEntries(bin)*h1->GetBinContent(bin)
1227  + c2*h2->GetBinEntries(bin)*h2->GetBinContent(bin);
1228  Double_t error = TMath::Sqrt(c1*TMath::Abs(c1)*h1sumw2->fArray[bin]
1229  + c2*TMath::Abs(c2)*h2sumw2->fArray[bin]);
1230  sum->SetBinContent(bin, content);
1231  sum->SetBinError(bin, error);
1232  sum->SetBinEntries(bin, entries);
1233  }
1234 
1235  sum->SetEntries(entries);
1236  sum->PutStats(stats3);
1237  if (isRebinOn) sum->SetBit(TH1::kCanRebin);
1238 }
int i
Definition: DBlmapReader.cc:9
assert(m_qm.get())
T Abs(T a)
Definition: MathUtil.h:49
void MonitorElement::addProfiles ( TProfile2D *  h1,
TProfile2D *  h2,
TProfile2D *  sum,
float  c1,
float  c2 
)
private

Definition at line 1243 of file MonitorElement.cc.

References Abs(), assert(), newFWLiteAna::bin, ws_sso_content_reader::content, python.tagInventory::entries, relativeConstraints::error, and i.

1244 {
1245  assert(h1);
1246  assert(h2);
1247  assert(sum);
1248 
1249  static const Int_t NUM_STAT = 9;
1250  Double_t stats1[NUM_STAT];
1251  Double_t stats2[NUM_STAT];
1252  Double_t stats3[NUM_STAT];
1253 
1254  bool isRebinOn = sum->TestBit(TH1::kCanRebin);
1255  sum->ResetBit(TH1::kCanRebin);
1256 
1257  for (Int_t i = 0; i < NUM_STAT; ++i)
1258  stats1[i] = stats2[i] = stats3[i] = 0;
1259 
1260  h1->GetStats(stats1);
1261  h2->GetStats(stats2);
1262 
1263  for (Int_t i = 0; i < NUM_STAT; i++)
1264  stats3[i] = c1*stats1[i] + c2*stats2[i];
1265 
1266  stats3[1] = c1*TMath::Abs(c1)*stats1[1]
1267  + c2*TMath::Abs(c2)*stats2[1];
1268 
1269  Double_t entries = c1*h1->GetEntries() + c2*h2->GetEntries();
1270  TArrayD *h1sumw2 = h1->GetSumw2();
1271  TArrayD *h2sumw2 = h2->GetSumw2();
1272  for (Int_t xbin = 0, nxbin = sum->GetNbinsX()+1; xbin <= nxbin; ++xbin)
1273  for (Int_t ybin = 0, nybin = sum->GetNbinsY()+1; ybin <= nybin; ++ybin)
1274  {
1275  Int_t bin = sum->GetBin(xbin, ybin);
1276  Double_t entries = c1*h1->GetBinEntries(bin)
1277  + c2*h2->GetBinEntries(bin);
1278  Double_t content = c1*h1->GetBinEntries(bin)*h1->GetBinContent(bin)
1279  + c2*h2->GetBinEntries(bin)*h2->GetBinContent(bin);
1280  Double_t error = TMath::Sqrt(c1*TMath::Abs(c1)*h1sumw2->fArray[bin]
1281  + c2*TMath::Abs(c2)*h2sumw2->fArray[bin]);
1282 
1283  sum->SetBinContent(bin, content);
1284  sum->SetBinError(bin, error);
1285  sum->SetBinEntries(bin, entries);
1286  }
1287  sum->SetEntries(entries);
1288  sum->PutStats(stats3);
1289  if (isRebinOn) sum->SetBit(TH1::kCanRebin);
1290 }
int i
Definition: DBlmapReader.cc:9
assert(m_qm.get())
T Abs(T a)
Definition: MathUtil.h:49
void MonitorElement::addQReport ( const DQMNet::QValue desc,
QCriterion qc 
)
private

Add quality report, from DQMStore.

Definition at line 1397 of file MonitorElement.cc.

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

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

1398 {
1399  QReport *qr;
1400  DQMNet::QValue *qv;
1401  getQReport(true, desc.qtname, qr, qv);
1402  qr->qcriterion_ = qc;
1403  *qv = desc;
1404  update();
1405 }
QCriterion * qcriterion_
Definition: QReport.h:51
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to &lt;qtname&gt; (null pointer if QReport does not exist)
void update(void)
Mark the object updated.
std::string qtname
Definition: DQMNet.h:92
void MonitorElement::addQReport ( QCriterion qc)
private

Definition at line 1408 of file MonitorElement.cc.

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

1409 {
1410  QReport *qr;
1411  DQMNet::QValue *qv;
1412  getQReport(true, qc->getName(), qr, qv);
1414  qv->message = "NO_MESSAGE_ASSIGNED";
1415  qr->qcriterion_ = qc;
1416  update();
1417 }
QCriterion * qcriterion_
Definition: QReport.h:51
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to &lt;qtname&gt; (null pointer if QReport does not exist)
std::string getName(void) const
get name of quality test
Definition: QTest.h:57
void update(void)
Mark the object updated.
static const int DID_NOT_RUN
std::string message
Definition: DQMNet.h:91
bool MonitorElement::CheckBinLabels ( const TAxis *  a1,
const TAxis *  a2 
)
static

Check the consistency of the axis labels.

Definition at line 225 of file MonitorElement.cc.

References i.

Referenced by DQMStore::checkBinningMatches().

226 {
227  // check that axis have same labels
228  THashList *l1 = (const_cast<TAxis*>(a1))->GetLabels();
229  THashList *l2 = (const_cast<TAxis*>(a2))->GetLabels();
230 
231  if (!l1 && !l2 )
232  return true;
233  if (!l1 || !l2 ) {
234  return false;
235  }
236  // check now labels sizes are the same
237  if (l1->GetSize() != l2->GetSize() ) {
238  return false;
239  }
240  for (int i = 1; i <= a1->GetNbins(); ++i) {
241  TString label1 = a1->GetBinLabel(i);
242  TString label2 = a2->GetBinLabel(i);
243  if (label1 != label2) {
244  return false;
245  }
246  }
247  return true;
248 }
int i
Definition: DBlmapReader.cc:9
void MonitorElement::copyFrom ( TH1 *  from)
private

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

1323 {
1324  TH1 *orig = accessRootObject(__PRETTY_FUNCTION__, 1);
1325  if (orig->GetTitle() != from->GetTitle())
1326  orig->SetTitle(from->GetTitle());
1327 
1328  if (!isAccumulateEnabled())
1329  orig->Reset();
1330 
1331  if (isSoftResetEnabled())
1332  {
1333  if (kind() == DQM_KIND_TH1F
1334  || kind() == DQM_KIND_TH1S
1335  || kind() == DQM_KIND_TH1D
1336  || kind() == DQM_KIND_TH2F
1337  || kind() == DQM_KIND_TH2S
1338  || kind() == DQM_KIND_TH2D
1339  || kind() == DQM_KIND_TH3F)
1340  // subtract "reference"
1341  orig->Add(from, refvalue_, 1, -1);
1342  else if (kind() == DQM_KIND_TPROFILE)
1343  // subtract "reference"
1344  addProfiles(static_cast<TProfile *>(from),
1345  static_cast<TProfile *>(refvalue_),
1346  static_cast<TProfile *>(orig),
1347  1, -1);
1348  else if (kind() == DQM_KIND_TPROFILE2D)
1349  // subtract "reference"
1350  addProfiles(static_cast<TProfile2D *>(from),
1351  static_cast<TProfile2D *>(refvalue_),
1352  static_cast<TProfile2D *>(orig),
1353  1, -1);
1354  else
1355  incompatible(__PRETTY_FUNCTION__);
1356  }
1357  else
1358  orig->Add(from);
1359 
1360  copyFunctions(from, orig);
1361 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind(void) const
Get the type of the monitor element.
bool isAccumulateEnabled(void) const
whether ME contents should be accumulated over multiple monitoring periods; default: false ...
void copyFunctions(TH1 *from, TH1 *to)
bool isSoftResetEnabled(void) const
whether soft-reset is enabled; default is false
void MonitorElement::copyFunctions ( TH1 *  from,
TH1 *  to 
)
private

Definition at line 1293 of file MonitorElement.cc.

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

Referenced by copyFrom().

1294 {
1295  // will copy functions only if local-copy and original-object are equal
1296  // (ie. no soft-resetting or accumulating is enabled)
1298  return;
1299 
1300  update();
1301  TList *fromf = from->GetListOfFunctions();
1302  TList *tof = to->GetListOfFunctions();
1303  for (int i = 0, nfuncs = fromf ? fromf->GetSize() : 0; i < nfuncs; ++i)
1304  {
1305  TObject *obj = fromf->At(i);
1306  // not interested in statistics
1307  if (!strcmp(obj->IsA()->GetName(), "TPaveStats"))
1308  continue;
1309 
1310  if (TF1 *fn = dynamic_cast<TF1 *>(obj))
1311  tof->Add(new TF1(*fn));
1312  //else if (dynamic_cast<TPaveStats *>(obj))
1313  // ; // FIXME? tof->Add(new TPaveStats(*stats));
1314  else
1315  raiseDQMError("MonitorElement", "Cannot extract function '%s' of type"
1316  " '%s' from monitor element '%s' for a copy",
1317  obj->GetName(), obj->IsA()->GetName(), data_.objname.c_str());
1318  }
1319 }
int i
Definition: DBlmapReader.cc:9
void update(void)
Mark the object updated.
bool isAccumulateEnabled(void) const
whether ME contents should be accumulated over multiple monitoring periods; default: false ...
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
bool isSoftResetEnabled(void) const
whether soft-reset is enabled; default is false
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void MonitorElement::disableSoftReset ( void  )
private

reverts action of softReset

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

1156 {
1157  if (refvalue_)
1158  {
1159  if (kind() == DQM_KIND_TH1F
1160  || kind() == DQM_KIND_TH1S
1161  || kind() == DQM_KIND_TH1D
1162  || kind() == DQM_KIND_TH2F
1163  || kind() == DQM_KIND_TH2S
1164  || kind() == DQM_KIND_TH2D
1165  || kind() == DQM_KIND_TH3F)
1166  {
1167  TH1 *orig = static_cast<TH1 *>(object_);
1168  orig->Add(refvalue_);
1169  }
1170  else if (kind() == DQM_KIND_TPROFILE)
1171  {
1172  TProfile *orig = static_cast<TProfile *>(object_);
1173  TProfile *r = static_cast<TProfile *>(refvalue_);
1174  addProfiles(orig, r, orig, 1, 1);
1175  }
1176  else if (kind() == DQM_KIND_TPROFILE2D)
1177  {
1178  TProfile2D *orig = static_cast<TProfile2D *>(object_);
1179  TProfile2D *r = static_cast<TProfile2D *>(refvalue_);
1180  addProfiles(orig, r, orig, 1, 1);
1181  }
1182  else
1183  incompatible(__PRETTY_FUNCTION__);
1184 
1185  delete refvalue_;
1186  refvalue_ = 0;
1187  }
1188 }
void incompatible(const char *func) const
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::doFill ( int64_t  x)
private

"Fill" ME method for int64_t

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

Referenced by Fill().

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 = static_cast<double>(x);
292  else if (kind() == DQM_KIND_TH1F)
293  accessRootObject(__PRETTY_FUNCTION__, 1)
294  ->Fill(static_cast<double>(x), 1);
295  else if (kind() == DQM_KIND_TH1S)
296  accessRootObject(__PRETTY_FUNCTION__, 1)
297  ->Fill(static_cast<double>(x), 1);
298  else if (kind() == DQM_KIND_TH1D)
299  accessRootObject(__PRETTY_FUNCTION__, 1)
300  ->Fill(static_cast<double>(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(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
std::string MonitorElement::effLabelString ( void  ) const

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

Definition at line 549 of file MonitorElement.cc.

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

550 {
552 
553  result.reserve(6 + 2*data_.objname.size() + 3);
554  result += '<'; result += data_.objname; result += '>';
555  result += "e=1";
556  result += '<'; result += '/'; result += data_.objname; result += '>';
557  return result;
558 }
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
void MonitorElement::Fill ( long long  x)
inline

Definition at line 170 of file MonitorElement.h.

References doFill().

Referenced by SiStripDcsInfo::addBadModules(), SiStripGainFromCalibTree::algoAnalyze(), SiStripGainFromCalibTree::algoAnalyzeTheTree(), AlphaTVarAnalyzer::analyze(), ScoutingTestAnalyzer::analyze(), RazorVarAnalyzer::analyze(), DQMHOAlCaRecoStream::analyze(), DiJetVarAnalyzer::analyze(), CSCRecHit2DValidation::analyze(), CSCSegmentValidation::analyze(), HcalRecHitClient::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCStripDigiValidation::analyze(), PerformanceAnalyzer::analyze(), L1Scalers::analyze(), L1TScalersSCAL::analyze(), CSCWireDigiValidation::analyze(), CSCComparatorDigiValidation::analyze(), ESRecoSummary::analyze(), HLTTauDQML1Plotter::analyze(), TrackingTruthValid::analyze(), SiPixelDigiValid::analyze(), SiStripDigiValid::analyze(), HcalNoiseMonitor::analyze(), RPCMonitorRaw::analyze(), RPCRecHitProbability::analyze(), EcalTBValidation::analyze(), HLTTauDQMPathSummaryPlotter::analyze(), SiStripMonitorHLT::analyze(), SiStripMonitorFilter::analyze(), ElectronMcSignalValidator::analyze(), HcalRecHitMonitor::analyze(), ElectronGeneralAnalyzer::analyze(), HCALRecHitAnalyzer::analyze(), RPCMonitorLinkSynchro::analyze(), TrackTypeMonitor::analyze(), ElectronTagProbeAnalyzer::analyze(), PrimaryVertexMonitor::analyze(), StandaloneTrackMonitor::analyze(), EwkMuDQM::analyze(), RPCMonitorDigi::analyze(), EgammaBasicClusters::analyze(), MonitorLTC::analyze(), HLTTauDQMPathPlotter::analyze(), EgammaSuperClusters::analyze(), DQMHcalPhiSymAlCaReco::analyze(), EwkElecDQM::analyze(), CaloTowersAnalyzer::analyze(), SUSY_HLT_InclusiveHT::analyze(), AlcaBeamMonitor::analyze(), AcceptanceHistoProducer::analyze(), CaloTowersValidation::analyze(), SiPixelRecHitsValid::analyze(), DQMHcalDiJetsAlCaReco::analyze(), TkAlCaRecoMonitor::analyze(), HcalDeadCellMonitor::analyze(), SiStripMonitorDigi::analyze(), TrackerHitAnalyzer::analyze(), TrackAnalyzer::analyze(), EcalPileUpDepMonitor::analyze(), SUSY_HLT_PhotonHT::analyze(), EcalPreshowerNoiseDistrib::analyze(), WValidation::analyze(), EwkMuLumiMonitorDQM::analyze(), DQMLumiMonitor::analyze(), PixelVTXMonitor::analyze(), BasicHepMCHeavyIonValidation::analyze(), BasicHepMCValidation::analyze(), DQMSourceEleCalib::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), SUSY_HLT_Muon_BJet::analyze(), DrellYanValidation::analyze(), ElectronMcFakeValidator::analyze(), HcalDetDiagNoiseMonitor::analyze(), BasicGenParticleValidation::analyze(), RecoMuonValidator::analyze(), L1TDTTF::analyze(), DQMProvInfo::analyze(), MBUEandQCDValidation::analyze(), SiStripMonitorCluster::analyze(), BxTiming::analyze(), HcalBaseDQMonitor::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), SUSY_HLT_Electron_BJet::analyze(), SUSY_HLT_Razor::analyze(), SimplePhotonAnalyzer::analyze(), HiggsValidation::analyze(), HcalMonitorModule::analyze(), ElectronAnalyzer::analyze(), DQMEventInfo::analyze(), ConverterTester::analyze(), EcalPreshowerDigisValidation::analyze(), BeamMonitor::analyze(), SUSY_HLT_alphaT::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), NoiseRates::analyze(), HotlineDQM::analyze(), EcalBarrelDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), DuplicationChecker::analyze(), JetTester::analyze(), HcalNoiseRates::analyze(), HcalSimHitsValidation::analyze(), L1TDTTPG::analyze(), EcalBarrelSimHitsValidation::analyze(), TrackSplittingMonitor::analyze(), L1TRCT::analyze(), ZDCMonitorModule::analyze(), EcalEndcapSimHitsValidation::analyze(), EcalPreshowerSimHitsValidation::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), EcalZmassTask::analyze(), GlobalTest::analyze(), SiStripMonitorQuality::analyze(), SiStripMonitorRawData::analyze(), L1TCSCTPG::analyze(), HLTSeedL1LogicScalers::analyze(), L1TGMT::analyze(), L1TRPCTF::analyze(), SiPixelDigiSource::analyze(), SiPixelTrackResidualSource::analyze(), GlobalMuonMatchAnalyzer::analyze(), MuonIdDQM::analyze(), GeneralHLTOffline::analyze(), DQMSourcePi0::analyze(), DTSegmentAnalysisTask::analyze(), B2GSingleLeptonHLTValidation::analyze(), B2GHadronicHLTValidation::analyze(), TopSingleLeptonHLTValidation::analyze(), EcalSimHitsValidation::analyze(), TrackingMonitor::analyze(), HLXMonitor::analyze(), PixelLumiDQM::analyze(), DTScalerInfoTask::analyze(), DQMExample_Step1::analyze(), RPCTTUMonitor::analyze(), HcalRecHitsAnalyzer::analyze(), SUSY_HLT_SingleLepton::analyze(), TopDiLeptonHLTValidation::analyze(), SiPixelRawDataErrorSource::analyze(), HcalRecHitsValidation::analyze(), HigPhotonJetHLTOfflineSource::analyze(), TTbarSpinCorrHepMCAnalyzer::analyze(), ZDCDigiStudy::analyze(), L1TdeRCT::analyze(), DTNoiseTask::analyze(), EcalDigisValidation::analyze(), TauValidation::analyze(), DTLocalTriggerBaseTask::analyze(), TTbar_Kinematics::analyze(), GlobalDigisHistogrammer::analyze(), ZdcSimHitStudy::analyze(), GlobalRecHitsHistogrammer::analyze(), MuonIdVal::analyze(), DTDataIntegrityTask::analyze(), L1TGT::analyze(), SiPixelErrorsDigisToCalibDigis::analyze(), SiPixelClusterSource::analyze(), L1TCSCTF::analyze(), L1TRPCTPG::analyze(), TriggerValidator::analyze(), JetTester_HeavyIons::analyze(), MuIsoValidation::analyze(), HLTScalers::analyze(), HcalDigiMonitor::analyze(), SiPixelTrackingRecHitsValid::analyze(), L1TCompare::analyze(), TauTagValidation::analyze(), GlobalHitsHistogrammer::analyze(), Vx3DHLTAnalyzer::analyze(), GlobalHitsTester::analyze(), HcalTimingMonitorModule::analyze(), ValidationHcalIsoTrackAlCaReco::analyze(), CastorMonitorModule::analyze(), JetAnalyzer_HeavyIons::analyze(), ECALRecHitAnalyzer::analyze(), EcalMixingModuleValidation::analyze(), V0Validator::analyze(), EmDQMReco::analyze(), EgHLTOfflineSource::analyze(), RPCEfficiency::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagLEDMonitor::analyze(), L1TGCT::analyze(), HcalDetDiagPedestalMonitor::analyze(), MCEmbeddingValidationAnalyzer::analyze(), HcalDetDiagLaserMonitor::analyze(), SimHitsValidationHcal::analyzeHits(), HcalSimHitStudy::analyzeHits(), ZdcSimHitStudy::analyzeHits(), DQMFEDIntegrityClient::beginJob(), BeamMonitor::beginJob(), DQMEventInfo::beginLuminosityBlock(), HcalBaseDQMonitor::beginLuminosityBlock(), DQMDaqInfo::beginLuminosityBlock(), ZDCMonitorClient::beginRun(), DQMProvInfo::beginRun(), SiStripDaqInfo::beginRun(), Vx3DHLTAnalyzer::beginRun(), L1TEventInfoClient::book(), DQMStore::bookFloat(), SiPixelDataQuality::bookGlobalQualityFlag(), BxTiming::bookHistograms(), DQMEventInfo::bookHistograms(), ZDCMonitorModule::bookHistograms(), L1TRCT::bookHistograms(), DTLocalTriggerSynchTask::bookHistograms(), L1TGT::bookHistograms(), HcalTimingMonitorModule::bookHistograms(), L1TGCT::bookHistograms(), HcalDetDiagPedestalMonitor::bookHistograms(), HcalDetDiagLaserMonitor::bookHistograms(), DQMStore::bookInt(), HcalTrigPrimClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), HcalDataCertification::CertifyHcal(), CalibrationScanTask::checkAndSave(), CalibrationTask::checkAndSave(), HcalDetDiagPedestalMonitor::CheckStatus(), HcalMonitorModule::CheckSubdetectorStatus(), RPCClusterSizeTest::clientOperation(), RPCEventSummary::clientOperation(), Digi2Raw2Digi::compare(), L1GtHwValidation::compareDaqRecord(), L1GtHwValidation::compareFDL(), L1GtHwValidation::compareGTFE(), GlobalRecHitsAnalyzer::compute(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelDataQuality::computeGlobalQualityFlagByLumi(), PrimaryVertexAnalyzer4PUSlimmed::computePairDistance(), EcalMixingModuleValidation::computeSDBunchDigi(), EventMonitor::count(), L1TGT::countPfsIndicesPerLs(), TkHistoMap::createTkHistoMap(), RPCTTUMonitor::discriminateDecision(), RPCDcsInfoClient::dqmEndJob(), RPCRecHitValidClient::dqmEndJob(), HLTTauCertifier::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), DTOfflineSummaryClients::dqmEndJob(), MuonTestSummary::dqmEndJob(), HLTMuonCertSummary::dqmEndJob(), RPCDaqInfo::dqmEndLuminosityBlock(), RPCEventSummary::dqmEndLuminosityBlock(), SiPixelCertification::dqmEndLuminosityBlock(), DTDCSSummary::dqmEndLuminosityBlock(), SiPixelDaqInfo::dqmEndLuminosityBlock(), DTCertificationSummary::dqmEndLuminosityBlock(), DTDAQInfo::dqmEndLuminosityBlock(), DTSummaryClients::dqmEndLuminosityBlock(), HcalDAQInfo::dqmEndLuminosityBlock(), EcalSelectiveReadoutValidation::EcalSelectiveReadoutValidation(), HcalNoiseRates::endJob(), MuonAlignment::endJob(), ESSummaryClient::endLumiAnalyze(), L1Scalers::endLuminosityBlock(), HcalTrigPrimMonitor::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), DQMLumiMonitor::endLuminosityBlock(), HcalRawDataMonitor::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), HcalDetDiagNoiseMonitor::endLuminosityBlock(), HcalMonitorModule::endLuminosityBlock(), HcalDCSInfo::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), Vx3DHLTAnalyzer::endLuminosityBlock(), QcdLowPtDQM::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), DQMDcsInfoClient::endRun(), RPCBxTest::endRun(), ConverterTester::endRun(), MuonAlignmentSummary::endRun(), HcalMonitorModule::endRun(), EcalSelectiveReadoutValidation::endRun(), ZDCMonitorClient::errorSummary(), DQMStore::extract(), DTDataIntegrityTask::fedEntry(), DTDataIntegrityTask::fedFatal(), DTDataIntegrityTask::fedNonFatal(), FineDelayTask::fill(), SiPixelHitEfficiencyModule::fill(), CSCMonitorObject::Fill(), SiPixelRecHitModule::fill(), SiPixelClusterModule::fill(), MuonIdDQM::Fill(), L1ValidatorHists::Fill(), MuonIdVal::Fill(), SiPixelDigiModule::fill(), HTrackVariables::Fill(), HRes1DHit::Fill(), egHLT::MonElemManager< T, varType >::fill(), egHLT::MonElemManager2D< T, varTypeX, varTypeY >::fill(), Fill(), HResolution::Fill(), HEff1DHit::Fill(), HResolution1DRecHit::Fill(), HRes2DHit::Fill(), EcalSelectiveReadoutValidation::fill(), HEff2DHit::Fill(), HRes4DHit::Fill(), HEff4DHit::Fill(), ecaldqm::MESet::fill_(), HcalRecHitMonitor::fill_Nevents(), HcalDigiMonitor::fill_Nevents(), DQMSourceEleCalib::fillAroundBarrel(), DQMSourceEleCalib::fillAroundEndcap(), SiPixelRecHitsValid::fillBarrel(), MixCollectionValidation::fillCaloHitTime(), HTrackVariables::FillDeltaR(), SiStripQualityChecker::fillDetectorStatus(), SiStripQualityChecker::fillDetectorStatusAtLumi(), MuonSimHitsValidAnalyzer::fillDT(), TrackingQualityChecker::fillDummyGlobalStatus(), TrackingQualityChecker::fillDummyLSStatus(), SiStripCertificationInfo::fillDummySiStripCertification(), SiStripQualityChecker::fillDummyStatus(), SiStripDaqInfo::fillDummyStatus(), SiStripDcsInfo::fillDummyStatus(), TrackingCertificationInfo::fillDummyTrackingCertification(), TrackingCertificationInfo::fillDummyTrackingCertificationAtLumi(), GlobalHitsAnalyzer::fillECal(), GlobalDigisAnalyzer::fillECal(), GlobalRecHitsAnalyzer::fillECal(), CSCSegmentValidation::fillEfficiencyPlots(), HcalSubdetDigiMonitor::fillElement(), HcalSubdetDigiMonitor::fillElements(), HLXMonitor::FillEventInfo(), SiStripFEDCheckPlugin::fillFatalError(), SiStripQualityChecker::fillFaultyModuleStatus(), 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(), MCEmbeddingValidationAnalyzer::plotEntryTypeEvtWeight::fillHistograms(), MCEmbeddingValidationAnalyzer::plotEntryTypeMuonRadCorrUncertainty::fillHistograms(), MCEmbeddingValidationAnalyzer::plotEntryTypeL1ETM::fillHistograms(), MCEmbeddingValidationAnalyzer::leptonDistributionT< T >::fillHistograms(), MCEmbeddingValidationAnalyzer::electronDistributionExtra::fillHistograms(), MCEmbeddingValidationAnalyzer::tauDistributionExtra::fillHistograms(), MCEmbeddingValidationAnalyzer::leptonEfficiencyT< T >::fillHistograms(), MCEmbeddingValidationAnalyzer::leptonL1TriggerEfficiencyT1T2< T1, T2 >::fillHistograms(), MCEmbeddingValidationAnalyzer::l1ExtraObjectDistributionT< T >::fillHistograms(), MCEmbeddingValidationAnalyzer::metDistributionType::fillHistograms(), MCEmbeddingValidationAnalyzer::metL1TriggerEfficiencyType::fillHistograms(), HLXMonitor::FillHistoHFCompare(), SiStripSummaryCreator::fillHistos(), HistoFillerReco< T >::fillHistos(), HcalDetDiagLEDMonitor::fillHistos(), HcalDetDiagPedestalMonitor::fillHistos(), HcalDetDiagLaserMonitor::fillHistos(), TrackAnalyzer::fillHistosForState(), TkAlCaRecoMonitor::fillHitmaps(), ZdcSimHitStudy::FillHitValHist(), QcdUeDQM::fillHltBits(), QcdLowPtDQM::fillHltBits(), MuonPFAnalyzer::fillInRange(), JetTester::fillMatchHists(), SiStripMonitorDigi::fillME(), SiStripMonitorTrack::fillME(), SiStripMonitorCluster::fillME(), SiStripRecHitsValid::fillME(), SiStripTrackingRecHitsValid::fillME(), JetMETHLTOfflineSource::fillMEforMonTriggerSummary(), L1TDTTF::fillMEs(), SiStripNoisesDQM::fillMEsForDet(), SiStripThresholdDQM::fillMEsForDet(), SiStripPedestalsDQM::fillMEsForDet(), SiStripApvGainsDQM::fillMEsForDet(), SiStripQualityDQM::fillMEsForDet(), SiStripNoisesDQM::fillMEsForLayer(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripThresholdDQM::fillMEsForLayer(), SiStripPedestalsDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), SiStripApvGainsDQM::fillMEsForLayer(), SiStripQualityDQM::fillMEsForLayer(), MixCollectionValidation::fillMultiplicity(), GlobalHitsAnalyzer::fillMuon(), GlobalDigisAnalyzer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), HcalHotCellMonitor::fillNevents_neighbor(), HcalDeadCellMonitor::fillNevents_problemCells(), HcalHotCellMonitor::fillNevents_problemCells(), SiStripFEDCheckPlugin::fillNonFatalError(), L1ValidatorHists::FillNumber(), CSCStripDigiValidation::fillPedestalPlots(), MTVHistoProducerAlgo::fillPlotNoFlow(), BeamSpotProblemMonitor::FillPlots(), SiStripFEDCheckPlugin::fillPresent(), RCTMonitor::FillRCT(), ESSummaryClient::fillReportSummary(), HcalSummaryClient::fillReportSummary(), HLXMonitor::FillReportSummary(), HcalSummaryClient::fillReportSummaryLSbyLS(), CSCStripDigiValidation::fillSignalPlots(), MixCollectionValidation::fillSimHitTime(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripDcsInfo::fillStatus(), SiStripQualityChecker::fillSubDetStatus(), SiPixelActionExecutor::fillSummary(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), TrackingQualityChecker::fillTrackingStatus(), TrackingQualityChecker::fillTrackingStatusAtLumi(), SiStripMonitorDigi::fillTrend(), GlobalHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), SiStripDaqInfo::findExcludedModule(), SiPixelInformationExtractor::findNoisyPixels(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), SiPixelDigiModule::getZeroLoEffROCs(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalDetDiagPedestalMonitor::LoadDataset(), HcalDetDiagLaserMonitor::LoadDataset(), DTTriggerEfficiencyTest::makeEfficiencyME(), DQMProvInfo::makeProvInfo(), HeavyFlavorValidation::match(), RPCDataCertification::myBooker(), RPCDaqInfo::myBooker(), RPCDCSSummary::myBooker(), SiPixelTrackResidualModule::nfill(), SiPixelRecHitModule::nfill(), NoiseRatesClient::NoiseRatesEndjob(), HcalNoiseRatesClient::NoiseRatesEndjob(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), TauValidation::photons(), CSCStripDigiValidation::plotResolution(), CSCWireDigiValidation::plotResolution(), CSCSegmentValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), GlobalRecHitsAnalyzer::plotResolution(), HcalDigiMonitor::process_Digi(), StandaloneTrackMonitor::processClusters(), CastorRecHitMonitor::processEvent(), HcalNZSMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), HcalZDCMonitor::processEvent(), HcalCaloTowerMonitor::processEvent(), CastorDigiMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalRecHitMonitor::processEvent(), CastorLEDMonitor::processEvent(), HcalDeadCellMonitor::processEvent(), HcalEEUSMonitor::processEvent(), HcalDigiMonitor::processEvent(), HcalBaseMonitor::processEvent(), HcalEEUSMonitor::processEvent_RawData(), HcalRecHitMonitor::processEvent_rechit(), DTDataIntegrityTask::processFED(), StandaloneTrackMonitor::processHit(), HcalHotCellMonitor::processHit_rechitNeighbors(), DTDataIntegrityTask::processROS25(), SusyPostProcessor::QuantilePlots(), L1TEventInfoClient::readQtResults(), HcalMonitorModule::reset(), HcalBaseDQMonitor::reset(), Vx3DHLTAnalyzer::reset(), EgHLTOfflineSummaryClient::runClient_(), DTLocalTriggerTask::runDCCAnalysis(), DQMFileSaver::saveForOffline(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), HcalCaloTowerMonitor::setup(), HcalZDCMonitor::setup(), HcalSummaryClient::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalRawDataMonitor::setup(), HcalMonitorModule::setup(), HcalBaseDQMonitor::setup(), HcalDigiMonitor::setup(), HLXMonitor::SetupEventInfo(), TauValidation::spinEffectsWHpm(), TauValidation::spinEffectsZH(), TauValidation::tauDecayChannel(), TauValidation::tauMother(), TrackEfficiencyMonitor::testSTATracks(), TrackEfficiencyMonitor::testTrackerTracks(), HcalDataIntegrityTask::unpack(), HcalEEUSMonitor::unpack(), HcalRawDataMonitor::unpack(), PrimaryVertexMonitor::vertexPlots(), ECALRecHitAnalyzer::WriteECALRecHits(), and SubTaskSummaryStatus::WriteThreshold().

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

Definition at line 171 of file MonitorElement.h.

References doFill().

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

Definition at line 172 of file MonitorElement.h.

References doFill().

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

Definition at line 173 of file MonitorElement.h.

References doFill().

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

Definition at line 174 of file MonitorElement.h.

References doFill().

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

Definition at line 175 of file MonitorElement.h.

References doFill().

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

Definition at line 176 of file MonitorElement.h.

References doFill().

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

Definition at line 177 of file MonitorElement.h.

References doFill().

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

Definition at line 178 of file MonitorElement.h.

References doFill().

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

Definition at line 179 of file MonitorElement.h.

References doFill().

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

Definition at line 181 of file MonitorElement.h.

References Fill().

Referenced by Fill().

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

"Fill" ME methods for double

Definition at line 263 of file MonitorElement.cc.

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

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

"Fill" ME methods for string

Definition at line 252 of file MonitorElement.cc.

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

253 {
254  update();
255  if (kind() == DQM_KIND_STRING)
256  scalar_.str = value;
257  else
258  incompatible(__PRETTY_FUNCTION__);
259 }
void incompatible(const char *func) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::Fill ( double  x,
double  yw 
)

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

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

308 {
309  update();
310  if (kind() == DQM_KIND_TH1F)
311  accessRootObject(__PRETTY_FUNCTION__, 1)
312  ->Fill(x, yw);
313  else if (kind() == DQM_KIND_TH1S)
314  accessRootObject(__PRETTY_FUNCTION__, 1)
315  ->Fill(x, yw);
316  else if (kind() == DQM_KIND_TH1D)
317  accessRootObject(__PRETTY_FUNCTION__, 1)
318  ->Fill(x, yw);
319  else if (kind() == DQM_KIND_TH2F)
320  static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
321  ->Fill(x, yw, 1);
322  else if (kind() == DQM_KIND_TH2S)
323  static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2))
324  ->Fill(x, yw, 1);
325  else if (kind() == DQM_KIND_TH2D)
326  static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
327  ->Fill(x, yw, 1);
328  else if (kind() == DQM_KIND_TPROFILE)
329  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
330  ->Fill(x, yw, 1);
331  else
332  incompatible(__PRETTY_FUNCTION__);
333 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
void MonitorElement::Fill ( double  x,
double  y,
double  zw 
)

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

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

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

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

Definition at line 438 of file MonitorElement.cc.

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

439 {
440  update();
441  if (kind() == DQM_KIND_TH3F)
442  static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 2))
443  ->Fill(x, y, z, w);
444  else if (kind() == DQM_KIND_TPROFILE2D)
445  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2))
446  ->Fill(x, y, z, w);
447  else
448  incompatible(__PRETTY_FUNCTION__);
449 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
const double w
Definition: UKUtility.cc:23
void update(void)
Mark the object updated.
float float float z
void Fill(long long x)
Kind kind(void) const
Get the type of the monitor element.
Definition: DDAxes.h:10
uint32_t MonitorElement::flags ( void  ) const
inline

Get the object flags.

Definition at line 113 of file MonitorElement.h.

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

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

Definition at line 991 of file MonitorElement.cc.

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

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

992 {
993  TH1 *h = accessRootObject(func, axis-1);
994  TAxis *a = 0;
995  if (axis == 1)
996  a = h->GetXaxis();
997  else if (axis == 2)
998  a = h->GetYaxis();
999  else if (axis == 3)
1000  a = h->GetZaxis();
1001 
1002  if (! a)
1003  raiseDQMError("MonitorElement", "No such axis %d in monitor element"
1004  " '%s' of type '%s'", axis, data_.objname.c_str(),
1005  typeid(*h).name());
1006 
1007  return a;
1008 }
TH1 * accessRootObject(const char *func, int reqdim) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
std::string objname
Definition: DQMNet.h:106
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 830 of file MonitorElement.cc.

References getAxis().

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

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

get content of bin (1-D)

Definition at line 743 of file MonitorElement.cc.

References accessRootObject().

Referenced by HCALRecHitAnalyzer::analyze(), L1TDTTFClient::buildPhiEtaPlotO(), L1TDTTFClient::buildPhiEtaPlotOFC(), EcalMixingModuleValidation::bunchSumTest(), PixelLumiDQM::calculateBunchMask(), HcalTrigPrimClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), 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(), JetTesterPostProcessor::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), METTesterPostProcessorHarvesting::dqmEndJob(), DTCertificationSummary::dqmEndJob(), DTOfflineSummaryClients::dqmEndJob(), DTChamberEfficiencyClient::dqmEndJob(), RPCDqmClient::dqmEndLuminosityBlock(), SiPixelDaqInfo::dqmEndLuminosityBlock(), SiPixelEDAClient::dqmEndLuminosityBlock(), DTDCSByLumiSummary::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTSummaryClients::dqmEndLuminosityBlock(), HcalSimHitsValidation::endJob(), HcalBeamMonitor::endLuminosityBlock(), SiStripMonitorDigi::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), PixelLumiDQM::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), DQMHcalPhiSymAlCaReco::endRun(), HcalDigisValidation::eval_occupancy(), SiPixelActionExecutor::fillDeviations(), SiPixelActionExecutor::fillEfficiency(), SiPixelActionExecutor::fillFEDErrorSummary(), HCALRecHitAnalyzer::FillGeometry(), ECALRecHitAnalyzer::FillGeometry(), RPCNoisyStripTest::fillGlobalME(), RPCOccupancyTest::fillGlobalME(), SiPixelDataQuality::fillGlobalQualityPlot(), DTLocalTriggerTest::fillGlobalSummary(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), HLXMonitor::FillHistograms(), SiStripSummaryCreator::fillHistos(), RPCChamberQuality::fillMonitorElements(), SiPixelActionExecutor::fillOccupancy(), ESSummaryClient::fillReportSummary(), HcalSummaryClient::fillReportSummaryLSbyLS(), SiPixelActionExecutor::fillSummary(), FillUnphysicalHEHFBins(), DTLocalTriggerLutTest::fillWhPlot(), DTTriggerLutTest::fillWhPlot(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetDet1D::getBinContent(), CSCMonitorObject::GetBinContent(), ecaldqm::MESet::ConstBin::getBinContent(), HcalSubdetDigiMonitor::getMeElementBinContent(), SiPixelDigiModule::getZeroLoEffROCs(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), HcalDigisClient::integralMETH2D(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), DTTimeEvolutionHisto::normalizeTo(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), RPCChamberQuality::performeClientOperation(), HLTTauPostProcessor::plotFilterEfficiencies(), HcalBeamMonitor::processEvent(), SiStripFEDErrorsDQM::readHistogram(), SiPixelDQMRocLevelAnalyzer::RocSumOneModule(), HcalDigisClient::scaleMETH2D(), L1EmulatorErrorFlagClient::setSummary(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), ShiftFillLast(), HcalSimHitsClient::SimHitsEndjob(), HcalRawDataMonitor::UpdateMEs(), DTTimeEvolutionHisto::updateTimeSlot(), and ECALRecHitAnalyzer::WriteECALRecHits().

744 { return accessRootObject(__PRETTY_FUNCTION__, 1)
745  ->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 749 of file MonitorElement.cc.

References accessRootObject().

750 { return accessRootObject(__PRETTY_FUNCTION__, 2)
751  ->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 755 of file MonitorElement.cc.

References accessRootObject().

756 { return accessRootObject(__PRETTY_FUNCTION__, 3)
757  ->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 785 of file MonitorElement.cc.

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

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

786 {
787  if (kind() == DQM_KIND_TPROFILE)
788  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
789  ->GetBinEntries(bin);
790  else if (kind() == DQM_KIND_TPROFILE2D)
791  return static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
792  ->GetBinEntries(bin);
793  else
794  {
795  incompatible(__PRETTY_FUNCTION__);
796  return 0;
797  }
798 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind(void) const
Get the type of the monitor element.
double MonitorElement::getBinError ( int  binx) const
double MonitorElement::getBinError ( int  binx,
int  biny 
) const

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

Definition at line 767 of file MonitorElement.cc.

References accessRootObject().

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

References accessRootObject().

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

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

Definition at line 150 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

151  { return data_.flags & DQMNet::DQM_PROP_LUMI; }
uint32_t flags
Definition: DQMNet.h:98
DQMNet::CoreObject data_
static const uint32_t DQM_PROP_LUMI
Definition: DQMNet.h:60
double MonitorElement::getMean ( int  axis = 1) const
double MonitorElement::getMeanError ( int  axis = 1) const

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

Definition at line 707 of file MonitorElement.cc.

References accessRootObject().

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

708 { return accessRootObject(__PRETTY_FUNCTION__, axis-1)
709  ->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 117 of file MonitorElement.h.

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

Referenced by HcalSummaryClient::analyze(), BeamMonitor::analyze(), HLTSeedL1LogicScalers::analyze(), BeamMonitor::beginJob(), RPCBxTest::beginRun(), ZDCMonitorClient::beginRun(), L1TEventInfoClient::book(), PFClient::createResolutionPlots(), HcalBeamClient::doProblemCellSetup(), L1EmulatorErrorFlagClient::dqmEndJob(), HLTMuonCertSummary::dqmEndJob(), 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(), HcalUtilsClient::getHisto(), getHisto(), getHisto2(), getHistoTH3F(), getHistoTProfile(), getHistoTProfile2D(), SiStripQualityChecker::getModuleStatus(), SiStripSummaryCreator::getSummaryME(), CommissioningHistograms::histogram(), SiStripHistoPlotter::makeCondDBPlots(), L1TDTTPGClient::makeRatioHisto(), SiStripBaseServiceFromDQM< T >::StringNotMatch::operator()(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), SiStripInformationExtractor::plotHistosFromLayout(), SiStripInformationExtractor::printAlarmList(), TrackingActionExecutor::printShiftHistoParameters(), SiStripActionExecutor::printShiftHistoParameters(), ElectronDqmHarvesterBase::profileX(), ScoutingAnalyzerBase::profileX(), ElectronDqmHarvesterBase::profileY(), ScoutingAnalyzerBase::profileY(), MEtoEDMConverter::putData(), SiStripFEDErrorsDQM::readHistogram(), L1TEventInfoClient::readQtResults(), SiStripHistoryDQMService::returnDetComponent(), DTLocalTriggerSynchTest::runClientDiagnostic(), HcalSummaryClient::setup(), HcalCoarsePedestalClient::setupCoarsePedestal(), HcalDetDiagNoiseMonitorClient::setupProblemCells(), HcalDetDiagTimingClient::setupProblemCells(), HcalHotCellClient::setupProblemCells(), HcalNZSClient::setupProblemCells(), HcalDigiClient::setupProblemCells(), HcalTrigPrimClient::setupProblemCells(), HcalDetDiagPedestalClient::setupProblemCells(), HcalDeadCellClient::setupProblemCells(), HcalDetDiagLEDClient::setupProblemCells(), HcalRecHitClient::setupProblemCells(), HcalRawDataClient::setupProblemCells(), SubTaskSummaryStatus::WriteThreshold(), and CSCRecHit2DValidation::~CSCRecHit2DValidation().

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

get # of bins in X-axis

Definition at line 725 of file MonitorElement.cc.

References accessRootObject().

Referenced by SiStripMonitorQuality::analyze(), ecaldqm::MESetDet2D::book(), ecaldqm::MESetDet1D::book(), 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(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), ecaldqm::MESet::const_iterator::down(), HltSusyExoPostProcessor::dqmEndJob(), DQMExample_Step2::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), METTesterPostProcessorHarvesting::dqmEndJob(), JetTesterPostProcessor::dqmEndJob(), SiPixelEDAClient::dqmEndLuminosityBlock(), HcalSimHitsValidation::endJob(), 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(), MTVHistoProducerAlgo::fillPlotFromPlots(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), FillUnphysicalHEHFBins(), SiPixelInformationExtractor::getNormalization(), SiPixelInformationExtractor::getNormalization2D(), SiStripSummaryCreator::getSummaryME(), SiPixelDigiModule::getZeroLoEffROCs(), HcalDigisClient::HcalDigisEndjob(), HcalRecHitsClient::HcalRecHitsEndjob(), HcalRecHitsDQMClient::HcalRecHitsEndjob(), RPCFEDIntegrity::labelBins(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), L1TGCTClient::makeXProjection(), L1TGCTClient::makeYProjection(), DTTimeEvolutionHisto::normalizeTo(), HLTTauPostProcessor::plotFilterEfficiencies(), SiStripFEDErrorsDQM::readHistogram(), HcalDigisClient::scaleMETH2D(), L1EmulatorErrorFlagClient::setSummary(), ShiftFillLast(), HcalSimHitsClient::SimHitsEndjob(), and ecaldqm::MESet::const_iterator::up().

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

get # of bins in Z-axis

Definition at line 737 of file MonitorElement.cc.

References accessRootObject().

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

get pathname of parent folder

Definition at line 121 of file MonitorElement.h.

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

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

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

get errors from last set of quality tests

Definition at line 614 of file MonitorElement.cc.

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

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

615 {
616  std::vector<QReport *> result;
617  result.reserve(qreports_.size());
618  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
619  if (data_.qreports[i].code == dqm::qstatus::ERROR)
620  {
621  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
622  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
623  result.push_back(const_cast<QReport *>(&qreports_[i]));
624  }
625  return result;
626 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:107
std::vector< QReport > qreports_
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
static const int ERROR
std::vector< QReport * > MonitorElement::getQOthers ( void  ) const

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

Definition at line 629 of file MonitorElement.cc.

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

Referenced by QTestStatusChecker::processAlarms().

630 {
631  std::vector<QReport *> result;
632  result.reserve(qreports_.size());
633  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
636  && data_.qreports[i].code != dqm::qstatus::ERROR)
637  {
638  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
639  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
640  result.push_back(const_cast<QReport *>(&qreports_[i]));
641  }
642  return result;
643 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:107
std::vector< QReport > qreports_
static const int WARNING
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
static const int STATUS_OK
static const int ERROR
const QReport * MonitorElement::getQReport ( const std::string &  qtname) const

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

Definition at line 576 of file MonitorElement.cc.

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

577 {
578  QReport *qr;
579  DQMNet::QValue *qv;
580  const_cast<MonitorElement *>(this)->getQReport(false, qtname, qr, qv);
581  return qr;
582 }
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to &lt;qtname&gt; (null pointer if QReport does not exist)
void MonitorElement::getQReport ( bool  create,
const std::string &  qtname,
QReport *&  qr,
DQMNet::QValue *&  qv 
)
private

Definition at line 1365 of file MonitorElement.cc.

References DQMNet::QValue::algorithm, assert(), 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.

1366 {
1367  assert(qreports_.size() == data_.qreports.size());
1368 
1369  qr = 0;
1370  qv = 0;
1371 
1372  size_t pos = 0, end = qreports_.size();
1373  while (pos < end && data_.qreports[pos].qtname != qtname)
1374  ++pos;
1375 
1376  if (pos == end && ! create)
1377  return;
1378  else if (pos == end)
1379  {
1380  data_.qreports.push_back(DQMNet::QValue());
1381  qreports_.push_back(QReport(0, 0));
1382 
1383  DQMNet::QValue &q = data_.qreports.back();
1385  q.qtresult = 0;
1386  q.qtname = qtname;
1387  q.message = "NO_MESSAGE_ASSIGNED";
1388  q.algorithm = "UNKNOWN_ALGORITHM";
1389  }
1390 
1391  qr = &qreports_[pos];
1392  qv = &data_.qreports[pos];
1393 }
QReports qreports
Definition: DQMNet.h:107
std::string algorithm
Definition: DQMNet.h:93
std::vector< QReport > qreports_
assert(m_qm.get())
static const int DID_NOT_RUN
#define end
Definition: vmac.h:37
std::string qtname
Definition: DQMNet.h:92
DQMNet::CoreObject data_
std::string message
Definition: DQMNet.h:91
float qtresult
Definition: DQMNet.h:90
SurfaceDeformation * create(int type, const std::vector< double > &params)
std::vector< QReport * > MonitorElement::getQReports ( void  ) const

get map of QReports

Definition at line 585 of file MonitorElement.cc.

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

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

586 {
587  std::vector<QReport *> result;
588  result.reserve(qreports_.size());
589  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
590  {
591  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
592  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
593  result.push_back(const_cast<QReport *>(&qreports_[i]));
594  }
595  return result;
596 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:107
std::vector< QReport > qreports_
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
std::vector< QReport * > MonitorElement::getQWarnings ( void  ) const

get warnings from last set of quality tests

Definition at line 599 of file MonitorElement.cc.

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

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

600 {
601  std::vector<QReport *> result;
602  result.reserve(qreports_.size());
603  for (size_t i = 0, e = qreports_.size(); i != e; ++i)
604  if (data_.qreports[i].code == dqm::qstatus::WARNING)
605  {
606  const_cast<MonitorElement *>(this)->qreports_[i].qvalue_
607  = const_cast<DQMNet::QValue *>(&data_.qreports[i]);
608  result.push_back(const_cast<QReport *>(&qreports_[i]));
609  }
610  return result;
611 }
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:107
std::vector< QReport > qreports_
static const int WARNING
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
TObject * MonitorElement::getRefRootObject ( void  ) const

Definition at line 1530 of file MonitorElement.cc.

References reference_, and update().

Referenced by SiStripHistoPlotter::createStaticPlot(), CSCMonitorObject::getRefRootObject(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), and Comp2RefKolmogorov::runTest().

1531 {
1532  const_cast<MonitorElement *>(this)->update();
1533  return reference_;
1534 }
void update(void)
Mark the object updated.
TH1 * MonitorElement::getRefTH1 ( void  ) const

Definition at line 1537 of file MonitorElement.cc.

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

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

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

Definition at line 1562 of file MonitorElement.cc.

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

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

1563 {
1564  assert(kind() == DQM_KIND_TH1D);
1565  const_cast<MonitorElement *>(this)->update();
1566  return static_cast<TH1D *>
1567  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1568 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
TH1F * MonitorElement::getRefTH1F ( void  ) const

Definition at line 1544 of file MonitorElement.cc.

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

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

1545 {
1546  assert(kind() == DQM_KIND_TH1F);
1547  const_cast<MonitorElement *>(this)->update();
1548  return static_cast<TH1F *>
1549  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1550 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
TH1S * MonitorElement::getRefTH1S ( void  ) const

Definition at line 1553 of file MonitorElement.cc.

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

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

1554 {
1555  assert(kind() == DQM_KIND_TH1S);
1556  const_cast<MonitorElement *>(this)->update();
1557  return static_cast<TH1S *>
1558  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1559 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
TH2D * MonitorElement::getRefTH2D ( void  ) const

Definition at line 1589 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

1590 {
1591  assert(kind() == DQM_KIND_TH2D);
1592  const_cast<MonitorElement *>(this)->update();
1593  return static_cast<TH2D *>
1594  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1595 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
TH2F * MonitorElement::getRefTH2F ( void  ) const

Definition at line 1571 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

1572 {
1573  assert(kind() == DQM_KIND_TH2F);
1574  const_cast<MonitorElement *>(this)->update();
1575  return static_cast<TH2F *>
1576  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1577 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
TH2S * MonitorElement::getRefTH2S ( void  ) const

Definition at line 1580 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

1581 {
1582  assert(kind() == DQM_KIND_TH2S);
1583  const_cast<MonitorElement *>(this)->update();
1584  return static_cast<TH2S *>
1585  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1586 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
TH3F * MonitorElement::getRefTH3F ( void  ) const

Definition at line 1598 of file MonitorElement.cc.

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

Referenced by Comp2RefEqualH::runTest().

1599 {
1600  assert(kind() == DQM_KIND_TH3F);
1601  const_cast<MonitorElement *>(this)->update();
1602  return static_cast<TH3F *>
1603  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 3));
1604 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
TProfile * MonitorElement::getRefTProfile ( void  ) const

Definition at line 1607 of file MonitorElement.cc.

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

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

1608 {
1610  const_cast<MonitorElement *>(this)->update();
1611  return static_cast<TProfile *>
1612  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 1));
1613 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
TProfile2D * MonitorElement::getRefTProfile2D ( void  ) const

Definition at line 1616 of file MonitorElement.cc.

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

1617 {
1619  const_cast<MonitorElement *>(this)->update();
1620  return static_cast<TProfile2D *>
1621  (checkRootObject(data_.objname, reference_, __PRETTY_FUNCTION__, 2));
1622 }
assert(m_qm.get())
void update(void)
Mark the object updated.
static TH1 * checkRootObject(const std::string &name, TObject *tobj, const char *func, int reqdim)
Kind kind(void) const
Get the type of the monitor element.
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
double MonitorElement::getRMS ( int  axis = 1) const
double MonitorElement::getRMSError ( int  axis = 1) const

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

Definition at line 719 of file MonitorElement.cc.

References accessRootObject().

Referenced by BeamMonitor::FitAndFill().

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

Definition at line 374 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

375  {
377  return scalar_.str;
378  }
assert(m_qm.get())
Kind kind(void) const
Get the type of the monitor element.
const uint32_t MonitorElement::getTag ( void  ) const
inline

Definition at line 388 of file MonitorElement.h.

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

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

Definition at line 380 of file MonitorElement.h.

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

Referenced by MEtoEDMConverter::putData().

381  {
384  tags.push_back(data_.tag);
385  return tags;
386  }
uint32_t flags
Definition: DQMNet.h:98
static const uint32_t DQM_PROP_TAGGED
Definition: DQMNet.h:54
uint32_t tag
Definition: DQMNet.h:99
DQMNet::CoreObject data_
tuple tags
Definition: o2o.py:248
std::vector< uint32_t > TagList
Definition: DQMNet.h:84
TH1 * MonitorElement::getTH1 ( void  ) const

Definition at line 1450 of file MonitorElement.cc.

References accessRootObject(), and update().

Referenced by SiPixelOfflineCalibAnalysisBase::addTF1ToDQMMonitoringElement(), MBUEandQCDValidation::analyze(), BeamMonitor::analyze(), LogMessageMonitor::analyze(), HLTScalers::analyze(), TrackerOfflineValidationSummary::associateModuleHistsWithTree(), BeamConditionsMonitor::beginJob(), BeamMonitor::beginJob(), Vx3DHLTAnalyzer::beginRun(), ecaldqm::MESetEcal::book(), L1TTestsSummary::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(), TrackingMonitor::bookHistograms(), QcdUeDQM::bookHistograms(), LogMessageMonitor::bookHistograms(), JetMETHLTOfflineSource::bookHistograms(), QcdLowPtDQM::bookHistograms(), TrackAnalyzer::bookHistosForBeamSpot(), SiStripMonitorTrack::bookMETrend(), SiStripMonitorCluster::bookMETrend(), ElectronDqmAnalyzerBase::bookP1(), SiStripMonitorTrack::bookSubDetMEs(), DQMGenericTnPClient::calculateEfficiency(), HeavyFlavorHarvesting::calculateEfficiency(), DQMStore::checkBinningMatches(), HEff1DHit::ComputeEfficiency(), HEff2DHit::ComputeEfficiency(), HEff4DHit::ComputeEfficiency(), SiStripMonitorDigi::createMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripHistoPlotter::createStaticPlot(), SiStripMonitorDigi::createSubDetMEs(), SiStripMonitorCluster::createSubDetMEs(), dqmCopyRecursively(), RPCEfficiencyPerRingLayer::dqmEndJob(), RPCRecHitValidClient::dqmEndJob(), DT4DSegmentClients::endLuminosityBlock(), DT2DSegmentClients::endLuminosityBlock(), DTRecHitClients::endLuminosityBlock(), Vx3DHLTAnalyzer::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), TauDQMHistEffProducer::endRun(), ecaldqm::MESet::fill_(), SiStripQualityDQM::fillGrandSummaryMEs(), DQMMessageLoggerClient::fillHistograms(), SiStripSummaryCreator::fillHistos(), MuonPFAnalyzer::fillInRange(), SiStripQualityDQM::fillMEsForLayer(), MTVHistoProducerAlgo::fillPlotNoFlow(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripBackPlaneCorrectionDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripQualityDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), ecaldqm::MESetDet1D::findBin(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetDet1D::getBinContent(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetDet1D::getBinEntries(), ecaldqm::MESetProjection::getBinError(), ecaldqm::MESetDet1D::getBinError(), CSCMonitorObject::GetBinError(), CSCMonitorObject::GetEntries(), CSCMonitorObject::GetMaximumBin(), HLTBTagHarvestingAnalyzer::GetNumDenumerators(), SiStripSummaryCreator::getSummaryME(), CSCMonitorObject::getTH1(), MuIsoValidation::GetTH1FromMonitorElement(), MuonIsolationDQM::GetTH1FromMonitorElement(), CSCMonitorObject::getTH1Lock(), VertexMonitor::initHisto(), SiStripHistoPlotter::makeCondDBPlots(), PlotCombiner::makePlot(), SiStripHistoPlotter::makePlot(), EcalSelectiveReadoutValidation::normalizeHists(), SusyPostProcessor::QuantilePlots(), ecaldqm::MESetDet2D::reset(), ecaldqm::MESetDet1D::reset(), CSCMonitorObject::SetAxisRange(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetDet1D::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetDet1D::setBinEntries(), ecaldqm::MESetProjection::setBinError(), ecaldqm::MESetDet1D::setBinError(), CSCMonitorObject::SetBinError(), MuonPFAnalyzer::setCodeLabels(), CSCMonitorObject::SetMaximum(), CSCMonitorObject::SetNormFactor(), DTLocalTriggerTask::setQLabels(), DTLocalTriggerBaseTask::setQLabels(), ecaldqm::MESetTrend::shift_(), JetMETHLTOfflineSource::TriggerPosition(), SiStripFEDCheckPlugin::updateHistograms(), L1TTestsSummary::updateL1TOccupancyMonitor(), L1TTestsSummary::updateL1TRateMonitor(), L1TTestsSummary::updateL1TSyncMonitor(), and L1ValidatorHists::Write().

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

Definition at line 1473 of file MonitorElement.cc.

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

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

1474 {
1475  assert(kind() == DQM_KIND_TH1D);
1476  const_cast<MonitorElement *>(this)->update();
1477  return static_cast<TH1D *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1478 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH1F * MonitorElement::getTH1F ( void  ) const

Definition at line 1457 of file MonitorElement.cc.

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

Referenced by SiStripGainFromData::algoBeginJob(), GeneralHLTOffline::analyze(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), DQMProvInfo::beginRun(), TriggerValidator::beginRun(), L1TEfficiencyPlotHandler::book(), Benchmark::book1D(), ElectronDqmAnalyzerBase::bookH1(), ElectronDqmHarvesterBase::bookH1(), ElectronDqmHarvesterBase::bookH1andDivide(), ElectronDqmAnalyzerBase::bookH1withSumw2(), ElectronDqmHarvesterBase::bookH1withSumw2(), ElectronDqmHarvesterBase::bookH2(), ElectronDqmHarvesterBase::bookH2withSumw2(), RPCValidHistograms::bookHistograms(), CastorDigiMonitor::bookHistograms(), RPCMonitorLinkSynchro::bookHistograms(), PrimaryVertexMonitor::bookHistograms(), QcdPhotonsDQM::bookHistograms(), HLTInclusiveVBFSource::bookHistograms(), TriggerRatesMonitor::bookHistograms(), CastorMonitorModule::bookHistograms(), TrackEfficiencyClient::bookMEs(), ElectronDqmHarvesterBase::bookP1(), L1TDTTFClient::buildSummaries(), ElectronDqmHarvesterBase::cloneH1(), DQMStore::collate1D(), EffPurFromHistos::compute(), L1TEfficiencyPlotHandler::computeEfficiency(), 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(), RPCRecHitProbabilityClient::dqmEndJob(), L1TGMTClient::dqmEndJob(), DQMHcalIsoTrackPostProcessor::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), SusyPostProcessor::dqmEndJob(), EfficiencyPlotter::dqmEndJob(), EcalZmassClient::dqmEndJob(), MuonRecoTest::dqmEndJob(), TrackEfficiencyClient::dqmEndJob(), DTResolutionAnalysisTest::dqmEndJob(), JetMETHLTOfflineClient::dqmEndJob(), RPCDcsInfoClient::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTEfficiencyTest::dqmEndLuminosityBlock(), HarvestingAnalyzer::endJob(), ESPedestalClient::endJobAnalyze(), RPCMonitorLinkSynchro::endLuminosityBlock(), DQMDcsInfoClient::endLuminosityBlock(), DQMProvInfo::endLuminosityBlock(), Vx3DHLTAnalyzer::endLuminosityBlock(), TauDQMHistEffProducer::endRun(), RPCBxTest::endRun(), ZDCDigiStudy::endRun(), METAnalyzer::endRun(), TauDQMHistPlotter::endRun(), LaserDQM::fillAdcCounts(), SiStripQualityChecker::fillDetectorStatusAtLumi(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), BTagDifferentialPlot::fillHisto(), DQMFEDIntegrityClient::fillHistograms(), HLXMonitor::FillHistograms(), SiStripSummaryCreator::fillHistos(), GeneralHLTOffline::fillHltMatrix(), EgHLTOfflineClient::FillHLTvsOfflineHist(), FastTimerServiceClient::fillPathSummaryPlots(), FastTimerServiceClient::fillProcessSummaryPlots(), SiPixelActionExecutor::fillSummary(), ThroughputServiceClient::fillSummaryPlots(), FlavourHistograms< T >::FlavourHistograms(), MuonTestSummary::GaussFit(), L1TGMTClient::get1DHisto(), L1TDTTPGClient::get1DHisto(), getAnyHisto(), BTagDifferentialPlot::getDifferentialHistoB_b(), BTagDifferentialPlot::getDifferentialHistoB_c(), BTagDifferentialPlot::getDifferentialHistoB_d(), BTagDifferentialPlot::getDifferentialHistoB_dus(), BTagDifferentialPlot::getDifferentialHistoB_dusg(), BTagDifferentialPlot::getDifferentialHistoB_g(), BTagDifferentialPlot::getDifferentialHistoB_ni(), BTagDifferentialPlot::getDifferentialHistoB_pu(), BTagDifferentialPlot::getDifferentialHistoB_s(), BTagDifferentialPlot::getDifferentialHistoB_u(), EffPurFromHistos::getEffFlavVsBEff_b(), EffPurFromHistos::getEffFlavVsBEff_c(), EffPurFromHistos::getEffFlavVsBEff_d(), EffPurFromHistos::getEffFlavVsBEff_dus(), EffPurFromHistos::getEffFlavVsBEff_dusg(), EffPurFromHistos::getEffFlavVsBEff_g(), EffPurFromHistos::getEffFlavVsBEff_ni(), EffPurFromHistos::getEffFlavVsBEff_pu(), EffPurFromHistos::getEffFlavVsBEff_s(), EffPurFromHistos::getEffFlavVsBEff_u(), getHisto(), JetMETDQMPostProcessor::getHistogram(), EmDQMPostProcessor::getHistogram(), PFClient_JetRes::getHistogramParameters(), PFClient::getHistogramParameters(), SiStripHistoPlotter::getProjection(), SiStripSummaryCreator::getSummaryME(), getTH1F(), L1TDTTFClient::getTH1F(), FlavourHistograms< int >::histo_all(), FlavourHistograms< int >::histo_b(), FlavourHistograms< int >::histo_c(), FlavourHistograms< int >::histo_d(), FlavourHistograms< int >::histo_dus(), FlavourHistograms< int >::histo_dusg(), FlavourHistograms< int >::histo_g(), FlavourHistograms< int >::histo_ni(), FlavourHistograms< int >::histo_pu(), FlavourHistograms< int >::histo_s(), FlavourHistograms< int >::histo_u(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), PhotonDataCertification::invMassZtest(), L1TGMTClient::makeEfficiency1D(), DTLocalTriggerEfficiencyTest::makeEfficiencyME(), EgHLTOfflineClient::makeEffMonElem2Leg(), EgHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndFail(), EgHLTOfflineClient::makeEffMonElemFromPassAndFailAndTagTag(), METAnalyzer::makeRatePlot(), L1TGMTClient::makeRatio1D(), DTLocalTriggerSynchTest::makeRatioME(), L1TDTTFClient::makeSummary(), DQMClientExample::performClient(), DTSegmentAnalysisTest::performClientDiagnostic(), BTagDifferentialPlot::plot(), EffPurFromHistos::plot(), FlavourHistograms< T >::plot(), HLTTauPostProcessor::plotFilterEfficiencies(), CastorDigiMonitor::processEvent(), L1TCSCTFClient::processHistograms(), MEtoEDMConverter::putData(), SiStripNoisesDQMService::readNoises(), SiStripPedestalsDQMService::readPedestals(), MuonTestSummary::ResidualCheck(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), MeanWithinExpected::runTest(), CompareLastFilledBin::runTest(), CheckVariance::runTest(), DQMStore::scaleElements(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), and TrackIPHistograms< T >::TrackIPHistograms().

1458 {
1459  assert(kind() == DQM_KIND_TH1F);
1460  const_cast<MonitorElement *>(this)->update();
1461  return static_cast<TH1F *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1462 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH1S * MonitorElement::getTH1S ( void  ) const

Definition at line 1465 of file MonitorElement.cc.

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

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

1466 {
1467  assert(kind() == DQM_KIND_TH1S);
1468  const_cast<MonitorElement *>(this)->update();
1469  return static_cast<TH1S *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1470 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH2D * MonitorElement::getTH2D ( void  ) const

Definition at line 1497 of file MonitorElement.cc.

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

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

1498 {
1499  assert(kind() == DQM_KIND_TH2D);
1500  const_cast<MonitorElement *>(this)->update();
1501  return static_cast<TH2D *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1502 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH2F * MonitorElement::getTH2F ( void  ) const

Definition at line 1481 of file MonitorElement.cc.

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

Referenced by SiStripGainFromData::algoBeginJob(), SiStripGainFromCalibTree::algoComputeMPVandGain(), HcalDigiClient::analyze(), HcalSummaryClient::analyze(), BeamMonitor::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), HcalBeamMonitor::beginLuminosityBlock(), ZDCMonitorClient::beginRun(), DQMProvInfo::beginRun(), Benchmark::book2D(), ElectronDqmAnalyzerBase::bookH2(), ElectronDqmHarvesterBase::bookH2(), ElectronDqmHarvesterBase::bookH2andDivide(), ElectronDqmAnalyzerBase::bookH2withSumw2(), ElectronDqmHarvesterBase::bookH2withSumw2(), CastorRecHitMonitor::bookHistograms(), RPCValidHistograms::bookHistograms(), CastorDigiMonitor::bookHistograms(), RPCMonitorLinkSynchro::bookHistograms(), RPCMonitorRaw::bookHistograms(), RPCRecHitValid::bookHistograms(), CaloTowerAnalyzer::bookHistograms(), PhysicsObjectsMonitor::bookHistograms(), CastorLEDMonitor::bookHistograms(), L1TDTTF::bookHistograms(), HLTInclusiveVBFSource::bookHistograms(), ZDCDigiStudy::bookHistograms(), ZdcSimHitStudy::bookHistograms(), L1TdeRCT::bookHistograms(), L1TCSCTF::bookHistograms(), HcalTimingMonitorModule::bookHistograms(), JetAnalyzer::bookHistograms(), HcalDetDiagNoiseMonitorClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDetDiagTimingClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalNZSClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalRecHitClient::calculateProblems(), HcalRawDataClient::calculateProblems(), DQMStore::collate2D(), GlobalMuonMatchAnalyzer::computeEfficiencyEta(), GlobalMuonMatchAnalyzer::computeEfficiencyPt(), PFClient::createProfilePlots(), PFClient::createProjectionPlots(), PFClient_JetRes::createResolutionPlots(), PFClient::createResolutionPlots(), L1TdeRCT::DivideME2D(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), TrackingDQMClientHeavyIons::dqmEndJob(), L1TGMTClient::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), MuonRecoTest::dqmEndJob(), DTChamberEfficiencyClient::dqmEndJob(), HLTMuonCertSummary::dqmEndJob(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTNoiseAnalysisTest::dqmEndLuminosityBlock(), DTOccupancyTest::dqmEndLuminosityBlock(), DTChamberEfficiencyTest::dqmEndLuminosityBlock(), DTResolutionTest::dqmEndLuminosityBlock(), L1TEventInfoClient::dumpContentMonitorElements(), RPCMonitorLinkSynchro::endLuminosityBlock(), HcalBeamMonitor::endLuminosityBlock(), HigPhotonJetHLTOfflineSource::endRun(), SiPixelActionExecutor::fillEfficiency(), SiStripSummaryCreator::fillHistos(), SiPixelActionExecutor::fillOccupancy(), SiStripQualityChecker::fillStatusHistogram(), TrackingQualityChecker::fillStatusHistogram(), TrackingCertificationInfo::fillTrackingCertificationMEs(), SiPixelInformationExtractor::findNoisyPixels(), FitSlicesYTool::FitSlicesYTool(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), L1TGMTClient::get2DHisto(), L1TDTTPGClient::get2DHisto(), getAnyHisto(), getHisto2(), HLTBTagHarvestingAnalyzer::GetNumDenumerators(), SiStripHistoPlotter::getProjection(), L1TOccupancyClientHistogramService::getRebinnedHistogram(), getTH2F(), L1TDTTFClient::getTH2F(), MuIsoValidation::GetTH2FromMonitorElement(), HcalDetDiagPedestalClient::hasErrors_Temp(), HcalCoarsePedestalClient::hasErrors_Temp(), HcalDetDiagTimingClient::hasErrors_Temp(), HcalHotCellClient::hasErrors_Temp(), HcalNZSClient::hasErrors_Temp(), HcalTrigPrimClient::hasErrors_Temp(), HcalDetDiagNoiseMonitorClient::hasErrors_Temp(), HcalBeamClient::hasErrors_Temp(), HcalDigiClient::hasErrors_Temp(), HcalDeadCellClient::hasErrors_Temp(), HcalRecHitClient::hasErrors_Temp(), HcalRawDataClient::hasErrors_Temp(), FlavourHistograms2D< double, double >::histo_all(), FlavourHistograms2D< double, double >::histo_b(), FlavourHistograms2D< double, double >::histo_c(), FlavourHistograms2D< double, double >::histo_d(), FlavourHistograms2D< double, double >::histo_dus(), FlavourHistograms2D< double, double >::histo_dusg(), FlavourHistograms2D< double, double >::histo_g(), FlavourHistograms2D< double, double >::histo_ni(), FlavourHistograms2D< double, double >::histo_pu(), FlavourHistograms2D< double, double >::histo_s(), FlavourHistograms2D< double, double >::histo_u(), HcalBaseDQClient::htmlOutput(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), DQMGenericClient::limitedFit(), L1TGMTClient::makeEfficiency2D(), DTTriggerEfficiencyTest::makeEfficiencyME(), DTLocalTriggerEfficiencyTest::makeEfficiencyME2D(), L1TDTTPGClient::makeRatioHisto(), L1TDTTFClient::makeSummary(), DTSegmentAnalysisTest::performClientDiagnostic(), CastorRecHitMonitor::processEvent(), CastorDigiMonitor::processEvent(), HcalBeamMonitor::processEvent(), CastorLEDMonitor::processEvent(), L1TGCTClient::processHistograms(), SiStripGainFromCalibTree::produceTagFilter(), ElectronDqmHarvesterBase::profileX(), ElectronDqmHarvesterBase::profileY(), MEtoEDMConverter::putData(), Comp2RefEqualH::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), CompareLastFilledBin::runTest(), DQMStore::scaleElements(), HcalBeamMonitor::SetEtaLabels(), HcalSummaryClient::setup(), HcalBaseDQMonitor::setup(), HLXMonitor::SetupEventInfo(), and SiStripGainFromCalibTree::storeOnTree().

1482 {
1483  assert(kind() == DQM_KIND_TH2F);
1484  const_cast<MonitorElement *>(this)->update();
1485  return static_cast<TH2F *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1486 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH2S * MonitorElement::getTH2S ( void  ) const

Definition at line 1489 of file MonitorElement.cc.

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

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

1490 {
1491  assert(kind() == DQM_KIND_TH2S);
1492  const_cast<MonitorElement *>(this)->update();
1493  return static_cast<TH2S *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1494 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TH3F * MonitorElement::getTH3F ( void  ) const

Definition at line 1505 of file MonitorElement.cc.

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

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

1506 {
1507  assert(kind() == DQM_KIND_TH3F);
1508  const_cast<MonitorElement *>(this)->update();
1509  return static_cast<TH3F *>(accessRootObject(__PRETTY_FUNCTION__, 3));
1510 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
std::string MonitorElement::getTitle ( void  ) const

get MonitorElement title

Definition at line 836 of file MonitorElement.cc.

References accessRootObject().

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

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

Definition at line 1513 of file MonitorElement.cc.

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

Referenced by StripValidationPlots::beginJob(), CastorDigiMonitor::bookHistograms(), ElectronDqmAnalyzerBase::bookP1(), ElectronDqmHarvesterBase::bookP1(), ScoutingAnalyzerBase::bookP1(), Benchmark::bookProfile(), TrackingAnalyser::checkTrackerFEDsInLS(), TrackingAnalyser::checkTrackerFEDsWdataInLS(), DQMStore::collateProfile(), PFClient::createProfilePlots(), EmDQMPostProcessor::dividehistos(), JetMETDQMPostProcessor::dividehistos(), MTVHistoProducerAlgo::doProfileX(), MuonTrackValidatorBase::doProfileX(), EmDQMPostProcessor::dqmEndJob(), HltSusyExoPostProcessor::dqmEndJob(), AlcaBeamMonitorClient::endLuminosityBlock(), AlcaBeamMonitor::endLuminosityBlock(), FastTimerServiceClient::fillPathSummaryPlots(), SiStripPedestalsDQM::fillSummaryMEs(), SiStripApvGainsDQM::fillSummaryMEs(), SiStripBackPlaneCorrectionDQM::fillSummaryMEs(), SiStripLorentzAngleDQM::fillSummaryMEs(), SiStripBaseCondObjDQM::fillSummaryMEs(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), BeamMonitor::FitAndFill(), FlavourHistograms2D< T, G >::FlavourHistograms2D(), L1TDTTPGClient::get1DProfile(), getAnyHisto(), getHistoTProfile(), SiStripHistoPlotter::getProjection(), getTProfile(), MuIsoValidation::GetTProfileFromMonitorElement(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), HLTTauPostProcessor::plotFilterEfficiencies(), FlavourHistograms2D< double, double >::profile_all(), FlavourHistograms2D< double, double >::profile_b(), FlavourHistograms2D< double, double >::profile_c(), FlavourHistograms2D< double, double >::profile_d(), FlavourHistograms2D< double, double >::profile_dus(), FlavourHistograms2D< double, double >::profile_dusg(), FlavourHistograms2D< double, double >::profile_g(), FlavourHistograms2D< double, double >::profile_ni(), FlavourHistograms2D< double, double >::profile_pu(), FlavourHistograms2D< double, double >::profile_s(), FlavourHistograms2D< double, double >::profile_u(), MEtoEDMConverter::putData(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsWithinExpected::runTest(), CheckVariance::runTest(), DQMStore::scaleElements(), HcalNZSMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalBeamMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), and HcalRawDataMonitor::setup().

1514 {
1516  const_cast<MonitorElement *>(this)->update();
1517  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1));
1518 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
TProfile2D * MonitorElement::getTProfile2D ( void  ) const

Definition at line 1521 of file MonitorElement.cc.

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

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

1522 {
1524  const_cast<MonitorElement *>(this)->update();
1525  return static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 2));
1526 }
TH1 * accessRootObject(const char *func, int reqdim) const
assert(m_qm.get())
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
double MonitorElement::getYmax ( void  ) const
private

get max Y value (for profiles)

Definition at line 816 of file MonitorElement.cc.

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

817 {
818  if (kind() == DQM_KIND_TPROFILE)
819  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
820  ->GetYmax();
821  else
822  {
823  incompatible(__PRETTY_FUNCTION__);
824  return 0;
825  }
826 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind(void) const
Get the type of the monitor element.
double MonitorElement::getYmin ( void  ) const
private

get min Y value (for profiles)

Definition at line 802 of file MonitorElement.cc.

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

803 {
804  if (kind() == DQM_KIND_TPROFILE)
805  return static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
806  ->GetYmin();
807  else
808  {
809  incompatible(__PRETTY_FUNCTION__);
810  return 0;
811  }
812 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::globalize ( )
inlineprivate
bool MonitorElement::hasError ( void  ) const
inline

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

Definition at line 200 of file MonitorElement.h.

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

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

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

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

Definition at line 208 of file MonitorElement.h.

References data_, 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:98
static const uint32_t DQM_PROP_REPORT_OTHER
Definition: DQMNet.h:48
DQMNet::CoreObject data_
bool MonitorElement::hasWarning ( void  ) const
inline

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

Definition at line 204 of file MonitorElement.h.

References data_, 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:47
uint32_t flags
Definition: DQMNet.h:98
DQMNet::CoreObject data_
void MonitorElement::incompatible ( const char *  func) const
private

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

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

Definition at line 35 of file MonitorElement.cc.

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

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

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

Definition at line 64 of file MonitorElement.cc.

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

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

Definition at line 135 of file MonitorElement.cc.

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

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

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

Definition at line 292 of file MonitorElement.h.

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

Referenced by copyFrom(), and copyFunctions().

uint32_t flags
Definition: DQMNet.h:98
static const uint32_t DQM_PROP_ACCUMULATE
Definition: DQMNet.h:55
DQMNet::CoreObject data_
bool MonitorElement::isEfficiency ( void  ) const
inline

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

Definition at line 213 of file MonitorElement.h.

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

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

whether soft-reset is enabled; default is false

Definition at line 288 of file MonitorElement.h.

References refvalue_.

Referenced by copyFrom(), and copyFunctions().

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

Get the type of the monitor element.

Definition at line 109 of file MonitorElement.h.

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

Referenced by accessRootObject(), MEtoEDMConverter::beginRun(), 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(), MEtoEDMConverter::endJob(), Fill(), SiStripQualityChecker::fillDetectorStatusAtLumi(), SiStripSummaryCreator::fillHistos(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripQualityChecker::fillStatusHistogram(), TrackingQualityChecker::fillStatusHistogram(), TrackingCertificationInfo::fillTrackingCertificationMEs(), TrackingCertificationInfo::fillTrackingCertificationMEsAtLumi(), TrackingQualityChecker::fillTrackingStatusAtLumi(), DQMService::flushStandalone(), getBinEntries(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), getFloatValue(), PFClient_JetRes::getHistogramParameters(), PFClient::getHistogramParameters(), getIntValue(), TrackingUtility::getMEValue(), SiStripUtility::getMEValue(), SiStripQualityChecker::getModuleStatus(), SiStripHistoPlotter::getProjection(), getRefTH1D(), getRefTH1F(), getRefTH1S(), getRefTH2D(), getRefTH2F(), getRefTH2S(), getRefTH3F(), getRefTProfile(), getRefTProfile2D(), getStringValue(), SiStripSummaryCreator::getSummaryME(), getTH1D(), getTH1F(), getTH1S(), getTH2D(), getTH2F(), getTH2S(), getTH3F(), getTProfile(), getTProfile2D(), getYmax(), getYmin(), initialise(), SiStripHistoPlotter::makePlot(), packScalarData(), SiStripTrackerMapCreator::paintTkMapFromHistogram(), MEtoEDMConverter::putData(), Reset(), Comp2RefEqualH::runTest(), Comp2RefChi2::runTest(), Comp2RefKolmogorov::runTest(), ContentsXRange::runTest(), ContentsYRange::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), ContentsWithinExpected::runTest(), MeanWithinExpected::runTest(), CompareToMedian::runTest(), CompareLastFilledBin::runTest(), CheckVariance::runTest(), DQMStore::scaleElements(), setBinEntries(), ShiftFillLast(), softReset(), and valueString().

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

Definition at line 392 of file MonitorElement.h.

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

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

true if ME is marked for deletion

Definition at line 296 of file MonitorElement.h.

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

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

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

Definition at line 301 of file MonitorElement.h.

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

uint32_t flags
Definition: DQMNet.h:98
static const uint32_t DQM_PROP_MARKTODELETE
Definition: DQMNet.h:64
DQMNet::CoreObject data_
const uint32_t MonitorElement::moduleId ( void  ) const
inline

Definition at line 394 of file MonitorElement.h.

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

Referenced by MonitorElement().

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

Compare monitor elements, for ordering in sets.

Definition at line 100 of file MonitorElement.h.

References data_, and DQMNet::setOrder().

101  {
102  return DQMNet::setOrder(data_, x.data_);
103  }
DQMNet::CoreObject data_
static bool setOrder(const CoreObject &a, const CoreObject &b)
Definition: DQMNet.h:179
MonitorElement& MonitorElement::operator= ( const MonitorElement )
delete
MonitorElement& MonitorElement::operator= ( MonitorElement &&  )
delete
void MonitorElement::packQualityData ( std::string &  into) const

serialise quality report information into a string.

Definition at line 494 of file MonitorElement.cc.

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

495 {
497 }
QReports qreports
Definition: DQMNet.h:107
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 469 of file MonitorElement.cc.

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

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

470 {
471  char buf[64];
472  if (kind() == DQM_KIND_INT)
473  {
474  snprintf(buf, sizeof(buf), "%s%" PRId64, prefix, scalar_.num);
475  into = buf;
476  }
477  else if (kind() == DQM_KIND_REAL)
478  {
479  snprintf(buf, sizeof(buf), "%s%.*g", prefix, DBL_DIG+2, scalar_.real);
480  into = buf;
481  }
482  else if (kind() == DQM_KIND_STRING)
483  {
484  into.reserve(strlen(prefix) + scalar_.str.size());
485  into += prefix;
486  into += scalar_.str;
487  }
488  else
489  incompatible(__PRETTY_FUNCTION__);
490 }
void incompatible(const char *func) const
Kind kind(void) const
Get the type of the monitor element.
std::string MonitorElement::qualityTagString ( const DQMNet::QValue qv) const

Definition at line 561 of file MonitorElement.cc.

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

562 {
563  char buf[64];
565  size_t titlelen = data_.objname.size() + qv.qtname.size() + 1;
566  size_t buflen = sprintf(buf, "qr=st:%d:%.*g:", qv.code, DBL_DIG+2, qv.qtresult);
567 
568  result.reserve(7 + 2*titlelen + buflen + qv.algorithm.size() + qv.message.size());
569  result += '<'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
570  result += buf; result += qv.algorithm; result += ':'; result += qv.message;
571  result += '<'; result += '/'; result += data_.objname; result += '.'; result += qv.qtname; result += '>';
572  return result;
573 }
std::string algorithm
Definition: DQMNet.h:93
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:106
std::string qtname
Definition: DQMNet.h:92
DQMNet::CoreObject data_
std::string message
Definition: DQMNet.h:91
float qtresult
Definition: DQMNet.h:90
void MonitorElement::Reset ( void  )

reset ME (ie. contents, errors, etc)

Definition at line 453 of file MonitorElement.cc.

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

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

454 {
455  update();
456  if (kind() == DQM_KIND_INT)
457  scalar_.num = 0;
458  else if (kind() == DQM_KIND_REAL)
459  scalar_.real = 0;
460  else if (kind() == DQM_KIND_STRING)
461  scalar_.str.clear();
462  else
463  return accessRootObject(__PRETTY_FUNCTION__, 1)
464  ->Reset();
465 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
bool MonitorElement::resetMe ( void  ) const
inlineprivate

true if ME should be reset at end of monitoring cycle

Definition at line 310 of file MonitorElement.h.

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

Referenced by DQMStore::reset().

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

reset "was updated" flag

Definition at line 306 of file MonitorElement.h.

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

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

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

Definition at line 391 of file MonitorElement.h.

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

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

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

run all quality tests

Definition at line 647 of file MonitorElement.cc.

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

Referenced by DQMStore::runQTests().

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

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

Definition at line 315 of file MonitorElement.h.

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

Referenced by DQMStore::setAccumulate().

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

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

Definition at line 956 of file MonitorElement.cc.

References getAxis(), and update().

957 {
958  update();
959  getAxis(__PRETTY_FUNCTION__, axis)
960  ->SetTimeDisplay(value);
961 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
void MonitorElement::setAxisTimeFormat ( const char *  format = "",
int  axis = 1 
)

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

Definition at line 965 of file MonitorElement.cc.

References getAxis(), and update().

966 {
967  update();
968  getAxis(__PRETTY_FUNCTION__, axis)
969  ->SetTimeFormat(format);
970 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
void MonitorElement::setAxisTimeOffset ( double  toffset,
const char *  option = "local",
int  axis = 1 
)
private

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

Definition at line 974 of file MonitorElement.cc.

References getAxis(), and update().

975 {
976  update();
977  getAxis(__PRETTY_FUNCTION__, axis)
978  ->SetTimeOffset(toffset, option);
979 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
void MonitorElement::setAxisTitle ( const std::string &  title,
int  axis = 1 
)

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

Definition at line 947 of file MonitorElement.cc.

References getAxis(), and update().

Referenced by CSCOfflineMonitor::applyCSClabels(), DQMFEDIntegrityClient::beginJob(), BeamConditionsMonitor::beginJob(), BeamMonitor::beginJob(), BeamSpotProblemMonitor::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), RPCBxTest::beginRun(), AlcaBeamMonitor::beginRun(), SiStripLAProfileBooker::beginRun(), DQMProvInfo::beginRun(), Vx3DHLTAnalyzer::beginRun(), ecaldqm::MESetNonObject::book(), ESSummaryClient::book(), ESIntegrityClient::book(), ecaldqm::MESetEcal::book(), SiPixelTrackResidualModule::book(), SiPixelHitEfficiencyModule::book(), L1TDTTFClient::book(), L1TTestsSummary::book(), SiPixelRecHitModule::book(), SiPixelClusterModule::book(), SiPixelDigiModule::book(), L1TEventInfoClient::book(), DTLocalTriggerTask::bookBarrelHistos(), DTLocalTriggerBaseTest::bookCmsHistos(), DTTriggerLutTest::bookCmsHistos1d(), SiStripBaseCondObjDQM::bookCumulMEs(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackingQualityChecker::bookGlobalStatus(), L1TScalersSCAL::bookHistograms(), DQMHOAlCaRecoStream::bookHistograms(), ESIntegrityTask::bookHistograms(), ESOccupancyTask::bookHistograms(), ESTrendTask::bookHistograms(), PrimaryVertexMonitor::bookHistograms(), ESRawDataTask::bookHistograms(), ESTimingTask::bookHistograms(), DQMHcalPhiSymAlCaReco::bookHistograms(), DQMHcalDiJetsAlCaReco::bookHistograms(), TkAlCaRecoMonitor::bookHistograms(), EcalPileUpDepMonitor::bookHistograms(), MuonRecoAnalyzer::bookHistograms(), MuonSeedsAnalyzer::bookHistograms(), SegmentTrackAnalyzer::bookHistograms(), MuonEnergyDepositAnalyzer::bookHistograms(), BxTiming::bookHistograms(), L1TDTTF::bookHistograms(), DQMHcalIsoTrackAlCaReco::bookHistograms(), SiStripMonitorQuality::bookHistograms(), SiStripMonitorRawData::bookHistograms(), TrackEfficiencyMonitor::bookHistograms(), TrackSplittingMonitor::bookHistograms(), HLTSeedL1LogicScalers::bookHistograms(), L1TDTTPG::bookHistograms(), SiPixelTrackResidualSource::bookHistograms(), ZDCDigiStudy::bookHistograms(), DQMSourcePi0::bookHistograms(), MuonRecoOneHLT::bookHistograms(), L1TRPCTF::bookHistograms(), TrackingMonitor::bookHistograms(), L1TRate::bookHistograms(), TauValidation::bookHistograms(), TTbarSpinCorrHepMCAnalyzer::bookHistograms(), L1TGMT::bookHistograms(), L1TRate_Offline::bookHistograms(), ZdcSimHitStudy::bookHistograms(), TTbar_Kinematics::bookHistograms(), GlobalDigisHistogrammer::bookHistograms(), L1TGT::bookHistograms(), SiStripFEDCheckPlugin::bookHistograms(), GlobalRecHitsHistogrammer::bookHistograms(), LogMessageMonitor::bookHistograms(), L1TdeCSCTF::bookHistograms(), MuonIsolationDQM::bookHistograms(), L1TCSCTF::bookHistograms(), MuIsoValidation::bookHistograms(), PiZeroAnalyzer::bookHistograms(), CSCOfflineMonitor::bookHistograms(), GlobalHitsHistogrammer::bookHistograms(), L1TCompare::bookHistograms(), GlobalHitsAnalyzer::bookHistograms(), JetAnalyzer::bookHistograms(), L1TSync::bookHistograms(), HLTObjectMonitor::bookHistograms(), L1TSync_Offline::bookHistograms(), L1TBPTX::bookHistograms(), GlobalDigisAnalyzer::bookHistograms(), GlobalRecHitsAnalyzer::bookHistograms(), HcalDetDiagPedestalMonitor::bookHistograms(), HcalDetDiagLaserMonitor::bookHistograms(), DTTriggerEfficiencyTest::bookHistos(), DTResolutionAnalysisTest::bookHistos(), DTNoiseAnalysisTest::bookHistos(), DTSegmentAnalysisTest::bookHistos(), DTChamberEfficiencyClient::bookHistos(), DTChamberEfficiencyTest::bookHistos(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerBaseTask::bookHistos(), TrackAnalyzer::bookHistosForBeamSpot(), TrackAnalyzer::bookHistosForHitProperties(), TrackAnalyzer::bookHistosForLScertification(), TrackAnalyzer::bookHistosForState(), 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(), SiStripBaseCondObjDQM::bookSummaryCumulMEs(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), DTPreCalibrationTask::bookTimeBoxes(), TrackingCertificationInfo::bookTrackingCertificationMEs(), DTTriggerEfficiencyTest::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTLocalTriggerTask::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), HcalTrigPrimMonitor::create_fg_correlation(), HcalTrigPrimMonitor::create_tp_correlation(), SiStripRecHitsValid::createLayerMEs(), SiStripTrackingRecHitsValid::createLayerMEs(), MonitorTrackResiduals::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripTrackingRecHitsValid::createSimpleHitsMEs(), SiStripRecHitsValid::createStereoAndMatchedMEs(), SiStripTrackingRecHitsValid::createStereoAndMatchedMEs(), SiStripMonitorDigi::createSubDetMEs(), SiStripMonitorCluster::createSubDetMEs(), SiStripRecHitsValid::createSubDetMEs(), SiStripRecHitsValid::createTotalMEs(), RPCDcsInfoClient::dqmEndJob(), L1TGMTClient::dqmEndJob(), DQMExample_Step2::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), L1EmulatorErrorFlagClient::dqmEndJob(), DTOfflineSummaryClients::dqmEndJob(), MuonTestSummary::dqmEndJob(), DTDAQInfo::dqmEndLuminosityBlock(), DTCertificationSummary::dqmEndLuminosityBlock(), DTDCSByLumiSummary::dqmEndLuminosityBlock(), DTBlockedROChannelsTest::dqmEndLuminosityBlock(), DTDataIntegrityTest::dqmEndLuminosityBlock(), DTSummaryClients::dqmEndLuminosityBlock(), DTOccupancyTest::dqmEndLuminosityBlock(), Vx3DHLTAnalyzer::endLuminosityBlock(), DQMDcsInfoClient::endRun(), SiStripQualityDQM::fillGrandSummaryMEs(), BeamMonitor::FitAndFill(), SiStripCablingDQM::getActiveDetIds(), TrackBuildingAnalyzer::initHisto(), VertexMonitor::initHisto(), rpcdqm::utils::labelXAxisSegment(), HLTTauPostProcessor::plotFilterEfficiencies(), CSCMonitorObject::setAxisTitle(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTPG::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), HcalNZSMonitor::setup(), HcalZDCMonitor::setup(), HcalNoiseMonitor::setup(), HcalBeamMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::setup(), HcalBaseMonitor::setupDepthHists1D(), HcalBaseMonitor::setupDepthHists2D(), HcalBaseMonitor::SetupEtaPhiHists(), HLXMonitor::SetupHists(), L1TDTTF::setWheelLabel(), and L1TDTTFClient::setWheelLabel().

948 {
949  update();
950  getAxis(__PRETTY_FUNCTION__, axis)
951  ->SetTitle(title.c_str());
952 }
void update(void)
Mark the object updated.
TAxis * getAxis(const char *func, int axis) const
void MonitorElement::setBinContent ( int  binx,
double  content 
)

set content of bin (1-D)

Definition at line 844 of file MonitorElement.cc.

References accessRootObject(), and update().

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

845 {
846  update();
847  accessRootObject(__PRETTY_FUNCTION__, 1)
848  ->SetBinContent(binx, content);
849 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinContent ( int  binx,
int  biny,
double  content 
)

set content of bin (2-D)

Definition at line 853 of file MonitorElement.cc.

References accessRootObject(), and update().

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

set content of bin (3-D)

Definition at line 861 of file MonitorElement.cc.

References accessRootObject(), and update().

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

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

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

897 {
898  update();
899  if (kind() == DQM_KIND_TPROFILE)
900  static_cast<TProfile *>(accessRootObject(__PRETTY_FUNCTION__, 1))
901  ->SetBinEntries(bin, nentries);
902  else if (kind() == DQM_KIND_TPROFILE2D)
903  static_cast<TProfile2D *>(accessRootObject(__PRETTY_FUNCTION__, 1))
904  ->SetBinEntries(bin, nentries);
905  else
906  incompatible(__PRETTY_FUNCTION__);
907 }
void incompatible(const char *func) const
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
Kind kind(void) const
Get the type of the monitor element.
void MonitorElement::setBinError ( int  binx,
double  error 
)

set uncertainty on content of bin (1-D)

Definition at line 869 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(), QcdLowPtDQM::filldNdeta(), HLXMonitor::FillHistograms(), HcalDetDiagLaserMonitor::fillHistos(), METTesterPostProcessor::FillMETRes(), MTVHistoProducerAlgo::fillPlotFromPlots(), MTVHistoProducerAlgo::fillPlotFromVectors(), MuonTrackValidatorBase::fillPlotFromVectors(), DQMGenericClient::generic_eff(), DQMGenericClient::limitedFit(), ecaldqm::MESetDet2D::reset(), ecaldqm::MESetDet1D::reset(), ecaldqm::MESetProjection::setBinError(), ecaldqm::MESetDet1D::setBinError(), ecaldqm::MESet::Bin::setBinError(), DTTimeEvolutionHisto::setTimeSlotValue(), ecaldqm::MESetTrend::shift_(), and ShiftFillLast().

870 {
871  update();
872  accessRootObject(__PRETTY_FUNCTION__, 1)
873  ->SetBinError(binx, error);
874 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinError ( int  binx,
int  biny,
double  error 
)

set uncertainty on content of bin (2-D)

Definition at line 878 of file MonitorElement.cc.

References accessRootObject(), and update().

879 {
880  update();
881  accessRootObject(__PRETTY_FUNCTION__, 2)
882  ->SetBinError(binx, biny, error);
883 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setBinError ( int  binx,
int  biny,
int  binz,
double  error 
)

set uncertainty on content of bin (3-D)

Definition at line 887 of file MonitorElement.cc.

References accessRootObject(), and update().

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

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

Definition at line 920 of file MonitorElement.cc.

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

Referenced by BeamMonitor::analyze(), HigPhotonJetHLTOfflineSource::analyze(), TriggerValidator::analyze(), CSCOfflineMonitor::applyCSClabels(), DQMFEDIntegrityClient::beginJob(), BeamMonitor::beginJob(), HcalDCSInfo::beginJob(), DQMProvInfo::beginRun(), Vx3DHLTAnalyzer::beginRun(), ecaldqm::MESetNonObject::book(), ecaldqm::MESetDet2D::book(), ecaldqm::MESetDet1D::book(), ecaldqm::MESetEcal::book(), L1TDTTFClient::book(), L1TEventInfoClient::book(), HltSusyExoPostProcessor::bookEffMEProfileFromTH1(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackingQualityChecker::bookGlobalStatus(), TrackingTruthValid::bookHistograms(), HLTTauDQMPathSummaryPlotter::bookHistograms(), HLTTauDQMPathPlotter::bookHistograms(), MonitorLTC::bookHistograms(), DQMHcalPhiSymAlCaReco::bookHistograms(), QcdPhotonsDQM::bookHistograms(), BasicHepMCValidation::bookHistograms(), L1TdeGCT::bookHistograms(), L1TDEMON::bookHistograms(), HTMHTAnalyzer::bookHistograms(), MuonRecoAnalyzer::bookHistograms(), HiggsValidation::bookHistograms(), SegmentTrackAnalyzer::bookHistograms(), TopDiLeptonDQM::bookHistograms(), LaserAlignmentT0ProducerDQM::bookHistograms(), L1TDTTF::bookHistograms(), SiPixelTrackResidualSource::bookHistograms(), L1TDTTPG::bookHistograms(), L1TFED::bookHistograms(), MuonRecoOneHLT::bookHistograms(), HcalDataCertification::bookHistograms(), L1TRPCTF::bookHistograms(), QcdUeDQM::bookHistograms(), L1TRate::bookHistograms(), TauValidation::bookHistograms(), L1TGMT::bookHistograms(), L1TRate_Offline::bookHistograms(), L1TGT::bookHistograms(), LogMessageMonitor::bookHistograms(), L1TCSCTF::bookHistograms(), JetMETHLTOfflineSource::bookHistograms(), EwkElecTauHistManager::bookHistograms(), EmDQM::bookHistograms(), CSCOfflineMonitor::bookHistograms(), JetAnalyzer::bookHistograms(), L1TSync::bookHistograms(), EmDQMReco::bookHistograms(), RPCEfficiency::bookHistograms(), L1TSync_Offline::bookHistograms(), L1GtHwValidation::bookHistograms(), L1TBPTX::bookHistograms(), QcdLowPtDQM::bookHistograms(), BeamHaloAnalyzer::bookHistograms(), EwkMuTauHistManager::bookHistograms(), HcalDetDiagLaserMonitor::bookHistograms(), DTNoiseAnalysisTest::bookHistos(), DTSegmentAnalysisTest::bookHistos(), DTResolutionTest::bookHistos(), DTOccupancyTest::bookHistos(), DTEfficiencyTest::bookHistos(), DTDataIntegrityTask::bookHistos(), TrackAnalyzer::bookHistosForHitProperties(), METAnalyzer::bookMonitorElement(), DTLocalTriggerBaseTest::bookSectorHistos(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), TrackingCertificationInfo::bookTrackingCertificationMEs(), DTTriggerEfficiencyTest::bookWheelHistos(), DTTriggerEfficiencyTask::bookWheelHistos(), DTRunConditionVarClient::bookWheelHistos(), DTLocalTriggerBaseTest::bookWheelHistos(), HcalTrigPrimMonitor::create_errorflag(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), HltSusyExoPostProcessor::dqmEndJob(), RPCDcsInfoClient::dqmEndJob(), RPCEfficiencyPerRingLayer::dqmEndJob(), RPCEfficiencySecond::dqmEndJob(), RPCEfficiencyShiftHisto::dqmEndJob(), L1EmulatorErrorFlagClient::dqmEndJob(), DataCertificationJetMET::dqmEndJob(), RPCEventSummary::dqmEndLuminosityBlock(), HcalDAQInfo::dqmEndLuminosityBlock(), MuonAlignment::endJob(), L1ScalersClient::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), DQMDcsInfoClient::endRun(), MuonAlignmentSummary::endRun(), EventMonitor::EventMonitor(), SiPixelActionExecutor::fillFEDErrorSummary(), HLTScalersClient::HLTScalersClient(), L1ScalersClient::L1ScalersClient(), HcalRawDataMonitor::label_xChanns(), HcalRawDataMonitor::label_xFEDs(), HcalRawDataMonitor::label_ySpigots(), RPCFEDIntegrity::labelBins(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), rpcdqm::utils::labelYAxisRing(), rpcdqm::utils::labelYAxisRoll(), RPCDataCertification::myBooker(), RPCDaqInfo::myBooker(), RPCDCSSummary::myBooker(), RPCChamberQuality::myBooker(), HLTTauPostProcessor::plotFilterEfficiencies(), SetEtaPhiLabels(), L1TDTTPGClient::setMapPhLabel(), L1TDTTPG::setMapPhLabel(), L1TDTTPGClient::setMapThLabel(), L1TDTTPG::setMapThLabel(), L1TDTTF::setQualLabel(), L1TDTTFClient::setQualLabel(), DTTimeEvolutionHisto::setTimeSlotValue(), HcalNZSMonitor::setup(), HcalZDCMonitor::setup(), HcalRecHitMonitor::setup(), HcalNoiseMonitor::setup(), HcalSummaryClient::setup(), HcalBeamMonitor::setup(), HcalDeadCellMonitor::setup(), HcalEEUSMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalRawDataMonitor::setup(), HcalMonitorModule::setup(), HcalDigiMonitor::setup(), HcalDetDiagTimingMonitor::setup(), HcalDigiMonitor::setupSubdetHists(), L1TDTTF::setWheelLabel(), L1TDTTFClient::setWheelLabel(), ShiftFillLast(), B2GHadronicHLTValidation::triggerBinLabels(), TopSingleLeptonHLTValidation::triggerBinLabels(), B2GSingleLeptonHLTValidation::triggerBinLabels(), TopDiLeptonHLTValidation::triggerBinLabels(), and DTTimeEvolutionHisto::updateTimeSlot().

921 {
922  update();
923  if ( getAxis(__PRETTY_FUNCTION__, axis)->GetNbins() >= bin )
924  {
925  getAxis(__PRETTY_FUNCTION__, axis)
926  ->SetBinLabel(bin, label.c_str());
927  }
928  else
929  {
930  // edm::LogWarning ("MonitorElement")
931  std::cout << "*** MonitorElement: WARNING:"
932  <<"setBinLabel: attempting to set label of non-existent bin number for ME: "<< getFullname() << " \n";
933  }
934 }
void update(void)
Mark the object updated.
const std::string getFullname(void) const
get full name of ME including Pathname
TAxis * getAxis(const char *func, int axis) const
tuple cout
Definition: gather_cfg.py:121
void MonitorElement::setEfficiencyFlag ( void  )
inline
void MonitorElement::setEntries ( double  nentries)

set # of entries

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

912 {
913  update();
914  accessRootObject(__PRETTY_FUNCTION__, 1)
915  ->SetEntries(nentries);
916 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::setLumi ( uint32_t  ls)
inlineprivate
void MonitorElement::setLumiFlag ( void  )
inline
void MonitorElement::setResetMe ( bool  )
inline

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

Definition at line 146 of file MonitorElement.h.

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

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

uint32_t flags
Definition: DQMNet.h:98
static const uint32_t DQM_PROP_RESET
Definition: DQMNet.h:56
DQMNet::CoreObject data_
void MonitorElement::setTitle ( const std::string &  title)

set (ie. change) histogram/profile title

Definition at line 983 of file MonitorElement.cc.

References accessRootObject(), and update().

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

984 {
985  update();
986  accessRootObject(__PRETTY_FUNCTION__, 1)
987  ->SetTitle(title.c_str());
988 }
TH1 * accessRootObject(const char *func, int reqdim) const
void update(void)
Mark the object updated.
void MonitorElement::ShiftFillLast ( double  y,
double  ye = 0.,
int32_t  xscale = 1 
)

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

Definition at line 339 of file MonitorElement.cc.

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

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

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

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

Definition at line 1015 of file MonitorElement.cc.

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().

1016 {
1017  update();
1018 
1019  // Create the reference object the first time this is called.
1020  // On subsequent calls accumulate the current value to the
1021  // reference, and then reset the current value. This way the
1022  // future contents will have the reference "subtracted".
1023  if (kind() == DQM_KIND_TH1F)
1024  {
1025  TH1F *orig = static_cast<TH1F *>(object_);
1026  TH1F *r = static_cast<TH1F *>(refvalue_);
1027  if (! r)
1028  {
1029  refvalue_ = r = (TH1F*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1030  r->SetDirectory(0);
1031  r->Reset();
1032  }
1033 
1034  r->Add(orig);
1035  orig->Reset();
1036  }
1037  else if (kind() == DQM_KIND_TH1S)
1038  {
1039  TH1S *orig = static_cast<TH1S *>(object_);
1040  TH1S *r = static_cast<TH1S *>(refvalue_);
1041  if (! r)
1042  {
1043  refvalue_ = r = (TH1S*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1044  r->SetDirectory(0);
1045  r->Reset();
1046  }
1047 
1048  r->Add(orig);
1049  orig->Reset();
1050  }
1051  else if (kind() == DQM_KIND_TH1D)
1052  {
1053  TH1D *orig = static_cast<TH1D *>(object_);
1054  TH1D *r = static_cast<TH1D *>(refvalue_);
1055  if (! r)
1056  {
1057  refvalue_ = r = (TH1D*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1058  r->SetDirectory(0);
1059  r->Reset();
1060  }
1061 
1062  r->Add(orig);
1063  orig->Reset();
1064  }
1065  else if (kind() == DQM_KIND_TH2F)
1066  {
1067  TH2F *orig = static_cast<TH2F *>(object_);
1068  TH2F *r = static_cast<TH2F *>(refvalue_);
1069  if (! r)
1070  {
1071  refvalue_ = r = (TH2F*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1072  r->SetDirectory(0);
1073  r->Reset();
1074  }
1075 
1076  r->Add(orig);
1077  orig->Reset();
1078  }
1079  else if (kind() == DQM_KIND_TH2S)
1080  {
1081  TH2S *orig = static_cast<TH2S *>(object_);
1082  TH2S *r = static_cast<TH2S *>(refvalue_);
1083  if (! r)
1084  {
1085  refvalue_ = r = (TH2S*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1086  r->SetDirectory(0);
1087  r->Reset();
1088  }
1089 
1090  r->Add(orig);
1091  orig->Reset();
1092  }
1093  else if (kind() == DQM_KIND_TH2D)
1094  {
1095  TH2D *orig = static_cast<TH2D *>(object_);
1096  TH2D *r = static_cast<TH2D *>(refvalue_);
1097  if (! r)
1098  {
1099  refvalue_ = r = (TH2D*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1100  r->SetDirectory(0);
1101  r->Reset();
1102  }
1103 
1104  r->Add(orig);
1105  orig->Reset();
1106  }
1107  else if (kind() == DQM_KIND_TH3F)
1108  {
1109  TH3F *orig = static_cast<TH3F *>(object_);
1110  TH3F *r = static_cast<TH3F *>(refvalue_);
1111  if (! r)
1112  {
1113  refvalue_ = r = (TH3F*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1114  r->SetDirectory(0);
1115  r->Reset();
1116  }
1117 
1118  r->Add(orig);
1119  orig->Reset();
1120  }
1121  else if (kind() == DQM_KIND_TPROFILE)
1122  {
1123  TProfile *orig = static_cast<TProfile *>(object_);
1124  TProfile *r = static_cast<TProfile *>(refvalue_);
1125  if (! r)
1126  {
1127  refvalue_ = r = (TProfile*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1128  r->SetDirectory(0);
1129  r->Reset();
1130  }
1131 
1132  addProfiles(r, orig, r, 1, 1);
1133  orig->Reset();
1134  }
1135  else if (kind() == DQM_KIND_TPROFILE2D)
1136  {
1137  TProfile2D *orig = static_cast<TProfile2D *>(object_);
1138  TProfile2D *r = static_cast<TProfile2D *>(refvalue_);
1139  if (! r)
1140  {
1141  refvalue_ = r = (TProfile2D*)orig->Clone((std::string(orig->GetName()) + "_ref").c_str());
1142  r->SetDirectory(0);
1143  r->Reset();
1144  }
1145 
1146  addProfiles(r, orig, r, 1, 1);
1147  orig->Reset();
1148  }
1149  else
1150  incompatible(__PRETTY_FUNCTION__);
1151 }
void incompatible(const char *func) const
void update(void)
Mark the object updated.
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
Kind kind(void) const
Get the type of the monitor element.
const uint32_t MonitorElement::streamId ( void  ) const
inline

Definition at line 393 of file MonitorElement.h.

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

Referenced by MonitorElement().

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

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

Definition at line 534 of file MonitorElement.cc.

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

535 {
536  char buf[32];
538  size_t len = sprintf(buf, "t=%" PRIu32, data_.tag);
539 
540  result.reserve(6 + 2*data_.objname.size() + len);
541  result += '<'; result += data_.objname; result += '>';
542  result += buf;
543  result += '<'; result += '/'; result += data_.objname; result += '>';
544  return result;
545 }
uint32_t tag
Definition: DQMNet.h:99
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:106
DQMNet::CoreObject data_
std::string MonitorElement::tagString ( void  ) const

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

Definition at line 521 of file MonitorElement.cc.

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

522 {
524  std::string val(valueString());
525  result.reserve(6 + 2*data_.objname.size() + val.size());
526  result += '<'; result += data_.objname; result += '>';
527  result += val;
528  result += '<'; result += '/'; result += data_.objname; result += '>';
529  return result;
530 }
tuple result
Definition: query.py:137
std::string objname
Definition: DQMNet.h:106
std::string valueString(void) const
DQMNet::CoreObject data_
void MonitorElement::update ( void  )
inline

Mark the object updated.

Definition at line 141 of file MonitorElement.h.

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

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

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

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

Definition at line 1421 of file MonitorElement.cc.

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

Referenced by runQTests().

1422 {
1423  data_.flags &= ~DQMNet::DQM_PROP_REPORT_ALARM;
1424  for (size_t i = 0, e = data_.qreports.size(); i < e; ++i)
1425  switch (data_.qreports[i].code)
1426  {
1428  break;
1429  case dqm::qstatus::WARNING:
1431  break;
1432  case dqm::qstatus::ERROR:
1434  break;
1435  default:
1437  break;
1438  }
1439 }
static const uint32_t DQM_PROP_REPORT_WARN
Definition: DQMNet.h:47
int i
Definition: DBlmapReader.cc:9
QReports qreports
Definition: DQMNet.h:107
Definition: DQMNet.h:22
uint32_t flags
Definition: DQMNet.h:98
static const int WARNING
static const uint32_t DQM_PROP_REPORT_ERROR
Definition: DQMNet.h:46
static const uint32_t DQM_PROP_REPORT_OTHER
Definition: DQMNet.h:48
DQMNet::CoreObject data_
static const int STATUS_OK
static const int ERROR
std::string MonitorElement::valueString ( void  ) const

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

Definition at line 502 of file MonitorElement.cc.

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

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

503 {
505  if (kind() == DQM_KIND_INT)
506  packScalarData(result, "i=");
507  else if (kind() == DQM_KIND_REAL)
508  packScalarData(result, "f=");
509  else if (kind() == DQM_KIND_STRING)
510  packScalarData(result, "s=");
511  else
512  incompatible(__PRETTY_FUNCTION__);
513 
514  return result;
515 }
void incompatible(const char *func) const
void packScalarData(std::string &into, const char *prefix) const
convert scalar data into a string.
tuple result
Definition: query.py:137
Kind kind(void) const
Get the type of the monitor element.
bool MonitorElement::wasUpdated ( void  ) const
inline

true if ME was updated in last monitoring cycle

Definition at line 137 of file MonitorElement.h.

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

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

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

Friends And Related Function Documentation

friend class DQMService
friend

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