CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
CastorRawGain * addItem(DetId fId)
add new (empty) item
CastorRawGain Item
std::vector< DetId > getAllChannels() const
get list of all available channels
Definition: DetId.h:17
std::vector< Item > Container
Container mItems
bool sorted() const
check if data are sorted
void sort()
sort values by channelId
const CastorRawGain * getValues(DetId fId) const
get value
void addValues(DetId fId, const CastorRawGain &fValues)
fill values