CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SubTaskSummaryStatus.cc
Go to the documentation of this file.
2 
4 {
5  onoff=onoffval;
6  for (unsigned int i=0;i<5;++i)
7  {
8  status[i]=-1; //initial status is unknown
9  ALLstatus=-1;
10  problemName="";
11  problemDir="";
12  }
13 } // constructor
14 
16 
17 /*
18 void SubTaskSummaryStatus::SetOnOff(bool onoffval)
19 {
20  onoff=onoffval;
21  return;
22 } // SetOnOff(bool onoffval)
23 */
24 
26 {
27  return onoff;
28 } // IsOn()
29 
31  std::string Name,
32  std::string OverName,
33  std::string ID,
34  double t=0.)
35 {
36  problemDir=Dir; // directory where depth histos are stored
37  problemName=Name; // base name of depth histos
38  summaryName=OverName; // name of summary Problem plot (including directory)
39  id=ID;
40  thresh=t;
41 }
42 
43 
45 {
46  if (onoff==false)
47  return;
48  MonitorElement* me;
49  const std::string prev= dbe->pwd();
50  dbe->setCurrentFolder(basedir+"/"+problemDir);
51  std::string name="ProblemThreshold_";
52  name+=problemName;
53  me = dbe->get(problemDir+"/"+name.c_str());
54  if (me)
55  dbe->removeElement(me->getName());
56  me = dbe->bookFloat(name.c_str());
57  me->Fill(thresh);
58  dbe->setCurrentFolder(prev);
59  return;
60 }
const std::string & getName(void) const
get name of ME
int i
Definition: DBlmapReader.cc:9
uint32_t ID
Definition: Definitions.h:26
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:891
void Fill(long long x)
SubTaskSummaryStatus(bool onoffval=false)
void removeElement(const std::string &name)
Definition: DQMStore.cc:3143
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1708
void WriteThreshold(DQMStore *dbe, std::string basedir)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:667
void Setup(std::string problemDir, std::string problemName, std::string OverName, std::string id, double thresh)
const std::string & pwd(void) const
Definition: DQMStore.cc:639