CondFormats
CastorObjects
interface
CastorRawGains.h
Go to the documentation of this file.
1
#ifndef CastorRawGains_h
2
#define CastorRawGains_h
3
10
#include <vector>
11
#include <algorithm>
12
13
#include "
CondFormats/CastorObjects/interface/CastorRawGain.h
"
14
#include "
DataFormats/DetId/interface/DetId.h
"
15
16
//
17
class
CastorRawGains
{
18
public
:
19
CastorRawGains
();
20
~CastorRawGains
();
22
const
CastorRawGain
*
getValues
(
DetId
fId)
const
;
24
std::vector<DetId>
getAllChannels
()
const
;
26
bool
sorted
()
const
{
return
mSorted
; }
28
CastorRawGain
*
addItem
(
DetId
fId);
30
void
addValues
(
DetId
fId,
const
CastorRawGain
& fValues);
32
void
sort
();
33
// helper typedefs
34
typedef
CastorRawGain
Item
;
35
typedef
std::vector<Item>
Container
;
36
37
private
:
38
Container
mItems
;
39
bool
mSorted
;
40
};
41
42
#endif
CastorRawGains::CastorRawGains
CastorRawGains()
Definition:
CastorRawGains.cc:31
CastorRawGains::addItem
CastorRawGain * addItem(DetId fId)
add new (empty) item
Definition:
CastorRawGains.cc:59
CastorRawGains::Item
CastorRawGain Item
Definition:
CastorRawGains.h:34
CastorRawGains::mItems
Container mItems
Definition:
CastorRawGains.h:38
DetId
Definition:
DetId.h:17
CastorRawGains::sort
void sort()
sort values by channelId
Definition:
CastorRawGains.cc:72
CastorRawGains::~CastorRawGains
~CastorRawGains()
Definition:
CastorRawGains.cc:33
CastorRawGain.h
CastorRawGain
Definition:
CastorRawGain.h:12
CastorRawGains::getValues
const CastorRawGain * getValues(DetId fId) const
get value
Definition:
CastorRawGains.cc:35
CastorRawGains::addValues
void addValues(DetId fId, const CastorRawGain &fValues)
fill values
Definition:
CastorRawGains.cc:66
CastorRawGains::Container
std::vector< Item > Container
Definition:
CastorRawGains.h:35
CastorRawGains::mSorted
bool mSorted
Definition:
CastorRawGains.h:39
CastorRawGains::getAllChannels
std::vector< DetId > getAllChannels() const
get list of all available channels
Definition:
CastorRawGains.cc:51
CastorRawGains::sorted
bool sorted() const
check if data are sorted
Definition:
CastorRawGains.h:26
CastorRawGains
Definition:
CastorRawGains.h:17
DetId.h
Generated for CMSSW Reference Manual by
1.8.16