CMS 3D CMS Logo

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

#include <DQMStore.h>

Public Types

enum  OpenRunDirs { KeepRunDirs, StripRunDirs }
 
enum  SaveReferenceTag { SaveWithoutReference, SaveWithReference, SaveWithReferenceForQTest }
 

Public Member Functions

MonitorElementbook1D (const char *name, const char *title, int nchX, double lowX, double highX)
 Book 1D histogram. More...
 
MonitorElementbook1D (const std::string &name, const std::string &title, int nchX, double lowX, double highX)
 Book 1D histogram. More...
 
MonitorElementbook1D (const char *name, const char *title, int nchX, float *xbinsize)
 Book 1D variable bin histogram. More...
 
MonitorElementbook1D (const std::string &name, const std::string &title, int nchX, float *xbinsize)
 Book 1D variable bin histogram. More...
 
MonitorElementbook1D (const char *name, TH1F *h)
 Book 1D histogram by cloning an existing histogram. More...
 
MonitorElementbook1D (const std::string &name, TH1F *h)
 Book 1D histogram by cloning an existing histogram. More...
 
MonitorElementbook1DD (const char *name, const char *title, int nchX, double lowX, double highX)
 Book 1S histogram. More...
 
MonitorElementbook1DD (const std::string &name, const std::string &title, int nchX, double lowX, double highX)
 Book 1S histogram. More...
 
MonitorElementbook1DD (const char *name, const char *title, int nchX, float *xbinsize)
 
MonitorElementbook1DD (const std::string &name, const std::string &title, int nchX, float *xbinsize)
 
MonitorElementbook1DD (const char *name, TH1D *h)
 Book 1D double histogram by cloning an existing histogram. More...
 
MonitorElementbook1DD (const std::string &name, TH1D *h)
 Book 1D double histogram by cloning an existing histogram. More...
 
MonitorElementbook1S (const char *name, const char *title, int nchX, double lowX, double highX)
 Book 1S histogram. More...
 
MonitorElementbook1S (const std::string &name, const std::string &title, int nchX, double lowX, double highX)
 Book 1S histogram. More...
 
MonitorElementbook1S (const char *name, const char *title, int nchX, float *xbinsize)
 
MonitorElementbook1S (const std::string &name, const std::string &title, int nchX, float *xbinsize)
 
MonitorElementbook1S (const char *name, TH1S *h)
 Book 1S histogram by cloning an existing histogram. More...
 
MonitorElementbook1S (const std::string &name, TH1S *h)
 Book 1S histogram by cloning an existing histogram. More...
 
MonitorElementbook2D (const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
 Book 2D histogram. More...
 
MonitorElementbook2D (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
 Book 2D histogram. More...
 
MonitorElementbook2D (const char *name, const char *title, int nchX, float *xbinsize, int nchY, float *ybinsize)
 Book 2D variable bin histogram. More...
 
MonitorElementbook2D (const std::string &name, const std::string &title, int nchX, float *xbinsize, int nchY, float *ybinsize)
 Book 2D variable bin histogram. More...
 
MonitorElementbook2D (const char *name, TH2F *h)
 Book 2D histogram by cloning an existing histogram. More...
 
MonitorElementbook2D (const std::string &name, TH2F *h)
 Book 2D histogram by cloning an existing histogram. More...
 
MonitorElementbook2DD (const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
 Book 2D double histogram. More...
 
MonitorElementbook2DD (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
 Book 2S histogram. More...
 
MonitorElementbook2DD (const char *name, const char *title, int nchX, float *xbinsize, int nchY, float *ybinsize)
 
MonitorElementbook2DD (const std::string &name, const std::string &title, int nchX, float *xbinsize, int nchY, float *ybinsize)
 
MonitorElementbook2DD (const char *name, TH2D *h)
 Book 2DS histogram by cloning an existing histogram. More...
 
MonitorElementbook2DD (const std::string &name, TH2D *h)
 Book 2DS histogram by cloning an existing histogram. More...
 
MonitorElementbook2S (const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
 Book 2S histogram. More...
 
MonitorElementbook2S (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
 Book 2S histogram. More...
 
MonitorElementbook2S (const char *name, const char *title, int nchX, float *xbinsize, int nchY, float *ybinsize)
 
MonitorElementbook2S (const std::string &name, const std::string &title, int nchX, float *xbinsize, int nchY, float *ybinsize)
 
MonitorElementbook2S (const char *name, TH2S *h)
 Book 2DS histogram by cloning an existing histogram. More...
 
MonitorElementbook2S (const std::string &name, TH2S *h)
 Book 2DS histogram by cloning an existing histogram. More...
 
MonitorElementbook3D (const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ)
 Book 3D histogram. More...
 
MonitorElementbook3D (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ)
 Book 3D histogram. More...
 
MonitorElementbook3D (const char *name, TH3F *h)
 Book 3D histogram by cloning an existing histogram. More...
 
MonitorElementbook3D (const std::string &name, TH3F *h)
 Book 3D histogram by cloning an existing histogram. More...
 
MonitorElementbookFloat (const char *name)
 Book float. More...
 
MonitorElementbookFloat (const std::string &name)
 Book float. More...
 
MonitorElementbookInt (const char *name)
 Book int. More...
 
MonitorElementbookInt (const std::string &name)
 Book int. More...
 
MonitorElementbookProfile (const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
 
MonitorElementbookProfile (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
 
MonitorElementbookProfile (const char *name, const char *title, int nchX, double lowX, double highX, double lowY, double highY, const char *option="s")
 
MonitorElementbookProfile (const std::string &name, const std::string &title, int nchX, double lowX, double highX, double lowY, double highY, const char *option="s")
 
MonitorElementbookProfile (const char *name, const char *title, int nchX, double *xbinsize, int nchY, double lowY, double highY, const char *option="s")
 
MonitorElementbookProfile (const std::string &name, const std::string &title, int nchX, double *xbinsize, int nchY, double lowY, double highY, const char *option="s")
 
MonitorElementbookProfile (const char *name, const char *title, int nchX, double *xbinsize, double lowY, double highY, const char *option="s")
 
MonitorElementbookProfile (const std::string &name, const std::string &title, int nchX, double *xbinsize, double lowY, double highY, const char *option="s")
 
MonitorElementbookProfile (const char *name, TProfile *h)
 Book TProfile by cloning an existing profile. More...
 
MonitorElementbookProfile (const std::string &name, TProfile *h)
 Book TProfile by cloning an existing profile. More...
 
MonitorElementbookProfile2D (const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
 
MonitorElementbookProfile2D (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
 
MonitorElementbookProfile2D (const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, const char *option="s")
 
MonitorElementbookProfile2D (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, const char *option="s")
 
MonitorElementbookProfile2D (const char *name, TProfile2D *h)
 Book TProfile2D by cloning an existing profile. More...
 
MonitorElementbookProfile2D (const std::string &name, TProfile2D *h)
 Book TProfile2D by cloning an existing profile. More...
 
MonitorElementbookString (const char *name, const char *value)
 Book string. More...
 
MonitorElementbookString (const std::string &name, const std::string &value)
 Book string. More...
 
void cd (void)
 go to top directory (ie. root) More...
 
void cd (const std::string &subdir)
 cd to subdirectory (if there) More...
 
bool containsAnyMonitorable (const std::string &path) const
 
QCriterioncreateQTest (const std::string &algoname, const std::string &qtname)
 
bool dirExists (const std::string &path) const
 true if directory exists More...
 
void disableSoftReset (MonitorElement *me)
 
 DQMStore (const edm::ParameterSet &pset, edm::ActivityRegistry &)
 
 DQMStore (const edm::ParameterSet &pset)
 
MonitorElementget (const std::string &path) const
 get ME from full pathname (e.g. "my/long/dir/my_histo") More...
 
std::vector< MonitorElement * > get (unsigned int tag) const
 get all MonitorElements tagged as <tag> More...
 
std::vector< MonitorElement * > getAllContents (const std::string &path) const
 
void getAllTags (std::vector< std::string > &into) const
 
std::vector< MonitorElement * > getContents (const std::string &path) const
 
std::vector< MonitorElement * > getContents (const std::string &path, unsigned int tag) const
 same as above for tagged MonitorElements More...
 
void getContents (std::vector< std::string > &into, bool showContents=true) const
 
std::vector< MonitorElement * > getMatchingContents (const std::string &pattern, lat::Regexp::Syntax syntaxType=lat::Regexp::Wildcard) const
 
std::vector< std::string > getMEs (void) const
 get list of (non-dir) MEs of current directory More...
 
QCriteriongetQCriterion (const std::string &qtname) const
 
int getStatus (const std::string &path="") const
 
std::vector< std::string > getSubdirs (void) const
 
void goUp (void)
 equivalent to "cd .." More...
 
bool load (const std::string &filename, OpenRunDirs stripdirs=StripRunDirs, bool fileMustExist=true)
 
bool open (const std::string &filename, bool overwrite=false, const std::string &path="", const std::string &prepend="", OpenRunDirs stripdirs=KeepRunDirs, bool fileMustExist=true)
 
const std::string & pwd (void) const
 
void removeContents (void)
 erase all monitoring elements in current directory (not including subfolders); More...
 
void removeContents (const std::string &dir)
 remove all monitoring elements from directory; More...
 
void removeElement (const std::string &name)
 
void removeElement (const std::string &dir, const std::string &name, bool warning=true)
 
void rmdir (const std::string &fullpath)
 
void runQTests (void)
 
void save (const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
 
void setCurrentFolder (const std::string &fullpath)
 
void setVerbose (unsigned level)
 
void showDirStructure (void) const
 
void softReset (MonitorElement *me)
 
void tag (MonitorElement *me, unsigned int myTag)
 
void tag (const std::string &path, unsigned int myTag)
 tag ME specified by full pathname (e.g. "my/long/dir/my_histo") More...
 
void tagAllContents (const std::string &path, unsigned int myTag)
 
void tagContents (const std::string &path, unsigned int myTag)
 tag all children of folder (does NOT include subfolders) More...
 
void useQTest (const std::string &dir, const std::string &qtname)
 
int useQTestByMatch (const std::string &pattern, const std::string &qtname)
 attach quality test <qc> to monitor elements matching <pattern>. More...
 
 ~DQMStore (void)
 

Private Types

typedef std::set< MonitorElementMEMap
 
typedef std::map< std::string,
QCriterion *(*)(const
std::string &)> 
QAMap
 
typedef std::map< std::string,
QCriterion * > 
QCMap
 
typedef std::pair< lat::Regexp
*, QCriterion * > 
QTestSpec
 
typedef std::list< QTestSpecQTestSpecs
 

Private Member Functions

MonitorElementbook (const std::string &dir, const std::string &name, const char *context)
 
template<class HISTO , class COLLATE >
MonitorElementbook (const std::string &dir, const std::string &name, const char *context, int kind, HISTO *h, COLLATE collate)
 
MonitorElementbook1D (const std::string &dir, const std::string &name, TH1F *h)
 Book 1D histogram based on TH1F. More...
 
MonitorElementbook1DD (const std::string &dir, const std::string &name, TH1D *h)
 Book 1D histogram based on TH1D. More...
 
MonitorElementbook1S (const std::string &dir, const std::string &name, TH1S *h)
 Book 1D histogram based on TH1S. More...
 
MonitorElementbook2D (const std::string &dir, const std::string &name, TH2F *h)
 Book 2D histogram based on TH2F. More...
 
MonitorElementbook2DD (const std::string &dir, const std::string &name, TH2D *h)
 Book 2D histogram based on TH2D. More...
 
MonitorElementbook2S (const std::string &dir, const std::string &name, TH2S *h)
 Book 2D histogram based on TH2S. More...
 
MonitorElementbook3D (const std::string &dir, const std::string &name, TH3F *h)
 Book 3D histogram based on TH3F. More...
 
MonitorElementbookFloat (const std::string &dir, const std::string &name)
 Book float. More...
 
MonitorElementbookInt (const std::string &dir, const std::string &name)
 Book int. More...
 
MonitorElementbookProfile (const std::string &dir, const std::string &name, TProfile *h)
 Book profile histogram based on TProfile. More...
 
MonitorElementbookProfile2D (const std::string &folder, const std::string &name, TProfile2D *h)
 Book 2D profile histogram based on TProfile2D. More...
 
MonitorElementbookString (const std::string &dir, const std::string &name, const std::string &value)
 Book string. More...
 
bool cdInto (const std::string &path) const
 
 DQMStore (const DQMStore &)
 
bool extract (TObject *obj, const std::string &dir, bool overwrite)
 
MonitorElementfindObject (const std::string &dir, const std::string &name) const
 
void forceReset (void)
 
MonitorElementinitialise (MonitorElement *me, const std::string &path)
 
void initializeFrom (const edm::ParameterSet &)
 
bool isCollateME (MonitorElement *me) const
 
void makeDirectory (const std::string &path)
 get folder corresponding to inpath wrt to root (create subdirs if necessary) More...
 
const DQMStoreoperator= (const DQMStore &)
 
unsigned int readDirectory (TFile *file, bool overwrite, const std::string &path, const std::string &prepend, const std::string &curdir, OpenRunDirs stripdirs)
 
bool readFile (const std::string &filename, bool overwrite=false, const std::string &path="", const std::string &prepend="", OpenRunDirs stripdirs=StripRunDirs, bool fileMustExist=true)
 
void reset (void)
 
void setAccumulate (MonitorElement *me, bool flag)
 

Static Private Member Functions

static bool checkBinningMatches (MonitorElement *me, TH1 *h)
 
static void collate1D (MonitorElement *me, TH1F *h)
 
static void collate1DD (MonitorElement *me, TH1D *h)
 
static void collate1S (MonitorElement *me, TH1S *h)
 
static void collate2D (MonitorElement *me, TH2F *h)
 
static void collate2DD (MonitorElement *me, TH2D *h)
 
static void collate2S (MonitorElement *me, TH2S *h)
 
static void collate3D (MonitorElement *me, TH3F *h)
 
static void collateProfile (MonitorElement *me, TProfile *h)
 
static void collateProfile2D (MonitorElement *me, TProfile2D *h)
 

Private Attributes

bool collateHistograms_
 
MEMap data_
 
std::set< std::string > dirs_
 
std::string pwd_
 
QAMap qalgos_
 
QCMap qtests_
 
QTestSpecs qtestspecs_
 
std::string readSelectedDirectory_
 
bool reset_
 
unsigned verbose_
 
unsigned verboseQT_
 

Friends

class DQMArchiver
 
class DQMNet
 
class DQMService
 
class DQMStoreExample
 
class edm::DQMHttpSource
 

Detailed Description

Definition at line 35 of file DQMStore.h.

Member Typedef Documentation

typedef std::set<MonitorElement> DQMStore::MEMap
private

Definition at line 412 of file DQMStore.h.

typedef std::map<std::string, QCriterion *(*)(const std::string &)> DQMStore::QAMap
private

Definition at line 414 of file DQMStore.h.

typedef std::map<std::string, QCriterion *> DQMStore::QCMap
private

Definition at line 413 of file DQMStore.h.

typedef std::pair<lat::Regexp *, QCriterion *> DQMStore::QTestSpec
private

Definition at line 410 of file DQMStore.h.

Definition at line 411 of file DQMStore.h.

Member Enumeration Documentation

Enumerator
KeepRunDirs 
StripRunDirs 

Definition at line 44 of file DQMStore.h.

Enumerator
SaveWithoutReference 
SaveWithReference 
SaveWithReferenceForQTest 

Definition at line 38 of file DQMStore.h.

Constructor & Destructor Documentation

DQMStore::DQMStore ( const edm::ParameterSet pset,
edm::ActivityRegistry ar 
)

Definition at line 118 of file DQMStore.cc.

References forceReset(), edm::ParameterSet::getUntrackedParameter(), initializeFrom(), and edm::ActivityRegistry::watchPostSourceRun().

119  : verbose_ (1),
120  verboseQT_ (1),
121  reset_ (false),
122  collateHistograms_ (false),
124  pwd_ ("")
125 {
126  initializeFrom(pset);
127  if(pset.getUntrackedParameter<bool>("forceResetOnBeginRun",false)) {
129  }
130 }
T getUntrackedParameter(std::string const &, T const &) const
bool reset_
Definition: DQMStore.h:418
void initializeFrom(const edm::ParameterSet &)
Definition: DQMStore.cc:154
void forceReset(void)
Definition: DQMStore.cc:1548
unsigned verboseQT_
Definition: DQMStore.h:417
void watchPostSourceRun(PostSourceRun::slot_type const &iSlot)
std::string pwd_
Definition: DQMStore.h:422
std::string readSelectedDirectory_
Definition: DQMStore.h:420
unsigned verbose_
Definition: DQMStore.h:416
bool collateHistograms_
Definition: DQMStore.h:419
DQMStore::DQMStore ( const edm::ParameterSet pset)

Definition at line 132 of file DQMStore.cc.

References initializeFrom().

133  : verbose_ (1),
134  verboseQT_ (1),
135  reset_ (false),
136  collateHistograms_ (false),
138  pwd_ ("")
139 {
140  initializeFrom(pset);
141 }
bool reset_
Definition: DQMStore.h:418
void initializeFrom(const edm::ParameterSet &)
Definition: DQMStore.cc:154
unsigned verboseQT_
Definition: DQMStore.h:417
std::string pwd_
Definition: DQMStore.h:422
std::string readSelectedDirectory_
Definition: DQMStore.h:420
unsigned verbose_
Definition: DQMStore.h:416
bool collateHistograms_
Definition: DQMStore.h:419
DQMStore::~DQMStore ( void  )

Definition at line 143 of file DQMStore.cc.

References i, qtests_, and qtestspecs_.

144 {
145  for (QCMap::iterator i = qtests_.begin(), e = qtests_.end(); i != e; ++i)
146  delete i->second;
147 
148  for (QTestSpecs::iterator i = qtestspecs_.begin(), e = qtestspecs_.end(); i != e; ++i)
149  delete i->first;
150 
151 }
int i
Definition: DBlmapReader.cc:9
QCMap qtests_
Definition: DQMStore.h:426
QTestSpecs qtestspecs_
Definition: DQMStore.h:428
DQMStore::DQMStore ( const DQMStore )
private

Member Function Documentation

MonitorElement * DQMStore::book ( const std::string &  dir,
const std::string &  name,
const char *  context 
)
private

Definition at line 371 of file DQMStore.cc.

References gather_cfg::cout, data_, dirs_, findObject(), mergePath(), mergeVDriftHistosByStation::name, path(), and verbose_.

Referenced by book1D(), book1DD(), book1S(), book2D(), book2DD(), book2S(), book3D(), bookFloat(), bookInt(), bookProfile(), bookProfile2D(), and bookString().

374 {
375  assert(name.find('/') == std::string::npos);
376 
377  // Check if the request monitor element already exists.
378  if (MonitorElement *me = findObject(dir, name))
379  {
380  if (verbose_ > 1)
381  {
382  std::string path;
383  mergePath(path, dir, name);
384 
385  std::cout << "DQMStore: "
386  << context << ": monitor element '"
387  << path << "' already exists, resetting" << std::endl;
388  }
389  me->Reset();
390  return me;
391  }
392  else
393  {
394  // Create it and return for initialisation.
395  assert(dirs_.count(dir));
396  MonitorElement me(&*dirs_.find(dir), name);
397  return &const_cast<MonitorElement &>(*data_.insert(me).first);
398  }
399 }
static void mergePath(std::string &path, const std::string &dir, const std::string &name)
Definition: DQMStore.cc:98
int path() const
Definition: HLTadd.h:3
MonitorElement * findObject(const std::string &dir, const std::string &name) const
Definition: DQMStore.cc:1395
unsigned verbose_
Definition: DQMStore.h:416
MEMap data_
Definition: DQMStore.h:423
tuple cout
Definition: gather_cfg.py:41
dbl *** dir
Definition: mlp_gen.cc:35
std::set< std::string > dirs_
Definition: DQMStore.h:424
template<class HISTO , class COLLATE >
MonitorElement * DQMStore::book ( const std::string &  dir,
const std::string &  name,
const char *  context,
int  kind,
HISTO *  h,
COLLATE  collate 
)
private

Definition at line 304 of file DQMStore.cc.

References collateHistograms_, gather_cfg::cout, data_, dir, dirs_, DQMNet::DQM_PROP_HAS_REFERENCE, findObject(), h, initialise(), mergePath(), mergeVDriftHistosByStation::name, path(), qtestspecs_, MonitorElement::Reset(), s_referenceDirName, and verbose_.

307 {
308  assert(name.find('/') == std::string::npos);
309  std::string path;
310  mergePath(path, dir, name);
311 
312  // Put us in charge of h.
313  h->SetDirectory(0);
314 
315  // Check if the request monitor element already exists.
317  if (me)
318  {
319  if (collateHistograms_)
320  {
321  collate(me, h);
322  delete h;
323  return me;
324  }
325  else
326  {
327  if (verbose_ > 1)
328  std::cout << "DQMStore: "
329  << context << ": monitor element '"
330  << path << "' already exists, collating" << std::endl;
331  me->Reset();
332  collate(me, h);
333  delete h;
334  return me;
335  }
336  }
337  else
338  {
339  // Create and initialise core object.
340  assert(dirs_.count(dir));
341  MonitorElement proto(&*dirs_.find(dir), name);
342  me = const_cast<MonitorElement &>(*data_.insert(proto).first)
344 
345  // Initialise quality test information.
346  QTestSpecs::iterator qi = qtestspecs_.begin();
347  QTestSpecs::iterator qe = qtestspecs_.end();
348  for ( ; qi != qe; ++qi)
349  if (qi->first->match(path))
350  me->addQReport(qi->second);
351 
352  // Assign reference if we have one.
353  std::string refdir;
354  refdir.reserve(s_referenceDirName.size() + dir.size() + 2);
355  refdir += s_referenceDirName;
356  refdir += '/';
357  refdir += dir;
358 
359  if (MonitorElement *refme = findObject(refdir, name))
360  {
361  me->data_.flags |= DQMNet::DQM_PROP_HAS_REFERENCE;
362  me->reference_ = refme->object_;
363  }
364 
365  // Return the monitor element.
366  return me;
367  }
368 }
static void mergePath(std::string &path, const std::string &dir, const std::string &name)
Definition: DQMStore.cc:98
static std::string s_referenceDirName
Definition: DQMStore.cc:46
int path() const
Definition: HLTadd.h:3
static const uint32_t DQM_PROP_HAS_REFERENCE
Definition: DQMNet.h:53
QTestSpecs qtestspecs_
Definition: DQMStore.h:428
MonitorElement * findObject(const std::string &dir, const std::string &name) const
Definition: DQMStore.cc:1395
MonitorElement * initialise(MonitorElement *me, const std::string &path)
unsigned verbose_
Definition: DQMStore.h:416
MEMap data_
Definition: DQMStore.h:423
tuple cout
Definition: gather_cfg.py:41
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
std::set< std::string > dirs_
Definition: DQMStore.h:424
bool collateHistograms_
Definition: DQMStore.h:419
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * DQMStore::book1D ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX 
)

Book 1D histogram.

Definition at line 514 of file DQMStore.cc.

References pwd_.

Referenced by SiStripGainFromData::algoBeginJob(), TestSuite::analyze(), BeamMonitor::analyze(), XmasToDQMSource::analyze(), FourVectorHLT::analyze(), DQMHOAlCaRecoStream::beginJob(), RPCMonitorLinkSynchro::beginJob(), RPCMonitorRaw::beginJob(), PFTester::beginJob(), L1Scalers::beginJob(), MonitorLTC::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), DQMSourceExample::beginJob(), L1TGCTClient::beginJob(), HLTAlCaMonEcalPhiSym::beginJob(), SiStripMonitorFilter::beginJob(), TrackAnalyzer::beginJob(), DQMHcalDiJetsAlCaReco::beginJob(), EgammaBasicClusters::beginJob(), SiStripMonitorHLT::beginJob(), TkAlCaRecoMonitor::beginJob(), DQMSourceEleCalib::beginJob(), HLTMonHcalIsoTrack::beginJob(), L1TdeECALClient::beginJob(), L1TDTTFClient::beginJob(), BxTiming::beginJob(), DQMFEDIntegrityClient::beginJob(), EgammaSuperClusters::beginJob(), HLTMonBitSummary::beginJob(), HLTMuonDQMSource::beginJob(), DiMuonHistograms::beginJob(), BeamConditionsMonitor::beginJob(), L1TdeGCT::beginJob(), QcdHighPtDQM::beginJob(), HcalSimHitStudy::beginJob(), ZdcSimHitStudy::beginJob(), L1TDEMON::beginJob(), AlcaBeamMonitor::beginJob(), TrackingMonitor::beginJob(), HLTMonPhotonClient::beginJob(), HLTMonPhotonSource::beginJob(), MuonEnergyDepositAnalyzer::beginJob(), MuonKinVsEtaAnalyzer::beginJob(), MuonRecoAnalyzer::beginJob(), SegmentTrackAnalyzer::beginJob(), BasicHepMCValidation::beginJob(), DrellYanValidation::beginJob(), WValidation::beginJob(), BeamMonitor::beginJob(), TrackBuildingAnalyzer::beginJob(), PFJetAnalyzer::beginJob(), MuonSeedsAnalyzer::beginJob(), TrackSplittingMonitor::beginJob(), HTMHTAnalyzer::beginJob(), HaloTrigger::beginJob(), BasicGenParticleValidation::beginJob(), GlobalTest::beginJob(), MBUEandQCDValidation::beginJob(), ConverterTester::beginJob(), JetPtAnalyzer::beginJob(), L1TDTTF::beginJob(), DQMClientExample::beginJob(), TrackEfficiencyClient::beginJob(), TrackEfficiencyMonitor::beginJob(), L1TDTTPG::beginJob(), JetAnalyzer::beginJob(), DuplicationChecker::beginJob(), GlobalMuonMatchAnalyzer::beginJob(), MuCorrMETAnalyzer::beginJob(), TcMETAnalyzer::beginJob(), HLTAlCaMonPi0::beginJob(), DQMSourcePi0::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), L1TGT::beginJob(), DQMHcalPhiSymHLT::beginJob(), TopDiLeptonDQM::beginJob(), SiStripFEDCheckPlugin::beginJob(), L1TLTC::beginJob(), L1TCSCTPG::beginJob(), MuonIdDQM::beginJob(), FourVectorHLT::beginJob(), HLTMonSimpleBTag::beginJob(), HLTMonElectron::beginJob(), HLTMonElectronConsumer::beginJob(), L1TFED::beginJob(), TkConvValidator::beginJob(), HLTMon::beginJob(), CaloMETAnalyzer::beginJob(), TopHLTDiMuonDQM::beginJob(), L1TRPCTF::beginJob(), PhotonValidator::beginJob(), MuonTrackResidualAnalyzer::beginJob(), PFMETAnalyzer::beginJob(), TauValidation::beginJob(), MuonTrackAnalyzer::beginJob(), L1TCSCTF::beginJob(), ValHcalIsoTrackHLT::beginJob(), MuonIdVal::beginJob(), METAnalyzer::beginJob(), DQMHcalIsoTrackHLT::beginJob(), SusyDQM< Mu, Ele, Jet, Met >::beginJob(), L1TRPCTPG::beginJob(), EmDQMReco::beginJob(), L1TdeCSCTF::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), Vx3DHLTAnalyzer::beginJob(), MuonAlignment::beginJob(), RPCTTUMonitor::beginJob(), HLTScalers::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), L1TECALTPG::beginJob(), L1TRCT::beginJob(), TopValidation::beginJob(), PiZeroAnalyzer::beginJob(), CastorMonitorModule::beginJob(), TrigResRateMon::beginJob(), EgHLTOfflineSource::beginJob(), L1TdeRCT::beginJob(), PhotonAnalyzer::beginJob(), L1TGCT::beginJob(), RPCChamberQuality::beginRun(), RPCNoisyStripTest::beginRun(), HcalCoarsePedestalClient::beginRun(), RPCMon_SS_Dbx_Global::beginRun(), HcalRecHitClient::beginRun(), HcalSummaryClient::beginRun(), RPCBxTest::beginRun(), RPCOccupancyTest::beginRun(), CaloTowerAnalyzer::beginRun(), RPCDcsInfo::beginRun(), RPCRecHitProbability::beginRun(), RPCMonitorDigi::beginRun(), METTester::beginRun(), DQMDcsInfo::beginRun(), AlcaBeamMonitor::beginRun(), HLTMonBitSummary::beginRun(), RPCMultiplicityTest::beginRun(), RPCClusterSizeTest::beginRun(), DQMProvInfo::beginRun(), RPCEfficiencyPerRingLayer::beginRun(), RPCEfficiencyShiftHisto::beginRun(), MuonAlignmentSummary::beginRun(), SiPixelTrackResidualSource::beginRun(), SiStripMonitorRawData::beginRun(), HLTJetMETDQMSource::beginRun(), ZDCMonitorModule::beginRun(), JetMETHLTOfflineSource::beginRun(), TriggerValidator::beginRun(), BTagHLTOfflineSource::beginRun(), HLTJetMETValidation::beginRun(), FourVectorHLTOnline::beginRun(), V0Validator::beginRun(), TrigResRateMon::beginRun(), FourVectorHLTriggerOffline::beginRun(), MuonTrackValidator::beginRun(), FourVectorHLTOffline::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), RPCEfficiencySecond::beginRun(), SiPixelHitEfficiencyModule::book(), SiPixelTrackResidualModule::book(), HLTMonBTagIPSource::book(), HLTMonBTagMuSource::book(), HLTMonBTagClient::book(), TopSingleLepton::MonitorEnsemble::book(), TopDiLeptonOffline::MonitorEnsemble::book(), MEtoMEComparitor::book(), HistoProviderDQM::book1D(), QcdUeDQM::book1D(), book1D(), HLTMuonMatchAndPlot::book1D(), QcdLowPtDQM::book1D(), HcalSubdetDigiMonitor::book1D(), EcalSelectiveReadoutValidation::book1D(), PhotonOfflineClient::book2DHistoVector(), PhotonAnalyzer::book2DHistoVector(), PhotonOfflineClient::book3DHistoVector(), PhotonAnalyzer::book3DHistoVector(), L1TGMT::book_(), DTLocalTriggerTask::bookBarrelHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), L1TGMTClient::bookClone1D(), L1TGMTClient::bookClone1DVB(), SiStripBaseCondObjDQM::bookCumulMEs(), RPCMonitorSync::bookDetUnitME(), RPCEfficiency::bookDetUnitSeg(), RPCEfficiencySecond::bookDetUnitSeg(), SiPixelActionExecutor::bookDeviations(), SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D(), RPCFEDIntegrity::bookFEDMe(), TrackerOfflineValidationSummary::bookHarvestingHists(), HLTMuonValidator::bookHist(), PhotonOfflineClient::bookHisto(), PhotonAnalyzer::bookHisto(), JPTJetAnalyzer::bookHistogram(), RPCValidHistograms::bookHistograms(), EwkElecTauHistManager::bookHistograms(), L1GtHwValidation::bookHistograms(), L1ExtraDQM::L1ExtraMonElement< CollectionType >::bookHistograms(), RecoMuonValidator::MuonME::bookHistograms(), EwkMuTauHistManager::bookHistograms(), HCALRecHitAnalyzer::BookHistos(), DTDCSByLumiTask::bookHistos(), PlotMakerL1::bookHistos(), DTNoiseTask::bookHistos(), DTLocalTriggerSynchTask::bookHistos(), PlotMakerReco::bookHistos(), DTLocalTriggerTask::bookHistos(), DTDataIntegrityTask::bookHistos(), DTtTrigDBValidation::bookHistos(), HiggsDQM::bookHistos(), DTSegmentAnalysisTask::bookHistos(), ECALRecHitAnalyzer::BookHistos(), MuonSimHitsValidAnalyzer::bookHistos_CSC(), MuonSimHitsValidAnalyzer::bookHistos_DT(), MuonSimHitsValidAnalyzer::bookHistos_RPC(), TrackAnalyzer::bookHistosForState(), SiStripMonitorTrack::bookLayerMEs(), SiStripMonitorTrack::bookME1D(), SiStripMonitorDigi::bookME1D(), SiStripMonitorCluster::bookME1D(), SiPixelDigiSource::bookMEs(), SiPixelRawDataErrorSource::bookMEs(), SiPixelClusterSource::bookMEs(), SiStripMonitorTrack::bookModMEs(), CSCMonitorModule::bookMonitorObject(), SiPixelInformationExtractor::bookNoisyPixels(), HLTOniaSource::bookOniaTriggerInvariantMassMEs(), HLTOniaSource::bookOniaTriggerMEs(), SiStripBaseCondObjDQM::bookProfileMEs(), RCTMonitor::BookRCT(), MTVHistoProducerAlgoForTracker::bookRecoHistos(), MTVHistoProducerAlgoForTracker::bookRecoHistosForStandaloneRunning(), recoBSVTagInfoValidationAnalyzer::bookRecoToSim(), RPCMonitorDigi::bookRegionME(), RPCMonitorDigi::bookRollME(), MTVHistoProducerAlgoForTracker::bookSimHistos(), recoBSVTagInfoValidationAnalyzer::bookSimToReco(), SiStripBaseCondObjDQM::bookSummaryCumulMEs(), BeamMonitorBx::BookTrendHistos(), RPCMonitorDigi::bookWheelDiskME(), CaloJetTester::CaloJetTester(), CaloTowersValidation::CaloTowersValidation(), HTrackVariables::computeEfficiency(), HcalTrigPrimMonitor::create_et_histogram(), PFClient::createEfficiencyPlots(), MonitorTrackResiduals::createMEs(), SiStripMonitorPedestals::createMEs(), SiStripMonitorCluster::createMEs(), SiStripMonitorMuonHLT::createMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createModuleMEs(), PFClient::createResolutionPlots(), CSCALCTDigiValidation::CSCALCTDigiValidation(), CSCCLCTDigiValidation::CSCCLCTDigiValidation(), CSCComparatorDigiValidation::CSCComparatorDigiValidation(), CSCRecHit2DValidation::CSCRecHit2DValidation(), CSCSegmentValidation::CSCSegmentValidation(), CSCStripDigiValidation::CSCStripDigiValidation(), CSCWireDigiValidation::CSCWireDigiValidation(), Digi2Raw2Digi::Digi2Raw2Digi(), TrackAnalyzer::doTrackerSpecificInitialization(), dqmRegisterHistogram(), DQMHcalIsoTrackPostProcessor::endJob(), DQMHistEffProducer::endJob(), BTagValidator::endJob(), HarvestingAnalyzer::endJob(), HLTScalersClient::endLuminosityBlock(), EmDQMPostProcessor::endRun(), HltSusyExoPostProcessor::endRun(), DQMDcsInfoClient::endRun(), AlcaBeamMonitorClient::endRun(), GlobalHitsProdHistStripper::endRun(), FourVectorHLTClient::endRun(), extract(), SiStripQualityDQM::fillGrandSummaryMEs(), SiPixelActionExecutor::fillSummary(), BeamMonitor::FitAndFill(), FourVectorHLTOffline::FourVectorHLTOffline(), FourVectorHLTOnline::FourVectorHLTOnline(), FourVectorHLTriggerOffline::FourVectorHLTriggerOffline(), EmDQMReco::FourVectorMonitorElements::FourVectorMonitorElements(), EDMtoMEConverter::getData(), SiPixelActionExecutor::getFEDSummaryME(), SiPixelActionExecutor::getGrandSummaryME(), SiStripMonitorQuality::getQualityME(), SiStripSummaryCreator::getSummaryME(), SiPixelActionExecutor::getSummaryME(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisHistogrammer::GlobalDigisHistogrammer(), GlobalHitsAnalyzer::GlobalHitsAnalyzer(), GlobalHitsHistogrammer::GlobalHitsHistogrammer(), GlobalHitsTester::GlobalHitsTester(), GlobalRecHitsAnalyzer::GlobalRecHitsAnalyzer(), GlobalRecHitsHistogrammer::GlobalRecHitsHistogrammer(), HcalRecHitsValidation::HcalRecHitsValidation(), HcalSimHitsValidation::HcalSimHitsValidation(), SiPixelMuonHLT::Histo_init(), CommissioningHistograms::histogram(), HLTHiggsBits::HLTHiggsBits(), HLTScalersClient::HLTScalersClient(), HLTTauDQMCaloPlotter::HLTTauDQMCaloPlotter(), HLTTauDQML1Plotter::HLTTauDQML1Plotter(), HLTTauDQMLitePathPlotter::HLTTauDQMLitePathPlotter(), HLTTauDQMPathPlotter::HLTTauDQMPathPlotter(), HLTTauDQMTrkPlotter::HLTTauDQMTrkPlotter(), HResolution::HResolution(), HResolution1DRecHit::HResolution1DRecHit(), HTrackVariables::HTrackVariables(), EwkMuDQM::init_histograms(), EwkElecDQM::init_histograms(), EwkMuLumiMonitorDQM::init_histograms(), MuonIsolationDQM::InitHistos(), MuIsoValidation::InitHistos(), HcalTimingMonitorModule::initialize(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), MuonAnalyzerSBSM::InitializePlots(), LaserDQM::initMonitors(), JPTJetTester::JPTJetTester(), L1ScalersClient::L1ScalersClient(), L1TScalersSCAL::L1TScalersSCAL(), EgHLTOfflineClient::makeEffMonElem2Leg(), TopElectronHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndFail(), EgHLTOfflineClient::makeEffMonElemFromPassAndFailAndTagTag(), egHLT::MonElemManagerHist< T >::MonElemManagerHist(), MonitorElementsDb::MonitorElementsDb(), MuonDTDigis::MuonDTDigis(), HeavyFlavorValidation::myBook1D(), CastorDigiMonitor::perChanHists(), CastorLEDMonitor::perChanHists(), CastorRecHitPerChan::perChanHists(), PerformanceAnalyzer::PerformanceAnalyzer(), PFJetTester::PFJetTester(), recoBSVTagInfoValidationAnalyzer::recoBSVTagInfoValidationAnalyzer(), RecoMuonValidator::RecoMuonValidator(), BTagHLTOfflineClient::runClient_(), JetMETDQMOfflineClient::runClient_(), JetMETHLTOfflineClient::runClient_(), ConversionPostprocessing::runPostprocessing(), PhotonPostprocessing::runPostprocessing(), CastorRecHitMonitor::setup(), CastorHIMonitor::setup(), CastorDataIntegrityMonitor::setup(), HcalNZSMonitor::setup(), CastorPSMonitor::setup(), HcalTrigPrimMonitor::setup(), CastorDigiMonitor::setup(), HcalNoiseMonitor::setup(), HcalZDCMonitor::setup(), HcalCaloTowerMonitor::setup(), HcalRecHitMonitor::setup(), CastorTowerJetMonitor::setup(), HcalBeamMonitor::setup(), HcalDetDiagLEDMonitor::setup(), HcalDataIntegrityTask::setup(), HcalHotCellMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalDeadCellMonitor::setup(), CastorLEDMonitor::setup(), HcalEEUSMonitor::setup(), EcalEndcapMonitorModule::setup(), EEClusterTask::setup(), EBBeamCaloTask::setup(), EBClusterTask::setup(), EECosmicTask::setup(), EEBeamCaloTask::setup(), EBCosmicTask::setup(), EBOccupancyTask::setup(), EBBeamHodoTask::setup(), EcalBarrelMonitorModule::setup(), EEBeamHodoTask::setup(), EBTimingTask::setup(), EBSelectiveReadoutTask::setup(), HcalRawDataMonitor::setup(), EBStatusFlagsTask::setup(), EEStatusFlagsTask::setup(), EBSummaryClient::setup(), EESummaryClient::setup(), EERawDataTask::setup(), EBRawDataTask::setup(), EBIntegrityTask::setup(), EEIntegrityTask::setup(), EEOccupancyTask::setup(), EETimingTask::setup(), EBHltTask::setup(), EEHltTask::setup(), EELedClient::setup(), EELaserClient::setup(), EBLaserClient::setup(), EBTimingClient::setup(), EBPedestalOnlineClient::setup(), EEPedestalOnlineClient::setup(), EEPedestalClient::setup(), EBTestPulseClient::setup(), EBPedestalClient::setup(), EETestPulseClient::setup(), HcalDigiMonitor::setup(), EETimingClient::setup(), HcalBaseDQMonitor::setup(), HcalMonitorModule::setup(), EESelectiveReadoutTask::setup(), EETriggerTowerTask::setup(), EBTriggerTowerTask::setup(), HcalDetDiagTimingMonitor::setup(), HcalBaseMonitor::setupDepthHists1D(), HLXMonitor::SetupHists(), FourVectorHLTOnline::setupHltMatrix(), TrigResRateMon::setupHltMatrix(), FourVectorHLTOffline::setupHltMatrix(), TopElectronHLTOfflineSource::EleMEs::setupMESet(), TrigResRateMon::setupStreamMatrix(), HcalDigiMonitor::setupSubdetHists(), and TrigResRateMon::TrigResRateMon().

516 {
517  return book1D(pwd_, name, new TH1F(name, title, nchX, lowX, highX));
518 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1D ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX 
)

Book 1D histogram.

Definition at line 522 of file DQMStore.cc.

References book1D(), and pwd_.

524 {
525  return book1D(pwd_, name, new TH1F(name.c_str(), title.c_str(), nchX, lowX, highX));
526 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1D ( const char *  name,
const char *  title,
int  nchX,
float *  xbinsize 
)

Book 1D variable bin histogram.

Definition at line 562 of file DQMStore.cc.

References book1D(), and pwd_.

564 {
565  return book1D(pwd_, name, new TH1F(name, title, nchX, xbinsize));
566 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1D ( const std::string &  name,
const std::string &  title,
int  nchX,
float *  xbinsize 
)

Book 1D variable bin histogram.

Definition at line 570 of file DQMStore.cc.

References book1D(), and pwd_.

572 {
573  return book1D(pwd_, name, new TH1F(name.c_str(), title.c_str(), nchX, xbinsize));
574 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1D ( const char *  name,
TH1F *  h 
)

Book 1D histogram by cloning an existing histogram.

Definition at line 578 of file DQMStore.cc.

References book1D(), and pwd_.

579 {
580  return book1D(pwd_, name, static_cast<TH1F *>(source->Clone(name)));
581 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1D ( const std::string &  name,
TH1F *  h 
)

Book 1D histogram by cloning an existing histogram.

Definition at line 585 of file DQMStore.cc.

References book1D(), and pwd_.

586 {
587  return book1D(pwd_, name, static_cast<TH1F *>(source->Clone(name.c_str())));
588 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1D ( const std::string &  dir,
const std::string &  name,
TH1F *  h 
)
private

Book 1D histogram based on TH1F.

Definition at line 493 of file DQMStore.cc.

References book(), collate1D(), and MonitorElement::DQM_KIND_TH1F.

494 {
495  return book(dir, name, "book1D", MonitorElement::DQM_KIND_TH1F, h, collate1D);
496 }
static void collate1D(MonitorElement *me, TH1F *h)
Definition: DQMStore.cc:1078
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::book1DD ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX 
)

Book 1S histogram.

Definition at line 546 of file DQMStore.cc.

References pwd_.

Referenced by MEtoMEComparitor::book(), book1DD(), extract(), EDMtoMEConverter::getData(), EBOccupancyTask::setup(), and EEOccupancyTask::setup().

548 {
549  return book1DD(pwd_, name, new TH1D(name, title, nchX, lowX, highX));
550 }
MonitorElement * book1DD(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:546
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1DD ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX 
)

Book 1S histogram.

Definition at line 554 of file DQMStore.cc.

References book1DD(), and pwd_.

556 {
557  return book1DD(pwd_, name, new TH1D(name.c_str(), title.c_str(), nchX, lowX, highX));
558 }
MonitorElement * book1DD(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:546
std::string pwd_
Definition: DQMStore.h:422
MonitorElement* DQMStore::book1DD ( const char *  name,
const char *  title,
int  nchX,
float *  xbinsize 
)
MonitorElement* DQMStore::book1DD ( const std::string &  name,
const std::string &  title,
int  nchX,
float *  xbinsize 
)
MonitorElement * DQMStore::book1DD ( const char *  name,
TH1D *  h 
)

Book 1D double histogram by cloning an existing histogram.

Definition at line 606 of file DQMStore.cc.

References book1DD(), and pwd_.

607 {
608  return book1DD(pwd_, name, static_cast<TH1D *>(source->Clone(name)));
609 }
MonitorElement * book1DD(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:546
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1DD ( const std::string &  name,
TH1D *  h 
)

Book 1D double histogram by cloning an existing histogram.

Definition at line 613 of file DQMStore.cc.

References book1DD(), and pwd_.

614 {
615  return book1DD(pwd_, name, static_cast<TH1D *>(source->Clone(name.c_str())));
616 }
MonitorElement * book1DD(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:546
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book1DD ( const std::string &  dir,
const std::string &  name,
TH1D *  h 
)
private

Book 1D histogram based on TH1D.

Definition at line 507 of file DQMStore.cc.

References book(), collate1DD(), and MonitorElement::DQM_KIND_TH1D.

508 {
509  return book(dir, name, "book1DD", MonitorElement::DQM_KIND_TH1D, h, collate1DD);
510 }
static void collate1DD(MonitorElement *me, TH1D *h)
Definition: DQMStore.cc:1092
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::book1S ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX 
)

Book 1S histogram.

Definition at line 530 of file DQMStore.cc.

References pwd_.

Referenced by DQMSourceExample::beginJob(), MEtoMEComparitor::book(), book1S(), dqmRegisterHistogram(), extract(), and EDMtoMEConverter::getData().

532 {
533  return book1S(pwd_, name, new TH1S(name, title, nchX, lowX, highX));
534 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book1S(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:530
MonitorElement * DQMStore::book1S ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX 
)

Book 1S histogram.

Definition at line 538 of file DQMStore.cc.

References book1S(), and pwd_.

540 {
541  return book1S(pwd_, name, new TH1S(name.c_str(), title.c_str(), nchX, lowX, highX));
542 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book1S(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:530
MonitorElement* DQMStore::book1S ( const char *  name,
const char *  title,
int  nchX,
float *  xbinsize 
)
MonitorElement* DQMStore::book1S ( const std::string &  name,
const std::string &  title,
int  nchX,
float *  xbinsize 
)
MonitorElement * DQMStore::book1S ( const char *  name,
TH1S *  h 
)

Book 1S histogram by cloning an existing histogram.

Definition at line 592 of file DQMStore.cc.

References book1S(), and pwd_.

593 {
594  return book1S(pwd_, name, static_cast<TH1S *>(source->Clone(name)));
595 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book1S(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:530
MonitorElement * DQMStore::book1S ( const std::string &  name,
TH1S *  h 
)

Book 1S histogram by cloning an existing histogram.

Definition at line 599 of file DQMStore.cc.

References book1S(), and pwd_.

600 {
601  return book1S(pwd_, name, static_cast<TH1S *>(source->Clone(name.c_str())));
602 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book1S(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:530
MonitorElement * DQMStore::book1S ( const std::string &  dir,
const std::string &  name,
TH1S *  h 
)
private

Book 1D histogram based on TH1S.

Definition at line 500 of file DQMStore.cc.

References book(), collate1S(), and MonitorElement::DQM_KIND_TH1S.

501 {
502  return book(dir, name, "book1S", MonitorElement::DQM_KIND_TH1S, h, collate1S);
503 }
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
static void collate1S(MonitorElement *me, TH1S *h)
Definition: DQMStore.cc:1085
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::book2D ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY 
)

Book 2D histogram.

Definition at line 642 of file DQMStore.cc.

References pwd_.

Referenced by SiStripGainFromData::algoBeginJob(), HcalSummaryClient::analyze(), RPCMon_SS_Dbx_Global::analyze(), FourVectorHLT::analyze(), RPCMonitorSync::barrelOffsetHist(), RPCMonitorSync::barrelWidthHist(), RPCMonitorLinkSynchro::beginJob(), RPCMonitorRaw::beginJob(), L1Scalers::beginJob(), DQMSourceExample::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), EgammaBasicClusters::beginJob(), RPCDaqInfo::beginJob(), TkAlCaRecoMonitor::beginJob(), HLTMonHcalIsoTrack::beginJob(), EBDcsInfoTask::beginJob(), EBDaqInfoTask::beginJob(), DQMSourceEleCalib::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), L1TdeECALClient::beginJob(), L1TDTTFClient::beginJob(), L1TDTTPGClient::beginJob(), L1TEventInfoClient::beginJob(), L1TRPCTFClient::beginJob(), EEDaqInfoTask::beginJob(), HLTMonBitSummary::beginJob(), DQMFEDIntegrityClient::beginJob(), EEDataCertificationTask::beginJob(), HLTMuonDQMSource::beginJob(), EEDcsInfoTask::beginJob(), EgammaSuperClusters::beginJob(), L1TEMUEventInfoClient::beginJob(), EBDataCertificationTask::beginJob(), HLTEventInfoClient::beginJob(), L1TdeGCT::beginJob(), ZdcSimHitStudy::beginJob(), QcdHighPtDQM::beginJob(), HLTMonPhotonSource::beginJob(), L1TDEMON::beginJob(), DTDataIntegrityTest::beginJob(), TrackingMonitor::beginJob(), MuonRecoAnalyzer::beginJob(), DTBlockedROChannelsTest::beginJob(), BeamMonitor::beginJob(), SegmentTrackAnalyzer::beginJob(), PFJetAnalyzer::beginJob(), MuonSeedsAnalyzer::beginJob(), HaloTrigger::beginJob(), ConverterTester::beginJob(), L1TDTTF::beginJob(), JetPtAnalyzer::beginJob(), L1TDTTPG::beginJob(), GlobalMuonMatchAnalyzer::beginJob(), LaserAlignmentT0ProducerDQM::beginJob(), JetAnalyzer::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), EcalBarrelMonitorClient::beginJob(), HcalDataCertification::beginJob(), EcalEndcapMonitorClient::beginJob(), DQMHcalPhiSymHLT::beginJob(), L1TGT::beginJob(), TopDiLeptonDQM::beginJob(), HcalDCSInfo::beginJob(), L1TLTC::beginJob(), HLTMonSimpleBTag::beginJob(), HcalDAQInfo::beginJob(), FourVectorHLT::beginJob(), HLTMonElectron::beginJob(), HLTMon::beginJob(), TkConvValidator::beginJob(), TopHLTDiMuonDQM::beginJob(), PhotonValidator::beginJob(), MuonTrackResidualAnalyzer::beginJob(), L1TRPCTF::beginJob(), MuonTrackAnalyzer::beginJob(), L1TCSCTF::beginJob(), ValHcalIsoTrackHLT::beginJob(), MuonIdVal::beginJob(), DQMHcalIsoTrackHLT::beginJob(), SusyDQM< Mu, Ele, Jet, Met >::beginJob(), EmDQMReco::beginJob(), L1TdeCSCTF::beginJob(), L1TCompare::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), Vx3DHLTAnalyzer::beginJob(), MuonAlignment::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), L1TECALTPG::beginJob(), L1TRCT::beginJob(), CastorMonitorModule::beginJob(), L1TdeRCT::beginJob(), L1TGCT::beginJob(), RPCChamberQuality::beginRun(), RPCNoisyStripTest::beginRun(), HcalBeamClient::beginRun(), HcalCoarsePedestalClient::beginRun(), HcalDetDiagLEDClient::beginRun(), HcalDeadCellClient::beginRun(), HcalDetDiagNoiseMonitorClient::beginRun(), HcalDetDiagPedestalClient::beginRun(), HcalDetDiagTimingClient::beginRun(), HcalDigiClient::beginRun(), HcalHotCellClient::beginRun(), HcalNZSClient::beginRun(), HcalTrigPrimClient::beginRun(), HcalRecHitClient::beginRun(), HcalSummaryClient::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), HcalRawDataClient::beginRun(), RPCOccupancyTest::beginRun(), RPCEventSummary::beginRun(), CaloTowerAnalyzer::beginRun(), RPCRecHitProbability::beginRun(), DTOfflineSummaryClients::beginRun(), RPCDeadChannelTest::beginRun(), RPCMultiplicityTest::beginRun(), RPCClusterSizeTest::beginRun(), ZDCMonitorClient::beginRun(), DQMProvInfo::beginRun(), RPCEfficiencyShiftHisto::beginRun(), DTSummaryClients::beginRun(), MuonAlignmentSummary::beginRun(), SiPixelTrackResidualSource::beginRun(), HLTJetMETDQMSource::beginRun(), JetMETHLTOfflineSource::beginRun(), BTagHLTOfflineSource::beginRun(), SiPixelClusterSource::beginRun(), FourVectorHLTOnline::beginRun(), FourVectorHLTriggerOffline::beginRun(), MuonTrackValidator::beginRun(), FourVectorHLTOffline::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), RPCEfficiencySecond::beginRun(), HLTMonBTagIPSource::book(), HLTMonBTagMuSource::book(), HLTMonBTagClient::book(), TopSingleLepton::MonitorEnsemble::book(), TopDiLeptonOffline::MonitorEnsemble::book(), HistoProviderDQM::book2D(), QcdUeDQM::book2D(), HLTMuonMatchAndPlot::book2D(), QcdLowPtDQM::book2D(), book2D(), HcalSubdetDigiMonitor::book2D(), EcalSelectiveReadoutValidation::book2D(), JPTJetAnalyzer::book2DHistogram(), PhotonOfflineClient::book2DHistoVector(), PhotonAnalyzer::book2DHistoVector(), PhotonOfflineClient::book3DHistoVector(), PhotonAnalyzer::book3DHistoVector(), L1TGMT::book_(), DTTriggerEfficiencyTask::bookChamberHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), L1TGMTClient::bookClone2D(), SiPixelErrorsDigisToCalibDigis::bookDQMHistogram2D(), SiPixelOfflineCalibAnalysisBase::bookDQMHistogram2D(), SiPixelErrorsDigisToCalibDigis::bookDQMHistoPlaquetteSummary2D(), SiPixelOfflineCalibAnalysisBase::bookDQMHistoPlaquetteSummary2D(), SiPixelActionExecutor::bookEfficiency(), SiPixelDataQuality::bookGlobalQualityFlag(), RPCValidHistograms::bookHistograms(), RecoMuonValidator::MuonME::bookHistograms(), HCALRecHitAnalyzer::BookHistos(), DTNoiseTask::bookHistos(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerTask::bookHistos(), DTtTrigDBValidation::bookHistos(), DTSegmentAnalysisTask::bookHistos(), ECALRecHitAnalyzer::BookHistos(), MuonSimHitsValidAnalyzer::bookHistos_DT(), MuonSimHitsValidAnalyzer::bookHistos_RPC(), ecaldqm::bookME(), SiStripMonitorTrack::bookME2D(), SiPixelDigiSource::bookMEs(), CSCMonitorModule::bookMonitorObject(), SiPixelActionExecutor::bookOccupancyPlots(), HLTOniaSource::bookOniaTriggerMEs(), RCTMonitor::BookRCT(), MTVHistoProducerAlgoForTracker::bookRecoHistos(), RPCMonitorDigi::bookSectorRingME(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), BeamMonitorBx::BookTables(), SiPixelActionExecutor::bookTrackerMaps(), RPCMonitorDigi::bookWheelDiskME(), DTTriggerEfficiencyTask::bookWheelHistos(), CaloJetTester::CaloJetTester(), CaloTowersValidation::CaloTowersValidation(), HcalTrigPrimMonitor::create_errorflag(), HcalTrigPrimMonitor::create_fg_correlation(), HcalTrigPrimMonitor::create_map(), HcalTrigPrimMonitor::create_summary(), HcalTrigPrimMonitor::create_tp_correlation(), CastorLEDMonitor::createFEDmap(), QcdUeDQM::createHistos(), QcdLowPtDQM::createHistos(), SiStripMonitorPedestals::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripMonitorMuonHLT::createMEs(), SiStripMonitorDigi::createSubDetMEs(), SiStripMonitorCluster::createSubDetMEs(), CSCRecHit2DValidation::CSCRecHit2DValidation(), dqmRegisterHistogram(), RPCMonitorSync::endcapOffsetHist(), RPCMonitorSync::endcapWidthHist(), BTagValidator::endJob(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), DataCertificationJetMET::endRun(), PhotonDataCertification::endRun(), FourVectorHLTClient::endRun(), HLTMuonCertSummary::endRun(), HLTOverallSummary::endRun(), extract(), SiPixelActionExecutor::fillFEDErrorSummary(), SiStripCablingDQM::getActiveDetIds(), EDMtoMEConverter::getData(), EgHLTOfflineSummaryClient::getEgHLTSumHist_(), GlobalHitsTester::GlobalHitsTester(), HcalRecHitsValidation::HcalRecHitsValidation(), HcalTimingMonitorModule::HcalTimingMonitorModule(), SiPixelMuonHLT::Histo_init(), CommissioningHistograms::histogram(), HLTTauDQML1Plotter::HLTTauDQML1Plotter(), HResolution::HResolution(), HResolution1DRecHit::HResolution1DRecHit(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), JPTJetTester::JPTJetTester(), L1ScalersClient::L1ScalersClient(), L1TScalersSCAL::L1TScalersSCAL(), PlotCombiner::makePlot(), egHLT::MonElemManagerHist< T >::MonElemManagerHist(), MonitorElementsDb::MonitorElementsDb(), MuonDTDigis::MuonDTDigis(), HeavyFlavorValidation::myBook2D(), PFJetTester::PFJetTester(), RecoMuonValidator::RecoMuonValidator(), BTagHLTOfflineClient::runClient_(), JetMETHLTOfflineClient::runClient_(), CastorRecHitMonitor::setup(), CastorDataIntegrityMonitor::setup(), CastorPSMonitor::setup(), HcalNoiseMonitor::setup(), HcalCaloTowerMonitor::setup(), EtaPhiHists::setup(), HcalZDCMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalDetDiagLEDMonitor::setup(), CastorChannelQualityMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalDeadCellMonitor::setup(), HcalEEUSMonitor::setup(), EcalEndcapMonitorModule::setup(), EEClusterTask::setup(), EBBeamCaloTask::setup(), EEBeamCaloTask::setup(), EBClusterTask::setup(), EBOccupancyTask::setup(), EcalBarrelMonitorModule::setup(), EBBeamHodoTask::setup(), EEBeamHodoTask::setup(), EBTimingTask::setup(), EBSelectiveReadoutTask::setup(), HcalRawDataMonitor::setup(), EBStatusFlagsTask::setup(), EBSummaryClient::setup(), EESummaryClient::setup(), EEStatusFlagsTask::setup(), EBIntegrityTask::setup(), EEIntegrityTask::setup(), EETimingTask::setup(), EEOccupancyTask::setup(), EEBeamCaloClient::setup(), EELaserClient::setup(), EELedClient::setup(), EBBeamCaloClient::setup(), EBTimingClient::setup(), EBLaserClient::setup(), EBIntegrityClient::setup(), EBTestPulseClient::setup(), EBPedestalClient::setup(), EEPedestalClient::setup(), EEIntegrityClient::setup(), EBPedestalOnlineClient::setup(), EEPedestalOnlineClient::setup(), EETestPulseClient::setup(), HcalDigiMonitor::setup(), EETriggerTowerClient::setup(), EBTriggerTowerClient::setup(), EETimingClient::setup(), HcalBaseDQMonitor::setup(), EESelectiveReadoutTask::setup(), EBTriggerTowerTask::setup(), EETriggerTowerTask::setup(), HcalDetDiagTimingMonitor::setup(), HcalBaseMonitor::setupDepthHists2D(), HcalBaseMonitor::SetupEtaPhiHists(), HLXMonitor::SetupEventInfo(), HLXMonitor::SetupHists(), FourVectorHLTOnline::setupHltBxPlots(), TrigResRateMon::setupHltBxPlots(), FourVectorHLTOffline::setupHltBxPlots(), FourVectorHLTOnline::setupHltLsPlots(), TrigResRateMon::setupHltLsPlots(), FourVectorHLTOffline::setupHltLsPlots(), FourVectorHLTOnline::setupHltMatrix(), TrigResRateMon::setupHltMatrix(), FourVectorHLTOffline::setupHltMatrix(), and TrigResRateMon::setupStreamMatrix().

645 {
646  return book2D(pwd_, name, new TH2F(name, title,
647  nchX, lowX, highX,
648  nchY, lowY, highY));
649 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
MonitorElement * DQMStore::book2D ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY 
)

Book 2D histogram.

Definition at line 653 of file DQMStore.cc.

References book2D(), and pwd_.

656 {
657  return book2D(pwd_, name, new TH2F(name.c_str(), title.c_str(),
658  nchX, lowX, highX,
659  nchY, lowY, highY));
660 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
MonitorElement * DQMStore::book2D ( const char *  name,
const char *  title,
int  nchX,
float *  xbinsize,
int  nchY,
float *  ybinsize 
)

Book 2D variable bin histogram.

Definition at line 708 of file DQMStore.cc.

References book2D(), and pwd_.

710 {
711  return book2D(pwd_, name, new TH2F(name, title,
712  nchX, xbinsize, nchY, ybinsize));
713 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
MonitorElement * DQMStore::book2D ( const std::string &  name,
const std::string &  title,
int  nchX,
float *  xbinsize,
int  nchY,
float *  ybinsize 
)

Book 2D variable bin histogram.

Definition at line 717 of file DQMStore.cc.

References book2D(), and pwd_.

719 {
720  return book2D(pwd_, name, new TH2F(name.c_str(), title.c_str(),
721  nchX, xbinsize, nchY, ybinsize));
722 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
MonitorElement * DQMStore::book2D ( const char *  name,
TH2F *  h 
)

Book 2D histogram by cloning an existing histogram.

Definition at line 726 of file DQMStore.cc.

References book2D(), and pwd_.

727 {
728  return book2D(pwd_, name, static_cast<TH2F *>(source->Clone(name)));
729 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
MonitorElement * DQMStore::book2D ( const std::string &  name,
TH2F *  h 
)

Book 2D histogram by cloning an existing histogram.

Definition at line 733 of file DQMStore.cc.

References book2D(), and pwd_.

734 {
735  return book2D(pwd_, name, static_cast<TH2F *>(source->Clone(name.c_str())));
736 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
MonitorElement * DQMStore::book2D ( const std::string &  dir,
const std::string &  name,
TH2F *  h 
)
private

Book 2D histogram based on TH2F.

Definition at line 621 of file DQMStore.cc.

References book(), collate2D(), and MonitorElement::DQM_KIND_TH2F.

622 {
623  return book(dir, name, "book2D", MonitorElement::DQM_KIND_TH2F, h, collate2D);
624 }
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
static void collate2D(MonitorElement *me, TH2F *h)
Definition: DQMStore.cc:1099
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::book2DD ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY 
)

Book 2D double histogram.

Definition at line 686 of file DQMStore.cc.

References pwd_.

Referenced by book2DD(), extract(), and EDMtoMEConverter::getData().

689 {
690  return book2DD(pwd_, name, new TH2D(name, title,
691  nchX, lowX, highX,
692  nchY, lowY, highY));
693 }
MonitorElement * book2DD(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D double histogram.
Definition: DQMStore.cc:686
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book2DD ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY 
)

Book 2S histogram.

Definition at line 697 of file DQMStore.cc.

References book2DD(), and pwd_.

700 {
701  return book2DD(pwd_, name, new TH2D(name.c_str(), title.c_str(),
702  nchX, lowX, highX,
703  nchY, lowY, highY));
704 }
MonitorElement * book2DD(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D double histogram.
Definition: DQMStore.cc:686
std::string pwd_
Definition: DQMStore.h:422
MonitorElement* DQMStore::book2DD ( const char *  name,
const char *  title,
int  nchX,
float *  xbinsize,
int  nchY,
float *  ybinsize 
)
MonitorElement* DQMStore::book2DD ( const std::string &  name,
const std::string &  title,
int  nchX,
float *  xbinsize,
int  nchY,
float *  ybinsize 
)
MonitorElement * DQMStore::book2DD ( const char *  name,
TH2D *  h 
)

Book 2DS histogram by cloning an existing histogram.

Definition at line 754 of file DQMStore.cc.

References book2DD(), and pwd_.

755 {
756  return book2DD(pwd_, name, static_cast<TH2D *>(source->Clone(name)));
757 }
MonitorElement * book2DD(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D double histogram.
Definition: DQMStore.cc:686
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book2DD ( const std::string &  name,
TH2D *  h 
)

Book 2DS histogram by cloning an existing histogram.

Definition at line 761 of file DQMStore.cc.

References book2DD(), and pwd_.

762 {
763  return book2DD(pwd_, name, static_cast<TH2D *>(source->Clone(name.c_str())));
764 }
MonitorElement * book2DD(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D double histogram.
Definition: DQMStore.cc:686
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book2DD ( const std::string &  dir,
const std::string &  name,
TH2D *  h 
)
private

Book 2D histogram based on TH2D.

Definition at line 635 of file DQMStore.cc.

References book(), collate2DD(), and MonitorElement::DQM_KIND_TH2D.

636 {
637  return book(dir, name, "book2DD", MonitorElement::DQM_KIND_TH2D, h, collate2DD);
638 }
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
static void collate2DD(MonitorElement *me, TH2D *h)
Definition: DQMStore.cc:1113
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::book2S ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY 
)

Book 2S histogram.

Definition at line 664 of file DQMStore.cc.

References pwd_.

Referenced by book2S(), dqmRegisterHistogram(), extract(), and EDMtoMEConverter::getData().

667 {
668  return book2S(pwd_, name, new TH2S(name, title,
669  nchX, lowX, highX,
670  nchY, lowY, highY));
671 }
MonitorElement * book2S(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2S histogram.
Definition: DQMStore.cc:664
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book2S ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY 
)

Book 2S histogram.

Definition at line 675 of file DQMStore.cc.

References book2S(), and pwd_.

678 {
679  return book2S(pwd_, name, new TH2S(name.c_str(), title.c_str(),
680  nchX, lowX, highX,
681  nchY, lowY, highY));
682 }
MonitorElement * book2S(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2S histogram.
Definition: DQMStore.cc:664
std::string pwd_
Definition: DQMStore.h:422
MonitorElement* DQMStore::book2S ( const char *  name,
const char *  title,
int  nchX,
float *  xbinsize,
int  nchY,
float *  ybinsize 
)
MonitorElement* DQMStore::book2S ( const std::string &  name,
const std::string &  title,
int  nchX,
float *  xbinsize,
int  nchY,
float *  ybinsize 
)
MonitorElement * DQMStore::book2S ( const char *  name,
TH2S *  h 
)

Book 2DS histogram by cloning an existing histogram.

Definition at line 740 of file DQMStore.cc.

References book2S(), and pwd_.

741 {
742  return book2S(pwd_, name, static_cast<TH2S *>(source->Clone(name)));
743 }
MonitorElement * book2S(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2S histogram.
Definition: DQMStore.cc:664
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book2S ( const std::string &  name,
TH2S *  h 
)

Book 2DS histogram by cloning an existing histogram.

Definition at line 747 of file DQMStore.cc.

References book2S(), and pwd_.

748 {
749  return book2S(pwd_, name, static_cast<TH2S *>(source->Clone(name.c_str())));
750 }
MonitorElement * book2S(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2S histogram.
Definition: DQMStore.cc:664
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book2S ( const std::string &  dir,
const std::string &  name,
TH2S *  h 
)
private

Book 2D histogram based on TH2S.

Definition at line 628 of file DQMStore.cc.

References book(), collate2S(), and MonitorElement::DQM_KIND_TH2S.

629 {
630  return book(dir, name, "book2S", MonitorElement::DQM_KIND_TH2S, h, collate2S);
631 }
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
static void collate2S(MonitorElement *me, TH2S *h)
Definition: DQMStore.cc:1106
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::book3D ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY,
int  nchZ,
double  lowZ,
double  highZ 
)

Book 3D histogram.

Definition at line 776 of file DQMStore.cc.

References pwd_.

Referenced by L1TdeECAL::beginJob(), ConverterTester::beginJob(), book3D(), SiStripMonitorTrack::bookME3D(), CSCMonitorModule::bookMonitorObject(), CaloJetTester::CaloJetTester(), dqmRegisterHistogram(), BTagValidator::endJob(), extract(), EDMtoMEConverter::getData(), GlobalHitsTester::GlobalHitsTester(), JPTJetTester::JPTJetTester(), PFJetTester::PFJetTester(), CastorEventDisplay::setup(), EETriggerTowerTask::setup(), and EBTriggerTowerTask::setup().

780 {
781  return book3D(pwd_, name, new TH3F(name, title,
782  nchX, lowX, highX,
783  nchY, lowY, highY,
784  nchZ, lowZ, highZ));
785 }
MonitorElement * book3D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ)
Book 3D histogram.
Definition: DQMStore.cc:776
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book3D ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY,
int  nchZ,
double  lowZ,
double  highZ 
)

Book 3D histogram.

Definition at line 789 of file DQMStore.cc.

References book3D(), and pwd_.

793 {
794  return book3D(pwd_, name, new TH3F(name.c_str(), title.c_str(),
795  nchX, lowX, highX,
796  nchY, lowY, highY,
797  nchZ, lowZ, highZ));
798 }
MonitorElement * book3D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ)
Book 3D histogram.
Definition: DQMStore.cc:776
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book3D ( const char *  name,
TH3F *  h 
)

Book 3D histogram by cloning an existing histogram.

Definition at line 802 of file DQMStore.cc.

References book3D(), and pwd_.

803 {
804  return book3D(pwd_, name, static_cast<TH3F *>(source->Clone(name)));
805 }
MonitorElement * book3D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ)
Book 3D histogram.
Definition: DQMStore.cc:776
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book3D ( const std::string &  name,
TH3F *  h 
)

Book 3D histogram by cloning an existing histogram.

Definition at line 809 of file DQMStore.cc.

References book3D(), and pwd_.

810 {
811  return book3D(pwd_, name, static_cast<TH3F *>(source->Clone(name.c_str())));
812 }
MonitorElement * book3D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ)
Book 3D histogram.
Definition: DQMStore.cc:776
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::book3D ( const std::string &  dir,
const std::string &  name,
TH3F *  h 
)
private

Book 3D histogram based on TH3F.

Definition at line 769 of file DQMStore.cc.

References book(), collate3D(), and MonitorElement::DQM_KIND_TH3F.

770 {
771  return book(dir, name, "book3D", MonitorElement::DQM_KIND_TH3F, h, collate3D);
772 }
static void collate3D(MonitorElement *me, TH3F *h)
Definition: DQMStore.cc:1120
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::bookFloat ( const char *  name)

Book float.

Definition at line 451 of file DQMStore.cc.

References pwd_.

Referenced by DQMSourceExample::beginJob(), RPCDaqInfo::beginJob(), SiPixelCertification::beginJob(), SiPixelDaqInfo::beginJob(), SiPixelDcsInfo::beginJob(), EBDaqInfoTask::beginJob(), EBDcsInfoTask::beginJob(), L1TEventInfoClient::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), L1TEMUEventInfoClient::beginJob(), DQMFEDIntegrityClient::beginJob(), EEDataCertificationTask::beginJob(), EEDcsInfoTask::beginJob(), EBDataCertificationTask::beginJob(), EEDaqInfoTask::beginJob(), HLTEventInfoClient::beginJob(), BeamMonitor::beginJob(), ConverterTester::beginJob(), HcalDataCertification::beginJob(), EcalBarrelMonitorClient::beginJob(), EcalEndcapMonitorClient::beginJob(), HcalDCSInfo::beginJob(), DQMDaqInfo::beginJob(), HcalDAQInfo::beginJob(), HLTMonElectronConsumer::beginJob(), Vx3DHLTAnalyzer::beginJob(), HcalSummaryClient::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), RPCEventSummary::beginRun(), DTOfflineSummaryClients::beginRun(), ZDCMonitorClient::beginRun(), DQMProvInfo::beginRun(), DTSummaryClients::beginRun(), JetMETHLTOfflineSource::beginRun(), BTagHLTOfflineSource::beginRun(), bookFloat(), EcalSelectiveReadoutValidation::bookFloat(), SiPixelDataQuality::bookGlobalQualityFlag(), DTLocalTriggerSynchTask::bookHistos(), CSCOfflineClient::bookMonitorObject(), CSCMonitorModule::bookMonitorObject(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripDaqInfo::bookStatus(), SiStripDcsInfo::bookStatus(), SiStripCertificationInfo::bookTrackingCertificationMEs(), QcdLowPtDQM::createHistos(), DQMEventInfo::DQMEventInfo(), DQMDcsInfoClient::endRun(), DataCertificationJetMET::endRun(), HLTTauCertifier::endRun(), PhotonDataCertification::endRun(), HLTOverallSummary::endRun(), HLTMuonCertSummary::endRun(), extract(), EDMtoMEConverter::getData(), GlobalHitsTester::GlobalHitsTester(), HcalTimingMonitorModule::HcalTimingMonitorModule(), HLTMuonValidator::initializeHists(), EgHLTOfflineSummaryClient::runClient_(), DQMFileSaver::saveForOffline(), CastorPSMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalRecHitMonitor::setup(), CastorChannelQualityMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HLXMonitor::SetupEventInfo(), PFJetDQMAnalyzer::storeBadEvents(), PFMETDQMAnalyzer::storeBadEvents(), PFCandidateDQMAnalyzer::storeBadEvents(), SubTaskSummaryStatus::WriteThreshold(), and XmasToDQMEventInfo::XmasToDQMEventInfo().

452 { return bookFloat(pwd_, name); }
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:451
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookFloat ( const std::string &  name)

Book float.

Definition at line 456 of file DQMStore.cc.

References bookFloat(), and pwd_.

457 {
458  return bookFloat(pwd_, name);
459 }
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:451
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookFloat ( const std::string &  dir,
const std::string &  name 
)
private

Book float.

Definition at line 434 of file DQMStore.cc.

References book(), collateHistograms_, MonitorElement::DQM_KIND_REAL, MonitorElement::Fill(), findObject(), and MonitorElement::initialise().

435 {
436  if (collateHistograms_)
437  {
438  if (MonitorElement *me = findObject(dir, name))
439  {
440  me->Fill(0.);
441  return me;
442  }
443  }
444 
445  return book(dir, name, "bookFloat")
447 }
MonitorElement * initialise(Kind kind)
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
MonitorElement * findObject(const std::string &dir, const std::string &name) const
Definition: DQMStore.cc:1395
dbl *** dir
Definition: mlp_gen.cc:35
bool collateHistograms_
Definition: DQMStore.h:419
MonitorElement * DQMStore::bookInt ( const char *  name)

Book int.

Definition at line 421 of file DQMStore.cc.

References pwd_.

Referenced by SiStripDcsInfo::addBadModules(), edm::DQMHttpSource::addEventToDQMBackend(), L1Scalers::beginJob(), DQMSourceExample::beginJob(), ConverterTester::beginJob(), L1TLTC::beginJob(), HLTScalers::beginJob(), CastorMonitorModule::beginJob(), EgHLTOfflineSource::beginJob(), PhotonAnalyzer::beginJob(), DQMProvInfo::beginRun(), ZDCMonitorModule::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), HcalDetDiagLaserMonitor::beginRun(), CalibrationTask::book(), CalibrationScanTask::book(), FineDelayTask::book(), SiPixelDataQuality::bookGlobalQualityFlag(), bookInt(), CSCOfflineClient::bookMonitorObject(), CSCMonitorModule::bookMonitorObject(), CommissioningHistograms::copyCustomInformation(), DQMEventInfo::DQMEventInfo(), RPCDcsInfoClient::endRun(), HLTOverallSummary::endRun(), extract(), SiStripQualityChecker::fillFaultyModuleStatus(), SiStripDaqInfo::findExcludedModule(), EDMtoMEConverter::getData(), GlobalHitsTester::GlobalHitsTester(), DQMProvInfo::makeProvInfo(), edm::EventStreamHttpReader::read(), CastorRecHitMonitor::setup(), CastorHIMonitor::setup(), CastorDataIntegrityMonitor::setup(), CastorPSMonitor::setup(), CastorDigiMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalCaloTowerMonitor::setup(), HcalZDCMonitor::setup(), CastorTowerJetMonitor::setup(), CastorEventDisplay::setup(), HcalDetDiagLEDMonitor::setup(), HcalHotCellMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), HcalDeadCellMonitor::setup(), CastorLEDMonitor::setup(), HcalEEUSMonitor::setup(), EcalEndcapMonitorModule::setup(), EcalBarrelMonitorModule::setup(), HcalRawDataMonitor::setup(), HcalDigiMonitor::setup(), HcalBaseDQMonitor::setup(), HcalMonitorModule::setup(), HLXMonitor::SetupEventInfo(), and XmasToDQMEventInfo::XmasToDQMEventInfo().

422 { return bookInt(pwd_, name); }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * bookInt(const char *name)
Book int.
Definition: DQMStore.cc:421
MonitorElement * DQMStore::bookInt ( const std::string &  name)

Book int.

Definition at line 426 of file DQMStore.cc.

References bookInt(), and pwd_.

427 {
428  return bookInt(pwd_, name);
429 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * bookInt(const char *name)
Book int.
Definition: DQMStore.cc:421
MonitorElement * DQMStore::bookInt ( const std::string &  dir,
const std::string &  name 
)
private

Book int.

Definition at line 404 of file DQMStore.cc.

References book(), collateHistograms_, MonitorElement::DQM_KIND_INT, MonitorElement::Fill(), findObject(), and MonitorElement::initialise().

405 {
406  if (collateHistograms_)
407  {
408  if (MonitorElement *me = findObject(dir, name))
409  {
410  me->Fill(0);
411  return me;
412  }
413  }
414 
415  return book(dir, name, "bookInt")
417 }
MonitorElement * initialise(Kind kind)
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
MonitorElement * findObject(const std::string &dir, const std::string &name) const
Definition: DQMStore.cc:1395
dbl *** dir
Definition: mlp_gen.cc:35
bool collateHistograms_
Definition: DQMStore.h:419
MonitorElement * DQMStore::bookProfile ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY,
const char *  option = "s" 
)

Book profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile::BuildOptions). The number of channels in Y is disregarded in a profile plot.

Definition at line 828 of file DQMStore.cc.

References pwd_.

Referenced by TrackAnalyzer::beginJob(), DQMSourceExample::beginJob(), BxTiming::beginJob(), HLTMuonDQMSource::beginJob(), HcalSimHitStudy::beginJob(), ZdcSimHitStudy::beginJob(), TrackingMonitor::beginJob(), AlcaBeamMonitor::beginJob(), TrackBuildingAnalyzer::beginJob(), BeamMonitor::beginJob(), PFJetAnalyzer::beginJob(), HaloTrigger::beginJob(), MBUEandQCDValidation::beginJob(), ConverterTester::beginJob(), JetAnalyzer::beginJob(), StripValidationPlots::beginJob(), L1TGT::beginJob(), L1TFED::beginJob(), TkConvValidator::beginJob(), PhotonValidator::beginJob(), L1TCSCTF::beginJob(), SiStripLAProfileBooker::beginRun(), AlcaBeamMonitor::beginRun(), MuonTrackValidator::beginRun(), PhotonOfflineClient::book2DHistoVector(), PhotonAnalyzer::book2DHistoVector(), PhotonOfflineClient::book3DHistoVector(), PhotonAnalyzer::book3DHistoVector(), L1TGMT::book_(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), HltSusyExoPostProcessor::bookEffMEProfileFromTH1(), TrackAnalyzer::bookHistosForState(), SiStripMonitorTrack::bookMEProfile(), SiStripMonitorTrack::bookMETrend(), SiStripMonitorDigi::bookMETrend(), SiStripMonitorCluster::bookMETrend(), CSCMonitorModule::bookMonitorObject(), HistoProviderDQM::bookProfile(), QcdUeDQM::bookProfile(), JPTJetAnalyzer::bookProfile(), bookProfile(), HcalSubdetDigiMonitor::bookProfile(), EcalSelectiveReadoutValidation::bookProfile(), MTVHistoProducerAlgoForTracker::bookRecoHistosForStandaloneRunning(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), DQMGenericTnPClient::calculateEfficiency(), HeavyFlavorHarvesting::calculateEfficiency1D(), CaloJetTester::CaloJetTester(), CaloTowersValidation::CaloTowersValidation(), SiStripMonitorDigi::createLayerMEs(), SiStripMonitorCluster::createLayerMEs(), SiStripMonitorPedestals::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripMonitorDigi::createSubDetMEs(), SiStripMonitorCluster::createSubDetMEs(), EmDQMPostProcessor::dividehistos(), TrackAnalyzer::doTrackerSpecificInitialization(), dqmRegisterHistogram(), JetMETDQMPostProcessor::endRun(), EmDQMPostProcessor::endRun(), HltSusyExoPostProcessor::endRun(), extract(), EDMtoMEConverter::getData(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisHistogrammer::GlobalDigisHistogrammer(), GlobalHitsTester::GlobalHitsTester(), HcalRecHitsValidation::HcalRecHitsValidation(), HcalSimHitsValidation::HcalSimHitsValidation(), CommissioningHistograms::histogram(), MuIsoValidation::InitHistos(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), JPTJetTester::JPTJetTester(), MixCollectionValidation::MixCollectionValidation(), MonitorElementsDb::MonitorElementsDb(), PFJetTester::PFJetTester(), HcalNZSMonitor::setup(), HcalTrigPrimMonitor::setup(), HcalCaloTowerMonitor::setup(), HcalRecHitMonitor::setup(), HcalBeamMonitor::setup(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), EcalEndcapMonitorModule::setup(), EETestPulseTask::setup(), EEClusterTask::setup(), EELaserTask::setup(), EBLaserTask::setup(), EEBeamCaloTask::setup(), EELedTask::setup(), EBBeamCaloTask::setup(), EBClusterTask::setup(), EEPedestalTask::setup(), EBPedestalTask::setup(), EBTrendTask::setup(), EETrendTask::setup(), EBTestPulseTask::setup(), EcalBarrelMonitorModule::setup(), EBSelectiveReadoutTask::setup(), HcalRawDataMonitor::setup(), EESummaryClient::setup(), EBSummaryClient::setup(), EETrendClient::setup(), EBTrendClient::setup(), EBTimingClient::setup(), HcalDigiMonitor::setup(), EETimingClient::setup(), EESelectiveReadoutTask::setup(), EBTriggerTowerTask::setup(), EETriggerTowerTask::setup(), and HLXMonitor::SetupHists().

832 {
833  return bookProfile(pwd_, name, new TProfile(name, title,
834  nchX, lowX, highX,
835  lowY, highY,
836  option));
837 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY,
const char *  option = "s" 
)

Book profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile::BuildOptions). The number of channels in Y is disregarded in a profile plot.

Definition at line 843 of file DQMStore.cc.

References bookProfile(), and pwd_.

847 {
848  return bookProfile(pwd_, name, new TProfile(name.c_str(), title.c_str(),
849  nchX, lowX, highX,
850  lowY, highY,
851  option));
852 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX,
double  lowY,
double  highY,
const char *  option = "s" 
)

Book profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile::BuildOptions). The number of channels in Y is disregarded in a profile plot.

Definition at line 858 of file DQMStore.cc.

References bookProfile(), and pwd_.

862 {
863  return bookProfile(pwd_, name, new TProfile(name, title,
864  nchX, lowX, highX,
865  lowY, highY,
866  option));
867 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
double  lowY,
double  highY,
const char *  option = "s" 
)

Book profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile::BuildOptions). The number of channels in Y is disregarded in a profile plot.

Definition at line 873 of file DQMStore.cc.

References bookProfile(), and pwd_.

877 {
878  return bookProfile(pwd_, name, new TProfile(name.c_str(), title.c_str(),
879  nchX, lowX, highX,
880  lowY, highY,
881  option));
882 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const char *  name,
const char *  title,
int  nchX,
double *  xbinsize,
int  nchY,
double  lowY,
double  highY,
const char *  option = "s" 
)

Book variable bin profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile::BuildOptions). The number of channels in Y is disregarded in a profile plot.

Definition at line 888 of file DQMStore.cc.

References bookProfile(), and pwd_.

892 {
893  return bookProfile(pwd_, name, new TProfile(name, title,
894  nchX, xbinsize,
895  lowY, highY,
896  option));
897 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const std::string &  name,
const std::string &  title,
int  nchX,
double *  xbinsize,
int  nchY,
double  lowY,
double  highY,
const char *  option = "s" 
)

Book variable bin profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile::BuildOptions). The number of channels in Y is disregarded in a profile plot.

Definition at line 903 of file DQMStore.cc.

References bookProfile(), and pwd_.

907 {
908  return bookProfile(pwd_, name, new TProfile(name.c_str(), title.c_str(),
909  nchX, xbinsize,
910  lowY, highY,
911  option));
912 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const char *  name,
const char *  title,
int  nchX,
double *  xbinsize,
double  lowY,
double  highY,
const char *  option = "s" 
)

Book variable bin profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile::BuildOptions). The number of channels in Y is disregarded in a profile plot.

Definition at line 918 of file DQMStore.cc.

References bookProfile(), and pwd_.

922 {
923  return bookProfile(pwd_, name, new TProfile(name, title,
924  nchX, xbinsize,
925  lowY, highY,
926  option));
927 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const std::string &  name,
const std::string &  title,
int  nchX,
double *  xbinsize,
double  lowY,
double  highY,
const char *  option = "s" 
)

Book variable bin profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile::BuildOptions). The number of channels in Y is disregarded in a profile plot.

Definition at line 933 of file DQMStore.cc.

References bookProfile(), and pwd_.

937 {
938  return bookProfile(pwd_, name, new TProfile(name.c_str(), title.c_str(),
939  nchX, xbinsize,
940  lowY, highY,
941  option));
942 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const char *  name,
TProfile *  h 
)

Book TProfile by cloning an existing profile.

Definition at line 946 of file DQMStore.cc.

References bookProfile(), and pwd_.

947 {
948  return bookProfile(pwd_, name, static_cast<TProfile *>(source->Clone(name)));
949 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const std::string &  name,
TProfile *  h 
)

Book TProfile by cloning an existing profile.

Definition at line 953 of file DQMStore.cc.

References bookProfile(), and pwd_.

954 {
955  return bookProfile(pwd_, name, static_cast<TProfile *>(source->Clone(name.c_str())));
956 }
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookProfile ( const std::string &  dir,
const std::string &  name,
TProfile *  h 
)
private

Book profile histogram based on TProfile.

Definition at line 817 of file DQMStore.cc.

References book(), collateProfile(), and MonitorElement::DQM_KIND_TPROFILE.

818 {
819  return book(dir, name, "bookProfile",
821  h, collateProfile);
822 }
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
static void collateProfile(MonitorElement *me, TProfile *h)
Definition: DQMStore.cc:1127
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::bookProfile2D ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY,
int  nchZ,
double  lowZ,
double  highZ,
const char *  option = "s" 
)

Book 2-D profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile2D::BuildOptions). The number of channels in Z is disregarded in a 2-D profile.

Definition at line 972 of file DQMStore.cc.

References pwd_.

Referenced by DQMSourceExample::beginJob(), L1TdeECAL::beginJob(), ConverterTester::beginJob(), TkConvValidator::beginJob(), MuonTrackValidator::beginRun(), ecaldqm::bookME(), CSCMonitorModule::bookMonitorObject(), bookProfile2D(), EcalSelectiveReadoutValidation::bookProfile2D(), MTVHistoProducerAlgoForTracker::bookRecoHistos(), DTLocalTriggerTask::bookWheelHistos(), DQMGenericTnPClient::calculateEfficiency(), HeavyFlavorHarvesting::calculateEfficiency2D(), CaloJetTester::CaloJetTester(), SiStripMonitorCluster::createSubDetMEs(), TkHistoMap::createTkHistoMap(), dqmRegisterHistogram(), extract(), EDMtoMEConverter::getData(), GlobalHitsTester::GlobalHitsTester(), JPTJetTester::JPTJetTester(), MonitorElementsDb::MonitorElementsDb(), HeavyFlavorValidation::myBookProfile2D(), PFJetTester::PFJetTester(), EELaserTask::setup(), EELedTask::setup(), EBClusterTask::setup(), EBPedestalTask::setup(), EEClusterTask::setup(), EETestPulseTask::setup(), EBPedestalOnlineTask::setup(), EEPedestalTask::setup(), EBCosmicTask::setup(), EBLaserTask::setup(), EECosmicTask::setup(), EEPedestalOnlineTask::setup(), EBOccupancyTask::setup(), EBTestPulseTask::setup(), EBTimingTask::setup(), EBSelectiveReadoutTask::setup(), EEOccupancyTask::setup(), EETimingTask::setup(), EESelectiveReadoutTask::setup(), EBTriggerTowerTask::setup(), and EETriggerTowerTask::setup().

977 {
978  return bookProfile2D(pwd_, name, new TProfile2D(name, title,
979  nchX, lowX, highX,
980  nchY, lowY, highY,
981  lowZ, highZ,
982  option));
983 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:972
MonitorElement * DQMStore::bookProfile2D ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY,
int  nchZ,
double  lowZ,
double  highZ,
const char *  option = "s" 
)

Book 2-D profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile2D::BuildOptions). The number of channels in Z is disregarded in a 2-D profile.

Definition at line 989 of file DQMStore.cc.

References bookProfile2D(), and pwd_.

994 {
995  return bookProfile2D(pwd_, name, new TProfile2D(name.c_str(), title.c_str(),
996  nchX, lowX, highX,
997  nchY, lowY, highY,
998  lowZ, highZ,
999  option));
1000 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:972
MonitorElement * DQMStore::bookProfile2D ( const char *  name,
const char *  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY,
double  lowZ,
double  highZ,
const char *  option = "s" 
)

Book 2-D profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile2D::BuildOptions). The number of channels in Z is disregarded in a 2-D profile.

Definition at line 1006 of file DQMStore.cc.

References bookProfile2D(), and pwd_.

1011 {
1012  return bookProfile2D(pwd_, name, new TProfile2D(name, title,
1013  nchX, lowX, highX,
1014  nchY, lowY, highY,
1015  lowZ, highZ,
1016  option));
1017 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:972
MonitorElement * DQMStore::bookProfile2D ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY,
double  lowZ,
double  highZ,
const char *  option = "s" 
)

Book 2-D profile. Option is one of: " ", "s" (default), "i", "G" (see TProfile2D::BuildOptions). The number of channels in Z is disregarded in a 2-D profile.

Definition at line 1023 of file DQMStore.cc.

References bookProfile2D(), and pwd_.

1028 {
1029  return bookProfile2D(pwd_, name, new TProfile2D(name.c_str(), title.c_str(),
1030  nchX, lowX, highX,
1031  nchY, lowY, highY,
1032  lowZ, highZ,
1033  option));
1034 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:972
MonitorElement * DQMStore::bookProfile2D ( const char *  name,
TProfile2D *  h 
)

Book TProfile2D by cloning an existing profile.

Definition at line 1038 of file DQMStore.cc.

References bookProfile2D(), and pwd_.

1039 {
1040  return bookProfile2D(pwd_, name, static_cast<TProfile2D *>(source->Clone(name)));
1041 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:972
MonitorElement * DQMStore::bookProfile2D ( const std::string &  name,
TProfile2D *  h 
)

Book TProfile2D by cloning an existing profile.

Definition at line 1045 of file DQMStore.cc.

References bookProfile2D(), and pwd_.

1046 {
1047  return bookProfile2D(pwd_, name, static_cast<TProfile2D *>(source->Clone(name.c_str())));
1048 }
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:972
MonitorElement * DQMStore::bookProfile2D ( const std::string &  folder,
const std::string &  name,
TProfile2D *  h 
)
private

Book 2D profile histogram based on TProfile2D.

Definition at line 961 of file DQMStore.cc.

References book(), collateProfile2D(), and MonitorElement::DQM_KIND_TPROFILE2D.

962 {
963  return book(dir, name, "bookProfile2D",
966 }
static void collateProfile2D(MonitorElement *me, TProfile2D *h)
Definition: DQMStore.cc:1137
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
dbl *** dir
Definition: mlp_gen.cc:35
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
MonitorElement * DQMStore::bookString ( const char *  name,
const char *  value 
)
MonitorElement * DQMStore::bookString ( const std::string &  name,
const std::string &  value 
)

Book string.

Definition at line 485 of file DQMStore.cc.

References bookString(), and pwd_.

486 {
487  return bookString(pwd_, name, value);
488 }
MonitorElement * bookString(const char *name, const char *value)
Book string.
Definition: DQMStore.cc:480
std::string pwd_
Definition: DQMStore.h:422
MonitorElement * DQMStore::bookString ( const std::string &  dir,
const std::string &  name,
const std::string &  value 
)
private

Book string.

Definition at line 464 of file DQMStore.cc.

References book(), collateHistograms_, MonitorElement::DQM_KIND_STRING, findObject(), and MonitorElement::initialise().

467 {
468  if (collateHistograms_)
469  {
470  if (MonitorElement *me = findObject(dir, name))
471  return me;
472  }
473 
474  return book(dir, name, "bookString")
476 }
MonitorElement * initialise(Kind kind)
MonitorElement * book(const std::string &dir, const std::string &name, const char *context)
Definition: DQMStore.cc:371
MonitorElement * findObject(const std::string &dir, const std::string &name) const
Definition: DQMStore.cc:1395
dbl *** dir
Definition: mlp_gen.cc:35
bool collateHistograms_
Definition: DQMStore.h:419
void DQMStore::cd ( void  )

go to top directory (ie. root)

Definition at line 209 of file DQMStore.cc.

References setCurrentFolder().

Referenced by SiStripDcsInfo::addBadModules(), SiStripGainFromData::algoEndJob(), MuonIsolationDQM::analyze(), MuIsoValidation::analyze(), DQMFileReader::beginJob(), GlobalMuonMatchAnalyzer::beginJob(), MuonTrackResidualAnalyzer::beginJob(), MuonTrackAnalyzer::beginJob(), MuonIsolationDQM::beginJob(), MuIsoValidation::beginJob(), MultiTrackValidator::beginRun(), RPCDcsInfo::beginRun(), DQMDcsInfo::beginRun(), DQMProvInfo::beginRun(), V0Validator::beginRun(), MuonTrackValidator::beginRun(), SiPixelActionExecutor::bookDeviations(), SiPixelActionExecutor::bookEfficiency(), SiPixelDataQuality::bookGlobalQualityFlag(), RecoMuonValidator::MuonME::bookHistograms(), HiggsDQM::bookHistos(), SiPixelHLTSource::bookMEs(), SiPixelDigiSource::bookMEs(), SiPixelInformationExtractor::bookNoisyPixels(), SiPixelActionExecutor::bookOccupancyPlots(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripDaqInfo::bookStatus(), SiStripDcsInfo::bookStatus(), BeamMonitorBx::BookTables(), SiStripCertificationInfo::bookTrackingCertificationMEs(), BeamMonitorBx::BookTrendHistos(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelActionExecutor::createEfficiency(), SiPixelActionExecutor::createLayout(), SiPixelActionExecutor::createMap(), SiPixelActionExecutor::createOccupancy(), SiStripSummaryCreator::createSummary(), SiStripActionExecutor::createSummary(), SiStripActionExecutor::createSummaryOffline(), SiPixelActionExecutor::dumpBarrelModIds(), SiPixelActionExecutor::dumpEndcapModIds(), SiPixelActionExecutor::dumpModIds(), SiPixelActionExecutor::dumpRefValues(), DQMHcalIsoTrackPostProcessor::endJob(), APVValidationPlots::endJob(), StripValidationPlots::endJob(), SiStripOfflineDQM::endJob(), SiPixelEDAClient::endLuminosityBlock(), JetMETDQMPostProcessor::endRun(), EmDQMPostProcessor::endRun(), HltSusyExoPostProcessor::endRun(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), SiPixelEDAClient::endRun(), SiPixelTrackerMapCreator::exploreBeiStructure(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiPixelRawDataErrorModule::fill(), SiPixelClusterModule::fill(), SiStripQualityChecker::fillDetectorStatus(), SiStripQualityChecker::fillDetectorStatusAtLumi(), SiPixelActionExecutor::fillEfficiency(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelActionExecutor::fillFEDErrorSummary(), SiPixelDataQuality::fillGlobalQualityPlot(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiPixelActionExecutor::fillLayout(), SiPixelInformationExtractor::fillModuleAndHistoList(), SiPixelActionExecutor::fillOccupancy(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiStripQualityChecker::fillSubDetStatus(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), SiStripQualityChecker::fillTrackingStatus(), SiStripQualityChecker::fillTrackingStatusAtLumi(), DQMGenericTnPClient::findAllSubdirectories(), SiStripDaqInfo::findExcludedModule(), SiPixelInformationExtractor::findNoisyPixels(), SiPixelActionExecutor::GetBladeSubdirs(), SiPixelInformationExtractor::getMEList(), SiStripUtility::getModuleFolderList(), SiStripBadComponentsDQMService::getModuleFolderList(), SiStripSummaryCreator::getSummaryME(), SiStripUtility::getTopFolderPath(), SiStripUtility::goToDir(), SiStripBadComponentsDQMService::goToDir(), SiPixelInformationExtractor::goToDir(), SiPixelWebInterface::handleEDARequest(), HResolution::HResolution(), HTrack::HTrack(), HTrackVariables::HTrackVariables(), DQMProvInfo::makeHLTKeyInfo(), DQMProvInfo::makeProvInfo(), MuIsoValidation::MuIsoValidation(), MuonIsolationDQM::MuonIsolationDQM(), FUShmDQMOutputService::postEndLumi(), SiStripInformationExtractor::printAlarmList(), SiPixelInformationExtractor::printAlarmList(), SiStripActionExecutor::printFaultyModuleList(), SiPixelInformationExtractor::printModuleHistoList(), SiStripInformationExtractor::printNonGeomHistoList(), SiStripInformationExtractor::printSummaryHistoList(), SiPixelInformationExtractor::printSummaryHistoList(), SiStripInformationExtractor::readAlarmTree(), SiPixelInformationExtractor::readAlarmTree(), SiStripFEDErrorsDQM::readBadAPVs(), SiStripBadComponentsDQMService::readBadComponents(), SiStripInformationExtractor::readLayoutNames(), SiStripInformationExtractor::readModuleAndHistoList(), SiPixelInformationExtractor::readModuleAndHistoList(), SiPixelInformationExtractor::readModuleHistoTree(), SiStripNoisesDQMService::readNoises(), SiStripInformationExtractor::readNonGeomHistoTree(), SiStripPedestalsDQMService::readPedestals(), SiStripInformationExtractor::readQTestSummary(), SiStripInformationExtractor::readSummaryHistoTree(), SiPixelInformationExtractor::readSummaryHistoTree(), RecoMuonValidator::RecoMuonValidator(), SiStripCommissioningSource::remove(), CommissioningHistograms::remove(), ElectronDqmAnalyzerBase::remove_other_dirs(), ZDCMonitorClient::removeAllME(), HLXMonitor::SaveDQMFile(), DQMFileSaver::saveForOffline(), DQMFileSaver::saveForOnline(), SiPixelInformationExtractor::selectMEList(), SiPixelInformationExtractor::sendTkUpdatedStatus(), SiStripTrackerMapCreator::setTkMapFromHistogram(), GenericBenchmark::setup(), HLXMonitor::SetupHists(), and SiPixelActionExecutor::setupQTests().

210 { setCurrentFolder(""); }
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232
void DQMStore::cd ( const std::string &  subdir)

cd to subdirectory (if there)

Definition at line 214 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), dirExists(), raiseDQMError(), and setCurrentFolder().

215 {
216  std::string clean;
217  const std::string *cleaned = 0;
218  cleanTrailingSlashes(subdir, clean, cleaned);
219 
220  if (! dirExists(*cleaned))
221  raiseDQMError("DQMStore", "Cannot 'cd' into non-existent directory '%s'",
222  cleaned->c_str());
223 
224  setCurrentFolder(*cleaned);
225 }
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
std::vector< T * > clean
Definition: MVATrainer.cc:156
bool dirExists(const std::string &path) const
true if directory exists
Definition: DQMStore.cc:296
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
bool DQMStore::cdInto ( const std::string &  path) const
private

Use this for saving monitoring objects in ROOT files with dir structure; cd into directory (create first if it doesn't exist); returns success flag

Definition at line 1851 of file DQMStore.cc.

References end, connectstrParser::o, and raiseDQMError().

Referenced by save().

1852 {
1853  assert(! path.empty());
1854 
1855  // Find the first path component.
1856  size_t start = 0;
1857  size_t end = path.find('/', start);
1858  if (end == std::string::npos)
1859  end = path.size();
1860 
1861  while (true)
1862  {
1863  // Check if this subdirectory component exists. If yes, make sure
1864  // it is actually a subdirectory. Otherwise create or cd into it.
1865  std::string part(path, start, end-start);
1866  TObject *o = gDirectory->Get(part.c_str());
1867  if (o && ! dynamic_cast<TDirectory *>(o))
1868  raiseDQMError("DQMStore", "Attempt to create directory '%s' in a file"
1869  " fails because the part '%s' already exists and is not"
1870  " directory", path.c_str(), part.c_str());
1871  else if (! o)
1872  gDirectory->mkdir(part.c_str());
1873 
1874  if (! gDirectory->cd(part.c_str()))
1875  raiseDQMError("DQMStore", "Attempt to create directory '%s' in a file"
1876  " fails because could not cd into subdirectory '%s'",
1877  path.c_str(), part.c_str());
1878 
1879  // Stop if we reached the end, ignoring any trailing '/'.
1880  if (end+1 >= path.size())
1881  break;
1882 
1883  // Find the next path component.
1884  start = end+1;
1885  end = path.find('/', start);
1886  if (end == std::string::npos)
1887  end = path.size();
1888  }
1889 
1890  return true;
1891 }
int path() const
Definition: HLTadd.h:3
#define end
Definition: vmac.h:38
part
Definition: HCALResponse.h:21
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
bool DQMStore::checkBinningMatches ( MonitorElement me,
TH1 *  h 
)
staticprivate

Definition at line 1054 of file DQMStore.cc.

References gather_cfg::cout, MonitorElement::getFullname(), and MonitorElement::getTH1().

Referenced by collate1D(), collate1DD(), collate1S(), collate2D(), collate2DD(), collate2S(), collate3D(), collateProfile(), and collateProfile2D().

1055 {
1056  if (me->getTH1()->GetNbinsX() != h->GetNbinsX()
1057  || me->getTH1()->GetNbinsY() != h->GetNbinsY()
1058  || me->getTH1()->GetNbinsZ() != h->GetNbinsZ()
1059  || me->getTH1()->GetXaxis()->GetXmin() != h->GetXaxis()->GetXmin()
1060  || me->getTH1()->GetYaxis()->GetXmin() != h->GetYaxis()->GetXmin()
1061  || me->getTH1()->GetZaxis()->GetXmin() != h->GetZaxis()->GetXmin()
1062  || me->getTH1()->GetXaxis()->GetXmax() != h->GetXaxis()->GetXmax()
1063  || me->getTH1()->GetYaxis()->GetXmax() != h->GetYaxis()->GetXmax()
1064  || me->getTH1()->GetZaxis()->GetXmax() != h->GetZaxis()->GetXmax())
1065  {
1066  // edm::LogWarning ("DQMStore")
1067  std::cout << "*** DQMStore: WARNING:"
1068  << "checkBinningMatches: different binning - cannot add object '"
1069  << h->GetName() << "' of type "
1070  << h->IsA()->GetName() << " to existing ME: '"
1071  << me->getFullname() << "'\n";
1072  return false;
1073  }
1074  return true;
1075 }
TH1 * getTH1(void) const
const std::string getFullname(void) const
get full name of ME including Pathname
tuple cout
Definition: gather_cfg.py:41
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collate1D ( MonitorElement me,
TH1F *  h 
)
staticprivate

Definition at line 1078 of file DQMStore.cc.

References checkBinningMatches(), and MonitorElement::getTH1F().

Referenced by book1D(), and extract().

1079 {
1080  if (checkBinningMatches(me,h))
1081  me->getTH1F()->Add(h);
1082 }
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
TH1F * getTH1F(void) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collate1DD ( MonitorElement me,
TH1D *  h 
)
staticprivate

Definition at line 1092 of file DQMStore.cc.

References checkBinningMatches(), and MonitorElement::getTH1D().

Referenced by book1DD(), and extract().

1093 {
1094  if (checkBinningMatches(me,h))
1095  me->getTH1D()->Add(h);
1096 }
TH1D * getTH1D(void) const
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collate1S ( MonitorElement me,
TH1S *  h 
)
staticprivate

Definition at line 1085 of file DQMStore.cc.

References checkBinningMatches(), and MonitorElement::getTH1S().

Referenced by book1S(), and extract().

1086 {
1087  if (checkBinningMatches(me,h))
1088  me->getTH1S()->Add(h);
1089 }
TH1S * getTH1S(void) const
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collate2D ( MonitorElement me,
TH2F *  h 
)
staticprivate

Definition at line 1099 of file DQMStore.cc.

References checkBinningMatches(), and MonitorElement::getTH2F().

Referenced by book2D(), and extract().

1100 {
1101  if (checkBinningMatches(me,h))
1102  me->getTH2F()->Add(h);
1103 }
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
TH2F * getTH2F(void) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collate2DD ( MonitorElement me,
TH2D *  h 
)
staticprivate

Definition at line 1113 of file DQMStore.cc.

References checkBinningMatches(), and MonitorElement::getTH2D().

Referenced by book2DD(), and extract().

1114 {
1115  if (checkBinningMatches(me,h))
1116  me->getTH2D()->Add(h);
1117 }
TH2D * getTH2D(void) const
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collate2S ( MonitorElement me,
TH2S *  h 
)
staticprivate

Definition at line 1106 of file DQMStore.cc.

References checkBinningMatches(), and MonitorElement::getTH2S().

Referenced by book2S(), and extract().

1107 {
1108  if (checkBinningMatches(me,h))
1109  me->getTH2S()->Add(h);
1110 }
TH2S * getTH2S(void) const
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collate3D ( MonitorElement me,
TH3F *  h 
)
staticprivate

Definition at line 1120 of file DQMStore.cc.

References checkBinningMatches(), and MonitorElement::getTH3F().

Referenced by book3D(), and extract().

1121 {
1122  if (checkBinningMatches(me,h))
1123  me->getTH3F()->Add(h);
1124 }
TH3F * getTH3F(void) const
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collateProfile ( MonitorElement me,
TProfile *  h 
)
staticprivate

Definition at line 1127 of file DQMStore.cc.

References MonitorElement::addProfiles(), checkBinningMatches(), and MonitorElement::getTProfile().

Referenced by bookProfile(), and extract().

1128 {
1129  if (checkBinningMatches(me,h))
1130  {
1131  TProfile *meh = me->getTProfile();
1132  me->addProfiles(h, meh, meh, 1, 1);
1133  }
1134 }
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
TProfile * getTProfile(void) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void DQMStore::collateProfile2D ( MonitorElement me,
TProfile2D *  h 
)
staticprivate

Definition at line 1137 of file DQMStore.cc.

References MonitorElement::addProfiles(), checkBinningMatches(), and MonitorElement::getTProfile2D().

Referenced by bookProfile2D(), and extract().

1138 {
1139  if (checkBinningMatches(me,h))
1140  {
1141  TProfile2D *meh = me->getTProfile2D();
1142  me->addProfiles(h, meh, meh, 1, 1);
1143  }
1144 }
TProfile2D * getTProfile2D(void) const
void addProfiles(TProfile *h1, TProfile *h2, TProfile *sum, float c1, float c2)
static bool checkBinningMatches(MonitorElement *me, TH1 *h)
Definition: DQMStore.cc:1054
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
bool DQMStore::containsAnyMonitorable ( const std::string &  path) const

true if directory (or any subfolder at any level below it) contains at least one monitorable element

Definition at line 1255 of file DQMStore.cc.

References data_, i, and isSubdirectory().

Referenced by ContentReader::give_subdirs().

1256 {
1257  MonitorElement proto(&path, std::string());
1258  MEMap::const_iterator e = data_.end();
1259  MEMap::const_iterator i = data_.lower_bound(proto);
1260  return (i != e && isSubdirectory(path, *i->data_.dirname));
1261 }
int i
Definition: DBlmapReader.cc:9
int path() const
Definition: HLTadd.h:3
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
MEMap data_
Definition: DQMStore.h:423
QCriterion * DQMStore::createQTest ( const std::string &  algoname,
const std::string &  qtname 
)

create quality test with unique name <qtname> (analogous to ME name); quality test can then be attached to ME with useQTest method (<algo_name> must match one of known algorithms)

Definition at line 2389 of file DQMStore.cc.

References i, qalgos_, qtests_, raiseDQMError(), QCriterion::setVerbose(), and verboseQT_.

Referenced by createH2CompTest(), createMeanValueTest(), createXRangeTest(), createYRangeTest(), QTestConfigure::EnableComp2RefChi2Test(), QTestConfigure::EnableComp2RefEqualHTest(), QTestConfigure::EnableComp2RefKolmogorovTest(), QTestConfigure::EnableCompareToMedianTest(), QTestConfigure::EnableContentsWithinExpectedTest(), QTestConfigure::EnableDeadChannelTest(), QTestConfigure::EnableMeanWithinExpectedTest(), QTestConfigure::EnableNoisyChannelTest(), QTestConfigure::EnableXRangeTest(), and QTestConfigure::EnableYRangeTest().

2390 {
2391  if (qtests_.count(qtname))
2392  raiseDQMError("DQMStore", "Attempt to create duplicate quality test '%s'",
2393  qtname.c_str());
2394 
2395  QAMap::iterator i = qalgos_.find(algoname);
2396  if (i == qalgos_.end())
2397  raiseDQMError("DQMStore", "Cannot create a quality test using unknown"
2398  " algorithm '%s'", algoname.c_str());
2399 
2400  QCriterion *qc = i->second(qtname);
2401  qc->setVerbose(verboseQT_);
2402 
2403  qtests_[qtname] = qc;
2404  return qc;
2405 }
int i
Definition: DBlmapReader.cc:9
QCMap qtests_
Definition: DQMStore.h:426
unsigned verboseQT_
Definition: DQMStore.h:417
QAMap qalgos_
Definition: DQMStore.h:427
void setVerbose(int verbose)
probability limits for warnings, errors
Definition: QTest.h:114
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
bool DQMStore::dirExists ( const std::string &  path) const

true if directory exists

Definition at line 296 of file DQMStore.cc.

References dirs_.

Referenced by L1GtHwValidation::beginJob(), L1ExtraDQM::beginRun(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), cd(), SiStripActionExecutor::createSummary(), DQMHcalIsoTrackPostProcessor::endJob(), JetMETDQMPostProcessor::endRun(), EmDQMPostProcessor::endRun(), HltSusyExoPostProcessor::endRun(), SiStripQualityChecker::fillDetectorStatus(), SiStripQualityChecker::fillFaultyModuleStatus(), DQMGenericTnPClient::findAllSubdirectories(), SiStripDaqInfo::findExcludedModule(), FUShmDQMOutputService::findMonitorElements(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), SiStripUtility::getTopFolderPath(), HLTTauDQMSummaryPlotter::plotEfficiencyHisto(), HLTTauDQMSummaryPlotter::plotIntegratedEffHisto(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), SiStripActionExecutor::printFaultyModuleList(), SiStripInformationExtractor::readAlarmTree(), SiStripBadComponentsDQMService::readBadComponents(), SiStripInformationExtractor::readGlobalHistoList(), SiStripInformationExtractor::readLayoutNames(), SiStripInformationExtractor::readModuleAndHistoList(), SiStripInformationExtractor::readNonGeomHistoTree(), SiStripInformationExtractor::readQTestSummary(), SiStripInformationExtractor::readSummaryHistoTree(), CommissioningHistograms::remove(), ZDCMonitorClient::removeAllME(), PhotonOfflineClient::runClient(), SiPixelErrorsDigisToCalibDigis::setDQMDirectory(), SiPixelOfflineCalibAnalysisBase::setDQMDirectory(), and SiStripTrackerMapCreator::setTkMapFromHistogram().

297 { return dirs_.count(path) > 0; }
int path() const
Definition: HLTadd.h:3
std::set< std::string > dirs_
Definition: DQMStore.h:424
void DQMStore::disableSoftReset ( MonitorElement me)

Definition at line 2535 of file DQMStore.cc.

References MonitorElement::disableSoftReset().

Referenced by TrackingMonitor::endRun(), EcalEndcapMonitorClient::softReset(), EcalBarrelMonitorClient::softReset(), and TrackAnalyzer::undoSoftReset().

2536 {
2537  if (me)
2538  me->disableSoftReset();
2539 }
void disableSoftReset(void)
reverts action of softReset
bool DQMStore::extract ( TObject *  obj,
const std::string &  dir,
bool  overwrite 
)
private

extract object (TH1F, TH2F, ...) from <to>; return success flag flag fromRemoteNode indicating if ME arrived from different node

Definition at line 1568 of file DQMStore.cc.

References MonitorElement::addQReport(), DQMNet::QValue::algorithm, book1D(), book1DD(), book1S(), book2D(), book2DD(), book2S(), book3D(), bookFloat(), bookInt(), bookProfile(), bookProfile2D(), bookString(), DQMNet::QValue::code, collate1D(), collate1DD(), collate1S(), collate2D(), collate2DD(), collate2S(), collate3D(), collateHistograms_, collateProfile(), collateProfile2D(), MonitorElement::copyFrom(), gather_cfg::cout, dot(), DQMNet::DQM_PROP_HAS_REFERENCE, MonitorElement::Fill(), findObject(), h, isCollateME(), isSubdirectory(), label, m, funct::master(), DQMNet::QValue::message, n, MonitorElement::object_, DQMNet::QValue::qtname, DQMNet::QValue::qtresult, asciidump::s, s_referenceDirName, s_rxmeqr1(), s_rxmeqr2(), s_rxmeval(), tag(), relativeConstraints::value, and verbose_.

Referenced by edm::DQMHttpSource::addEventToDQMBackend(), and readDirectory().

1569 {
1570  // NB: Profile histograms inherit from TH*D, checking order matters.
1571  MonitorElement *refcheck = 0;
1572  if (TProfile *h = dynamic_cast<TProfile *>(obj))
1573  {
1574  MonitorElement *me = findObject(dir, h->GetName());
1575  if (! me)
1576  me = bookProfile(dir, h->GetName(), (TProfile *) h->Clone());
1577  else if (overwrite)
1578  me->copyFrom(h);
1579  else if (isCollateME(me) || collateHistograms_)
1580  collateProfile(me, h);
1581  refcheck = me;
1582  }
1583  else if (TProfile2D *h = dynamic_cast<TProfile2D *>(obj))
1584  {
1585  MonitorElement *me = findObject(dir, h->GetName());
1586  if (! me)
1587  me = bookProfile2D(dir, h->GetName(), (TProfile2D *) h->Clone());
1588  else if (overwrite)
1589  me->copyFrom(h);
1590  else if (isCollateME(me) || collateHistograms_)
1591  collateProfile2D(me, h);
1592  refcheck = me;
1593  }
1594  else if (TH1F *h = dynamic_cast<TH1F *>(obj))
1595  {
1596  MonitorElement *me = findObject(dir, h->GetName());
1597  if (! me)
1598  me = book1D(dir, h->GetName(), (TH1F *) h->Clone());
1599  else if (overwrite)
1600  me->copyFrom(h);
1601  else if (isCollateME(me) || collateHistograms_)
1602  collate1D(me, h);
1603  refcheck = me;
1604  }
1605  else if (TH1S *h = dynamic_cast<TH1S *>(obj))
1606  {
1607  MonitorElement *me = findObject(dir, h->GetName());
1608  if (! me)
1609  me = book1S(dir, h->GetName(), (TH1S *) h->Clone());
1610  else if (overwrite)
1611  me->copyFrom(h);
1612  else if (isCollateME(me) || collateHistograms_)
1613  collate1S(me, h);
1614  refcheck = me;
1615  }
1616  else if (TH1D *h = dynamic_cast<TH1D *>(obj))
1617  {
1618  MonitorElement *me = findObject(dir, h->GetName());
1619  if (! me)
1620  me = book1DD(dir, h->GetName(), (TH1D *) h->Clone());
1621  else if (overwrite)
1622  me->copyFrom(h);
1623  else if (isCollateME(me) || collateHistograms_)
1624  collate1DD(me, h);
1625  refcheck = me;
1626  }
1627  else if (TH2F *h = dynamic_cast<TH2F *>(obj))
1628  {
1629  MonitorElement *me = findObject(dir, h->GetName());
1630  if (! me)
1631  me = book2D(dir, h->GetName(), (TH2F *) h->Clone());
1632  else if (overwrite)
1633  me->copyFrom(h);
1634  else if (isCollateME(me) || collateHistograms_)
1635  collate2D(me, h);
1636  refcheck = me;
1637  }
1638  else if (TH2S *h = dynamic_cast<TH2S *>(obj))
1639  {
1640  MonitorElement *me = findObject(dir, h->GetName());
1641  if (! me)
1642  me = book2S(dir, h->GetName(), (TH2S *) h->Clone());
1643  else if (overwrite)
1644  me->copyFrom(h);
1645  else if (isCollateME(me) || collateHistograms_)
1646  collate2S(me, h);
1647  refcheck = me;
1648  }
1649  else if (TH2D *h = dynamic_cast<TH2D *>(obj))
1650  {
1651  MonitorElement *me = findObject(dir, h->GetName());
1652  if (! me)
1653  me = book2DD(dir, h->GetName(), (TH2D *) h->Clone());
1654  else if (overwrite)
1655  me->copyFrom(h);
1656  else if (isCollateME(me) || collateHistograms_)
1657  collate2DD(me, h);
1658  refcheck = me;
1659  }
1660  else if (TH3F *h = dynamic_cast<TH3F *>(obj))
1661  {
1662  MonitorElement *me = findObject(dir, h->GetName());
1663  if (! me)
1664  me = book3D(dir, h->GetName(), (TH3F *) h->Clone());
1665  else if (overwrite)
1666  me->copyFrom(h);
1667  else if (isCollateME(me) || collateHistograms_)
1668  collate3D(me, h);
1669  refcheck = me;
1670  }
1671  else if (dynamic_cast<TObjString *>(obj))
1672  {
1673  lat::RegexpMatch m;
1674  if (! s_rxmeval.match(obj->GetName(), 0, 0, &m))
1675  {
1676  if (strstr(obj->GetName(), "CMSSW"))
1677  {
1678  if (verbose_)
1679  std::cout << "Input file version: " << obj->GetName() << std::endl;
1680  return true;
1681  }
1682  else if (strstr(obj->GetName(), "DQMPATCH"))
1683  {
1684  if (verbose_)
1685  std::cout << "DQM patch version: " << obj->GetName() << std::endl;
1686  return true;
1687  }
1688  else
1689  {
1690  std::cout << "*** DQMStore: WARNING: cannot extract object '"
1691  << obj->GetName() << "' of type '"
1692  << obj->IsA()->GetName() << "'\n";
1693  return false;
1694  }
1695  }
1696 
1697  std::string label = m.matchString(obj->GetName(), 1);
1698  std::string kind = m.matchString(obj->GetName(), 2);
1699  std::string value = m.matchString(obj->GetName(), 3);
1700 
1701  if (kind == "i")
1702  {
1703  MonitorElement *me = findObject(dir, label);
1704  if (! me || overwrite)
1705  {
1706  if (! me) me = bookInt(dir, label);
1707  me->Fill(atoll(value.c_str()));
1708  }
1709  }
1710  else if (kind == "f")
1711  {
1712  MonitorElement *me = findObject(dir, label);
1713  if (! me || overwrite)
1714  {
1715  if (! me) me = bookFloat(dir, label);
1716  me->Fill(atof(value.c_str()));
1717  }
1718  }
1719  else if (kind == "s")
1720  {
1721  MonitorElement *me = findObject(dir, label);
1722  if (! me)
1723  me = bookString(dir, label, value);
1724  else if (overwrite)
1725  me->Fill(value);
1726  }
1727  else if (kind == "t")
1728  {
1729  MonitorElement *me = findObject(dir, label);
1730  if (! me)
1731  {
1732  std::cout << "*** DQMStore: WARNING: no monitor element '"
1733  << label << "' in directory '"
1734  << dir << "' for a tag\n";
1735  return false;
1736  }
1737  errno = 0;
1738  char *endp = 0;
1739  unsigned long val = strtoul(value.c_str(), &endp, 10);
1740  if ((val == 0 && errno) || *endp || val > ~uint32_t(0))
1741  {
1742  std::cout << "*** DQMStore: WARNING: cannot restore tag '"
1743  << value << "' for monitor element '"
1744  << label << "' in directory '"
1745  << dir << "' - invalid value\n";
1746  return false;
1747  }
1748  tag(me, val);
1749  }
1750  else if (kind == "qr")
1751  {
1752  // Handle qreports, but skip them while reading in references.
1754  {
1755  size_t dot = label.find('.');
1756  if (dot == std::string::npos)
1757  {
1758  std::cout << "*** DQMStore: WARNING: quality report label in '" << label
1759  << "' is missing a '.' and cannot be extracted\n";
1760  return false;
1761  }
1762 
1763  std::string mename (label, 0, dot);
1764  std::string qrname (label, dot+1, std::string::npos);
1765 
1766  m.reset();
1767  DQMNet::QValue qv;
1768  if (s_rxmeqr1.match(value, 0, 0, &m))
1769  {
1770  qv.code = atoi(m.matchString(value, 1).c_str());
1771  qv.qtresult = strtod(m.matchString(value, 2).c_str(), 0);
1772  qv.message = m.matchString(value, 4);
1773  qv.qtname = qrname;
1774  qv.algorithm = m.matchString(value, 3);
1775  }
1776  else if (s_rxmeqr2.match(value, 0, 0, &m))
1777  {
1778  qv.code = atoi(m.matchString(value, 1).c_str());
1779  qv.qtresult = 0; // unavailable in old format
1780  qv.message = m.matchString(value, 2);
1781  qv.qtname = qrname;
1782  // qv.algorithm unavailable in old format
1783  }
1784  else
1785  {
1786  std::cout << "*** DQMStore: WARNING: quality test value '"
1787  << value << "' is incorrectly formatted\n";
1788  return false;
1789  }
1790 
1791  MonitorElement *me = findObject(dir, mename);
1792  if (! me)
1793  {
1794  std::cout << "*** DQMStore: WARNING: no monitor element '"
1795  << mename << "' in directory '"
1796  << dir << "' for quality test '"
1797  << label << "'\n";
1798  return false;
1799  }
1800 
1801  me->addQReport(qv, /* FIXME: getQTest(qv.qtname)? */ 0);
1802  }
1803  }
1804  else
1805  {
1806  std::cout << "*** DQMStore: WARNING: cannot extract object '"
1807  << obj->GetName() << "' of type '"
1808  << obj->IsA()->GetName() << "'\n";
1809  return false;
1810  }
1811  }
1812  else if (TNamed *n = dynamic_cast<TNamed *>(obj))
1813  {
1814  // For old DQM data.
1815  std::string s;
1816  s.reserve(6 + strlen(n->GetTitle()) + 2*strlen(n->GetName()));
1817  s += '<'; s += n->GetName(); s += '>';
1818  s += n->GetTitle();
1819  s += '<'; s += '/'; s += n->GetName(); s += '>';
1820  TObjString os(s.c_str());
1821  return extract(&os, dir, overwrite);
1822  }
1823  else
1824  {
1825  std::cout << "*** DQMStore: WARNING: cannot extract object '"
1826  << obj->GetName() << "' of type '" << obj->IsA()->GetName()
1827  << "' and with title '" << obj->GetTitle() << "'\n";
1828  return false;
1829  }
1830 
1831  // If we just read in a reference monitor element, and there is a
1832  // monitor element with the same name, link the two together. The
1833  // other direction is handled by the initialise() method.
1834  if (refcheck && isSubdirectory(s_referenceDirName, dir))
1835  {
1836  std::string mdir(dir, s_referenceDirName.size()+1, std::string::npos);
1837  if (MonitorElement *master = findObject(mdir, obj->GetName()))
1838  {
1839  master->data_.flags |= DQMNet::DQM_PROP_HAS_REFERENCE;
1840  master->reference_ = refcheck->object_;
1841  }
1842  }
1843 
1844  return true;
1845 }
static void collateProfile2D(MonitorElement *me, TProfile2D *h)
Definition: DQMStore.cc:1137
Master< F > master(const F &f)
Definition: FunctClone.h:68
static const lat::Regexp s_rxmeqr2("^st\\.(\\d+)\\.(.*)$")
MonitorElement * book2S(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2S histogram.
Definition: DQMStore.cc:664
bool isCollateME(MonitorElement *me) const
Definition: DQMStore.cc:2574
void copyFrom(TH1 *from)
const std::string & label
Definition: MVAComputer.cc:186
std::string algorithm
Definition: DQMNet.h:91
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
static void collate3D(MonitorElement *me, TH3F *h)
Definition: DQMStore.cc:1120
MonitorElement * book3D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ)
Book 3D histogram.
Definition: DQMStore.cc:776
static void collate1D(MonitorElement *me, TH1F *h)
Definition: DQMStore.cc:1078
MonitorElement * book2DD(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D double histogram.
Definition: DQMStore.cc:686
static void collate1DD(MonitorElement *me, TH1D *h)
Definition: DQMStore.cc:1092
static std::string s_referenceDirName
Definition: DQMStore.cc:46
MonitorElement * book1DD(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:546
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:451
void Fill(long long x)
void tag(MonitorElement *me, unsigned int myTag)
Definition: DQMStore.cc:1151
static void collateProfile(MonitorElement *me, TProfile *h)
Definition: DQMStore.cc:1127
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
bool extract(TObject *obj, const std::string &dir, bool overwrite)
Definition: DQMStore.cc:1568
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
static const uint32_t DQM_PROP_HAS_REFERENCE
Definition: DQMNet.h:53
MonitorElement * bookString(const char *name, const char *value)
Book string.
Definition: DQMStore.cc:480
static void collate1S(MonitorElement *me, TH1S *h)
Definition: DQMStore.cc:1085
MonitorElement * findObject(const std::string &dir, const std::string &name) const
Definition: DQMStore.cc:1395
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:828
std::string qtname
Definition: DQMNet.h:90
unsigned verbose_
Definition: DQMStore.h:416
static void collate2S(MonitorElement *me, TH2S *h)
Definition: DQMStore.cc:1106
static void collate2D(MonitorElement *me, TH2F *h)
Definition: DQMStore.cc:1099
static void collate2DD(MonitorElement *me, TH2D *h)
Definition: DQMStore.cc:1113
T dot(const Basic3DVector &v) const
Scalar product, or &quot;dot&quot; product, with a vector of same type.
std::string message
Definition: DQMNet.h:89
tuple cout
Definition: gather_cfg.py:41
string s
Definition: asciidump.py:422
dbl *** dir
Definition: mlp_gen.cc:35
MonitorElement * bookInt(const char *name)
Book int.
Definition: DQMStore.cc:421
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
float qtresult
Definition: DQMNet.h:88
bool collateHistograms_
Definition: DQMStore.h:419
void addQReport(const DQMNet::QValue &desc, QCriterion *qc)
Add quality report, from DQMStore.
MonitorElement * book1S(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
Definition: DQMStore.cc:530
static const lat::Regexp s_rxmeqr1("^st:(\\d+):([-+e.\\d]+):([^:]*):(.*)$")
static const lat::Regexp s_rxmeval("^<(.*)>(i|f|s|t|qr)=(.*)</\\1>$")
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:972
MonitorElement * DQMStore::findObject ( const std::string &  dir,
const std::string &  name 
) const
private

get MonitorElement <name> in directory <dir> (null if MonitorElement does not exist)

Definition at line 1395 of file DQMStore.cc.

References MonitorElement::data_, data_, dir, DQMNet::CoreObject::dirname, mergeVDriftHistosByStation::name, DQMNet::CoreObject::objname, raiseDQMError(), and s_safe.

Referenced by book(), bookFloat(), bookInt(), bookString(), extract(), makeDirectory(), and tag().

1396 {
1397  if (dir.find_first_not_of(s_safe) != std::string::npos)
1398  raiseDQMError("DQMStore", "Monitor element path name '%s' uses"
1399  " unacceptable characters", dir.c_str());
1400  if (name.find_first_not_of(s_safe) != std::string::npos)
1401  raiseDQMError("DQMStore", "Monitor element path name '%s' uses"
1402  " unacceptable characters", name.c_str());
1403 
1404  MonitorElement proto;
1405  proto.data_.dirname = &dir;
1406  proto.data_.objname = name;
1407 
1408  MEMap::const_iterator mepos = data_.find(proto);
1409  return (mepos == data_.end() ? 0
1410  : const_cast<MonitorElement *>(&*mepos));
1411 }
const std::string * dirname
Definition: DQMNet.h:99
static std::string s_safe
Definition: DQMStore.cc:48
std::string objname
Definition: DQMNet.h:100
DQMNet::CoreObject data_
MEMap data_
Definition: DQMStore.h:423
dbl *** dir
Definition: mlp_gen.cc:35
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void DQMStore::forceReset ( void  )
private

Invoke this method after flushing all recently changed monitoring. Clears updated flag on all MEs and calls their Reset() method.

Definition at line 1548 of file DQMStore.cc.

References data_, MonitorElement::Reset(), reset_, and MonitorElement::resetUpdate().

Referenced by DQMStore().

1549 {
1550  MEMap::iterator mi = data_.begin();
1551  MEMap::iterator me = data_.end();
1552  for ( ; mi != me; ++mi)
1553  {
1554  MonitorElement &me = const_cast<MonitorElement &>(*mi);
1555  me.Reset();
1556  me.resetUpdate();
1557  }
1558 
1559  reset_ = true;
1560 }
void resetUpdate(void)
reset &quot;was updated&quot; flag
bool reset_
Definition: DQMStore.h:418
MEMap data_
Definition: DQMStore.h:423
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * DQMStore::get ( const std::string &  path) const

get ME from full pathname (e.g. "my/long/dir/my_histo")

Definition at line 1265 of file DQMStore.cc.

References data_, dir, mergeVDriftHistosByStation::name, and splitPath().

Referenced by Options.Options::__getitem__(), HistoProviderDQM::access(), SiStripDcsInfo::addBadModules(), edm::DQMHttpSource::addEventToDQMBackend(), HcalDigiClient::analyze(), HcalRecHitClient::analyze(), HcalSummaryClient::analyze(), RPCMon_SS_Dbx_Global::analyze(), HcalBaseDQMonitor::analyze(), EBTrendClient::analyze(), EETrendClient::analyze(), EESummaryClient::analyze(), EBSummaryClient::analyze(), EEBeamHodoClient::analyze(), EEBeamCaloClient::analyze(), EBBeamHodoClient::analyze(), EBBeamCaloClient::analyze(), EBLaserClient::analyze(), EELaserClient::analyze(), EELedClient::analyze(), EBStatusFlagsClient::analyze(), EEStatusFlagsClient::analyze(), EBTimingClient::analyze(), EBCosmicClient::analyze(), EBIntegrityClient::analyze(), EECosmicClient::analyze(), EBOccupancyClient::analyze(), EEIntegrityClient::analyze(), EBPedestalClient::analyze(), EEOccupancyClient::analyze(), EEPedestalClient::analyze(), EEPedestalOnlineClient::analyze(), EBPedestalOnlineClient::analyze(), EBTestPulseClient::analyze(), EETestPulseClient::analyze(), EBClusterClient::analyze(), EEClusterClient::analyze(), EETriggerTowerClient::analyze(), EBTriggerTowerClient::analyze(), EcalBarrelMonitorClient::analyze(), EcalEndcapMonitorClient::analyze(), EETimingClient::analyze(), SiPixelDigiSource::analyze(), SiPixelRawDataErrorSource::analyze(), SiPixelClusterSource::analyze(), TrackerOfflineValidationSummary::associateModuleHistsWithTree(), DQMOfflineHLTEventInfoClient::beginJob(), L1TEventInfoClient::beginJob(), L1TEMUEventInfoClient::beginJob(), HLTEventInfoClient::beginJob(), HLTMonPhotonClient::beginJob(), BeamMonitor::beginJob(), EcalEndcapMonitorClient::beginJob(), EcalBarrelMonitorClient::beginJob(), HLTMonElectronConsumer::beginJob(), SiPixelEDAClient::beginLuminosityBlock(), RPCChamberQuality::beginRun(), RPCNoisyStripTest::beginRun(), HcalCoarsePedestalClient::beginRun(), RPCMon_SS_Dbx_Global::beginRun(), HcalSummaryClient::beginRun(), RPCBxTest::beginRun(), RPCOccupancyTest::beginRun(), RPCEventSummary::beginRun(), RPCRecHitProbability::beginRun(), RPCMonitorDigi::beginRun(), RPCDeadChannelTest::beginRun(), RPCMultiplicityTest::beginRun(), RPCClusterSizeTest::beginRun(), ZDCMonitorClient::beginRun(), CalibrationScanTask::book(), CalibrationTask::book(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), SiPixelDataQuality::bookGlobalQualityFlag(), RPCMonitorDigi::bookRegionME(), BeamMonitorBx::BookTables(), BeamMonitorBx::BookTrendHistos(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), DQMGenericTnPClient::calculateEfficiency(), HeavyFlavorHarvesting::calculateEfficiency(), HcalBeamClient::calculateProblems(), HcalCoarsePedestalClient::calculateProblems(), HcalDeadCellClient::calculateProblems(), HcalDetDiagPedestalClient::calculateProblems(), HcalDigiClient::calculateProblems(), HcalHotCellClient::calculateProblems(), HcalTrigPrimClient::calculateProblems(), HcalRawDataClient::calculateProblems(), CalibrationHistograms::CalibrationHistograms(), CalibrationHistosUsingDb::CalibrationHistosUsingDb(), HcalDataCertification::CertifyHcal(), SiPixelActionExecutor::checkQTestResults(), RPCOccupancyTest::clientOperation(), RPCEventSummary::clientOperation(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelDataQuality::computeGlobalQualityFlagByLumi(), CommissioningHistograms::copyCustomInformation(), FourVectorHLTOnline::countHLTGroupBXHitsEndLumiBlock(), FourVectorHLTOnline::countHLTGroupHitsEndLumiBlock(), TrigResRateMon::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupHitsEndLumiBlock(), FourVectorHLTOnline::countHLTGroupL1HitsEndLumiBlock(), TrigResRateMon::countHLTGroupL1HitsEndLumiBlock(), FourVectorHLTOffline::countHLTGroupL1HitsEndLumiBlock(), FourVectorHLTOnline::countHLTPathHitsEndLumiBlock(), TrigResRateMon::countHLTPathHitsEndLumiBlock(), FourVectorHLTOffline::countHLTPathHitsEndLumiBlock(), PFClient::createEfficiencyPlots(), createH2CompTest(), createH2ContentTest(), EgHLTOfflineClient::createLooseTightTrigEff(), EgHLTOfflineClient::createN1EffHists(), PFClient::createResolutionPlots(), SiStripActionExecutor::createShiftReport(), TopElectronHLTOfflineClient::createSingleEffHists(), EgHLTOfflineClient::createSingleEffHists(), EgHLTOfflineClient::createTrigTagProbeEffHists(), EgHLTOfflineClient::createTrigTagProbeEffHists2Leg(), EgHLTOfflineClient::createTrigTagProbeEffHistsNewAlgo(), dqmCopyRecursively(), DTBlockedROChannelsTest::DTRobBinsMap::DTRobBinsMap(), SiPixelActionExecutor::dumpBarrelRefValues(), SiPixelActionExecutor::dumpEndcapRefValues(), DQMHcalIsoTrackPostProcessor::endJob(), DQMHistEffProducer::endJob(), EcalBarrelMonitorModule::endJob(), EcalEndcapMonitorModule::endJob(), HarvestingAnalyzer::endJob(), HcalSimHitsValidation::endJob(), HcalMonitorModule::endJob(), ZDCMonitorModule::endJob(), MuonIsolationDQM::endJob(), MuIsoValidation::endJob(), MuonAlignment::endJob(), DQMHistPlotter::endJob(), RPCDcsInfoClient::endLuminosityBlock(), SiPixelCertification::endLuminosityBlock(), SiStripMonitorDigi::endLuminosityBlock(), DQMDcsInfoClient::endLuminosityBlock(), AlcaBeamMonitorClient::endLuminosityBlock(), L1TGCTClient::endLuminosityBlock(), EBDataCertificationTask::endLuminosityBlock(), EEDataCertificationTask::endLuminosityBlock(), L1TdeECALClient::endLuminosityBlock(), L1TEventInfoClient::endLuminosityBlock(), L1TRPCTFClient::endLuminosityBlock(), L1TEMUEventInfoClient::endLuminosityBlock(), HLTEventInfoClient::endLuminosityBlock(), L1ScalersClient::endLuminosityBlock(), HcalLSbyLSMonitor::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), DTSummaryClients::endLuminosityBlock(), TrackEfficiencyClient::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), JetMETDQMPostProcessor::endRun(), HltSusyExoPostProcessor::endRun(), RPCDcsInfoClient::endRun(), RPCRecHitProbabilityClient::endRun(), SiPixelCertification::endRun(), DQMDcsInfoClient::endRun(), DataCertificationJetMET::endRun(), TopHLTDiMuonDQMClient::endRun(), HLTTauCertifier::endRun(), DTOfflineSummaryClients::endRun(), L1TGCTClient::endRun(), RPCEfficiencyPerRingLayer::endRun(), RPCEfficiencyShiftHisto::endRun(), DQMOfflineHLTEventInfoClient::endRun(), EBDataCertificationTask::endRun(), EEDataCertificationTask::endRun(), MuonAlignmentSummary::endRun(), FourVectorHLTClient::endRun(), PhotonDataCertification::endRun(), EcalEndcapMonitorClient::endRun(), EcalBarrelMonitorClient::endRun(), HLTMuonCertSummary::endRun(), HLTOverallSummary::endRun(), CSCOfflineClient::endRun(), RPCEfficiencySecond::endRun(), ZDCMonitorClient::errorSummary(), CommissioningHistograms::extractHistograms(), SiPixelRawDataErrorModule::fill(), SiPixelClusterModule::fill(), SiPixelDigiModule::fill(), SiStripQualityChecker::fillDetectorStatusAtLumi(), SiPixelActionExecutor::fillDeviations(), SiPixelActionExecutor::fillEfficiency(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelRawDataErrorModule::fillFED(), SiPixelActionExecutor::fillFEDErrorSummary(), SiPixelDataQuality::fillGlobalQualityPlot(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), DQMFEDIntegrityClient::fillHistograms(), FourVectorHLTOnline::fillHltMatrix(), TrigResRateMon::fillHltMatrix(), FourVectorHLTOffline::fillHltMatrix(), SiPixelInformationExtractor::fillModuleAndHistoList(), RPCChamberQuality::fillMonitorElements(), SiPixelActionExecutor::fillOccupancy(), HcalSummaryClient::fillReportSummary(), HcalSummaryClient::fillReportSummaryLSbyLS(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripCertificationInfo::fillSiStripCertificationMEsAtLumi(), SiPixelActionExecutor::fillSummary(), PFDQMEventSelector::filter(), SiStripDaqInfo::findExcludedModule(), SiPixelInformationExtractor::findNoisyPixels(), ElectronDqmAnalyzerBase::get(), L1THcalClient::get1DHisto(), L1TGMTClient::get1DHisto(), L1TEventInfoClient::get1DHisto(), L1TdeECALClient::get1DHisto(), L1TEMUEventInfoClient::get1DHisto(), HLTEventInfoClient::get1DHisto(), L1TDTTPGClient::get1DHisto(), FourVectorHLTClient::get1DHisto(), L1TdeECALClient::get1DProfile(), L1TEventInfoClient::get1DProfile(), L1TEMUEventInfoClient::get1DProfile(), HLTEventInfoClient::get1DProfile(), L1TDTTPGClient::get1DProfile(), FourVectorHLTClient::get1DProfile(), L1THcalClient::get2DHisto(), L1TGMTClient::get2DHisto(), L1TdeECALClient::get2DHisto(), L1TEventInfoClient::get2DHisto(), L1TEMUEventInfoClient::get2DHisto(), HLTEventInfoClient::get2DHisto(), L1TDTTPGClient::get2DHisto(), FourVectorHLTClient::get2DHisto(), L1TEventInfoClient::get2DProfile(), L1TdeECALClient::get2DProfile(), L1TEMUEventInfoClient::get2DProfile(), HLTEventInfoClient::get2DProfile(), L1TDTTPGClient::get2DProfile(), FourVectorHLTClient::get2DProfile(), getAnyHisto(), EDMtoMEConverter::getData(), SiPixelActionExecutor::getData(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), EgHLTOfflineSummaryClient::getEgHLTSumHist_(), SiPixelActionExecutor::getFEDSummaryME(), SiPixelActionExecutor::getGrandSummaryME(), HcalRawDataClient::getHardwareSpaceHistos(), getHisto(), getHisto2(), EmDQMPostProcessor::getHistogram(), getHistoTH3F(), getHistoTProfile(), getHistoTProfile2D(), rpcdqmclient::clientTools::getMEs(), RPCDqmClient::getMonitorElements(), SiPixelActionExecutor::getSummaryME(), getTH1F(), L1TDTTFClient::getTH1F(), getTH2F(), L1TDTTFClient::getTH2F(), getTH3F(), getTProfile(), getTProfile2D(), ContentReader::give_files(), ContentReader::give_ME(), CommissioningHistograms::histogram(), htmlErrors(), HcalDetDiagLEDClient::htmlOutput(), HcalDetDiagPedestalClient::htmlOutput(), HLTMuonValidator::initializeHists(), HcalBaseDQMonitor::IsAllowedCalibType(), TkHistoMap::loadTkHistoMap(), EgHLTOfflineClient::makeEffMonElem2Leg(), TopElectronHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndAll(), EgHLTOfflineClient::makeEffMonElemFromPassAndFail(), EgHLTOfflineClient::makeEffMonElemFromPassAndFailAndTagTag(), PlotCombiner::makePlot(), SiPixelHistoPlotter::makePlot(), SiStripHistoPlotter::makePlot(), TrigResRateMon::normalizeHLTMatrix(), DQMClientExample::performClient(), DTBlockedROChannelsTest::performClientDiagnostic(), RPCChamberQuality::performeClientOperation(), HLTTauDQMSummaryPlotter::plotEfficiencyHisto(), SiStripInformationExtractor::plotHistosFromLayout(), HLTTauDQMSummaryPlotter::plotIntegratedEffHisto(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), SiPixelActionExecutor::prephistosB(), SiPixelActionExecutor::prephistosE(), SiPixelInformationExtractor::printAlarmList(), SiStripActionExecutor::printShiftHistoParameters(), QTestStatusChecker::processAlarms(), edm::EventStreamHttpReader::read(), CastorLEDMonitor::reset(), RPCFEDIntegrity::reset(), resetME(), SiPixelHistoricInfoDQMClient::retrieveMEs(), SiPixelHistoricInfoEDAClient::retrieveMEs(), PhotonOfflineClient::runClient(), JetMETDQMOfflineClient::runClient_(), EgHLTOfflineSummaryClient::runClient_(), DTLocalTriggerEfficiencyTest::runClientDiagnostic(), CommissioningHistograms::runNumber(), ConversionPostprocessing::runPostprocessing(), PhotonPostprocessing::runPostprocessing(), CommissioningHistograms::runType(), SamplingHistograms::SamplingHistograms(), DQMFileSaver::saveForOffline(), DQMFileSaver::saveForOnline(), SiPixelInformationExtractor::selectMEList(), EcalBarrelMonitorClient::softReset(), EcalEndcapMonitorClient::softReset(), PFMETDQMAnalyzer::storeBadEvents(), PFCandidateDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), DTDataIntegrityTask::TimeHistos(), HcalDetDiagLEDClient::validHtmlOutput(), HcalDetDiagPedestalClient::validHtmlOutput(), and SubTaskSummaryStatus::WriteThreshold().

1266 {
1267  std::string dir;
1268  std::string name;
1269  splitPath(dir, name, path);
1270  MonitorElement proto(&dir, name);
1271  MEMap::const_iterator mepos = data_.find(proto);
1272  return (mepos == data_.end() ? 0
1273  : const_cast<MonitorElement *>(&*mepos));
1274 }
static void splitPath(std::string &dir, std::string &name, const std::string &path)
Definition: DQMStore.cc:85
int path() const
Definition: HLTadd.h:3
MEMap data_
Definition: DQMStore.h:423
dbl *** dir
Definition: mlp_gen.cc:35
std::vector< MonitorElement * > DQMStore::get ( unsigned int  tag) const

get all MonitorElements tagged as <tag>

Definition at line 1278 of file DQMStore.cc.

References MonitorElement::data_, data_, DQMNet::DQM_PROP_TAGGED, DQMNet::CoreObject::flags, i, query::result, DQMNet::CoreObject::tag, and tag().

Referenced by Options.Options::__getitem__().

1279 {
1280  // FIXME: Use reverse map [tag -> path] / [tag -> dir]?
1281  std::vector<MonitorElement *> result;
1282  for (MEMap::const_iterator i = data_.begin(), e = data_.end(); i != e; ++i)
1283  {
1284  const MonitorElement &me = *i;
1285  if ((me.data_.flags & DQMNet::DQM_PROP_TAGGED) && me.data_.tag == tag)
1286  result.push_back(const_cast<MonitorElement *>(&me));
1287  }
1288  return result;
1289 }
int i
Definition: DBlmapReader.cc:9
uint32_t flags
Definition: DQMNet.h:96
static const uint32_t DQM_PROP_TAGGED
Definition: DQMNet.h:54
uint32_t tag
Definition: DQMNet.h:97
void tag(MonitorElement *me, unsigned int myTag)
Definition: DQMStore.cc:1151
tuple result
Definition: query.py:137
DQMNet::CoreObject data_
MEMap data_
Definition: DQMStore.h:423
std::vector< MonitorElement * > DQMStore::getAllContents ( const std::string &  path) const

get vector with children of folder, including all subfolders + their children; must use an exact pathname

Definition at line 1469 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), data_, i, isSubdirectory(), and query::result.

Referenced by SiStripCalibLorentzAngle::algoBeginJob(), HcalDataCertification::beginJob(), SiPixelDQMRocLevelAnalyzer::beginJob(), HcalDAQInfo::beginJob(), edmtest::DQMReferenceHistogramRootFileEventSetupAnalyzer::beginRun(), SiStripDQMProfileToTkMapConverter::beginRun(), MEtoEDMConverter::beginRun(), SiStripQualityHotStripIdentifierRoot::bookHistos(), HcalDataCertification::CertifyHcal(), DQMHistoryServiceBase::createSummary(), MEtoEDMConverter::endJob(), HcalDAQInfo::endLuminosityBlock(), DataCertificationJetMET::endRun(), StatisticsFilter::filter(), HcalBaseDQClient::htmlOutput(), MEtoEDMConverter::putData(), SiStripNoisesDQMService::readNoises(), SiStripPedestalsDQMService::readPedestals(), HcalRecHitMonitor::reset(), EcalEndcapMonitorClient::softReset(), EcalBarrelMonitorClient::softReset(), DQMRootOutputModule::writeLuminosityBlock(), and DQMRootOutputModule::writeRun().

1470 {
1471  std::string clean;
1472  const std::string *cleaned = 0;
1473  cleanTrailingSlashes(path, clean, cleaned);
1474  MonitorElement proto(cleaned, std::string());
1475 
1476  std::vector<MonitorElement *> result;
1477  MEMap::const_iterator e = data_.end();
1478  MEMap::const_iterator i = data_.lower_bound(proto);
1479  for ( ; i != e && isSubdirectory(*cleaned, *i->data_.dirname); ++i)
1480  result.push_back(const_cast<MonitorElement *>(&*i));
1481 
1482  return result;
1483 }
int i
Definition: DBlmapReader.cc:9
int path() const
Definition: HLTadd.h:3
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
tuple result
Definition: query.py:137
std::vector< T * > clean
Definition: MVATrainer.cc:156
MEMap data_
Definition: DQMStore.h:423
void DQMStore::getAllTags ( std::vector< std::string > &  into) const

get tags for various maps, return vector with strings of the form <dir pathname>="">:<obj1>/<tag1>/<tag2>,<obj2>/<tag1>/<tag3>, etc.

Definition at line 1416 of file DQMStore.cc.

References data_, dirs_, DQMNet::DQM_PROP_TAGGED, isSubdirectory(), and m.

Referenced by EDMtoMEConverter::getData().

1417 {
1418  into.clear();
1419  into.reserve(dirs_.size());
1420 
1421  MEMap::const_iterator me = data_.end();
1422  std::set<std::string>::const_iterator di = dirs_.begin();
1423  std::set<std::string>::const_iterator de = dirs_.end();
1424  char tagbuf[32]; // more than enough for '/' and up to 10 digits
1425 
1426  for ( ; di != de; ++di)
1427  {
1428  MonitorElement proto(&*di, std::string());
1429  MEMap::const_iterator mi = data_.lower_bound(proto);
1430  MEMap::const_iterator m = mi;
1431  size_t sz = di->size() + 2;
1432  size_t nfound = 0;
1433  for ( ; m != me && isSubdirectory(*di, *m->data_.dirname); ++m)
1434  if (*di == *m->data_.dirname && (m->data_.flags & DQMNet::DQM_PROP_TAGGED))
1435  {
1436  // the tags count for '/' + up to 10 digits, otherwise ',' + ME name
1437  sz += 1 + m->data_.objname.size() + 11;
1438  ++nfound;
1439  }
1440 
1441  if (! nfound)
1442  continue;
1443 
1444  std::vector<std::string>::iterator istr
1445  = into.insert(into.end(), std::string());
1446 
1447  istr->reserve(sz);
1448 
1449  *istr += *di;
1450  *istr += ':';
1451  for (sz = 0; mi != m; ++mi)
1452  {
1453  if (*di == *m->data_.dirname && (m->data_.flags & DQMNet::DQM_PROP_TAGGED))
1454  {
1455  sprintf(tagbuf, "/%u", mi->data_.tag);
1456  if (sz > 0)
1457  *istr += ',';
1458  *istr += m->data_.objname;
1459  *istr += tagbuf;
1460  ++sz;
1461  }
1462  }
1463  }
1464 }
static const uint32_t DQM_PROP_TAGGED
Definition: DQMNet.h:54
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
MEMap data_
Definition: DQMStore.h:423
std::set< std::string > dirs_
Definition: DQMStore.h:424
std::vector< MonitorElement * > DQMStore::getContents ( const std::string &  path) const

get vector with all children of folder (does NOT include contents of subfolders)

Definition at line 1294 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), data_, i, isSubdirectory(), and query::result.

Referenced by SiStripCommissioningOfflineClient::beginRun(), SiPixelActionExecutor::checkQTestResults(), CommissioningHistograms::copyCustomInformation(), FourVectorHLTClient::endRun(), CommissioningHistograms::extractHistograms(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiStripQualityChecker::fillSubDetStatus(), SiStripSummaryCreator::fillSummaryHistos(), SiStripCertificationInfo::fillTrackingCertificationMEs(), SiStripQualityChecker::fillTrackingStatus(), SiStripQualityChecker::fillTrackingStatusAtLumi(), FUShmDQMOutputService::findMonitorElements(), QTestStatusChecker::fullPathNames(), SiStripInformationExtractor::getCondDBHistos(), SiStripInformationExtractor::getGlobalHistos(), SiStripInformationExtractor::getHistosFromPath(), SiPixelInformationExtractor::getHistosFromPath(), SiStripInformationExtractor::getSingleModuleHistos(), SiPixelInformationExtractor::getSingleModuleHistos(), SiStripSummaryCreator::getSummaryME(), SiStripInformationExtractor::getTrackerMapHistos(), SiPixelInformationExtractor::getTrackerMapHistos(), SiStripHistoPlotter::makeCondDBPlots(), SiStripInformationExtractor::printAlarmList(), SiStripActionExecutor::printFaultyModuleList(), SiStripInformationExtractor::printNonGeomHistoList(), SiStripInformationExtractor::printSummaryHistoList(), SiStripFEDErrorsDQM::readBadAPVs(), SiStripBadComponentsDQMService::readBadComponents(), SiStripInformationExtractor::readGlobalHistoList(), SiStripInformationExtractor::readModuleAndHistoList(), SiStripInformationExtractor::readQTestSummary(), SiStripInformationExtractor::readStatusMessage(), SiPixelInformationExtractor::readStatusMessage(), PhotonOfflineClient::retrieveHisto(), SiPixelHistoricInfoDQMClient::retrieveMEs(), SiPixelHistoricInfoEDAClient::retrieveMEs(), BTagHLTOfflineClient::runClient_(), NoiseRatesClient::runClient_(), CaloTowersClient::runClient_(), HcalRecHitsClient::runClient_(), JetMETHLTOfflineClient::runClient_(), CommissioningHistograms::runNumber(), CommissioningHistograms::runType(), SiStripTrackerMapCreator::setTkMapFromHistogram(), and showDirStructure().

1295 {
1296  std::string clean;
1297  const std::string *cleaned = 0;
1298  cleanTrailingSlashes(path, clean, cleaned);
1299  MonitorElement proto(cleaned, std::string());
1300 
1301  std::vector<MonitorElement *> result;
1302  MEMap::const_iterator e = data_.end();
1303  MEMap::const_iterator i = data_.lower_bound(proto);
1304  for ( ; i != e && isSubdirectory(*cleaned, *i->data_.dirname); ++i)
1305  if (*cleaned == *i->data_.dirname)
1306  result.push_back(const_cast<MonitorElement *>(&*i));
1307 
1308  return result;
1309 }
int i
Definition: DBlmapReader.cc:9
int path() const
Definition: HLTadd.h:3
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
tuple result
Definition: query.py:137
std::vector< T * > clean
Definition: MVATrainer.cc:156
MEMap data_
Definition: DQMStore.h:423
std::vector< MonitorElement * > DQMStore::getContents ( const std::string &  path,
unsigned int  tag 
) const

same as above for tagged MonitorElements

Definition at line 1313 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), data_, DQMNet::DQM_PROP_TAGGED, i, isSubdirectory(), query::result, and tag().

1314 {
1315  std::string clean;
1316  const std::string *cleaned = 0;
1317  cleanTrailingSlashes(path, clean, cleaned);
1318  MonitorElement proto(cleaned, std::string());
1319 
1320  std::vector<MonitorElement *> result;
1321  MEMap::const_iterator e = data_.end();
1322  MEMap::const_iterator i = data_.lower_bound(proto);
1323  for ( ; i != e && isSubdirectory(*cleaned, *i->data_.dirname); ++i)
1324  if (*cleaned == *i->data_.dirname
1325  && (i->data_.flags & DQMNet::DQM_PROP_TAGGED)
1326  && i->data_.tag == tag)
1327  result.push_back(const_cast<MonitorElement *>(&*i));
1328 
1329  return result;
1330 }
int i
Definition: DBlmapReader.cc:9
static const uint32_t DQM_PROP_TAGGED
Definition: DQMNet.h:54
int path() const
Definition: HLTadd.h:3
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
void tag(MonitorElement *me, unsigned int myTag)
Definition: DQMStore.cc:1151
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
tuple result
Definition: query.py:137
std::vector< T * > clean
Definition: MVATrainer.cc:156
MEMap data_
Definition: DQMStore.h:423
void DQMStore::getContents ( std::vector< std::string > &  into,
bool  showContents = true 
) const

get contents; return vector<string> of the form <dir pathname>="">:<obj1>,<obj2>,<obj3>; if showContents = false, change form to <dir pathname>="">: (useful for subscription requests; meant to imply "all contents")

Definition at line 1337 of file DQMStore.cc.

References data_, dirs_, isSubdirectory(), and m.

1338 {
1339  into.clear();
1340  into.reserve(dirs_.size());
1341 
1342  MEMap::const_iterator me = data_.end();
1343  std::set<std::string>::const_iterator di = dirs_.begin();
1344  std::set<std::string>::const_iterator de = dirs_.end();
1345  for ( ; di != de; ++di)
1346  {
1347  MonitorElement proto(&*di, std::string());
1348  MEMap::const_iterator mi = data_.lower_bound(proto);
1349  MEMap::const_iterator m = mi;
1350  size_t sz = di->size() + 2;
1351  size_t nfound = 0;
1352  for ( ; m != me && isSubdirectory(*di, *m->data_.dirname); ++m)
1353  if (*di == *m->data_.dirname)
1354  {
1355  sz += m->data_.objname.size() + 1;
1356  ++nfound;
1357  }
1358 
1359  if (! nfound)
1360  continue;
1361 
1362  std::vector<std::string>::iterator istr
1363  = into.insert(into.end(), std::string());
1364 
1365  if (showContents)
1366  {
1367  istr->reserve(sz);
1368 
1369  *istr += *di;
1370  *istr += ':';
1371  for (sz = 0; mi != m; ++mi)
1372  {
1373  if (*di != *mi->data_.dirname)
1374  continue;
1375 
1376  if (sz > 0)
1377  *istr += ',';
1378 
1379  *istr += mi->data_.objname;
1380  ++sz;
1381  }
1382  }
1383  else
1384  {
1385  istr->reserve(di->size() + 2);
1386  *istr += *di;
1387  *istr += ':';
1388  }
1389  }
1390 }
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
MEMap data_
Definition: DQMStore.h:423
std::set< std::string > dirs_
Definition: DQMStore.h:424
std::vector< MonitorElement * > DQMStore::getMatchingContents ( const std::string &  pattern,
lat::Regexp::Syntax  syntaxType = lat::Regexp::Wildcard 
) const

get vector with children of folder, including all subfolders + their children; matches names against a wildcard pattern matched against the full ME path

Definition at line 1488 of file DQMStore.cc.

References data_, i, mergePath(), path(), raiseDQMError(), and query::result.

Referenced by DQMStoreStats::calcstats(), and EgHLTOfflineSummaryClient::getQTestResults_().

1489 {
1490  lat::Regexp rx;
1491  try
1492  {
1493  rx = lat::Regexp(pattern, 0, syntaxType);
1494  rx.study();
1495  }
1496  catch (lat::Error &e)
1497  {
1498  raiseDQMError("DQMStore", "Invalid regular expression '%s': %s",
1499  pattern.c_str(), e.explain().c_str());
1500  }
1501 
1502  std::string path;
1503  std::vector<MonitorElement *> result;
1504  MEMap::const_iterator i = data_.begin();
1505  MEMap::const_iterator e = data_.end();
1506  for ( ; i != e; ++i)
1507  {
1508  path.clear();
1509  mergePath(path, *i->data_.dirname, i->data_.objname);
1510  if (rx.match(path))
1511  result.push_back(const_cast<MonitorElement *>(&*i));
1512  }
1513 
1514  return result;
1515 }
int i
Definition: DBlmapReader.cc:9
static void mergePath(std::string &path, const std::string &dir, const std::string &name)
Definition: DQMStore.cc:98
int path() const
Definition: HLTadd.h:3
tuple result
Definition: query.py:137
MEMap data_
Definition: DQMStore.h:423
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
std::vector< std::string > DQMStore::getMEs ( void  ) const

get list of (non-dir) MEs of current directory

Definition at line 1239 of file DQMStore.cc.

References data_, i, isSubdirectory(), pwd_, and query::result.

Referenced by CalibrationScanTask::book(), CalibrationTask::book(), SiPixelDataQuality::computeGlobalQualityFlag(), dqmCopyRecursively(), SiPixelActionExecutor::dumpBarrelModIds(), SiPixelActionExecutor::dumpEndcapModIds(), L1TdeECALClient::endLuminosityBlock(), L1TRPCTFClient::endLuminosityBlock(), CSCOfflineClient::endRun(), SiPixelTrackerMapCreator::exploreBeiStructure(), SiPixelActionExecutor::fillEfficiency(), SiPixelActionExecutor::fillFEDErrorSummary(), SiPixelDataQuality::fillGlobalQualityPlot(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiPixelActionExecutor::fillLayout(), SiPixelInformationExtractor::fillModuleAndHistoList(), SiPixelActionExecutor::fillOccupancy(), SiPixelActionExecutor::fillSummary(), ElectronDqmAnalyzerBase::find(), SiPixelInformationExtractor::findNoisyPixels(), SiPixelActionExecutor::getData(), SiPixelActionExecutor::getFEDSummaryME(), SiPixelActionExecutor::getGrandSummaryME(), SiPixelInformationExtractor::getMEList(), SiPixelActionExecutor::getSummaryME(), ContentReader::give_files(), SiPixelWebInterface::handleEDARequest(), SiPixelInformationExtractor::printAlarmList(), SiPixelInformationExtractor::printModuleHistoList(), SiPixelInformationExtractor::printSummaryHistoList(), SiStripInformationExtractor::readLayoutNames(), JetMETDQMOfflineClient::runClient_(), and SiPixelInformationExtractor::selectMEList().

1240 {
1241  MonitorElement proto(&pwd_, std::string());
1242  std::vector<std::string> result;
1243  MEMap::const_iterator e = data_.end();
1244  MEMap::const_iterator i = data_.lower_bound(proto);
1245  for ( ; i != e && isSubdirectory(pwd_, *i->data_.dirname); ++i)
1246  if (pwd_ == *i->data_.dirname)
1247  result.push_back(i->getName());
1248 
1249  return result;
1250 }
int i
Definition: DBlmapReader.cc:9
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
tuple result
Definition: query.py:137
std::string pwd_
Definition: DQMStore.h:422
MEMap data_
Definition: DQMStore.h:423
QCriterion * DQMStore::getQCriterion ( const std::string &  qtname) const
int DQMStore::getStatus ( const std::string &  path = "") const

get "global" folder <path> status (one of:STATUS_OK, WARNING, ERROR, OTHER); returns most sever error, where ERROR > WARNING > OTHER > STATUS_OK; see Core/interface/QTestStatus.h for details on "OTHER"

Definition at line 2496 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), data_, dqm::qstatus::ERROR, isSubdirectory(), dqm::qstatus::OTHER, ntuplemaker::status, dqm::qstatus::STATUS_OK, and dqm::qstatus::WARNING.

Referenced by QTestStatusChecker::checkGlobalStatus(), SiStripInformationExtractor::printAlarmList(), and SiPixelInformationExtractor::printAlarmList().

2497 {
2498  std::string clean;
2499  const std::string *cleaned = 0;
2500  cleanTrailingSlashes(path, clean, cleaned);
2501 
2503  MEMap::const_iterator mi = data_.begin();
2504  MEMap::const_iterator me = data_.end();
2505  for ( ; mi != me; ++mi)
2506  {
2507  if (! cleaned->empty() && ! isSubdirectory(*cleaned, *mi->data_.dirname))
2508  continue;
2509 
2510  if (mi->hasError())
2511  return dqm::qstatus::ERROR;
2512  else if (mi->hasWarning())
2513  status = dqm::qstatus::WARNING;
2514  else if (status < dqm::qstatus::WARNING
2515  && mi->hasOtherReport())
2516  status = dqm::qstatus::OTHER;
2517  }
2518  return status;
2519 }
static const int OTHER
static const int WARNING
int path() const
Definition: HLTadd.h:3
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
std::vector< T * > clean
Definition: MVATrainer.cc:156
MEMap data_
Definition: DQMStore.h:423
static const int STATUS_OK
tuple status
Definition: ntuplemaker.py:245
static const int ERROR
std::vector< std::string > DQMStore::getSubdirs ( void  ) const

get list of subdirectories of current directory

Definition at line 1216 of file DQMStore.cc.

References dirs_, i, isSubdirectory(), pwd_, and query::result.

Referenced by SiPixelActionExecutor::bookOccupancyPlots(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelActionExecutor::createLayout(), SiPixelActionExecutor::createMap(), SiStripSummaryCreator::createSummary(), dqmCopyRecursively(), SiPixelActionExecutor::dumpBarrelModIds(), SiPixelActionExecutor::dumpEndcapModIds(), DQMFileLoader::endJob(), JetMETDQMPostProcessor::endRun(), EmDQMPostProcessor::endRun(), DataCertificationJetMET::endRun(), FourVectorHLTClient::endRun(), SiPixelTrackerMapCreator::exploreBeiStructure(), SiPixelActionExecutor::fillEfficiency(), SiPixelActionExecutor::fillFEDErrorSummary(), SiPixelDataQuality::fillGlobalQualityPlot(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiPixelActionExecutor::fillLayout(), SiPixelInformationExtractor::fillModuleAndHistoList(), SiPixelActionExecutor::fillOccupancy(), SiStripQualityChecker::fillSubDetStatus(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), DQMGenericTnPClient::findAllSubdirectories(), FUShmDQMOutputService::findMonitorElements(), SiPixelInformationExtractor::findNoisyPixels(), SiPixelActionExecutor::GetBladeSubdirs(), SiPixelInformationExtractor::getMEList(), SiStripUtility::getModuleFolderList(), SiStripBadComponentsDQMService::getModuleFolderList(), SiStripSummaryCreator::getSummaryME(), ContentReader::give_subdirs(), SiStripUtility::goToDir(), SiStripBadComponentsDQMService::goToDir(), FUShmDQMOutputService::postEndLumi(), SiStripInformationExtractor::printAlarmList(), SiPixelInformationExtractor::printAlarmList(), SiPixelInformationExtractor::printModuleHistoList(), SiStripInformationExtractor::printNonGeomHistoList(), SiStripInformationExtractor::printSummaryHistoList(), SiPixelInformationExtractor::printSummaryHistoList(), SiStripInformationExtractor::readLayoutNames(), ElectronDqmAnalyzerBase::remove_other_dirs(), BTagHLTOfflineClient::runClient_(), HcalRecHitsClient::runClient_(), CaloTowersClient::runClient_(), NoiseRatesClient::runClient_(), JetMETDQMOfflineClient::runClient_(), JetMETHLTOfflineClient::runClient_(), HLXMonitor::SaveDQMFile(), DQMFileSaver::saveForOffline(), DQMFileSaver::saveForOnline(), SiPixelInformationExtractor::selectMEList(), SiStripTrackerMapCreator::setTkMapFromHistogram(), and HLXMonitor::SetupHists().

1217 {
1218  std::vector<std::string> result;
1219  std::set<std::string>::const_iterator e = dirs_.end();
1220  std::set<std::string>::const_iterator i = dirs_.find(pwd_);
1221 
1222  // If we didn't find current directory, the tree is empty, so quit.
1223  if (i == e)
1224  return result;
1225 
1226  // Skip the current directory and then start looking for immediate
1227  // subdirectories in the dirs_ list. Stop when we are no longer in
1228  // (direct or indirect) subdirectories of pwd_. Note that we don't
1229  // "know" which order the set will sort A/B, A/B/C and A/D.
1230  while (++i != e && isSubdirectory(pwd_, *i))
1231  if (i->find('/', pwd_.size()+1) == std::string::npos)
1232  result.push_back(*i);
1233 
1234  return result;
1235 }
int i
Definition: DBlmapReader.cc:9
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
tuple result
Definition: query.py:137
std::string pwd_
Definition: DQMStore.h:422
std::set< std::string > dirs_
Definition: DQMStore.h:424
void DQMStore::goUp ( void  )

equivalent to "cd .."

Definition at line 243 of file DQMStore.cc.

References pos, pwd_, and setCurrentFolder().

Referenced by MultiTrackValidator::beginRun(), MuonTrackValidator::beginRun(), SiPixelActionExecutor::bookOccupancyPlots(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelActionExecutor::createLayout(), SiStripSummaryCreator::createSummary(), SiPixelActionExecutor::dumpBarrelModIds(), SiPixelActionExecutor::dumpEndcapModIds(), JetMETDQMPostProcessor::endRun(), EmDQMPostProcessor::endRun(), SiPixelTrackerMapCreator::exploreBeiStructure(), SiPixelActionExecutor::fillEfficiency(), SiPixelActionExecutor::fillFEDErrorSummary(), SiPixelDataQuality::fillGlobalQualityPlot(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiPixelActionExecutor::fillLayout(), SiPixelInformationExtractor::fillModuleAndHistoList(), SiPixelActionExecutor::fillOccupancy(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), SiPixelInformationExtractor::findNoisyPixels(), SiPixelInformationExtractor::getMEList(), SiStripUtility::getModuleFolderList(), SiStripBadComponentsDQMService::getModuleFolderList(), SiStripSummaryCreator::getSummaryME(), SiStripUtility::goToDir(), SiStripBadComponentsDQMService::goToDir(), SiStripInformationExtractor::printAlarmList(), SiPixelInformationExtractor::printAlarmList(), SiPixelInformationExtractor::printModuleHistoList(), SiStripInformationExtractor::printNonGeomHistoList(), SiStripInformationExtractor::printSummaryHistoList(), SiPixelInformationExtractor::printSummaryHistoList(), SiStripFEDErrorsDQM::readBadAPVs(), and SiPixelInformationExtractor::selectMEList().

244 {
245  size_t pos = pwd_.rfind('/');
246  if (pos == std::string::npos)
247  setCurrentFolder("");
248  else
249  setCurrentFolder(pwd_.substr(0, pos));
250 }
std::string pwd_
Definition: DQMStore.h:422
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232
MonitorElement* DQMStore::initialise ( MonitorElement me,
const std::string &  path 
)
private

Referenced by book().

void DQMStore::initializeFrom ( const edm::ParameterSet pset)
private

Definition at line 154 of file DQMStore.cc.

References collateHistograms_, gather_cfg::cout, edm::ParameterSet::getUntrackedParameter(), makeDirectory(), qalgos_, readFile(), reset(), s_referenceDirName, StripRunDirs, verbose_, and verboseQT_.

Referenced by DQMStore().

154  {
155  makeDirectory("");
156  reset();
157 
158  // set steerable parameters
159  verbose_ = pset.getUntrackedParameter<int>("verbose", 0);
160  if (verbose_ > 0)
161  std::cout << "DQMStore: verbosity set to " << verbose_ << std::endl;
162 
163  verboseQT_ = pset.getUntrackedParameter<int>("verboseQT", 0);
164  if (verbose_ > 0)
165  std::cout << "DQMStore: QTest verbosity set to " << verboseQT_ << std::endl;
166 
167  collateHistograms_ = pset.getUntrackedParameter<bool>("collateHistograms", false);
168  if (collateHistograms_)
169  std::cout << "DQMStore: histogram collation is enabled\n";
170 
171  std::string ref = pset.getUntrackedParameter<std::string>("referenceFileName", "");
172  if (! ref.empty())
173  {
174  std::cout << "DQMStore: using reference file '" << ref << "'\n";
175  readFile(ref, true, "", s_referenceDirName, StripRunDirs, false);
176  }
177 
178  initQCriterion<Comp2RefChi2>(qalgos_);
179  initQCriterion<Comp2RefKolmogorov>(qalgos_);
180  initQCriterion<ContentsXRange>(qalgos_);
181  initQCriterion<ContentsYRange>(qalgos_);
182  initQCriterion<MeanWithinExpected>(qalgos_);
183  initQCriterion<Comp2RefEqualH>(qalgos_);
184  initQCriterion<DeadChannel>(qalgos_);
185  initQCriterion<NoisyChannel>(qalgos_);
186  initQCriterion<ContentsWithinExpected>(qalgos_);
187  initQCriterion<CompareToMedian>(qalgos_);
188 
189 }
T getUntrackedParameter(std::string const &, T const &) const
bool readFile(const std::string &filename, bool overwrite=false, const std::string &path="", const std::string &prepend="", OpenRunDirs stripdirs=StripRunDirs, bool fileMustExist=true)
Definition: DQMStore.cc:2253
static std::string s_referenceDirName
Definition: DQMStore.cc:46
unsigned verboseQT_
Definition: DQMStore.h:417
QAMap qalgos_
Definition: DQMStore.h:427
unsigned verbose_
Definition: DQMStore.h:416
tuple cout
Definition: gather_cfg.py:41
void reset(void)
Definition: DQMStore.cc:1524
bool collateHistograms_
Definition: DQMStore.h:419
void makeDirectory(const std::string &path)
get folder corresponding to inpath wrt to root (create subdirs if necessary)
Definition: DQMStore.cc:255
bool DQMStore::isCollateME ( MonitorElement me) const
private

Definition at line 2574 of file DQMStore.cc.

References MonitorElement::data_, DQMNet::CoreObject::dirname, isSubdirectory(), and s_collateDirName.

Referenced by extract().

2575 { return me && isSubdirectory(s_collateDirName, *me->data_.dirname); }
static std::string s_collateDirName
Definition: DQMStore.cc:47
const std::string * dirname
Definition: DQMNet.h:99
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
DQMNet::CoreObject data_
bool DQMStore::load ( const std::string &  filename,
OpenRunDirs  stripdirs = StripRunDirs,
bool  fileMustExist = true 
)

public load root file <filename>, and copy MonitorElements; overwrite identical MonitorElements (default: true); set DQMStore.collateHistograms to true to sum several files note: by default this method strips off run dir structure

Definition at line 2228 of file DQMStore.cc.

References collateHistograms_, gather_cfg::cout, readFile(), and verbose_.

Referenced by DQMFileReader::beginJob(), and ReadMeFromFile::beginRun().

2231 {
2232  bool overwrite = true;
2233  if (collateHistograms_) overwrite = false;
2234  if (verbose_)
2235  {
2236  std::cout << "DQMStore::load: reading from file '" << filename << "'\n";
2237  if (collateHistograms_)
2238  std::cout << "DQMStore::load: in collate mode " << "\n";
2239  else
2240  std::cout << "DQMStore::load: in overwrite mode " << "\n";
2241  }
2242 
2243  return readFile(filename,overwrite,"","",stripdirs,fileMustExist);
2244 
2245 }
bool readFile(const std::string &filename, bool overwrite=false, const std::string &path="", const std::string &prepend="", OpenRunDirs stripdirs=StripRunDirs, bool fileMustExist=true)
Definition: DQMStore.cc:2253
unsigned verbose_
Definition: DQMStore.h:416
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:41
bool collateHistograms_
Definition: DQMStore.h:419
void DQMStore::makeDirectory ( const std::string &  path)
private

get folder corresponding to inpath wrt to root (create subdirs if necessary)

Definition at line 255 of file DQMStore.cc.

References dirs_, findObject(), mergeVDriftHistosByStation::name, raiseDQMError(), and cmsCodeRules.pickleFileParser::slash.

Referenced by initializeFrom(), readDirectory(), and setCurrentFolder().

256 {
257  std::string prev;
258  std::string subdir;
259  std::string name;
260  prev.reserve(path.size());
261  subdir.reserve(path.size());
262  name.reserve(path.size());
263  size_t prevname = 0;
264  size_t slash = 0;
265 
266  while (true)
267  {
268  // Create this subdirectory component.
269  subdir.clear();
270  subdir.append(path, 0, slash);
271  name.clear();
272  name.append(subdir, prevname, std::string::npos);
273  if (! prev.empty() && findObject(prev, name))
274  raiseDQMError("DQMStore", "Attempt to create subdirectory '%s'"
275  " which already exists as a monitor element",
276  subdir.c_str());
277 
278  if (! dirs_.count(subdir))
279  dirs_.insert(subdir);
280 
281  // Stop if we've reached the end (including possibly a trailing slash).
282  if (slash+1 >= path.size())
283  break;
284 
285  // Find the next slash, making sure we progress. If reach the end,
286  // process the last path component; the next loop round will terminate.
287  prevname = slash ? slash+1 : slash;
288  prev = subdir;
289  if ((slash = path.find('/', ++slash)) == std::string::npos)
290  slash = path.size();
291  }
292 }
int path() const
Definition: HLTadd.h:3
MonitorElement * findObject(const std::string &dir, const std::string &name) const
Definition: DQMStore.cc:1395
std::set< std::string > dirs_
Definition: DQMStore.h:424
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
bool DQMStore::open ( const std::string &  filename,
bool  overwrite = false,
const std::string &  onlypath = "",
const std::string &  prepend = "",
OpenRunDirs  stripdirs = KeepRunDirs,
bool  fileMustExist = true 
)

public open/read root file <filename>, and copy MonitorElements; if flag=true, overwrite identical MonitorElements (default: false); if onlypath != "", read only selected directory if prepend !="", prepend string to path note: by default this method keeps the dir structure as in file and does not update monitor element references!

Definition at line 2213 of file DQMStore.cc.

References readFile().

Referenced by SiStripCalibLorentzAngle::algoBeginJob(), ElectronDqmAnalyzerBase::beginJob(), DQMFileReader::beginJob(), HcalMonitorClient::beginJob(), EcalBarrelMonitorClient::beginJob(), EcalEndcapMonitorClient::beginJob(), SiPixelDQMRocLevelAnalyzer::beginJob(), edmtest::DQMReferenceHistogramRootFileEventSetupAnalyzer::beginRun(), SiStripCommissioningOfflineClient::beginRun(), DQMFileLoader::endJob(), SiPixelHistoricInfoDQMClient::endRun(), python.Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig(), ZDCMonitorClient::initialize(), PFDQMEventSelector::openInputFile(), SiStripOfflineDQM::openInputFile(), DQMHistoryServiceBase::openRequestedFile(), SiStripBadComponentsDQMService::openRequestedFile(), BuildTrackerMapPlugin::read(), PhotonOfflineClient::runClient(), ConversionPostprocessing::runPostprocessing(), PhotonPostprocessing::runPostprocessing(), SiStripDQMProfileToTkMapConverter::SiStripDQMProfileToTkMapConverter(), and StatisticsFilter::StatisticsFilter().

2219 {
2220  return readFile(filename,overwrite,onlypath,prepend,stripdirs,fileMustExist);
2221 }
bool readFile(const std::string &filename, bool overwrite=false, const std::string &path="", const std::string &prepend="", OpenRunDirs stripdirs=StripRunDirs, bool fileMustExist=true)
Definition: DQMStore.cc:2253
tuple filename
Definition: lut2db_cfg.py:20
const DQMStore& DQMStore::operator= ( const DQMStore )
private
const std::string & DQMStore::pwd ( void  ) const

return pathname of current directory

Definition at line 204 of file DQMStore.cc.

References pwd_.

Referenced by SiStripDcsInfo::addBadModules(), edm::DQMHttpSource::addEventToDQMBackend(), HcalDataCertification::beginJob(), HcalDAQInfo::beginJob(), SiStripSpyMonitorModule::beginJob(), CalibrationScanTask::book(), CalibrationTask::book(), FineDelayTask::book(), LatencyTask::book(), PhotonOfflineClient::book2DHistoVector(), PhotonAnalyzer::book2DHistoVector(), PhotonOfflineClient::book3DHistoVector(), PhotonAnalyzer::book3DHistoVector(), PhotonOfflineClient::bookHisto(), PhotonAnalyzer::bookHisto(), RPCValidHistograms::bookHistograms(), SiPixelDigiSource::bookMEs(), CalibrationHistosUsingDb::CalibrationHistosUsingDb(), HcalDataCertification::CertifyHcal(), SiPixelActionExecutor::checkQTestResults(), SiPixelDataQuality::computeGlobalQualityFlag(), SiPixelActionExecutor::createLayout(), SiStripSummaryCreator::createSummary(), SiPixelActionExecutor::dumpBarrelModIds(), SiPixelActionExecutor::dumpEndcapModIds(), DQMHcalIsoTrackPostProcessor::endJob(), L1TdeECALClient::endLuminosityBlock(), HcalDAQInfo::endLuminosityBlock(), JetMETDQMPostProcessor::endRun(), EmDQMPostProcessor::endRun(), HltSusyExoPostProcessor::endRun(), DataCertificationJetMET::endRun(), SiPixelTrackerMapCreator::exploreBeiStructure(), SiPixelRawDataErrorModule::fill(), SiPixelClusterModule::fill(), SiStripQualityChecker::fillDetectorStatus(), SiStripQualityChecker::fillDetectorStatusAtLumi(), SiPixelActionExecutor::fillEfficiency(), SiStripQualityChecker::fillFaultyModuleStatus(), SiPixelActionExecutor::fillFEDErrorSummary(), SiPixelDataQuality::fillGlobalQualityPlot(), SiPixelActionExecutor::fillGrandBarrelSummaryHistos(), SiPixelActionExecutor::fillGrandEndcapSummaryHistos(), SiStripSummaryCreator::fillGrandSummaryHistos(), SiPixelActionExecutor::fillLayout(), SiPixelInformationExtractor::fillModuleAndHistoList(), SiPixelActionExecutor::fillOccupancy(), SiStripCertificationInfo::fillSiStripCertificationMEs(), SiPixelActionExecutor::fillSummary(), SiStripSummaryCreator::fillSummaryHistos(), SiStripQualityChecker::fillTrackingStatus(), SiStripQualityChecker::fillTrackingStatusAtLumi(), SiStripDaqInfo::findExcludedModule(), SiPixelInformationExtractor::findNoisyPixels(), SiPixelActionExecutor::getData(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), SiPixelActionExecutor::getFEDSummaryME(), SiPixelActionExecutor::getGrandSummaryME(), SiPixelInformationExtractor::getMEList(), SiStripUtility::getModuleFolderList(), SiStripBadComponentsDQMService::getModuleFolderList(), SiPixelInformationExtractor::getSingleModuleHistos(), SiStripSummaryCreator::getSummaryME(), SiPixelActionExecutor::getSummaryME(), SiStripUtility::getTopFolderPath(), SiPixelInformationExtractor::getTrackerMapHistos(), ContentReader::give_files(), ContentReader::give_subdirs(), SiStripUtility::goToDir(), SiStripBadComponentsDQMService::goToDir(), SiPixelInformationExtractor::goToDir(), CommissioningHistograms::histogram(), SiPixelActionExecutor::prephistosB(), SiPixelActionExecutor::prephistosE(), SiStripInformationExtractor::printAlarmList(), SiPixelInformationExtractor::printAlarmList(), SiStripActionExecutor::printFaultyModuleList(), SiPixelInformationExtractor::printModuleHistoList(), SiStripInformationExtractor::printNonGeomHistoList(), SiStripInformationExtractor::printSummaryHistoList(), SiPixelInformationExtractor::printSummaryHistoList(), SiStripFEDErrorsDQM::readBadAPVs(), SiStripBadComponentsDQMService::readBadComponents(), ElectronDqmAnalyzerBase::remove_other_dirs(), SiPixelInformationExtractor::selectMEList(), SiStripTrackerMapCreator::setTkMapFromHistogram(), GenericBenchmark::setup(), and SubTaskSummaryStatus::WriteThreshold().

205 { return pwd_; }
std::string pwd_
Definition: DQMStore.h:422
unsigned int DQMStore::readDirectory ( TFile *  file,
bool  overwrite,
const std::string &  onlypath,
const std::string &  prepend,
const std::string &  curdir,
OpenRunDirs  stripdirs 
)
private

read ROOT objects from file <file> in directory <onlypath>; return total # of ROOT objects read

Definition at line 2058 of file DQMStore.cc.

References prof2calltree::count, gather_cfg::cout, extract(), isSubdirectory(), combine::key, makeDirectory(), VarParsing::obj, pos, raiseDQMError(), s_collateDirName, s_monitorDirName, s_referenceDirName, createPayload::skip, cmsCodeRules.pickleFileParser::slash, StripRunDirs, and verbose_.

Referenced by readFile().

2064 {
2065  unsigned int ntot = 0;
2066  unsigned int count = 0;
2067 
2068  if (! file->cd(curdir.c_str()))
2069  raiseDQMError("DQMStore", "Failed to process directory '%s' while"
2070  " reading file '%s'", curdir.c_str(), file->GetName());
2071 
2072  // Figure out current directory name, but strip out the top
2073  // directory into which we dump everything.
2074  std::string dirpart = curdir;
2075  if (dirpart.compare(0, s_monitorDirName.size(), s_monitorDirName) == 0)
2076  {
2077  if (dirpart.size() == s_monitorDirName.size())
2078  dirpart.clear();
2079  else if (dirpart[s_monitorDirName.size()] == '/')
2080  dirpart.erase(0, s_monitorDirName.size()+1);
2081  }
2082 
2083  // See if we are going to skip this directory.
2084  bool skip = (! onlypath.empty() && ! isSubdirectory(onlypath, dirpart));
2085 
2086  if (prepend == s_collateDirName ||
2087  prepend == s_referenceDirName ||
2088  stripdirs == StripRunDirs )
2089  {
2090  // Remove Run # and RunSummary dirs
2091  // first look for Run summary,
2092  // if that is found and erased, also erase Run dir
2093  size_t slash = dirpart.find('/');
2094  size_t pos = dirpart.find("/Run summary");
2095  if (slash != std::string::npos && pos !=std::string::npos)
2096  {
2097  dirpart.erase(pos,12);
2098 
2099  pos = dirpart.find("Run ");
2100  size_t length = dirpart.find('/',pos+1)-pos+1;
2101  if (pos !=std::string::npos)
2102  dirpart.erase(pos,length);
2103  }
2104  }
2105 
2106  // If we are prepending, add it to the directory name,
2107  // and suppress reading of already existing reference histograms
2108  if (prepend == s_collateDirName ||
2109  prepend == s_referenceDirName)
2110  {
2111  size_t slash = dirpart.find('/');
2112  // If we are reading reference, skip previous reference.
2113  if (slash == std::string::npos // skip if Reference is toplevel folder, i.e. no slash
2114  && slash+1+s_referenceDirName.size() == dirpart.size()
2115  && dirpart.compare(slash+1, s_referenceDirName.size(), s_referenceDirName) == 0)
2116  return 0;
2117 
2118  slash = dirpart.find('/');
2119  // Skip reading of EventInfo subdirectory.
2120  if (slash != std::string::npos
2121  && slash + 10 == dirpart.size()
2122  && dirpart.compare( slash+1 , 9 , "EventInfo") == 0) {
2123  if (verbose_)
2124  std::cout << "DQMStore::readDirectory: skipping '" << dirpart << "'\n";
2125  return 0;
2126  }
2127 
2128  // Add prefix.
2129  if (dirpart.empty())
2130  dirpart = prepend;
2131  else
2132  dirpart = prepend + '/' + dirpart;
2133  }
2134  else if (! prepend.empty())
2135  {
2136  if (dirpart.empty())
2137  dirpart = prepend;
2138  else
2139  dirpart = prepend + '/' + dirpart;
2140  }
2141 
2142  // Loop over the contents of this directory in the file.
2143  // Post-pone string object handling to happen after other
2144  // objects have been read in so we are guaranteed to have
2145  // histograms by the time we read in quality tests and tags.
2146  TKey *key;
2147  TIter next (gDirectory->GetListOfKeys());
2148  std::list<TObject *> delayed;
2149  while ((key = (TKey *) next()))
2150  {
2151  std::auto_ptr<TObject> obj(key->ReadObj());
2152  if (dynamic_cast<TDirectory *>(obj.get()))
2153  {
2154  std::string subdir;
2155  subdir.reserve(curdir.size() + strlen(obj->GetName()) + 2);
2156  subdir += curdir;
2157  if (! curdir.empty())
2158  subdir += '/';
2159  subdir += obj->GetName();
2160 
2161  ntot += readDirectory(file, overwrite, onlypath, prepend, subdir, stripdirs);
2162  }
2163  else if (skip)
2164  ;
2165  else if (dynamic_cast<TObjString *>(obj.get()))
2166  {
2167  delayed.push_back(obj.release());
2168  }
2169  else
2170  {
2171  if (verbose_ > 2)
2172  std::cout << "DQMStore: reading object '" << obj->GetName()
2173  << "' of type '" << obj->IsA()->GetName()
2174  << "' from '" << file->GetName()
2175  << "' into '" << dirpart << "'\n";
2176 
2177  makeDirectory(dirpart);
2178  if (extract(obj.get(), dirpart, overwrite))
2179  ++count;
2180  }
2181  }
2182 
2183  while (! delayed.empty())
2184  {
2185  if (verbose_ > 2)
2186  std::cout << "DQMStore: reading object '" << delayed.front()->GetName()
2187  << "' of type '" << delayed.front()->IsA()->GetName()
2188  << "' from '" << file->GetName()
2189  << "' into '" << dirpart << "'\n";
2190 
2191  makeDirectory(dirpart);
2192  if (extract(delayed.front(), dirpart, overwrite))
2193  ++count;
2194 
2195  delete delayed.front();
2196  delayed.pop_front();
2197  }
2198 
2199  if (verbose_ > 1)
2200  std::cout << "DQMStore: read " << count << '/' << ntot
2201  << " objects from directory '" << dirpart << "'\n";
2202 
2203  return ntot + count;
2204 }
static std::string s_collateDirName
Definition: DQMStore.cc:47
static std::string s_referenceDirName
Definition: DQMStore.cc:46
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
bool extract(TObject *obj, const std::string &dir, bool overwrite)
Definition: DQMStore.cc:1568
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
unsigned verbose_
Definition: DQMStore.h:416
unsigned int readDirectory(TFile *file, bool overwrite, const std::string &path, const std::string &prepend, const std::string &curdir, OpenRunDirs stripdirs)
Definition: DQMStore.cc:2058
list key
Definition: combine.py:13
tuple cout
Definition: gather_cfg.py:41
static std::string s_monitorDirName
name of global monitoring folder (containing all sources subdirectories)
Definition: DQMStore.cc:45
void makeDirectory(const std::string &path)
get folder corresponding to inpath wrt to root (create subdirs if necessary)
Definition: DQMStore.cc:255
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
bool DQMStore::readFile ( const std::string &  filename,
bool  overwrite = false,
const std::string &  onlypath = "",
const std::string &  prepend = "",
OpenRunDirs  stripdirs = StripRunDirs,
bool  fileMustExist = true 
)
private

private readFile <filename>, and copy MonitorElements; if flag=true, overwrite identical MonitorElements (default: false); if onlypath != "", read only selected directory if prepend !="", prepend string to path if StripRunDirs is set the run and run summary folders are erased.

Definition at line 2253 of file DQMStore.cc.

References gather_cfg::cout, data_, cmsCodeRules.cppFunctionSkipper::exception, f, n, raiseDQMError(), readDirectory(), and verbose_.

Referenced by initializeFrom(), load(), python.Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController::navigate(), python.Vispa.Main.TabController.TabController::open(), open(), and python.Vispa.Main.TabController.TabController::refresh().

2259 {
2260 
2261  if (verbose_)
2262  std::cout << "DQMStore::readFile: reading from file '" << filename << "'\n";
2263 
2264  std::auto_ptr<TFile> f;
2265 
2266  try
2267  {
2268  f.reset(TFile::Open(filename.c_str()));
2269  if (! f.get() || f->IsZombie())
2270  raiseDQMError("DQMStore", "Failed to open file '%s'", filename.c_str());
2271  }
2272  catch (std::exception &)
2273  {
2274  if (fileMustExist)
2275  throw;
2276  else
2277  {
2278  if (verbose_)
2279  std::cout << "DQMStore::readFile: file '" << filename << "' does not exist, continuing\n";
2280  return false;
2281  }
2282  }
2283 
2284  unsigned n = readDirectory(f.get(), overwrite, onlypath, prepend, "", stripdirs);
2285  f->Close();
2286 
2287  MEMap::iterator mi = data_.begin();
2288  MEMap::iterator me = data_.end();
2289  for ( ; mi != me; ++mi)
2290  const_cast<MonitorElement &>(*mi).updateQReportStats();
2291 
2292  if (verbose_)
2293  {
2294  std::cout << "DQMStore::open: successfully read " << n
2295  << " objects from file '" << filename << "'";
2296  if (! onlypath.empty())
2297  std::cout << " from directory '" << onlypath << "'";
2298  if (! prepend.empty())
2299  std::cout << " into directory '" << prepend << "'";
2300  std::cout << std::endl;
2301  }
2302  return true;
2303 }
double f[11][100]
unsigned verbose_
Definition: DQMStore.h:416
MEMap data_
Definition: DQMStore.h:423
unsigned int readDirectory(TFile *file, bool overwrite, const std::string &path, const std::string &prepend, const std::string &curdir, OpenRunDirs stripdirs)
Definition: DQMStore.cc:2058
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:41
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void DQMStore::removeContents ( void  )
void DQMStore::removeContents ( const std::string &  dir)

remove all monitoring elements from directory;

Definition at line 2331 of file DQMStore.cc.

References data_, i, and isSubdirectory().

2332 {
2333  MonitorElement proto(&dir, std::string());
2334  MEMap::iterator e = data_.end();
2335  MEMap::iterator i = data_.lower_bound(proto);
2336  while (i != e && isSubdirectory(dir, *i->data_.dirname))
2337  if (dir == *i->data_.dirname)
2338  data_.erase(i++);
2339  else
2340  ++i;
2341 }
int i
Definition: DBlmapReader.cc:9
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
MEMap data_
Definition: DQMStore.h:423
dbl *** dir
Definition: mlp_gen.cc:35
void DQMStore::removeElement ( const std::string &  name)

erase monitoring element in current directory (opposite of book1D,2D,etc. action);

Definition at line 2353 of file DQMStore.cc.

References pwd_.

Referenced by HcalSummaryClient::analyze(), L1TEventInfoClient::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), L1TEMUEventInfoClient::beginJob(), HLTEventInfoClient::beginJob(), BeamMonitor::beginJob(), EcalEndcapMonitorClient::beginJob(), EcalBarrelMonitorClient::beginJob(), RPCChamberQuality::beginRun(), RPCNoisyStripTest::beginRun(), RPCMon_SS_Dbx_Global::beginRun(), HcalSummaryClient::beginRun(), RPCBxTest::beginRun(), RPCOccupancyTest::beginRun(), RPCEventSummary::beginRun(), RPCRecHitProbability::beginRun(), RPCMonitorDigi::beginRun(), AlcaBeamMonitorClient::beginRun(), RPCDeadChannelTest::beginRun(), RPCMultiplicityTest::beginRun(), ZDCMonitorClient::beginRun(), RPCClusterSizeTest::beginRun(), RPCMonitorDigi::bookRegionME(), BeamMonitorBx::BookTables(), EBDcsInfoTask::cleanup(), EEBeamCaloTask::cleanup(), EEClusterTask::cleanup(), EBLaserTask::cleanup(), EBOccupancyTask::cleanup(), EECosmicTask::cleanup(), EBPedestalOnlineTask::cleanup(), EBPedestalTask::cleanup(), EELaserTask::cleanup(), EELedTask::cleanup(), EEPedestalOnlineTask::cleanup(), EEPedestalTask::cleanup(), EETestPulseTask::cleanup(), EBBeamCaloTask::cleanup(), EBClusterTask::cleanup(), EBCosmicTask::cleanup(), EBDaqInfoTask::cleanup(), EcalEndcapMonitorModule::cleanup(), EEBeamHodoTask::cleanup(), EETrendTask::cleanup(), EBTestPulseTask::cleanup(), EBTrendTask::cleanup(), EcalBarrelMonitorModule::cleanup(), EBBeamHodoTask::cleanup(), EBDataCertificationTask::cleanup(), EEDaqInfoTask::cleanup(), EEDataCertificationTask::cleanup(), EEDcsInfoTask::cleanup(), EBTimingTask::cleanup(), EBSelectiveReadoutTask::cleanup(), EBSummaryClient::cleanup(), EBStatusFlagsTask::cleanup(), EERawDataTask::cleanup(), EEStatusFlagsTask::cleanup(), EBRawDataTask::cleanup(), EESummaryClient::cleanup(), EETrendClient::cleanup(), EBIntegrityTask::cleanup(), EEIntegrityTask::cleanup(), EBTrendClient::cleanup(), EBHltTask::cleanup(), EEHltTask::cleanup(), EETimingTask::cleanup(), EEBeamCaloClient::cleanup(), EEOccupancyTask::cleanup(), EBLaserClient::cleanup(), EBTimingClient::cleanup(), EBBeamCaloClient::cleanup(), EELaserClient::cleanup(), EELedClient::cleanup(), EBIntegrityClient::cleanup(), EEPedestalOnlineClient::cleanup(), EBTestPulseClient::cleanup(), EBPedestalClient::cleanup(), EEIntegrityClient::cleanup(), EEPedestalClient::cleanup(), EBPedestalOnlineClient::cleanup(), EETestPulseClient::cleanup(), EETriggerTowerClient::cleanup(), EBTriggerTowerClient::cleanup(), HcalMonitorModule::cleanup(), EETimingClient::cleanup(), EESelectiveReadoutTask::cleanup(), PFClient::createResolutionPlots(), MonitorElementsDb::endJob(), RPCDcsInfoClient::endRun(), DQMDcsInfoClient::endRun(), TrackerOfflineValidationSummary::fillTree(), CommissioningHistograms::histogram(), MEtoEDMConverter::putData(), ElectronDqmAnalyzerBase::remove(), PhotonOfflineClient::runClient(), JetMETDQMOfflineClient::runClient_(), EESummaryClient::setup(), EBSummaryClient::setup(), EEBeamCaloClient::setup(), EELaserClient::setup(), EBBeamCaloClient::setup(), EBLaserClient::setup(), EELedClient::setup(), EBTimingClient::setup(), EBTestPulseClient::setup(), EBIntegrityClient::setup(), EEIntegrityClient::setup(), EEPedestalOnlineClient::setup(), EEPedestalClient::setup(), EETestPulseClient::setup(), EBPedestalClient::setup(), EBPedestalOnlineClient::setup(), EETriggerTowerClient::setup(), EBTriggerTowerClient::setup(), EETimingClient::setup(), and SubTaskSummaryStatus::WriteThreshold().

2354 {
2356 }
void removeElement(const std::string &name)
Definition: DQMStore.cc:2353
std::string pwd_
Definition: DQMStore.h:422
void DQMStore::removeElement ( const std::string &  dir,
const std::string &  name,
bool  warning = true 
)

remove monitoring element from directory; if warning = true, print message if element does not exist

Definition at line 2361 of file DQMStore.cc.

References gather_cfg::cout, data_, pos, and warning.

2362 {
2363  MonitorElement proto(&dir, name);
2364  MEMap::iterator pos = data_.find(proto);
2365  if (pos == data_.end() && warning)
2366  std::cout << "DQMStore: WARNING: attempt to remove non-existent"
2367  << " monitor element '" << name << "' in '" << dir << "'\n";
2368  else
2369  data_.erase(pos);
2370 }
MEMap data_
Definition: DQMStore.h:423
tuple cout
Definition: gather_cfg.py:41
dbl *** dir
Definition: mlp_gen.cc:35
void DQMStore::reset ( void  )
private

Invoke this method after flushing all recently changed monitoring. Clears updated flag on all recently updated MEs and calls their Reset() method for those that have resetMe = true.

Definition at line 1524 of file DQMStore.cc.

References data_, MonitorElement::Reset(), reset_, MonitorElement::resetMe(), and MonitorElement::resetUpdate().

Referenced by DQMService::flush(), and initializeFrom().

1525 {
1526  MEMap::iterator mi = data_.begin();
1527  MEMap::iterator me = data_.end();
1528  for ( ; mi != me; ++mi)
1529  {
1530  MonitorElement &me = const_cast<MonitorElement &>(*mi);
1531  if (mi->wasUpdated())
1532  {
1533  if (me.resetMe())
1534  me.Reset();
1535  me.resetUpdate();
1536  }
1537  }
1538 
1539  reset_ = true;
1540 }
void resetUpdate(void)
reset &quot;was updated&quot; flag
bool reset_
Definition: DQMStore.h:418
MEMap data_
Definition: DQMStore.h:423
bool resetMe(void) const
true if ME should be reset at end of monitoring cycle
void Reset(void)
reset ME (ie. contents, errors, etc)
void DQMStore::rmdir ( const std::string &  path)

delete directory and all contents; delete directory (all contents + subfolders);

Definition at line 2311 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), data_, dirs_, i, and isSubdirectory().

Referenced by EBBeamCaloTask::beginJob(), EBCosmicTask::beginJob(), EBStatusFlagsTask::beginJob(), EELedTask::beginJob(), EEPedestalOnlineTask::beginJob(), EEPedestalTask::beginJob(), EERawDataTask::beginJob(), EEStatusFlagsTask::beginJob(), EETestPulseTask::beginJob(), EBLaserTask::beginJob(), EBClusterTask::beginJob(), EBOccupancyTask::beginJob(), EEBeamCaloTask::beginJob(), EBPedestalOnlineTask::beginJob(), EEClusterTask::beginJob(), EBPedestalTask::beginJob(), EECosmicTask::beginJob(), EBRawDataTask::beginJob(), L1TdeGCT::beginJob(), EELaserTask::beginJob(), EcalBarrelMonitorModule::beginJob(), EBTestPulseTask::beginJob(), EBTrendTask::beginJob(), EETrendTask::beginJob(), EBIntegrityTask::beginJob(), EcalEndcapMonitorModule::beginJob(), HLTMonPhotonClient::beginJob(), EEBeamHodoTask::beginJob(), HLTMonPhotonSource::beginJob(), EBBeamHodoTask::beginJob(), EEIntegrityTask::beginJob(), EBTimingTask::beginJob(), L1TdeECAL::beginJob(), EBSelectiveReadoutTask::beginJob(), EBTrendClient::beginJob(), EETrendClient::beginJob(), EEOccupancyTask::beginJob(), EBHltTask::beginJob(), EETimingTask::beginJob(), EEHltTask::beginJob(), HLTJetMETDQMSource::beginJob(), L1TDTTPG::beginJob(), EBTriggerTowerTask::beginJob(), EETriggerTowerTask::beginJob(), L1TGT::beginJob(), L1TLTC::beginJob(), L1TCSCTPG::beginJob(), FourVectorHLT::beginJob(), HLTMonSimpleBTag::beginJob(), HLTMonElectron::beginJob(), HLTMonElectronConsumer::beginJob(), L1TFED::beginJob(), HLTMon::beginJob(), L1TRPCTF::beginJob(), EESelectiveReadoutTask::beginJob(), L1TCSCTF::beginJob(), L1TRPCTPG::beginJob(), L1TCompare::beginJob(), L1TECALTPG::beginJob(), L1TRCT::beginJob(), FourVectorHLTOnline::beginJob(), L1GtHwValidation::beginJob(), FourVectorHLTriggerOffline::beginJob(), L1TdeRCT::beginJob(), FourVectorHLTOffline::beginJob(), L1TGCT::beginJob(), JetMETHLTOfflineSource::beginRun(), TriggerValidator::beginRun(), BTagHLTOfflineSource::beginRun(), L1ExtraDQM::beginRun(), L1TGMT::book_(), EETriggerTowerTask::cleanup(), EBTriggerTowerTask::cleanup(), dqmCopyRecursively(), DTLocalTriggerSynchTask::endJob(), DTLocalTriggerTask::endJob(), evf::FWEPWrapper::init(), SiStripCommissioningSource::remove(), CommissioningHistograms::remove(), ElectronDqmAnalyzerBase::remove_other_dirs(), and ZDCMonitorClient::removeAllME().

2312 {
2313  std::string clean;
2314  const std::string *cleaned = 0;
2315  cleanTrailingSlashes(path, clean, cleaned);
2316  MonitorElement proto(cleaned, std::string());
2317 
2318  MEMap::iterator e = data_.end();
2319  MEMap::iterator i = data_.lower_bound(proto);
2320  while (i != e && isSubdirectory(*cleaned, *i->data_.dirname))
2321  data_.erase(i++);
2322 
2323  std::set<std::string>::iterator de = dirs_.end();
2324  std::set<std::string>::iterator di = dirs_.lower_bound(*cleaned);
2325  while (di != de && isSubdirectory(*cleaned, *di))
2326  dirs_.erase(di++);
2327 }
int i
Definition: DBlmapReader.cc:9
int path() const
Definition: HLTadd.h:3
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
std::vector< T * > clean
Definition: MVATrainer.cc:156
MEMap data_
Definition: DQMStore.h:423
std::set< std::string > dirs_
Definition: DQMStore.h:424
void DQMStore::runQTests ( void  )

run quality tests (also finds updated contents in last monitoring cycle, including newly added content)

Definition at line 2475 of file DQMStore.cc.

References gather_cfg::cout, data_, isSubdirectory(), reset_, MonitorElement::runQTests(), s_referenceDirName, and verbose_.

Referenced by ZDCMonitorClient::analyze(), and ZDCMonitorClient::report().

2476 {
2477 
2478  if (verbose_ > 0)
2479  std::cout << "DQMStore: running runQTests() with reset = "
2480  << ( reset_ ? "true" : "false" ) << std::endl;
2481 
2482  // Apply quality tests to each monitor element, skipping references.
2483  MEMap::iterator mi = data_.begin();
2484  MEMap::iterator me = data_.end();
2485  for ( ; mi != me; ++mi)
2486  if (! isSubdirectory(s_referenceDirName, *mi->data_.dirname))
2487  const_cast<MonitorElement &>(*mi).runQTests();
2488 
2489  reset_ = false;
2490 }
static std::string s_referenceDirName
Definition: DQMStore.cc:46
void runQTests(void)
run all quality tests
bool reset_
Definition: DQMStore.h:418
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
unsigned verbose_
Definition: DQMStore.h:416
MEMap data_
Definition: DQMStore.h:423
tuple cout
Definition: gather_cfg.py:41
void DQMStore::save ( const std::string &  filename,
const std::string &  path = "",
const std::string &  pattern = "",
const std::string &  rewrite = "",
SaveReferenceTag  ref = SaveWithReference,
int  minStatus = dqm::qstatus::STATUS_OK,
const std::string &  fileupdate = "RECREATE" 
)

save directory with monitoring objects into root file <filename>; include quality test results with status >= minimum_status (defined in Core/interface/QTestStatus.h); if directory="", save full monitoring structure

Definition at line 1898 of file DQMStore.cc.

References cdInto(), gather_cfg::cout, data_, dirs_, MonitorElement::DQM_KIND_INT, MonitorElement::DQM_KIND_REAL, MonitorElement::DQM_KIND_STRING, DQMNet::DQM_PROP_TAGGED, f, mergeVDriftHistosByStation::file, i, isSubdirectory(), funct::master(), max(), path(), raiseDQMError(), python.rootplot.root2matplotlib::replace(), s_monitorDirName, s_referenceDirName, SaveWithoutReference, SaveWithReference, SaveWithReferenceForQTest, ntuplemaker::status, and verbose_.

Referenced by SiStripGainFromData::algoEndJob(), python.Vispa.Main.TabController.TabController::allowClose(), CalibrationScanTask::checkAndSave(), CalibrationTask::checkAndSave(), python.Vispa.Main.TabController.TabController::checkModificationTimestamp(), EBTriggerTowerTask::cleanup(), EETriggerTowerTask::cleanup(), doSaveForOnline(), DQMHOAlCaRecoStream::endJob(), PerformanceAnalyzer::endJob(), JetFileSaver::endJob(), Digi2Raw2Digi::endJob(), DQMHcalIsoTrackPostProcessor::endJob(), GenericBenchmarkAnalyzer::endJob(), CSCDigiValidation::endJob(), CSCRecHitValidation::endJob(), HcalDigiTester::endJob(), PFTester::endJob(), ElectronDqmAnalyzerBase::endJob(), DQMSimpleFileSaver::endJob(), SiPixelHistoricInfoDQMClient::endJob(), SiPixelDigiValid::endJob(), TrackingTruthValid::endJob(), RPCRecHitProbability::endJob(), MixCollectionValidation::endJob(), RPCMonitorDigi::endJob(), SiPixelHistoricInfoEDAClient::endJob(), MonitorLTC::endJob(), SiStripMonitorFilter::endJob(), SiStripMonitorDigi::endJob(), METFileSaver::endJob(), HLTMonBTagClient::endJob(), HLTMonBTagIPSource::endJob(), HLTMonBTagMuSource::endJob(), SiStripMonitorHLT::endJob(), SiStripDigiValid::endJob(), TkAlCaRecoMonitor::endJob(), EgammaBasicClusters::endJob(), RPCDigiValid::endJob(), SiStripMonitorCluster::endJob(), HLTMonHcalIsoTrack::endJob(), BxTiming::endJob(), EgammaSuperClusters::endJob(), ZdcSimHitStudy::endJob(), LaserDQM::endJob(), DTtTrigDBValidation::endJob(), DataCertificationJetMET::endJob(), HcalSimHitStudy::endJob(), TrackingMonitor::endJob(), SiStripLAProfileBooker::endJob(), MonitorTrackResiduals::endJob(), SiStripCommissioningSource::endJob(), TrackSplittingMonitor::endJob(), GlobalTest::endJob(), BTagValidator::endJob(), TestSuite::endJob(), DQMHcalDiJetsAlCaReco::endJob(), HLTAlCaMonEcalPhiSym::endJob(), DQMHcalPhiSymAlCaReco::endJob(), SiPixelHitEfficiencySource::endJob(), TrackEfficiencyMonitor::endJob(), DQMSourceEleCalib::endJob(), SiPixelTrackResidualSource::endJob(), HcalSimHitsValidation::endJob(), LaserAlignmentT0ProducerDQM::endJob(), L1TDTTF::endJob(), L1TDTTPG::endJob(), GlobalMuonMatchAnalyzer::endJob(), APVValidationPlots::endJob(), StripValidationPlots::endJob(), SiPixelHLTSource::endJob(), HcalRecHitsClient::endJob(), SiStripFEDCheckPlugin::endJob(), NoiseRatesClient::endJob(), DQMHcalPhiSymHLT::endJob(), CaloTowersClient::endJob(), L1TGT::endJob(), JPTJetAnalyzer::endJob(), SiPixelDigiSource::endJob(), L1TCSCTPG::endJob(), HLTMon::endJob(), MuonTrackResidualAnalyzer::endJob(), SiStripSpyMonitorModule::endJob(), SiStripMonitorTrack::endJob(), MuonTrackAnalyzer::endJob(), TkConvValidator::endJob(), SiPixelRawDataErrorSource::endJob(), PhotonValidator::endJob(), SiPixelRecHitsValid::endJob(), SiStripRecHitsValid::endJob(), L1TRPCTF::endJob(), HLTAlCaMonPi0::endJob(), SiPixelRecHitSource::endJob(), SiStripFEDMonitorPlugin::endJob(), DQMSourcePi0::endJob(), L1TGMT::endJob(), ValHcalIsoTrackHLT::endJob(), L1TCSCTF::endJob(), HLTHiggsBits::endJob(), SiStripOfflineDQM::endJob(), SiPixelClusterSource::endJob(), DQMHcalIsoTrackHLT::endJob(), SiStripTrackingRecHitsValid::endJob(), L1TdeCSCTF::endJob(), L1TRPCTPG::endJob(), DQMHcalIsoTrackAlCaReco::endJob(), SiStripCMMonitorPlugin::endJob(), L1TCompare::endJob(), RCTMonitor::endJob(), MuonAlignment::endJob(), RPCTTUMonitor::endJob(), ValidationHcalIsoTrackAlCaReco::endJob(), L1TECALTPG::endJob(), L1TRCT::endJob(), TopValidation::endJob(), PiZeroAnalyzer::endJob(), RPCMonitorSync::endJob(), SiPixelMuonHLT::endJob(), PhotonAnalyzer::endJob(), L1TdeRCT::endJob(), L1TGCT::endJob(), SiPixelOfflineCalibAnalysisBase::endJob(), SiPixelHistoricInfoDQMClient::endRun(), SiPixelHistoricInfoEDAClient::endRun(), MultiTrackValidator::endRun(), RecoMuonValidator::endRun(), RPCEfficiencyPerRingLayer::endRun(), RPCEfficiencyShiftHisto::endRun(), SaveDQMFile::endRun(), SiStripMonitorRawData::endRun(), SiStripMonitorQuality::endRun(), SiStripMonitorPedestals::endRun(), EcalSelectiveReadoutValidation::endRun(), V0Validator::endRun(), RPCEfficiency::endRun(), MuonTrackValidator::endRun(), BeamHaloAnalyzer::endRun(), RPCEfficiencySecond::endRun(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), RPCMonitorSync::readRPCDAQStrips(), PhotonOfflineClient::runClient(), ConversionPostprocessing::runPostprocessing(), PhotonPostprocessing::runPostprocessing(), TkHistoMap::save(), CommissioningHistograms::save(), HLXMonitor::SaveDQMFile(), SiPixelHistoricInfoEDAClient::saveFile(), DQMFileSaver::saveForOffline(), MuonSimHitsValidAnalyzer::saveHistos_CSC(), MuonSimHitsValidAnalyzer::saveHistos_DT(), MuonSimHitsValidAnalyzer::saveHistos_RPC(), ElectronValidator::saveStore(), PFTauElecRejectionBenchmark::write(), PFJetBenchmark::write(), PFMETBenchmark::write(), CSCDigiValidation::~CSCDigiValidation(), CSCRecHitValidation::~CSCRecHitValidation(), EcalDigisValidation::~EcalDigisValidation(), EcalRecHitsValidation::~EcalRecHitsValidation(), EcalSimHitsValidation::~EcalSimHitsValidation(), GlobalDigisHistogrammer::~GlobalDigisHistogrammer(), GlobalHitsHistogrammer::~GlobalHitsHistogrammer(), GlobalHitsProdHistStripper::~GlobalHitsProdHistStripper(), GlobalHitsTester::~GlobalHitsTester(), GlobalRecHitsHistogrammer::~GlobalRecHitsHistogrammer(), MuonDTDigis::~MuonDTDigis(), RPCPointVsRecHit::~RPCPointVsRecHit(), RPCRecHitValid::~RPCRecHitValid(), and SiPixelTrackingRecHitsValid::~SiPixelTrackingRecHitsValid().

1905 {
1906  std::set<std::string>::iterator di, de;
1907  MEMap::iterator mi, me = data_.end();
1908  DQMNet::QReports::const_iterator qi, qe;
1909  int nme=0;
1910 
1911  // TFile flushes to disk with fsync() on every TDirectory written to the
1912  // file. This makes DQM file saving painfully slow, and ironically makes
1913  // it _more_ likely the file saving gets interrupted and corrupts the file.
1914  // The utility class below simply ignores the flush synchronisation.
1915  class TFileNoSync : public TFile
1916  {
1917  public:
1918  TFileNoSync(const char *file, const char *opt) : TFile(file, opt) {}
1919  virtual Int_t SysSync(Int_t) { return 0; }
1920  };
1921 
1922  // open output file, on 1st save recreate, later update
1923  if (verbose_)
1924  std::cout << "\n DQMStore: Opening TFile '" << filename
1925  << "' with option '" << fileupdate <<"'\n";
1926 
1927  TFileNoSync f(filename.c_str(), fileupdate.c_str()); // open file
1928  if(f.IsZombie())
1929  raiseDQMError("DQMStore", "Failed to create/update file '%s'", filename.c_str());
1930  f.cd();
1931 
1932  // Construct a regular expression from the pattern string.
1933  std::auto_ptr<lat::Regexp> rxpat;
1934  if (! pattern.empty())
1935  rxpat.reset(new lat::Regexp(pattern.c_str()));
1936 
1937  // Prepare a path for the reference object selection.
1938  std::string refpath;
1939  refpath.reserve(s_referenceDirName.size() + path.size() + 2);
1940  refpath += s_referenceDirName;
1941  if (! path.empty())
1942  {
1943  refpath += '/';
1944  refpath += path;
1945  }
1946 
1947  // Loop over the directory structure.
1948  for (di = dirs_.begin(), de = dirs_.end(); di != de; ++di)
1949  {
1950  // Check if we should process this directory. We process the
1951  // requested part of the object tree, including references.
1952  if (! path.empty()
1953  && ! isSubdirectory(path, *di)
1954  && ! isSubdirectory(refpath, *di))
1955  continue;
1956 
1957  // Loop over monitor elements in this directory.
1958  MonitorElement proto(&*di, std::string());
1959  mi = data_.lower_bound(proto);
1960  for ( ; mi != me && isSubdirectory(*di, *mi->data_.dirname); ++mi)
1961  {
1962  // Skip if it isn't a direct child.
1963  if (*di != *mi->data_.dirname)
1964  continue;
1965 
1966  // Handle reference histograms, with three distinct cases:
1967  // 1) Skip all references entirely on saving.
1968  // 2) Blanket saving of all references.
1969  // 3) Save only references for monitor elements with qtests.
1970  // The latter two are affected by "path" sub-tree selection,
1971  // i.e. references are saved only in the selected tree part.
1972  if (isSubdirectory(refpath, *mi->data_.dirname))
1973  {
1974  if (ref == SaveWithoutReference)
1975  // Skip the reference entirely.
1976  continue;
1977  else if (ref == SaveWithReference)
1978  // Save all references regardless of qtests.
1979  ;
1980  else if (ref == SaveWithReferenceForQTest)
1981  {
1982  // Save only references for monitor elements with qtests
1983  // with an optional cut on minimum quality test result.
1984  int status = -1;
1985  std::string mname(mi->getFullname(), s_referenceDirName.size()+1, std::string::npos);
1986  MonitorElement *master = get(mname);
1987  if (master)
1988  for (size_t i = 0, e = master->data_.qreports.size(); i != e; ++i)
1989  status = std::max(status, master->data_.qreports[i].code);
1990 
1991  if (! master || status < minStatus)
1992  {
1993  if (verbose_ > 1)
1994  std::cout << "DQMStore::save: skipping monitor element '"
1995  << mi->data_.objname << "' while saving, status is "
1996  << status << ", required minimum status is "
1997  << minStatus << std::endl;
1998  continue;
1999  }
2000  }
2001  }
2002 
2003  if (verbose_ > 1)
2004  std::cout << "DQMStore::save: saving monitor element '"
2005  << mi->data_.objname << "'\n";
2006  nme++; // count saved histograms
2007 
2008  // Create the directory.
2009  gDirectory->cd("/");
2010  if (di->empty())
2012  else if (rxpat.get())
2013  cdInto(s_monitorDirName + '/' + lat::StringOps::replace(*di, *rxpat, rewrite));
2014  else
2015  cdInto(s_monitorDirName + '/' + *di);
2016 
2017  // Save the object.
2018  switch (mi->kind())
2019  {
2023  TObjString(mi->tagString().c_str()).Write();
2024  break;
2025 
2026  default:
2027  mi->object_->Write();
2028  break;
2029  }
2030 
2031  // Save quality reports if this is not in reference section.
2032  if (! isSubdirectory(s_referenceDirName, *mi->data_.dirname))
2033  {
2034  qi = mi->data_.qreports.begin();
2035  qe = mi->data_.qreports.end();
2036  for ( ; qi != qe; ++qi)
2037  TObjString(mi->qualityTagString(*qi).c_str()).Write();
2038  }
2039 
2040  // Save tag if any
2041  if (mi->data_.flags & DQMNet::DQM_PROP_TAGGED)
2042  TObjString(mi->tagLabelString().c_str()).Write();
2043  }
2044  }
2045 
2046  f.Close();
2047 
2048  // Maybe make some noise.
2049  if (verbose_)
2050  std::cout << "DQMStore::save: successfully wrote " << nme
2051  << " objects from path '" << path
2052  << "' into DQM file '" << filename << "'\n";
2053 }
Master< F > master(const F &f)
Definition: FunctClone.h:68
int i
Definition: DBlmapReader.cc:9
bool cdInto(const std::string &path) const
Definition: DQMStore.cc:1851
static std::string s_referenceDirName
Definition: DQMStore.cc:46
static const uint32_t DQM_PROP_TAGGED
Definition: DQMNet.h:54
int path() const
Definition: HLTadd.h:3
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
const T & max(const T &a, const T &b)
double f[11][100]
unsigned verbose_
Definition: DQMStore.h:416
MEMap data_
Definition: DQMStore.h:423
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:41
tuple status
Definition: ntuplemaker.py:245
static std::string s_monitorDirName
name of global monitoring folder (containing all sources subdirectories)
Definition: DQMStore.cc:45
std::set< std::string > dirs_
Definition: DQMStore.h:424
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void DQMStore::setAccumulate ( MonitorElement me,
bool  flag 
)
private

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

Definition at line 2544 of file DQMStore.cc.

References MonitorElement::setAccumulate().

2545 {
2546  if (me)
2547  me->setAccumulate(flag);
2548 }
long int flag
Definition: mlp_lapack.h:47
void setAccumulate(bool flag)
void DQMStore::setCurrentFolder ( const std::string &  fullpath)

set the last directory in fullpath as the current directory(create if needed); to be invoked by user to specify directories for monitoring objects before booking; commands book1D (etc) & removeElement(name) imply elements in this directory!;

Definition at line 232 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), makeDirectory(), and pwd_.

Referenced by SiStripDcsInfo::addBadModules(), edm::DQMHttpSource::addEventToDQMBackend(), HcalSummaryClient::analyze(), RPCMon_SS_Dbx_Global::analyze(), BeamMonitor::analyze(), XmasToDQMSource::analyze(), FourVectorHLT::analyze(), MuonIsolationDQM::analyze(), MuIsoValidation::analyze(), RPCMonitorSync::barrelOffsetHist(), RPCMonitorSync::barrelWidthHist(), DQMHOAlCaRecoStream::beginJob(), BenchmarkAnalyzer::beginJob(), PFCandidateDQMAnalyzer::beginJob(), PFJetDQMAnalyzer::beginJob(), PFMETDQMAnalyzer::beginJob(), EwkElecDQM::beginJob(), ElectronDqmAnalyzerBase::beginJob(), GenericBenchmarkAnalyzer::beginJob(), EwkMuDQM::beginJob(), RPCMonitorLinkSynchro::beginJob(), RPCMonitorRaw::beginJob(), PFTester::beginJob(), L1Scalers::beginJob(), DQMFileReader::beginJob(), MonitorLTC::beginJob(), DQMHcalDiJetsAlCaReco::beginJob(), DQMHcalPhiSymAlCaReco::beginJob(), TrackAnalyzer::beginJob(), HLTMonBTagIPSource::beginJob(), HLTAlCaMonEcalPhiSym::beginJob(), HLTMonBTagClient::beginJob(), HLTMonBTagMuSource::beginJob(), DQMSourceExample::beginJob(), L1TGCTClient::beginJob(), SiStripMonitorFilter::beginJob(), TkAlCaRecoMonitor::beginJob(), TopElectronHLTOfflineSource::beginJob(), EgammaBasicClusters::beginJob(), EwkMuLumiMonitorDQM::beginJob(), RPCDaqInfo::beginJob(), SiPixelCertification::beginJob(), SiPixelDaqInfo::beginJob(), SiPixelDcsInfo::beginJob(), SiStripMonitorHLT::beginJob(), DQMSourceEleCalib::beginJob(), HLTMonHcalIsoTrack::beginJob(), EBDcsInfoTask::beginJob(), EBDaqInfoTask::beginJob(), L1ScalersClient::beginJob(), DQMOfflineHLTEventInfoClient::beginJob(), BxTiming::beginJob(), L1TDTTFClient::beginJob(), L1TdeECALClient::beginJob(), L1TEventInfoClient::beginJob(), L1TDTTPGClient::beginJob(), L1TRPCTFClient::beginJob(), EEDaqInfoTask::beginJob(), DQMFEDIntegrityClient::beginJob(), EEDataCertificationTask::beginJob(), HLTMonBitSummary::beginJob(), HLTMuonDQMSource::beginJob(), EgammaSuperClusters::beginJob(), EBDataCertificationTask::beginJob(), EEDcsInfoTask::beginJob(), L1TEMUEventInfoClient::beginJob(), EBStatusFlagsTask::beginJob(), DiMuonHistograms::beginJob(), HLTEventInfoClient::beginJob(), HcalSimHitStudy::beginJob(), ZdcSimHitStudy::beginJob(), EBBeamCaloTask::beginJob(), EEClusterTask::beginJob(), L1TdeGCT::beginJob(), EBClusterTask::beginJob(), EEBeamCaloTask::beginJob(), EECosmicTask::beginJob(), EELaserTask::beginJob(), BeamConditionsMonitor::beginJob(), EELedTask::beginJob(), EBCosmicTask::beginJob(), QcdHighPtDQM::beginJob(), EBLaserTask::beginJob(), EEPedestalOnlineTask::beginJob(), EEPedestalTask::beginJob(), EERawDataTask::beginJob(), EEStatusFlagsTask::beginJob(), EBPedestalOnlineTask::beginJob(), EETestPulseTask::beginJob(), EBRawDataTask::beginJob(), EBOccupancyTask::beginJob(), EBPedestalTask::beginJob(), EBTestPulseTask::beginJob(), TrackingMonitor::beginJob(), EBTrendTask::beginJob(), EcalBarrelMonitorModule::beginJob(), HLTMonPhotonClient::beginJob(), HLTMonPhotonSource::beginJob(), EcalEndcapMonitorModule::beginJob(), EEBeamHodoTask::beginJob(), DTDataIntegrityTest::beginJob(), EBBeamHodoTask::beginJob(), L1TDEMON::beginJob(), EEIntegrityTask::beginJob(), EBIntegrityTask::beginJob(), EETrendTask::beginJob(), AlcaBeamMonitor::beginJob(), EBTimingTask::beginJob(), MuonEnergyDepositAnalyzer::beginJob(), MuonRecoAnalyzer::beginJob(), MuonKinVsEtaAnalyzer::beginJob(), L1TdeECAL::beginJob(), DTBlockedROChannelsTest::beginJob(), TrackBuildingAnalyzer::beginJob(), SegmentTrackAnalyzer::beginJob(), BasicHepMCValidation::beginJob(), DrellYanValidation::beginJob(), WValidation::beginJob(), BeamMonitor::beginJob(), EBSelectiveReadoutTask::beginJob(), TrackSplittingMonitor::beginJob(), PFJetAnalyzer::beginJob(), MuonSeedsAnalyzer::beginJob(), BeamMonitorBx::beginJob(), HTMHTAnalyzer::beginJob(), EBTrendClient::beginJob(), HaloTrigger::beginJob(), EETrendClient::beginJob(), BasicGenParticleValidation::beginJob(), GlobalTest::beginJob(), MBUEandQCDValidation::beginJob(), TestSuite::beginJob(), EEHltTask::beginJob(), EEOccupancyTask::beginJob(), EBHltTask::beginJob(), EETimingTask::beginJob(), HLTJetMETDQMSource::beginJob(), ConverterTester::beginJob(), TrackEfficiencyClient::beginJob(), TrackEfficiencyMonitor::beginJob(), JetPtAnalyzer::beginJob(), DQMClientExample::beginJob(), L1TDTTF::beginJob(), L1TDTTPG::beginJob(), LaserAlignmentT0ProducerDQM::beginJob(), JetAnalyzer::beginJob(), DuplicationChecker::beginJob(), GlobalMuonMatchAnalyzer::beginJob(), EBTriggerTowerTask::beginJob(), MuCorrMETAnalyzer::beginJob(), TcMETAnalyzer::beginJob(), EETriggerTowerTask::beginJob(), HLTAlCaMonPi0::beginJob(), DQMSourcePi0::beginJob(), JPTJetAnalyzer::beginJob(), APVValidationPlots::beginJob(), StripValidationPlots::beginJob(), EcalEndcapMonitorClient::beginJob(), EcalBarrelMonitorClient::beginJob(), HcalDataCertification::beginJob(), SiStripFEDCheckPlugin::beginJob(), DQMHcalPhiSymHLT::beginJob(), L1TGT::beginJob(), TopDiLeptonDQM::beginJob(), PFTauHLTTest::beginJob(), HcalDCSInfo::beginJob(), DQMDaqInfo::beginJob(), L1TLTC::beginJob(), MuonIdDQM::beginJob(), FourVectorHLT::beginJob(), HLTMonSimpleBTag::beginJob(), L1TCSCTPG::beginJob(), HcalDAQInfo::beginJob(), HLTMonElectron::beginJob(), HLTMonElectronConsumer::beginJob(), HLTMon::beginJob(), TkConvValidator::beginJob(), L1TFED::beginJob(), SiStripSpyMonitorModule::beginJob(), CaloMETAnalyzer::beginJob(), TopHLTDiMuonDQM::beginJob(), PhotonValidator::beginJob(), MuonTrackResidualAnalyzer::beginJob(), L1TRPCTF::beginJob(), PFMETAnalyzer::beginJob(), MuonTrackAnalyzer::beginJob(), TauValidation::beginJob(), EESelectiveReadoutTask::beginJob(), SiStripFEDMonitorPlugin::beginJob(), L1TCSCTF::beginJob(), ValHcalIsoTrackHLT::beginJob(), MuonIdVal::beginJob(), METAnalyzer::beginJob(), DQMHcalIsoTrackHLT::beginJob(), MuonIsolationDQM::beginJob(), MuIsoValidation::beginJob(), SusyDQM< Mu, Ele, Jet, Met >::beginJob(), EmDQMReco::beginJob(), L1TRPCTPG::beginJob(), L1TdeCSCTF::beginJob(), DQMHcalIsoTrackAlCaReco::beginJob(), L1TCompare::beginJob(), SiStripCMMonitorPlugin::beginJob(), Vx3DHLTAnalyzer::beginJob(), MuonAlignment::beginJob(), HLTScalers::beginJob(), RPCTTUMonitor::beginJob(), ValidationHcalIsoTrackAlCaReco::beginJob(), L1TECALTPG::beginJob(), L1TRCT::beginJob(), FourVectorHLTOnline::beginJob(), L1GtHwValidation::beginJob(), TopValidation::beginJob(), QcdLowPtDQM::beginJob(), PiZeroAnalyzer::beginJob(), CastorMonitorModule::beginJob(), TrigResRateMon::beginJob(), EgHLTOfflineSource::beginJob(), FourVectorHLTriggerOffline::beginJob(), L1TdeRCT::beginJob(), PhotonAnalyzer::beginJob(), FourVectorHLTOffline::beginJob(), L1TGCT::beginJob(), HLTScalersClient::beginJob(), RPCChamberQuality::beginRun(), RPCNoisyStripTest::beginRun(), HcalTrigPrimClient::beginRun(), HcalBeamClient::beginRun(), HcalCoarsePedestalClient::beginRun(), HcalDeadCellClient::beginRun(), HcalDetDiagLEDClient::beginRun(), HcalDetDiagNoiseMonitorClient::beginRun(), HcalDetDiagPedestalClient::beginRun(), HcalDetDiagTimingClient::beginRun(), HcalDigiClient::beginRun(), HcalHotCellClient::beginRun(), HcalNZSClient::beginRun(), RPCMon_SS_Dbx_Global::beginRun(), HcalRecHitClient::beginRun(), HcalSummaryClient::beginRun(), HcalRecHitMonitor::beginRun(), RPCBxTest::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), RPCOccupancyTest::beginRun(), HcalRawDataClient::beginRun(), MultiTrackValidator::beginRun(), L1TGMTClient::beginRun(), RPCEventSummary::beginRun(), CaloTowerAnalyzer::beginRun(), RPCDcsInfo::beginRun(), RPCRecHitProbability::beginRun(), RPCMonitorDigi::beginRun(), DTOfflineSummaryClients::beginRun(), HLTOniaSource::beginRun(), METTester::beginRun(), DQMDcsInfo::beginRun(), AlcaBeamMonitor::beginRun(), HLTMonBitSummary::beginRun(), RPCDeadChannelTest::beginRun(), RPCMultiplicityTest::beginRun(), SiPixelEDAClient::beginRun(), ZDCMonitorClient::beginRun(), RPCClusterSizeTest::beginRun(), DQMProvInfo::beginRun(), RPCEfficiencyPerRingLayer::beginRun(), RPCEfficiencyShiftHisto::beginRun(), DTSegmentAnalysisTask::beginRun(), DTSummaryClients::beginRun(), MuonAlignmentSummary::beginRun(), DQMEventInfo::beginRun(), SiPixelTrackResidualSource::beginRun(), HcalMonitorClient::beginRun(), SiStripMonitorRawData::beginRun(), HLTJetMETDQMSource::beginRun(), ZDCMonitorModule::beginRun(), HeavyFlavorValidation::beginRun(), JetMETHLTOfflineSource::beginRun(), TriggerValidator::beginRun(), BTagHLTOfflineSource::beginRun(), HLTJetMETValidation::beginRun(), SiPixelClusterSource::beginRun(), HLTMuonMatchAndPlot::beginRun(), FourVectorHLTOnline::beginRun(), V0Validator::beginRun(), EgHLTOfflineSource::beginRun(), TrigResRateMon::beginRun(), FourVectorHLTriggerOffline::beginRun(), MuonTrackValidator::beginRun(), FourVectorHLTOffline::beginRun(), HcalDetDiagPedestalMonitor::beginRun(), L1ExtraDQM::beginRun(), HcalDetDiagLaserMonitor::beginRun(), RPCEfficiencySecond::beginRun(), CalibrationScanTask::book(), CalibrationTask::book(), FineDelayTask::book(), LatencyTask::book(), TopSingleLepton::MonitorEnsemble::book(), TopDiLeptonOffline::MonitorEnsemble::book(), MEtoMEComparitor::book(), SiStripMonitorTrack::book(), QcdUeDQM::book1D(), QcdUeDQM::book2D(), PhotonOfflineClient::book2DHistoVector(), PhotonAnalyzer::book2DHistoVector(), PhotonOfflineClient::book3DHistoVector(), PhotonAnalyzer::book3DHistoVector(), L1TGMT::book_(), DTLocalTriggerTask::bookBarrelHistos(), DTTriggerEfficiencyTask::bookChamberHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), RPCMonitorSync::bookDetUnitME(), RPCEfficiency::bookDetUnitSeg(), RPCEfficiencySecond::bookDetUnitSeg(), SiPixelActionExecutor::bookDeviations(), SiPixelActionExecutor::bookEfficiency(), HLTTauDQMSummaryPlotter::bookEfficiencyHisto(), RPCFEDIntegrity::bookFEDMe(), SiPixelDataQuality::bookGlobalQualityFlag(), TrackerOfflineValidationSummary::bookHarvestingHists(), RPCValidHistograms::bookHistograms(), EwkElecTauHistManager::bookHistograms(), RecoMuonValidator::MuonME::bookHistograms(), EwkMuTauHistManager::bookHistograms(), HCALRecHitAnalyzer::BookHistos(), DTDataIntegrityTest::bookHistos(), DTDCSByLumiTask::bookHistos(), PlotMakerL1::bookHistos(), DTNoiseTask::bookHistos(), DTLocalTriggerSynchTask::bookHistos(), PlotMakerReco::bookHistos(), DTDataIntegrityTask::bookHistos(), DTLocalTriggerTask::bookHistos(), DTtTrigDBValidation::bookHistos(), HiggsDQM::bookHistos(), DTSegmentAnalysisTask::bookHistos(), ECALRecHitAnalyzer::BookHistos(), MuonSimHitsValidAnalyzer::bookHistos_CSC(), MuonSimHitsValidAnalyzer::bookHistos_DT(), MuonSimHitsValidAnalyzer::bookHistos_RPC(), TrackAnalyzer::bookHistosForState(), SiPixelHLTSource::bookMEs(), SiPixelDigiSource::bookMEs(), SiPixelRawDataErrorSource::bookMEs(), SiPixelClusterSource::bookMEs(), CSCOfflineClient::bookMonitorObject(), CSCMonitorModule::bookMonitorObject(), SiPixelInformationExtractor::bookNoisyPixels(), SiPixelActionExecutor::bookOccupancyPlots(), QcdUeDQM::bookProfile(), RCTMonitor::BookRCT(), RPCMonitorDigi::bookRegionME(), RPCMonitorDigi::bookRollME(), RPCMonitorDigi::bookSectorRingME(), SiStripCertificationInfo::bookSiStripCertificationMEs(), SiStripQualityChecker::bookStatus(), SiStripDaqInfo::bookStatus(), SiStripDcsInfo::bookStatus(), SiPixelActionExecutor::bookTrackerMaps(), SiStripCertificationInfo::bookTrackingCertificationMEs(), HLTTauDQMSummaryPlotter::bookTriggerBitEfficiencyHistos(), RPCMonitorDigi::bookWheelDiskME(), DTTriggerEfficiencyTask::bookWheelHistos(), DTLocalTriggerTask::bookWheelHistos(), BTagHLTOfflineClient::BTagHLTOfflineClient(), BxTiming::BxTiming(), DQMGenericTnPClient::calculateEfficiency(), HeavyFlavorHarvesting::calculateEfficiency(), CaloJetTester::CaloJetTester(), CaloTowersValidation::CaloTowersValidation(), CastorMonitorModule::CastorMonitorModule(), cd(), HcalDataCertification::CertifyHcal(), HcalCoarsePedestalMonitor::cleanup(), HcalNoiseMonitor::cleanup(), HcalNZSMonitor::cleanup(), HcalTrigPrimMonitor::cleanup(), HcalRecHitMonitor::cleanup(), HcalLSbyLSMonitor::cleanup(), HcalDetDiagLEDMonitor::cleanup(), HcalDataIntegrityTask::cleanup(), HcalHotCellMonitor::cleanup(), HcalBeamMonitor::cleanup(), HcalDetDiagNoiseMonitor::cleanup(), HcalDeadCellMonitor::cleanup(), EECosmicTask::cleanup(), EBBeamCaloTask::cleanup(), EEBeamCaloTask::cleanup(), EEClusterTask::cleanup(), EBClusterTask::cleanup(), EBCosmicTask::cleanup(), EELaserTask::cleanup(), EBDaqInfoTask::cleanup(), EELedTask::cleanup(), EBDcsInfoTask::cleanup(), EEPedestalOnlineTask::cleanup(), EEPedestalTask::cleanup(), EETestPulseTask::cleanup(), EBLaserTask::cleanup(), EBOccupancyTask::cleanup(), EBPedestalOnlineTask::cleanup(), EBPedestalTask::cleanup(), EBTestPulseTask::cleanup(), EBBeamHodoTask::cleanup(), EcalEndcapMonitorModule::cleanup(), EcalBarrelMonitorModule::cleanup(), EEBeamHodoTask::cleanup(), EBTrendTask::cleanup(), EETrendTask::cleanup(), EBTimingTask::cleanup(), EEDataCertificationTask::cleanup(), EEDcsInfoTask::cleanup(), EBDataCertificationTask::cleanup(), EEDaqInfoTask::cleanup(), EBSelectiveReadoutTask::cleanup(), EBStatusFlagsTask::cleanup(), EBSummaryClient::cleanup(), EESummaryClient::cleanup(), EERawDataTask::cleanup(), EEStatusFlagsTask::cleanup(), EBRawDataTask::cleanup(), EETrendClient::cleanup(), EBTrendClient::cleanup(), EEIntegrityTask::cleanup(), EBIntegrityTask::cleanup(), EEBeamCaloClient::cleanup(), EEBeamHodoClient::cleanup(), EEHltTask::cleanup(), EBBeamHodoClient::cleanup(), EEOccupancyTask::cleanup(), EBHltTask::cleanup(), EETimingTask::cleanup(), EELaserClient::cleanup(), EELedClient::cleanup(), EBTimingClient::cleanup(), EEStatusFlagsClient::cleanup(), EBStatusFlagsClient::cleanup(), EBBeamCaloClient::cleanup(), EBLaserClient::cleanup(), EBPedestalClient::cleanup(), EBPedestalOnlineClient::cleanup(), HcalDigiMonitor::cleanup(), EBTestPulseClient::cleanup(), EEIntegrityClient::cleanup(), EEPedestalClient::cleanup(), EEPedestalOnlineClient::cleanup(), EETestPulseClient::cleanup(), EBIntegrityClient::cleanup(), EBTriggerTowerClient::cleanup(), EETriggerTowerClient::cleanup(), HcalMonitorModule::cleanup(), EETimingClient::cleanup(), EESelectiveReadoutTask::cleanup(), HcalDetDiagTimingMonitor::cleanup(), CastorBaseMonitor::clearME(), HcalEEUSMonitor::clearME(), HcalBaseMonitor::clearME(), CommissioningHistograms::copyCustomInformation(), HcalTrigPrimMonitor::create_errorflag(), HcalTrigPrimMonitor::create_et_histogram(), HcalTrigPrimMonitor::create_fg_correlation(), HcalTrigPrimMonitor::create_map(), HcalTrigPrimMonitor::create_summary(), HcalTrigPrimMonitor::create_tp_correlation(), SiStripCommissioningSource::createCablingTasks(), PFClient::createEfficiencyPlots(), CastorLEDMonitor::createFEDmap(), QcdUeDQM::createHistos(), QcdLowPtDQM::createHistos(), SiPixelActionExecutor::createMaps(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripMonitorMuonHLT::createMEs(), PFClient::createResolutionPlots(), SiStripCommissioningSource::createRunNumber(), SiStripMonitorDigi::createSubDetMEs(), SiPixelActionExecutor::createSummary(), SiStripCommissioningSource::createTask(), SiStripCommissioningSource::createTasks(), CSCDigiValidation::CSCDigiValidation(), CSCRecHit2DValidation::CSCRecHit2DValidation(), CSCSegmentValidation::CSCSegmentValidation(), Digi2Raw2Digi::Digi2Raw2Digi(), TrackAnalyzer::doTrackerSpecificInitialization(), dqmCopyRecursively(), DQMEventInfo::DQMEventInfo(), DTGlobalRecoTask::DTGlobalRecoTask(), DTtTrigDBValidation::DTtTrigDBValidation(), EgHLTOfflineClient::EgHLTOfflineClient(), EmDQMReco::EmDQMReco(), RPCMonitorSync::endcapOffsetHist(), RPCMonitorSync::endcapWidthHist(), ElectronDqmAnalyzerBase::endJob(), DQMHistEffProducer::endJob(), BTagValidator::endJob(), HarvestingAnalyzer::endJob(), DQMFileLoader::endJob(), PhotonAnalyzer::endJob(), ElectronDqmAnalyzerBase::endLuminosityBlock(), L1TRPCTFClient::endLuminosityBlock(), HcalLSbyLSMonitor::endLuminosityBlock(), HcalDAQInfo::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), HltSusyExoPostProcessor::endRun(), ElectronDqmAnalyzerBase::endRun(), RPCDcsInfoClient::endRun(), DQMGenericTnPClient::endRun(), AlcaBeamMonitorClient::endRun(), DQMDcsInfoClient::endRun(), DataCertificationJetMET::endRun(), HLTTauCertifier::endRun(), DQMOfflineHLTEventInfoClient::endRun(), GlobalHitsProdHistStripper::endRun(), PhotonDataCertification::endRun(), FourVectorHLTClient::endRun(), HLTMuonCertSummary::endRun(), HLTOverallSummary::endRun(), CSCOfflineClient::endRun(), PhotonAnalyzer::endRun(), SiStripQualityChecker::fillFaultyModuleStatus(), SiStripQualityDQM::fillGrandSummaryMEs(), HcalSummaryClient::fillReportSummary(), HcalSummaryClient::fillReportSummaryLSbyLS(), TrackerOfflineValidationSummary::fillTree(), SiStripDaqInfo::findExcludedModule(), FUShmDQMOutputService::findMonitorElements(), SiPixelInformationExtractor::findNoisyPixels(), BeamMonitor::FitAndFill(), TkHistoMap::folderDefinition(), FourVectorHLT::FourVectorHLT(), FourVectorHLTOffline::FourVectorHLTOffline(), FourVectorHLTOnline::FourVectorHLTOnline(), FourVectorHLTriggerOffline::FourVectorHLTriggerOffline(), SiStripCablingDQM::getActiveDetIds(), EDMtoMEConverter::getData(), EgHLTOfflineSummaryClient::getEgHLTSumHist_(), ContentReader::give_files(), ContentReader::give_subdirs(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisHistogrammer::GlobalDigisHistogrammer(), GlobalHitsAnalyzer::GlobalHitsAnalyzer(), GlobalHitsHistogrammer::GlobalHitsHistogrammer(), GlobalHitsTester::GlobalHitsTester(), GlobalRecHitsAnalyzer::GlobalRecHitsAnalyzer(), GlobalRecHitsHistogrammer::GlobalRecHitsHistogrammer(), goUp(), HcalRecHitsValidation::HcalRecHitsValidation(), HcalSimHitsValidation::HcalSimHitsValidation(), HcalSubdetDigiMonitor::HcalSubdetDigiMonitor(), HcalTimingMonitorModule::HcalTimingMonitorModule(), SiPixelMuonHLT::Histo_init(), CommissioningHistograms::histogram(), HLTHiggsBits::HLTHiggsBits(), HLTJetMETDQMSource::HLTJetMETDQMSource(), HLTMon::HLTMon(), HLTMonSimpleBTag::HLTMonSimpleBTag(), HLTMuonOfflineAnalyzer::HLTMuonOfflineAnalyzer(), HLTScalers::HLTScalers(), HLTScalersClient::HLTScalersClient(), HLTTauDQMCaloPlotter::HLTTauDQMCaloPlotter(), HLTTauDQML1Plotter::HLTTauDQML1Plotter(), HLTTauDQMLitePathPlotter::HLTTauDQMLitePathPlotter(), HLTTauDQMPathPlotter::HLTTauDQMPathPlotter(), HLTTauDQMTrkPlotter::HLTTauDQMTrkPlotter(), HResolution::HResolution(), HTrack::HTrack(), HTrackVariables::HTrackVariables(), HcalTimingMonitorModule::initialize(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::initializeDQMHistograms(), HLTMuonValidator::initializeHists(), MuonAnalyzerSBSM::InitializePlots(), LaserDQM::initMonitors(), JetMETDQMOfflineClient::JetMETDQMOfflineClient(), JetMETHLTOfflineClient::JetMETHLTOfflineClient(), JPTJetTester::JPTJetTester(), L1ExtraDQM::L1ExtraDQM(), L1GtHwValidation::L1GtHwValidation(), L1ScalersClient::L1ScalersClient(), L1TCompare::L1TCompare(), L1TCSCTF::L1TCSCTF(), L1TCSCTPG::L1TCSCTPG(), L1TdeRCT::L1TdeRCT(), L1TDTTF::L1TDTTF(), L1TDTTPG::L1TDTTPG(), L1TECALTPG::L1TECALTPG(), L1TGCT::L1TGCT(), L1TGMT::L1TGMT(), L1TGT::L1TGT(), L1TRCT::L1TRCT(), L1TRPCTF::L1TRPCTF(), L1TRPCTPG::L1TRPCTPG(), L1TScalersSCAL::L1TScalersSCAL(), DQMProvInfo::makeHLTKeyInfo(), PlotCombiner::makePlot(), DQMProvInfo::makeProvInfo(), MixCollectionValidation::MixCollectionValidation(), MonitorElementsDb::MonitorElementsDb(), MuonDTDigis::MuonDTDigis(), CastorDigiMonitor::perChanHists(), CastorLEDMonitor::perChanHists(), CastorRecHitPerChan::perChanHists(), PerformanceAnalyzer::PerformanceAnalyzer(), PFJetTester::PFJetTester(), HLTTauDQMSummaryPlotter::plotTriggerBitEfficiencyHistos(), edm::EventStreamHttpReader::read(), SiStripFEDErrorsDQM::readBadAPVs(), recoBSVTagInfoValidationAnalyzer::recoBSVTagInfoValidationAnalyzer(), RecoMuonValidator::RecoMuonValidator(), ElectronDqmAnalyzerBase::remove(), PhotonOfflineClient::runClient(), BTagHLTOfflineClient::runClient_(), CaloTowersClient::runClient_(), NoiseRatesClient::runClient_(), HcalRecHitsClient::runClient_(), JetMETDQMOfflineClient::runClient_(), JetMETHLTOfflineClient::runClient_(), TopElectronHLTOfflineClient::runClient_(), EgHLTOfflineSummaryClient::runClient_(), EgHLTOfflineClient::runClient_(), CommissioningHistograms::runNumber(), ConversionPostprocessing::runPostprocessing(), PhotonPostprocessing::runPostprocessing(), CommissioningHistograms::runType(), DQMFileSaver::saveForOffline(), MuonSimHitsValidAnalyzer::saveHistos_CSC(), MuonSimHitsValidAnalyzer::saveHistos_DT(), MuonSimHitsValidAnalyzer::saveHistos_RPC(), SiStripFolderOrganizer::setDetectorFolder(), HistoProviderDQM::setDir(), SiPixelErrorsDigisToCalibDigis::setDQMDirectory(), SiPixelOfflineCalibAnalysisBase::setDQMDirectory(), SiPixelFolderOrganizer::setFedFolder(), SiStripFolderOrganizer::setLayerFolder(), SiPixelFolderOrganizer::setModuleFolder(), SiStripFolderOrganizer::setSiStripControlFolder(), SiStripFolderOrganizer::setSiStripFolder(), SiStripFolderOrganizer::setSiStripTopControlFolder(), ElectronValidator::setStoreFolder(), CastorRecHitMonitor::setup(), CastorHIMonitor::setup(), HcalNZSMonitor::setup(), CastorDataIntegrityMonitor::setup(), CastorPSMonitor::setup(), HcalNoiseMonitor::setup(), HcalTrigPrimMonitor::setup(), CastorDigiMonitor::setup(), HcalCoarsePedestalMonitor::setup(), HcalZDCMonitor::setup(), HcalCaloTowerMonitor::setup(), CastorTowerJetMonitor::setup(), HcalRecHitMonitor::setup(), CastorEventDisplay::setup(), HcalBeamMonitor::setup(), HcalLSbyLSMonitor::setup(), HcalDetDiagLEDMonitor::setup(), CastorChannelQualityMonitor::setup(), HcalHotCellMonitor::setup(), HcalDataIntegrityTask::setup(), HcalDetDiagNoiseMonitor::setup(), HcalDeadCellMonitor::setup(), CastorLEDMonitor::setup(), PFTauElecRejectionBenchmark::setup(), HcalEEUSMonitor::setup(), EcalEndcapMonitorModule::setup(), PFJetBenchmark::setup(), PFMETBenchmark::setup(), EELaserTask::setup(), EEPedestalOnlineTask::setup(), EBClusterTask::setup(), EBPedestalOnlineTask::setup(), EBOccupancyTask::setup(), EBBeamCaloTask::setup(), EEBeamCaloTask::setup(), EBPedestalTask::setup(), EETestPulseTask::setup(), EELedTask::setup(), EBCosmicTask::setup(), EECosmicTask::setup(), EEPedestalTask::setup(), EEClusterTask::setup(), EBLaserTask::setup(), EcalBarrelMonitorModule::setup(), EEBeamHodoTask::setup(), EBTestPulseTask::setup(), EBBeamHodoTask::setup(), EETrendTask::setup(), EBTrendTask::setup(), EBTimingTask::setup(), EBSelectiveReadoutTask::setup(), HcalRawDataMonitor::setup(), EERawDataTask::setup(), EBStatusFlagsTask::setup(), EEStatusFlagsTask::setup(), EBRawDataTask::setup(), EBSummaryClient::setup(), EESummaryClient::setup(), EETrendClient::setup(), EBTrendClient::setup(), EBIntegrityTask::setup(), EEIntegrityTask::setup(), EBHltTask::setup(), EEOccupancyTask::setup(), EBBeamHodoClient::setup(), EEHltTask::setup(), EEBeamCaloClient::setup(), EEBeamHodoClient::setup(), EETimingTask::setup(), EEStatusFlagsClient::setup(), EBTimingClient::setup(), EELaserClient::setup(), EBBeamCaloClient::setup(), EBStatusFlagsClient::setup(), EELedClient::setup(), EBLaserClient::setup(), EBPedestalOnlineClient::setup(), EEIntegrityClient::setup(), EBOccupancyClient::setup(), EEPedestalClient::setup(), EEPedestalOnlineClient::setup(), EBPedestalClient::setup(), EETestPulseClient::setup(), EBTestPulseClient::setup(), EBIntegrityClient::setup(), EEOccupancyClient::setup(), EEClusterClient::setup(), EBClusterClient::setup(), HcalDigiMonitor::setup(), EBTriggerTowerClient::setup(), EETriggerTowerClient::setup(), EETimingClient::setup(), HcalBaseDQMonitor::setup(), HcalMonitorModule::setup(), EESelectiveReadoutTask::setup(), EBTriggerTowerTask::setup(), EETriggerTowerTask::setup(), HcalDetDiagTimingMonitor::setup(), HLXMonitor::SetupEventInfo(), HLXMonitor::SetupHists(), FourVectorHLTOnline::setupHltBxPlots(), TrigResRateMon::setupHltBxPlots(), FourVectorHLTOffline::setupHltBxPlots(), FourVectorHLTOnline::setupHltLsPlots(), TrigResRateMon::setupHltLsPlots(), FourVectorHLTOffline::setupHltLsPlots(), FourVectorHLTOnline::setupHltMatrix(), TrigResRateMon::setupHltMatrix(), FourVectorHLTOffline::setupHltMatrix(), TrigResRateMon::setupStreamMatrix(), HcalDigiMonitor::setupSubdetHists(), SiStripMonitorMuonHLT::SiStripMonitorMuonHLT(), PFMETDQMAnalyzer::storeBadEvents(), PFCandidateDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), TopElectronHLTOfflineClient::TopElectronHLTOfflineClient(), TriggerValidator::TriggerValidator(), TrigResRateMon::TrigResRateMon(), SubTaskSummaryStatus::WriteThreshold(), XmasToDQMEventInfo::XmasToDQMEventInfo(), and ZDCMonitorModule::~ZDCMonitorModule().

233 {
234  std::string clean;
235  const std::string *cleaned = 0;
236  cleanTrailingSlashes(fullpath, clean, cleaned);
237  makeDirectory(*cleaned);
238  pwd_ = *cleaned;
239 }
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
std::string pwd_
Definition: DQMStore.h:422
std::vector< T * > clean
Definition: MVATrainer.cc:156
void makeDirectory(const std::string &path)
get folder corresponding to inpath wrt to root (create subdirs if necessary)
Definition: DQMStore.cc:255
void DQMStore::setVerbose ( unsigned  level)

set verbose level (0 turns all non-error messages off)

Definition at line 196 of file DQMStore.cc.

Referenced by RPCRecHitProbabilityClient::beginJob(), ElectronDqmAnalyzerBase::beginJob(), RPCDqmClient::beginJob(), L1Scalers::beginJob(), HLTMonBTagMuSource::beginJob(), HLTMonBTagClient::beginJob(), HLTMonBTagIPSource::beginJob(), EgammaBasicClusters::beginJob(), EgammaSuperClusters::beginJob(), PiZeroAnalyzer::beginJob(), SaveDQMFile::beginRun(), ReadMeFromFile::beginRun(), SiStripCommissioningOfflineClient::beginRun(), SiStripCommissioningSource::beginRun(), HeavyFlavorValidation::beginRun(), BTagHLTOfflineClient::BTagHLTOfflineClient(), BTagHLTOfflineSource::BTagHLTOfflineSource(), BxTiming::BxTiming(), ConversionPostprocessing::ConversionPostprocessing(), EgHLTOfflineClient::EgHLTOfflineClient(), EgHLTOfflineSource::EgHLTOfflineSource(), EmDQMReco::EmDQMReco(), FourVectorHLT::FourVectorHLT(), FourVectorHLTOffline::FourVectorHLTOffline(), FourVectorHLTOnline::FourVectorHLTOnline(), FourVectorHLTriggerOffline::FourVectorHLTriggerOffline(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisHistogrammer::GlobalDigisHistogrammer(), GlobalHitsAnalyzer::GlobalHitsAnalyzer(), GlobalHitsHistogrammer::GlobalHitsHistogrammer(), GlobalHitsProdHistStripper::GlobalHitsProdHistStripper(), GlobalRecHitsAnalyzer::GlobalRecHitsAnalyzer(), GlobalRecHitsHistogrammer::GlobalRecHitsHistogrammer(), HcalSimHitStudy::HcalSimHitStudy(), HLTJetMETDQMSource::HLTJetMETDQMSource(), HLTMon::HLTMon(), HLTMonBitSummary::HLTMonBitSummary(), HLTMonMuonClient::HLTMonMuonClient(), HLTMonSimpleBTag::HLTMonSimpleBTag(), HLTMuonCertSummary::HLTMuonCertSummary(), HLTMuonOfflineAnalyzer::HLTMuonOfflineAnalyzer(), HLTMuonValidator::HLTMuonValidator(), HLTOverallSummary::HLTOverallSummary(), HLTScalers::HLTScalers(), HLTScalersClient::HLTScalersClient(), HLXMonitor::HLXMonitor(), JetMETDQMOfflineClient::JetMETDQMOfflineClient(), JetMETHLTOfflineClient::JetMETHLTOfflineClient(), JetMETHLTOfflineSource::JetMETHLTOfflineSource(), L1ExtraDQM::L1ExtraDQM(), L1GtHwValidation::L1GtHwValidation(), L1TCompare::L1TCompare(), L1TCSCTF::L1TCSCTF(), L1TCSCTPG::L1TCSCTPG(), L1TdeRCT::L1TdeRCT(), L1TDTTF::L1TDTTF(), L1TDTTPG::L1TDTTPG(), L1TECALTPG::L1TECALTPG(), L1TGCT::L1TGCT(), L1TGMT::L1TGMT(), L1TGT::L1TGT(), L1TRCT::L1TRCT(), L1TRPCTF::L1TRPCTF(), L1TRPCTPG::L1TRPCTPG(), L1TScalersSCAL::L1TScalersSCAL(), MixCollectionValidation::MixCollectionValidation(), MuonDTDigis::MuonDTDigis(), MuonSimHitsValidAnalyzer::MuonSimHitsValidAnalyzer(), SiStripBadComponentsDQMService::openRequestedFile(), PhotonDataCertification::PhotonDataCertification(), PhotonOfflineClient::PhotonOfflineClient(), PhotonPostprocessing::PhotonPostprocessing(), CommissioningHistograms::remove(), SiStripDQMProfileToTkMapConverter::SiStripDQMProfileToTkMapConverter(), SiStripMonitorMuonHLT::SiStripMonitorMuonHLT(), TopElectronHLTOfflineClient::TopElectronHLTOfflineClient(), TopElectronHLTOfflineSource::TopElectronHLTOfflineSource(), TriggerValidator::TriggerValidator(), TrigResRateMon::TrigResRateMon(), and ZdcSimHitStudy::ZdcSimHitStudy().

197 { return; }
void DQMStore::showDirStructure ( void  ) const

Definition at line 2554 of file DQMStore.cc.

References filterCSVwithJSON::copy, gather_cfg::cout, and getContents().

Referenced by HcalBeamClient::beginJob(), HcalDetDiagLEDClient::beginJob(), HcalDetDiagNoiseMonitorClient::beginJob(), HcalTrigPrimClient::beginJob(), HcalDetDiagPedestalClient::beginJob(), HcalDetDiagTimingClient::beginJob(), HcalCoarsePedestalClient::beginJob(), HcalDigiClient::beginJob(), HcalHotCellClient::beginJob(), HcalDeadCellClient::beginJob(), HcalNZSClient::beginJob(), HcalRecHitClient::beginJob(), HcalRawDataClient::beginJob(), HcalBaseDQClient::beginJob(), DQMSourceExample::beginJob(), EgammaBasicClusters::beginJob(), HLTMuonDQMSource::beginJob(), EgammaSuperClusters::beginJob(), GlobalTest::beginJob(), TestSuite::beginJob(), MuonTrackResidualAnalyzer::beginJob(), MuonTrackAnalyzer::beginJob(), RPCTTUMonitor::beginJob(), PiZeroAnalyzer::beginJob(), EcalBarrelMonitorDbModule::EcalBarrelMonitorDbModule(), EcalEndcapMonitorDbModule::EcalEndcapMonitorDbModule(), DataCertificationJetMET::endJob(), TrackingMonitor::endJob(), TrackSplittingMonitor::endJob(), BTagValidator::endJob(), DQMHistAdder::endJob(), DQMFileLoader::endJob(), TrackEfficiencyMonitor::endJob(), LaserAlignmentT0ProducerDQM::endJob(), SiStripMonitorTrack::endJob(), HLTHiggsBits::endJob(), RCTMonitor::endJob(), TopValidation::endJob(), DataCertificationJetMET::endLuminosityBlock(), HLTScalersClient::endLuminosityBlock(), DataCertificationJetMET::endRun(), SiStripMonitorRawData::endRun(), SiStripMonitorQuality::endRun(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisHistogrammer::GlobalDigisHistogrammer(), GlobalHitsAnalyzer::GlobalHitsAnalyzer(), GlobalHitsHistogrammer::GlobalHitsHistogrammer(), GlobalHitsProdHistStripper::GlobalHitsProdHistStripper(), GlobalRecHitsAnalyzer::GlobalRecHitsAnalyzer(), GlobalRecHitsHistogrammer::GlobalRecHitsHistogrammer(), HcalSimHitStudy::HcalSimHitStudy(), ZDCMonitorClient::initialize(), LaserDQM::initMonitors(), MixCollectionValidation::MixCollectionValidation(), MuonDTDigis::MuonDTDigis(), MuonSimHitsValidAnalyzer::MuonSimHitsValidAnalyzer(), RecoMuonValidator::RecoMuonValidator(), HLXMonitor::SetupHists(), HistoProviderDQM::show(), and ZdcSimHitStudy::ZdcSimHitStudy().

2555 {
2556  std::vector<std::string> contents;
2557  getContents(contents);
2558 
2559  std::cout << " ------------------------------------------------------------\n"
2560  << " Directory structure: \n"
2561  << " ------------------------------------------------------------\n";
2562 
2563  std::copy(contents.begin(), contents.end(),
2564  std::ostream_iterator<std::string>(std::cout, "\n"));
2565 
2566  std::cout << " ------------------------------------------------------------\n";
2567 }
std::vector< MonitorElement * > getContents(const std::string &path) const
Definition: DQMStore.cc:1294
tuple cout
Definition: gather_cfg.py:41
void DQMStore::softReset ( MonitorElement me)

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

Definition at line 2527 of file DQMStore.cc.

References MonitorElement::softReset().

Referenced by TrackingMonitor::beginLuminosityBlock(), TrackAnalyzer::doSoftReset(), HLXMonitor::FillHistograms(), HLXMonitor::ResetAll(), resetME(), EcalBarrelMonitorClient::softReset(), and EcalEndcapMonitorClient::softReset().

2528 {
2529  if (me)
2530  me->softReset();
2531 }
void softReset(void)
void DQMStore::tag ( MonitorElement me,
unsigned int  myTag 
)

tag ME as <myTag> (myTag > 0)

Definition at line 1151 of file DQMStore.cc.

References MonitorElement::data_, DQMNet::DQM_PROP_TAGGED, DQMNet::CoreObject::flags, MonitorElement::getFullname(), raiseDQMError(), and DQMNet::CoreObject::tag.

Referenced by DQMSourceExample::beginJob(), ConverterTester::beginJob(), SiStripBaseCondObjDQM::bookCumulMEs(), SiStripMonitorTrack::bookModMEs(), SiStripBaseCondObjDQM::bookProfileMEs(), RPCMonitorDigi::bookRollME(), SiStripBaseCondObjDQM::bookSummaryCumulMEs(), SiStripBaseCondObjDQM::bookSummaryMEs(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), SiStripMonitorPedestals::createMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createModuleMEs(), extract(), get(), getContents(), EDMtoMEConverter::getData(), RPCDqmClient::getMonitorElements(), SiStripMonitorQuality::getQualityME(), GlobalHitsTester::GlobalHitsTester(), EcalEndcapMonitorModule::setup(), EEPedestalOnlineTask::setup(), EBOccupancyTask::setup(), EETestPulseTask::setup(), EBLaserTask::setup(), EBPedestalOnlineTask::setup(), EEPedestalTask::setup(), EBPedestalTask::setup(), EELaserTask::setup(), EELedTask::setup(), EcalBarrelMonitorModule::setup(), EBTestPulseTask::setup(), EBTimingTask::setup(), EEStatusFlagsTask::setup(), EBStatusFlagsTask::setup(), EEIntegrityTask::setup(), EBIntegrityTask::setup(), EEOccupancyTask::setup(), EETimingTask::setup(), EETriggerTowerTask::setup(), EBTriggerTowerTask::setup(), tag(), tagAllContents(), and tagContents().

1152 {
1153  if (! myTag)
1154  raiseDQMError("DQMStore", "Attempt to tag monitor element '%s'"
1155  " with a zero tag", me->getFullname().c_str());
1156  if ((me->data_.flags & DQMNet::DQM_PROP_TAGGED) && myTag != me->data_.tag)
1157  raiseDQMError("DQMStore", "Attempt to tag monitor element '%s'"
1158  " twice with multiple tags", me->getFullname().c_str());
1159 
1160  me->data_.tag = myTag;
1162 }
uint32_t flags
Definition: DQMNet.h:96
static const uint32_t DQM_PROP_TAGGED
Definition: DQMNet.h:54
uint32_t tag
Definition: DQMNet.h:97
const std::string getFullname(void) const
get full name of ME including Pathname
DQMNet::CoreObject data_
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void DQMStore::tag ( const std::string &  path,
unsigned int  myTag 
)

tag ME specified by full pathname (e.g. "my/long/dir/my_histo")

Definition at line 1166 of file DQMStore.cc.

References dir, findObject(), mergeVDriftHistosByStation::name, raiseDQMError(), splitPath(), and tag().

1167 {
1168  std::string dir;
1169  std::string name;
1170  splitPath(dir, name, path);
1171 
1172  if (MonitorElement *me = findObject(dir, name))
1173  tag(me, myTag);
1174  else
1175  raiseDQMError("DQMStore", "Attempt to tag non-existent monitor element"
1176  " '%s' with tag %u", path.c_str(), myTag);
1177 
1178 }
static void splitPath(std::string &dir, std::string &name, const std::string &path)
Definition: DQMStore.cc:85
int path() const
Definition: HLTadd.h:3
void tag(MonitorElement *me, unsigned int myTag)
Definition: DQMStore.cc:1151
MonitorElement * findObject(const std::string &dir, const std::string &name) const
Definition: DQMStore.cc:1395
dbl *** dir
Definition: mlp_gen.cc:35
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
void DQMStore::tagAllContents ( const std::string &  path,
unsigned int  myTag 
)

tag all children of folder, including all subfolders and their children; path must be an exact path name

Definition at line 1194 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), data_, i, isSubdirectory(), and tag().

1195 {
1196  std::string clean;
1197  const std::string *cleaned = 0;
1198  cleanTrailingSlashes(path, clean, cleaned);
1199  MonitorElement proto(cleaned, std::string());
1200 
1201  // FIXME: WILDCARDS? Old one supported them, but nobody seemed to use them.
1202  MEMap::iterator e = data_.end();
1203  MEMap::iterator i = data_.lower_bound(proto);
1204  while (i != e && isSubdirectory(*cleaned, *i->data_.dirname))
1205  {
1206  tag(const_cast<MonitorElement *>(&*i), myTag);
1207  ++i;
1208  }
1209 }
int i
Definition: DBlmapReader.cc:9
int path() const
Definition: HLTadd.h:3
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
void tag(MonitorElement *me, unsigned int myTag)
Definition: DQMStore.cc:1151
static bool isSubdirectory(const std::string &ofdir, const std::string &path)
Definition: DQMStore.cc:58
std::vector< T * > clean
Definition: MVATrainer.cc:156
MEMap data_
Definition: DQMStore.h:423
void DQMStore::tagContents ( const std::string &  path,
unsigned int  myTag 
)

tag all children of folder (does NOT include subfolders)

Definition at line 1182 of file DQMStore.cc.

References data_, i, and tag().

Referenced by DQMSourceExample::beginJob(), HLTMuonDQMSource::beginJob(), and HLXMonitor::SetupHists().

1183 {
1184  MonitorElement proto(&path, std::string());
1185  MEMap::iterator e = data_.end();
1186  MEMap::iterator i = data_.lower_bound(proto);
1187  for ( ; i != e && path == *i->data_.dirname; ++i)
1188  tag(const_cast<MonitorElement *>(&*i), myTag);
1189 }
int i
Definition: DBlmapReader.cc:9
int path() const
Definition: HLTadd.h:3
void tag(MonitorElement *me, unsigned int myTag)
Definition: DQMStore.cc:1151
MEMap data_
Definition: DQMStore.h:423
void DQMStore::useQTest ( const std::string &  dir,
const std::string &  qtname 
)

attach quality test <qtname> to directory contents (need exact pathname without wildcards, e.g. A/B/C);

Definition at line 2410 of file DQMStore.cc.

References clean, cleanTrailingSlashes(), raiseDQMError(), s_safe, and useQTestByMatch().

Referenced by createMeanValueTest(), createXRangeTest(), and createYRangeTest().

2411 {
2412  // Clean the path
2413  std::string clean;
2414  const std::string *cleaned = 0;
2415  cleanTrailingSlashes(dir, clean, cleaned);
2416 
2417  // Validate the path.
2418  if (cleaned->find_first_not_of(s_safe) != std::string::npos)
2419  raiseDQMError("DQMStore", "Monitor element path name '%s'"
2420  " uses unacceptable characters", cleaned->c_str());
2421 
2422  // Redirect to the pattern match version.
2423  useQTestByMatch(*cleaned + "/*", qtname);
2424 }
static void cleanTrailingSlashes(const std::string &path, std::string &clean, const std::string *&cleaned)
Definition: DQMStore.cc:68
static std::string s_safe
Definition: DQMStore.cc:48
std::vector< T * > clean
Definition: MVATrainer.cc:156
int useQTestByMatch(const std::string &pattern, const std::string &qtname)
attach quality test &lt;qc&gt; to monitor elements matching &lt;pattern&gt;.
Definition: DQMStore.cc:2428
dbl *** dir
Definition: mlp_gen.cc:35
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11
int DQMStore::useQTestByMatch ( const std::string &  pattern,
const std::string &  qtname 
)

attach quality test <qc> to monitor elements matching <pattern>.

Definition at line 2428 of file DQMStore.cc.

References MonitorElement::addQReport(), data_, getQCriterion(), mergePath(), path(), qtestspecs_, and raiseDQMError().

Referenced by QTestHandle::attachTests(), and useQTest().

2429 {
2430  QCriterion *qc = getQCriterion(qtname);
2431  if (! qc)
2432  raiseDQMError("DQMStore", "Cannot apply non-existent quality test '%s'",
2433  qtname.c_str());
2434 
2435  // Clean the path
2436  lat::Regexp *rx = 0;
2437  try
2438  {
2439  rx = new lat::Regexp(pattern, 0, lat::Regexp::Wildcard);
2440  rx->study();
2441  }
2442  catch (lat::Error &e)
2443  {
2444  delete rx;
2445  raiseDQMError("DQMStore", "Invalid wildcard pattern '%s' in quality"
2446  " test specification", pattern.c_str());
2447  }
2448 
2449  // Record the test for future reference.
2450  QTestSpec qts(rx, qc);
2451  qtestspecs_.push_back(qts);
2452 
2453  // Apply the quality test.
2454  MEMap::iterator mi = data_.begin();
2455  MEMap::iterator me = data_.end();
2456  std::string path;
2457  int cases = 0;
2458  for ( ; mi != me; ++mi)
2459  {
2460  path.clear();
2461  mergePath(path, *mi->data_.dirname, mi->data_.objname);
2462  if (rx->match(path))
2463  {
2464  ++cases;
2465  const_cast<MonitorElement &>(*mi).addQReport(qts.second);
2466  }
2467  }
2468 
2469  //return the number of matched cases
2470  return cases;
2471 }
QCriterion * getQCriterion(const std::string &qtname) const
Definition: DQMStore.cc:2378
static void mergePath(std::string &path, const std::string &dir, const std::string &name)
Definition: DQMStore.cc:98
int path() const
Definition: HLTadd.h:3
QTestSpecs qtestspecs_
Definition: DQMStore.h:428
MEMap data_
Definition: DQMStore.h:423
std::pair< lat::Regexp *, QCriterion * > QTestSpec
Definition: DQMStore.h:410
void addQReport(const DQMNet::QValue &desc, QCriterion *qc)
Add quality report, from DQMStore.
void raiseDQMError(const char *context, const char *fmt,...)
Definition: DQMError.cc:11

Friends And Related Function Documentation

friend class DQMArchiver
friend

Definition at line 433 of file DQMStore.h.

friend class DQMNet
friend

Definition at line 432 of file DQMStore.h.

friend class DQMService
friend

Definition at line 431 of file DQMStore.h.

friend class DQMStoreExample
friend

Definition at line 434 of file DQMStore.h.

friend class edm::DQMHttpSource
friend

Definition at line 430 of file DQMStore.h.

Member Data Documentation

bool DQMStore::collateHistograms_
private

Definition at line 419 of file DQMStore.h.

Referenced by book(), bookFloat(), bookInt(), bookString(), extract(), initializeFrom(), and load().

MEMap DQMStore::data_
private
std::set<std::string> DQMStore::dirs_
private

Definition at line 424 of file DQMStore.h.

Referenced by book(), dirExists(), getAllTags(), getContents(), getSubdirs(), makeDirectory(), rmdir(), and save().

DQMStore::pwd_
private
DQMStore::qalgos_
private

Set of all the available quality test algorithms.

Definition at line 427 of file DQMStore.h.

Referenced by createQTest(), and initializeFrom().

DQMStore::qtests_
private

All the quality tests.

Definition at line 426 of file DQMStore.h.

Referenced by createQTest(), getQCriterion(), and ~DQMStore().

QTestSpecs DQMStore::qtestspecs_
private

Definition at line 428 of file DQMStore.h.

Referenced by book(), useQTestByMatch(), and ~DQMStore().

DQMStore::readSelectedDirectory_
private

If non-empty, read from file only selected directory.

Definition at line 420 of file DQMStore.h.

DQMStore::reset_
private

Flag used to print out a warning when calling quality tests. twice without having called reset() in between; to be reset in DQMOldReceiver::runQualityTests.

Definition at line 418 of file DQMStore.h.

Referenced by forceReset(), reset(), and runQTests().

DQMStore::verbose_
private

Universal verbose flag for DQM.

Definition at line 416 of file DQMStore.h.

Referenced by book(), extract(), initializeFrom(), load(), readDirectory(), readFile(), runQTests(), and save().

DQMStore::verboseQT_
private

Verbose flag for xml-based QTests.

Definition at line 417 of file DQMStore.h.

Referenced by createQTest(), and initializeFrom().