test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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;}
31  HcalRawGain* addItem (DetId fId);
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  private:
41  bool mSorted;
42 };
43 
44 #endif
std::vector< Item > Container
Definition: HcalRawGains.h:38
std::vector< DetId > getAllChannels() const
get list of all available channels
Definition: HcalRawGains.cc:54
Container mItems
Definition: HcalRawGains.h:40
Definition: DetId.h:18
const HcalRawGain * getValues(DetId fId) const
get value
Definition: HcalRawGains.cc:39
HcalRawGain Item
Definition: HcalRawGains.h:37
bool sorted() const
check if data are sorted
Definition: HcalRawGains.h:29
HcalRawGain * addItem(DetId fId)
add new (empty) item
Definition: HcalRawGains.cc:63
void addValues(DetId fId, const HcalRawGain &fValues)
fill values
Definition: HcalRawGains.cc:70
void sort()
sort values by channelId
Definition: HcalRawGains.cc:77