|
|
Go to the documentation of this file. 1 #ifndef ECAL_COND_OBJECT_CONTAINER_HH
2 #define ECAL_COND_OBJECT_CONTAINER_HH
18 typedef typename std::vector<Item>
Items;
20 typedef typename std::vector<Item>::iterator
iterator;
38 inline void insert(std::pair<uint32_t, Item>
const &
a) {
40 switch (
id.subdetId()) {
55 switch (
id.subdetId()) {
80 inline const self &
getMap()
const {
return *
this; }
92 switch (
id.subdetId()) {
109 float &arg_mean_x_EE,
111 int &arg_num_x_EE)
const {
123 float mean_xx_EB = 0;
127 float mean_xx_EE = 0;
131 int thesign =
sign == 1 ? 1 : -1;
138 float x =
eb_[
id.rawId()];
140 mean_x_EB = mean_x_EB +
x;
141 mean_xx_EB = mean_xx_EB +
x *
x;
152 float x =
ee_[
id.rawId()];
154 mean_x_EE = mean_x_EE +
x;
155 mean_xx_EE = mean_xx_EE +
x *
x;
161 mean_x_EB = mean_x_EB / num_x_EB;
162 mean_x_EE = mean_x_EE / num_x_EE;
163 mean_xx_EB = mean_xx_EB / num_x_EB;
164 mean_xx_EE = mean_xx_EE / num_x_EE;
165 float rms_EB = (mean_xx_EB - mean_x_EB * mean_x_EB);
166 float rms_EE = (mean_xx_EE - mean_x_EE * mean_x_EE);
168 arg_mean_x_EB = mean_x_EB;
170 arg_num_x_EB = num_x_EB;
172 arg_mean_x_EE = mean_x_EE;
174 arg_num_x_EE = num_x_EE;
const self & getMap() const
const_iterator end() const
static const int kBarlRings
const_iterator end() const
const Items & items() const
const Item & item(size_t hashid) const
const Items & endcapItems() const
Item & operator[](uint32_t rawId)
EcalContainer< EEDetId, Item > ee_
std::vector< Item >::iterator iterator
void summary(float &arg_mean_x_EB, float &arg_rms_EB, int &arg_num_x_EB, float &arg_mean_x_EE, float &arg_rms_EE, int &arg_num_x_EE) const
#define COND_SERIALIZABLE
const Item & barrel(size_t hashedIndex) const
const Item & endcap(size_t hashedIndex) const
static const int kEndcWedgesY
~EcalCondObjectContainer()
const_iterator begin() const
EcalContainer< EBDetId, Item > eb_
const_iterator find(uint32_t rawId) const
static const int MAX_IPHI
const Items & barrelItems() const
void setValue(const uint32_t id, const Item &item)
const_iterator find(uint32_t rawId) const
static const int kEndcWedgesX
void insert(std::pair< uint32_t, Item > const &a)
Item operator[](uint32_t rawId) const
std::vector< Item > Items
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
std::vector< Item >::const_iterator const_iterator
static const int kBarlWedges
void insert(std::pair< uint32_t, Item > const &a)
EcalCondObjectContainer()
EcalCondObjectContainer< float > EcalFloatCondObjectContainer
const_iterator begin() const
int hashedIndex(int ieta, int iphi)
static const int MAX_IETA