CondFormats
EcalObjects
interface
EcalTBWeights.h
Go to the documentation of this file.
1
#ifndef CondFormats_EcalObjects_EcalTBWeights_H
2
#define CondFormats_EcalObjects_EcalTBWeights_H
3
9
#include "
CondFormats/Serialization/interface/Serializable.h
"
10
11
#include <map>
12
#include "
CondFormats/EcalObjects/interface/EcalXtalGroupId.h
"
13
#include "
CondFormats/EcalObjects/interface/EcalWeightSet.h
"
14
15
class
EcalTBWeights
{
16
public
:
17
typedef
int
EcalTDCId
;
18
typedef
std::map<std::pair<EcalXtalGroupId, EcalTDCId>,
EcalWeightSet
>
EcalTBWeightMap
;
19
20
EcalTBWeights
();
21
~EcalTBWeights
();
22
23
// modifiers
24
void
setValue
(
const
EcalXtalGroupId
& groupId,
const
EcalTDCId
& tdcId,
const
EcalWeightSet
&
weight
);
25
void
setValue
(
const
std::pair<EcalXtalGroupId, EcalTDCId>& keyPair,
const
EcalWeightSet
&
weight
);
26
27
// accessors
28
const
EcalTBWeightMap
&
getMap
()
const
{
return
map_
; }
29
30
private
:
31
EcalTBWeightMap
map_
;
32
33
COND_SERIALIZABLE
;
34
};
35
#endif
EcalTBWeights::getMap
const EcalTBWeightMap & getMap() const
Definition:
EcalTBWeights.h:28
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
EcalXtalGroupId
Definition:
EcalXtalGroupId.h:11
EcalTBWeights::setValue
void setValue(const EcalXtalGroupId &groupId, const EcalTDCId &tdcId, const EcalWeightSet &weight)
Definition:
EcalTBWeights.cc:15
EcalTBWeights::~EcalTBWeights
~EcalTBWeights()
Definition:
EcalTBWeights.cc:13
EcalXtalGroupId.h
EcalTBWeights::EcalTDCId
int EcalTDCId
Definition:
EcalTBWeights.h:17
Serializable.h
EcalTBWeights::EcalTBWeightMap
std::map< std::pair< EcalXtalGroupId, EcalTDCId >, EcalWeightSet > EcalTBWeightMap
Definition:
EcalTBWeights.h:18
EcalWeightSet
Definition:
EcalWeightSet.h:17
EcalTBWeights::EcalTBWeights
EcalTBWeights()
Definition:
EcalTBWeights.cc:11
EcalTBWeights::map_
EcalTBWeightMap map_
Definition:
EcalTBWeights.h:31
EcalWeightSet.h
weight
Definition:
weight.py:1
EcalTBWeights
Definition:
EcalTBWeights.h:15
Generated for CMSSW Reference Manual by
1.8.16