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
MyWatcher Class Reference

#include <MyWatcher.h>

Inheritance diagram for MyWatcher:

Public Member Functions

std::string continu ()
 
std::string lap ()
 
 MyWatcher (const std::string n="")
 
std::string reset ()
 
std::string start (bool r=true)
 
std::string stop ()
 
 ~MyWatcher ()
 

Public Attributes

std::string name
 
double total
 

Detailed Description

Definition at line 8 of file MyWatcher.h.

Constructor & Destructor Documentation

MyWatcher::MyWatcher ( const std::string  n = "")
inline

Definition at line 10 of file MyWatcher.h.

10 :name(n),total(0) {}
std::string name
Definition: MyWatcher.h:24
double total
Definition: MyWatcher.h:25
MyWatcher::~MyWatcher ( )
inline

Definition at line 11 of file MyWatcher.h.

11 {}

Member Function Documentation

std::string MyWatcher::continu ( )
inline

Definition at line 14 of file MyWatcher.h.

14 {Continue(); return " [Continue]";}
std::string MyWatcher::lap ( )
inline

Definition at line 17 of file MyWatcher.h.

References name, python.connectstrParser::o, alignCSCRings::r, and total.

Referenced by ESUnpackerWorker::work().

17  {
18  std::stringstream o;
19  double r=RealTime();
20  total+=r;
21  o<<"\n "<<r<<" total:"<<total<<" ["<<name<<"]";
22  Start();
23  return o.str();}
std::string name
Definition: MyWatcher.h:24
double total
Definition: MyWatcher.h:25
std::string MyWatcher::reset ( void  )
inline

Definition at line 15 of file MyWatcher.h.

References HcalObjRepresent::Reset().

15 {Reset(); return " [Reset]";}
void Reset(std::vector< TH2F > &depth)
std::string MyWatcher::start ( bool  r = true)
inline

Definition at line 13 of file MyWatcher.h.

References alignCSCRings::r.

Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

13 {Start(r); return " [Start]";}
std::string MyWatcher::stop ( )
inline

Definition at line 16 of file MyWatcher.h.

16 {Stop(); return " [Stop]";}

Member Data Documentation

std::string MyWatcher::name
double MyWatcher::total

Definition at line 25 of file MyWatcher.h.

Referenced by lap().