CondFormats
PhysicsToolsObjects
interface
BinningPointByMap.h
Go to the documentation of this file.
1
#ifndef BinningPointByMap_h
2
#define BinningPointByMap_h
3
4
#include "
CondFormats/PhysicsToolsObjects/interface/BinningVariables.h
"
5
6
#include <map>
7
8
class
BinningPointByMap
{
9
public
:
10
// enum BinningPointType{Eta=1, JetEt=2, Phi=3, NTracks=4};
11
12
typedef
std::map<BinningVariables::BinningVariablesType, float>
BinningPointTypeMap
;
13
14
bool
insert
(
BinningVariables::BinningVariablesType
,
float
);
15
16
float
value
(
BinningVariables::BinningVariablesType
);
17
18
bool
isKeyAvailable
(
BinningVariables::BinningVariablesType
);
19
20
void
reset
() {
map_
.clear(); }
21
22
const
BinningPointTypeMap
&
map
() {
return
map_
; }
23
24
private
:
25
BinningPointTypeMap
map_
;
26
};
27
28
#endif
BinningPointByMap::isKeyAvailable
bool isKeyAvailable(BinningVariables::BinningVariablesType)
Definition:
BinningPointByMap.cc:7
BinningPointByMap::value
float value(BinningVariables::BinningVariablesType)
Definition:
BinningPointByMap.cc:11
BinningPointByMap::map_
BinningPointTypeMap map_
Definition:
BinningPointByMap.h:25
BinningVariables.h
BinningPointByMap
Definition:
BinningPointByMap.h:8
BinningPointByMap::insert
bool insert(BinningVariables::BinningVariablesType, float)
Definition:
BinningPointByMap.cc:3
BinningPointByMap::map
const BinningPointTypeMap & map()
Definition:
BinningPointByMap.h:22
BinningPointByMap::reset
void reset()
Definition:
BinningPointByMap.h:20
BinningPointByMap::BinningPointTypeMap
std::map< BinningVariables::BinningVariablesType, float > BinningPointTypeMap
Definition:
BinningPointByMap.h:12
BinningVariables::BinningVariablesType
BinningVariablesType
Definition:
BinningVariables.h:10
Generated for CMSSW Reference Manual by
1.8.16