Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
HiggsAnalysis
CombinedLimit
interface
ProfilingTools.h
Go to the documentation of this file.
1
#ifndef HiggsAnalysis_CombinedLimit_ProfilingTools_
2
#define HiggsAnalysis_CombinedLimit_ProfilingTools_
3
#include <string>
4
5
bool
setupIgProfDumpHook
() ;
6
7
//#include <boost/unordered_map.hpp>
8
class
PerfCounter
{
9
public
:
10
PerfCounter
() :
value_
(0) {}
11
static
PerfCounter
&
get
(
const
char
*
name
) ;
12
13
void
add
(
double
increment=1.0) {
value_
+= increment; }
14
double
get
()
const
{
return
value_
; }
15
16
static
void
add
(
const
char
*
name
,
double
increment=1.0) {
PerfCounter::get
(name).add(increment); }
17
static
void
enable
() ;
18
static
void
printAll
() ;
19
private
:
20
double
value_
;
21
};
22
23
namespace
runtimedef {
24
// get the flag. name MUST BE a compile-time string
25
int
get
(
const
char
*
name
);
26
27
// get the flag, with a run-time name
28
int
get
(
const
std::string &
name
);
29
31
void
set
(
const
std::string &
name
,
int
value
);
32
}
33
#endif
PerfCounter::add
static void add(const char *name, double increment=1.0)
Definition:
ProfilingTools.h:16
PerfCounter::add
void add(double increment=1.0)
Definition:
ProfilingTools.h:13
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:54
PerfCounter::PerfCounter
PerfCounter()
Definition:
ProfilingTools.h:10
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
PerfCounter
Definition:
ProfilingTools.h:8
PerfCounter::printAll
static void printAll()
Definition:
ProfilingTools.cc:45
setupIgProfDumpHook
bool setupIgProfDumpHook()
Definition:
ProfilingTools.cc:23
PerfCounter::value_
double value_
Definition:
ProfilingTools.h:20
PerfCounter::enable
static void enable()
PerfCounter::get
double get() const
Definition:
ProfilingTools.h:14
runtimedef::set
void set(const std::string &name, int value)
set the flag, with a run-time name
Definition:
ProfilingTools.cc:67
Generated for CMSSW Reference Manual by
1.8.5