CMS 3D CMS Logo

HcalQIEData.h
Go to the documentation of this file.
1 #ifndef HcalQIEData_h
2 #define HcalQIEData_h
3 
15 
16 #include <vector>
17 #include <algorithm>
18 
23 
24 class HcalQIEData : public HcalCondObjectContainer<HcalQIECoder> {
25 public:
26 #ifndef HCAL_COND_SUPPRESS_DEFAULT
28 #endif
29  // constructor, destructor, and all methods stay the same
31 
32  void setupShape();
34  // const HcalQIEShape& getShape () const {return mShape;}
35  const HcalQIEShape& getShape(int qieType) const { return mShape[qieType]; }
37  const HcalQIECoder* 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 HcalQIECoder& fCoder) { return addValues(fCoder); }
42  // sort values by channelId - remove in the next version
43  void sort() {}
44 
45  std::string myname() const override { return (std::string) "HcalQIEData"; }
46 
47  //not needed/not used HcalQIEData(const HcalQIEData&);
48 
49 private:
51 
53 };
54 
55 #endif
HcalQIEShape.h
HcalQIEData::HcalQIEData
HcalQIEData(const HcalTopology *topo)
Definition: HcalQIEData.h:30
HcalTopology
Definition: HcalTopology.h:26
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
COND_TRANSIENT
#define COND_TRANSIENT
Definition: Serializable.h:63
HcalQIEData::myname
std::string myname() const override
Definition: HcalQIEData.h:45
HcalCondObjectContainer< HcalQIECoder >::getValues
const HcalQIECoder * getValues(DetId fId, bool throwOnFail=true) const
Definition: HcalCondObjectContainer.h:159
HcalCondObjectContainer
Definition: HcalCondObjectContainer.h:55
HcalQIEData::getCoder
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: HcalQIEData.h:37
DetId
Definition: DetId.h:17
HcalQIEData::addCoder
bool addCoder(const HcalQIECoder &fCoder)
Definition: HcalQIEData.h:41
HcalQIECoder.h
HcalQIEData::mShape
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:50
HcalQIEData::getShape
const HcalQIEShape & getShape(int qieType) const
get basic shape
Definition: HcalQIEData.h:35
HcalQIEData::sorted
bool sorted() const
Definition: HcalQIEData.h:39
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalQIEData::sort
void sort()
Definition: HcalQIEData.h:43
HcalCondObjectContainerBase::topo
const HcalTopology * topo() const
Definition: HcalCondObjectContainer.h:22
Serializable.h
HcalCondObjectContainer.h
HcalQIEData
Definition: HcalQIEData.h:24
HcalQIECoder
Definition: HcalQIECoder.h:20
HcalQIEData::setupShape
void setupShape()
Definition: HcalQIEData.cc:3
DetId.h
HcalQIEShape
Definition: HcalQIEShape.h:17
HcalCondObjectContainer< HcalQIECoder >::addValues
bool addValues(const HcalQIECoder &myItem)
Definition: HcalCondObjectContainer.h:234
HcalQIEData::HcalQIEData
HcalQIEData()
Definition: HcalQIEData.h:27