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
std::vector< DetId > getAllChannels() const
get list of all available channels
Definition: HcalRawGains.cc:53
bool sorted() const
check if data are sorted
Definition: HcalRawGains.h:29
std::vector< Item > Container
Definition: HcalRawGains.h:38
Container mItems
Definition: HcalRawGains.h:41
const HcalRawGain * getValues(DetId fId) const
get value
Definition: HcalRawGains.cc:38
Definition: DetId.h:17
HcalRawGain Item
Definition: HcalRawGains.h:37
HcalRawGain * addItem(DetId fId)
add new (empty) item
Definition: HcalRawGains.cc:61
void addValues(DetId fId, const HcalRawGain &fValues)
fill values
Definition: HcalRawGains.cc:68
void sort()
sort values by channelId
Definition: HcalRawGains.cc:74