CMS 3D CMS Logo

HcalRawGains.h
Go to the documentation of this file.
1 #ifndef HcalRawGains_h
2 #define HcalRawGains_h
3 
13 #include <vector>
14 #include <algorithm>
15 
18 
19 //
20 class HcalRawGains {
21 public:
22  HcalRawGains();
23  ~HcalRawGains();
25  const HcalRawGain* getValues(DetId fId) const;
27  std::vector<DetId> getAllChannels() const;
29  bool sorted() const { return mSorted; }
33  void addValues(DetId fId, const HcalRawGain& fValues);
35  void sort();
36  // helper typedefs
37  typedef HcalRawGain Item;
38  typedef std::vector<Item> Container;
39 
40 private:
42  bool mSorted;
43 };
44 
45 #endif
HcalRawGains::getAllChannels
std::vector< DetId > getAllChannels() const
get list of all available channels
Definition: HcalRawGains.cc:53
HcalRawGains::mItems
Container mItems
Definition: HcalRawGains.h:41
DetId
Definition: DetId.h:17
HcalRawGains::sort
void sort()
sort values by channelId
Definition: HcalRawGains.cc:74
HcalRawGains::addItem
HcalRawGain * addItem(DetId fId)
add new (empty) item
Definition: HcalRawGains.cc:61
HcalRawGain
Definition: HcalRawGain.h:15
HcalRawGains::addValues
void addValues(DetId fId, const HcalRawGain &fValues)
fill values
Definition: HcalRawGains.cc:68
HcalRawGain.h
HcalRawGains::~HcalRawGains
~HcalRawGains()
Definition: HcalRawGains.cc:36
HcalRawGains::Container
std::vector< Item > Container
Definition: HcalRawGains.h:38
HcalRawGains::Item
HcalRawGain Item
Definition: HcalRawGains.h:37
HcalRawGains::HcalRawGains
HcalRawGains()
Definition: HcalRawGains.cc:34
HcalRawGains::getValues
const HcalRawGain * getValues(DetId fId) const
get value
Definition: HcalRawGains.cc:38
HcalRawGains::sorted
bool sorted() const
check if data are sorted
Definition: HcalRawGains.h:29
DetId.h
HcalRawGains::mSorted
bool mSorted
Definition: HcalRawGains.h:42
HcalRawGains
Definition: HcalRawGains.h:20