CMS 3D CMS Logo

CastorQIEData.h
Go to the documentation of this file.
1 #ifndef CastorQIEData_h
2 #define CastorQIEData_h
3 
16 
17 #include <vector>
18 #include <algorithm>
19 
24 
25 class CastorQIEData : public CastorCondObjectContainer<CastorQIECoder> {
26 private:
27  static const CastorQIEShape shape_;
28 
29 public:
30  // constructor, destructor, and all methods stay the same
33  // const CastorQIEShape& getShape () const {return mShape;}
34 
35  const CastorQIEShape& getShape() const { return shape_; }
37  const CastorQIECoder* getCoder(DetId fId) const { return getValues(fId); }
38  // check if data are sorted - remove in the next version
39  bool sorted() const { return true; }
40  // fill values [capid][range]
41  //bool addCoder (const CastorQIECoder& fCoder, bool h2mode_ = false) { return addValues(fCoder, h2mode_); }
42  bool addCoder(const CastorQIECoder& fCoder) { return addValues(fCoder); }
43  // sort values by channelId - remove in the next version
44  void sort() {}
45 
46  std::string myname() const { return (std::string) "CastorQIEData"; }
47 
48  //not needed/not used CastorQIEData(const CastorQIEData&);
49 
51 };
52 
53 #endif
CastorCondObjectContainer< CastorQIECoder >::getValues
const CastorQIECoder * getValues(DetId fId, bool throwOnFail=true) const
Definition: CastorCondObjectContainer.h:65
CastorQIEData::sorted
bool sorted() const
Definition: CastorQIEData.h:39
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
DetId
Definition: DetId.h:17
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CastorCondObjectContainer
Definition: CastorCondObjectContainer.h:16
Serializable.h
CastorCondObjectContainer< CastorQIECoder >::addValues
bool addValues(const CastorQIECoder &myItem)
Definition: CastorCondObjectContainer.h:98
CastorQIEData::getCoder
const CastorQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: CastorQIEData.h:37
CastorCondObjectContainer.h
CastorQIEData::addCoder
bool addCoder(const CastorQIECoder &fCoder)
Definition: CastorQIEData.h:42
CastorQIEData::sort
void sort()
Definition: CastorQIEData.h:44
CastorQIEData::myname
std::string myname() const
Definition: CastorQIEData.h:46
CastorQIECoder.h
DetId.h
CastorQIEData::CastorQIEData
CastorQIEData()
Definition: CastorQIEData.h:31
CastorQIEData::shape_
static const CastorQIEShape shape_
Definition: CastorQIEData.h:27
CastorQIECoder
Definition: CastorQIECoder.h:21
CastorQIEShape.h
CastorQIEData
Definition: CastorQIEData.h:25
CastorQIEShape
Definition: CastorQIEShape.h:14
CastorQIEData::getShape
const CastorQIEShape & getShape() const
get basic shape
Definition: CastorQIEData.h:35