#include "DQMServices/Core/interface/MonitorElement.h"
#include "DQMServices/Core/interface/QTest.h"
#include "DQMServices/Core/src/DQMError.h"
#include "TClass.h"
#include "TMath.h"
#include "TList.h"
#include "THashList.h"
#include <iostream>
#include <cassert>
#include <cfloat>
#include <inttypes.h>
Go to the source code of this file.
|
static TH1 * | checkRootObject (const std::string &name, TObject *tobj, const char *func, int reqdim) |
|
#define __STDC_FORMAT_MACROS 1 |
#define DQM_ROOT_METHODS 1 |
static TH1* checkRootObject |
( |
const std::string & |
name, |
|
|
TObject * |
tobj, |
|
|
const char * |
func, |
|
|
int |
reqdim |
|
) |
| |
|
static |
Definition at line 16 of file MonitorElement.cc.
References h, and raiseDQMError().
Referenced by MonitorElement::accessRootObject(), MonitorElement::getRefTH1(), MonitorElement::getRefTH1D(), MonitorElement::getRefTH1F(), MonitorElement::getRefTH1S(), MonitorElement::getRefTH2D(), MonitorElement::getRefTH2F(), MonitorElement::getRefTH2S(), MonitorElement::getRefTH3F(), MonitorElement::getRefTProfile(), and MonitorElement::getRefTProfile2D().
19 raiseDQMError(
"MonitorElement",
"Method '%s' cannot be invoked on monitor" 20 " element '%s' because it is not a ROOT object.",
23 TH1 *
h =
static_cast<TH1 *
>(tobj);
24 int ndim = h->GetDimension();
25 if (reqdim < 0 || reqdim > ndim)
26 raiseDQMError(
"MonitorElement",
"Method '%s' cannot be invoked on monitor" 27 " element '%s' because it requires %d dimensions; this" 28 " object of type '%s' has %d dimensions",
29 func,
name.c_str(), reqdim,
typeid(*h).name(), ndim);
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void raiseDQMError(const char *context, const char *fmt,...)