test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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  private:
38  bool mSorted;
39 };
40 
41 #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:18
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