CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorQIEData.h
Go to the documentation of this file.
1 #ifndef CastorQIEData_h
2 #define CastorQIEData_h
3 
15 #include <vector>
16 #include <algorithm>
17 
22 
23 namespace
24 {
25  CastorQIEShape shape_;
26 }
27 
28 class CastorQIEData: public CastorCondObjectContainer<CastorQIECoder>
29 {
30  public:
31 
32  // constructor, destructor, and all methods stay the same
34 
36  // const CastorQIEShape& getShape () const {return mShape;}
37  const CastorQIEShape& getShape () const { return shape_;}
39  const CastorQIECoder* getCoder (DetId fId) const { return getValues(fId); }
40  // check if data are sorted - remove in the next version
41  bool sorted () const { return true; }
42  // fill values [capid][range]
43  //bool addCoder (const CastorQIECoder& fCoder, bool h2mode_ = false) { return addValues(fCoder, h2mode_); }
44  bool addCoder (const CastorQIECoder& fCoder) { return addValues(fCoder); }
45  // sort values by channelId - remove in the next version
46  void sort () {}
47 
48  std::string myname() const {return (std::string)"CastorQIEData";}
49 
50  //not needed/not used CastorQIEData(const CastorQIEData&);
51 
52 };
53 
54 #endif
const CastorQIEShape & getShape() const
get basic shape
Definition: CastorQIEData.h:37
std::string myname() const
Definition: CastorQIEData.h:48
const CastorQIECoder * getValues(DetId fId) const
Definition: DetId.h:20
const CastorQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: CastorQIEData.h:39
bool addValues(const CastorQIECoder &myItem)
bool sorted() const
Definition: CastorQIEData.h:41
bool addCoder(const CastorQIECoder &fCoder)
Definition: CastorQIEData.h:44