CMS 3D CMS Logo

EcalTimeDependentCorrections.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_EcalTimeDependentCorrections_H
2 #define CondFormats_EcalObjects_EcalTimeDependentCorrections_H
3 
9 
12 #include <vector>
13 
15  public:
16  struct Values {
17  Values() : p1(0), p2(0), p3(0) {}
18  float p1;
19  float p2;
20  float p3;
21 
23 };
24  struct Times {
25  Times() : t1(0), t2(0), t3(0) {}
29 
31 };
32 
34  typedef std::vector<Times> EcalTimeMap;
35 
38 
39  void setValue(uint32_t rawId, const Values & value) { value_map[rawId] = value; };
40  const EcalValueMap & getValueMap() const { return value_map; }
41 
42  void setTime(int hashedIndex, const Times & value) { time_map[hashedIndex] = value; };
43  const EcalTimeMap & getTimeMap() const { return time_map; }
44 
45  private:
46  EcalValueMap value_map;
47  EcalTimeMap time_map;
48 
49 
51 };
52 
53 #endif
const EcalTimeMap & getTimeMap() const
void setValue(uint32_t rawId, const Values &value)
void setTime(int hashedIndex, const Times &value)
EcalCondObjectContainer< Values > EcalValueMap
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:42
const EcalValueMap & getValueMap() const
Definition: value.py:1
#define COND_SERIALIZABLE
Definition: Serializable.h:38