Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
EventFilter
EcalRawToDigi
interface
MyWatcher.h
Go to the documentation of this file.
1
#ifndef MyWATCHER_H
2
#define MyWATCHER_H
3
4
#include "TStopwatch.h"
5
#include <iostream>
6
#include <sstream>
7
8
#ifdef EDM_ML_DEBUG
9
class
MyWatcher
:
public
TStopwatch {
10
public
:
11
MyWatcher
(
const
std::string
n
=
""
):
name
(
n
),
total
(0) {}
12
~MyWatcher
(){}
13
14
std::string
start
(
bool
r
=
true
){Start(
r
);
return
" [Start]"
;}
15
std::string
continu
(){Continue();
return
" [Continue]"
;}
16
std::string
reset
(){
Reset
();
return
" [Reset]"
;}
17
std::string
stop
() {Stop();
return
" [Stop]"
;}
18
std::string
lap
() {
19
std::stringstream
o
;
20
double
r
=RealTime();
21
total
+=
r
;
22
o<<
"\n "
<<r<<
" total:"
<<
total
<<
" ["
<<
name
<<
"]"
;
23
Start();
24
return
o.str();}
25
std::string
name
;
26
double
total
;
27
};
28
#else
29
class
MyWatcher
{
30
public
:
31
MyWatcher
(
const
std::string
) {}
32
~MyWatcher
(){}
33
34
std::string
start
(
bool
r
=
true
){
return
name
;}
35
std::string
continu
(){
return
name
;}
36
std::string
reset
(){
return
name
;}
37
std::string
stop
(){
return
name
;}
38
std::string
lap
() {
return
name
;}
39
std::string
name
;
40
};
41
#endif
42
43
#endif
MyWatcher::start
std::string start(bool r=true)
Definition:
MyWatcher.h:34
MyWatcher::MyWatcher
MyWatcher(const std::string)
Definition:
MyWatcher.h:31
MyWatcher::lap
std::string lap()
Definition:
MyWatcher.h:38
connectstrParser.o
string o
Definition:
connectstrParser.py:70
MyWatcher::name
std::string name
Definition:
MyWatcher.h:39
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
pileupDistInMC.total
int total
Definition:
pileupDistInMC.py:54
MyWatcher::stop
std::string stop()
Definition:
MyWatcher.h:37
MyWatcher::~MyWatcher
~MyWatcher()
Definition:
MyWatcher.h:32
MyWatcher
Definition:
MyWatcher.h:29
MyWatcher::continu
std::string continu()
Definition:
MyWatcher.h:35
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
MyWatcher::reset
std::string reset()
Definition:
MyWatcher.h:36
alignCSCRings.r
list r
Definition:
alignCSCRings.py:92
HcalObjRepresent::Reset
void Reset(std::vector< TH2F > &depth)
Definition:
HcalObjRepresent.h:620
Generated for CMSSW Reference Manual by
1.8.5