CMS 3D CMS Logo

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

#include <SubTaskSummaryStatus.h>

Public Member Functions

bool IsOn ()
 
void Setup (std::string problemDir, std::string problemName, std::string OverName, std::string id, double thresh)
 
 SubTaskSummaryStatus (bool onoffval=false)
 
void WriteThreshold (DQMStore *dbe, std::string basedir)
 
 ~SubTaskSummaryStatus ()
 

Public Attributes

double ALLstatus
 
std::string id
 
bool onoff
 
std::string problemDir
 
std::string problemName
 
double status [5]
 
std::string summaryName
 
double thresh
 

Detailed Description

Definition at line 8 of file SubTaskSummaryStatus.h.

Constructor & Destructor Documentation

SubTaskSummaryStatus::SubTaskSummaryStatus ( bool  onoffval = false)

Definition at line 3 of file SubTaskSummaryStatus.cc.

References ALLstatus, i, onoff, problemDir, problemName, and status.

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
int i
Definition: DBlmapReader.cc:9
SubTaskSummaryStatus::~SubTaskSummaryStatus ( )

Definition at line 15 of file SubTaskSummaryStatus.cc.

15 {}

Member Function Documentation

bool SubTaskSummaryStatus::IsOn ( )

Definition at line 25 of file SubTaskSummaryStatus.cc.

References onoff.

26 {
27  return onoff;
28 } // IsOn()
void SubTaskSummaryStatus::Setup ( std::string  problemDir,
std::string  problemName,
std::string  OverName,
std::string  id,
double  thresh = 0. 
)

Definition at line 30 of file SubTaskSummaryStatus.cc.

References problemDir, problemName, summaryName, lumiQTWidget::t, and thresh.

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 }
uint32_t ID
Definition: Definitions.h:26
void SubTaskSummaryStatus::WriteThreshold ( DQMStore dbe,
std::string  basedir 
)

Definition at line 44 of file SubTaskSummaryStatus.cc.

References DQMStore::bookFloat(), MonitorElement::Fill(), DQMStore::get(), MonitorElement::getName(), mergeVDriftHistosByStation::name, onoff, problemDir, problemName, DQMStore::pwd(), DQMStore::removeElement(), DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and thresh.

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
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:954
void Fill(long long x)
void removeElement(const std::string &name)
Definition: DQMStore.cc:3238
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1771
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:723
const std::string & pwd(void) const
Definition: DQMStore.cc:695

Member Data Documentation

double SubTaskSummaryStatus::ALLstatus

Definition at line 24 of file SubTaskSummaryStatus.h.

Referenced by SubTaskSummaryStatus().

std::string SubTaskSummaryStatus::id

Definition at line 29 of file SubTaskSummaryStatus.h.

bool SubTaskSummaryStatus::onoff

Definition at line 30 of file SubTaskSummaryStatus.h.

Referenced by IsOn(), SubTaskSummaryStatus(), and WriteThreshold().

std::string SubTaskSummaryStatus::problemDir

Definition at line 27 of file SubTaskSummaryStatus.h.

Referenced by Setup(), SubTaskSummaryStatus(), and WriteThreshold().

std::string SubTaskSummaryStatus::problemName

Definition at line 26 of file SubTaskSummaryStatus.h.

Referenced by Setup(), SubTaskSummaryStatus(), and WriteThreshold().

double SubTaskSummaryStatus::status[5]
std::string SubTaskSummaryStatus::summaryName

Definition at line 28 of file SubTaskSummaryStatus.h.

Referenced by Setup().

double SubTaskSummaryStatus::thresh

Definition at line 21 of file SubTaskSummaryStatus.h.

Referenced by Setup(), and WriteThreshold().