|
|
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()) {
78 inline const self &
getMap()
const {
return *
this; }
90 switch (
id.subdetId()) {
107 float &arg_mean_x_EE,
109 int &arg_num_x_EE)
const {
121 float mean_xx_EB = 0;
125 float mean_xx_EE = 0;
129 int thesign =
sign == 1 ? 1 : -1;
136 float x =
eb_[
id.rawId()];
138 mean_x_EB = mean_x_EB +
x;
139 mean_xx_EB = mean_xx_EB +
x *
x;
150 float x =
ee_[
id.rawId()];
152 mean_x_EE = mean_x_EE +
x;
153 mean_xx_EE = mean_xx_EE +
x *
x;
159 mean_x_EB = mean_x_EB / num_x_EB;
160 mean_x_EE = mean_x_EE / num_x_EE;
161 mean_xx_EB = mean_xx_EB / num_x_EB;
162 mean_xx_EE = mean_xx_EE / num_x_EE;
163 float rms_EB = (mean_xx_EB - mean_x_EB * mean_x_EB);
164 float rms_EE = (mean_xx_EE - mean_x_EE * mean_x_EE);
166 arg_mean_x_EB = mean_x_EB;
168 arg_num_x_EB = num_x_EB;
170 arg_mean_x_EE = mean_x_EE;
172 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()
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
int hashedIndex(int ieta, int iphi)
static const int MAX_IETA