25 template <
class floatCondObj>
30 if (value_ptr == payload->
end())
33 float weight = (float)(*value_ptr);
34 Double_t
phi = (Double_t)(
EBDetId(rawid)).iphi() - 0.5;
35 Double_t
eta = (Double_t)(
EBDetId(rawid)).ieta();
42 barrel->Fill(phi, eta, weight);
46 template <
class floatCondObj>
49 for (
int iz = -1; iz < 2; iz = iz + 2)
54 uint32_t rawid = myEEId.
rawId();
56 if (value_ptr == payload->
end())
59 float weight = (float)(*value_ptr);
61 endc_p->Fill(ix, iy, weight);
63 endc_m->Fill(ix, iy, weight);
68 template <
class floatCondObj>
79 if (value_ptr == payload->
end())
82 float weight = (float)(*value_ptr);
86 Double_t
phi = (Double_t)(
EBDetId(rawid)).iphi() - 0.5;
87 Double_t
eta = (Double_t)(
EBDetId(rawid)).ieta();
95 dr = weight - pEB[cellid];
98 if (pEB[cellid] != 0.)
99 dr = weight / pEB[cellid];
111 barrel->Fill(phi, eta, dr);
116 template <
class floatCondObj>
126 for (
int iz = -1; iz < 2; iz = iz + 2)
132 uint32_t rawid = myEEId.
rawId();
135 if (value_ptr == payload->
end())
137 float weight = (float)(*value_ptr);
144 dr = weight - pEE[cellid];
147 if (pEE[cellid] != 0.)
148 dr = weight / pEE[cellid];
161 endc_p->Fill(ix, iy, dr);
163 endc_m->Fill(ix, iy, dr);
171 const float& mean_x_EB,
174 const float& mean_x_EE,
176 const int& num_x_EE) {
178 align =
new TH2F(title.c_str(),
"EB/EE mean_x rms num_x", 4, 0, 4, NbRows, 0, NbRows);
180 double row = NbRows - 0.5;
182 align->Fill(0.5, row, 1);
183 align->Fill(1.5, row, mean_x_EB);
184 align->Fill(2.5, row, rms_EB);
185 align->Fill(3.5, row, num_x_EB);
189 align->Fill(0.5, row, 2);
190 align->Fill(1.5, row, mean_x_EE);
191 align->Fill(2.5, row, rms_EE);
192 align->Fill(3.5, row, num_x_EE);
194 align->GetXaxis()->SetTickLength(0.);
195 align->GetXaxis()->SetLabelSize(0.);
196 align->GetYaxis()->SetTickLength(0.);
197 align->GetYaxis()->SetLabelSize(0.);
void fillTableWithSummary(TH2F *&align, std::string title, const float &mean_x_EB, const float &rms_EB, const int &num_x_EB, const float &mean_x_EE, const float &rms_EE, const int &num_x_EE)
void fillEBMap_TwoIOVs(std::shared_ptr< floatCondObj > payload, TH2F *&barrel, int irun, float pEB[], float &pEBmin, float &pEBmax, int method)
constexpr uint32_t rawId() const
get the raw id
void fillEEMap_TwoIOVs(std::shared_ptr< floatCondObj > payload, TH2F *&endc_m, TH2F *&endc_p, int irun, float pEE[], float &pEEmin, float &pEEmax, int method)
static const int MIN_HASH
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
std::vector< Item >::const_iterator const_iterator
void fillEEMap_SingleIOV(std::shared_ptr< floatCondObj > payload, TH2F *&endc_m, TH2F *&endc_p)
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
const_iterator end() const
void fillEBMap_SingleIOV(std::shared_ptr< floatCondObj > payload, TH2F *&barrel)