CMS 3D CMS Logo

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 
15 
16 //
18 public:
22  const CastorRawGain* getValues(DetId fId) const;
24  std::vector<DetId> getAllChannels() const;
26  bool sorted() const { return mSorted; }
30  void addValues(DetId fId, const CastorRawGain& fValues);
32  void sort();
33  // helper typedefs
35  typedef std::vector<Item> Container;
36 
37 private:
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