CMS 3D CMS Logo

Public Member Functions | Public Attributes

SubTaskSummaryStatus Class Reference

#include <SubTaskSummaryStatus.h>

List of all members.

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.

{
  onoff=onoffval;
  for (unsigned int i=0;i<5;++i)
    {
      status[i]=-1;  //initial status is unknown
      ALLstatus=-1;
      problemName="";
      problemDir="";
    }      
} // constructor
SubTaskSummaryStatus::~SubTaskSummaryStatus ( )

Definition at line 15 of file SubTaskSummaryStatus.cc.

{}

Member Function Documentation

bool SubTaskSummaryStatus::IsOn ( )

Definition at line 25 of file SubTaskSummaryStatus.cc.

References onoff.

{
  return onoff;
} // 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.

{
  problemDir=Dir; // directory where depth histos are stored
  problemName=Name; // base name of depth histos
  summaryName=OverName; // name of summary Problem plot (including directory)
  id=ID;
  thresh=t;
}
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(), and thresh.

{
  if (onoff==false)
    return;
  MonitorElement* me;
  const std::string prev= dbe->pwd();
  dbe->setCurrentFolder(basedir+"/"+problemDir);
  std::string name="ProblemThreshold_";
  name+=problemName;
  me = dbe->get(problemDir+"/"+name.c_str());
  if (me)
    dbe->removeElement(me->getName());
  me = dbe->bookFloat(name.c_str());
  me->Fill(thresh);
  dbe->setCurrentFolder(prev);
  return;
}

Member Data Documentation

Definition at line 24 of file SubTaskSummaryStatus.h.

Referenced by SubTaskSummaryStatus().

Definition at line 29 of file SubTaskSummaryStatus.h.

Definition at line 30 of file SubTaskSummaryStatus.h.

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

Definition at line 27 of file SubTaskSummaryStatus.h.

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

Definition at line 26 of file SubTaskSummaryStatus.h.

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

Definition at line 23 of file SubTaskSummaryStatus.h.

Referenced by SubTaskSummaryStatus().

Definition at line 28 of file SubTaskSummaryStatus.h.

Referenced by Setup().

Definition at line 21 of file SubTaskSummaryStatus.h.

Referenced by Setup(), and WriteThreshold().