14 template <
class floatCondObj>
20 if (value_ptr == payload->
end())
24 Double_t
phi = (Double_t)(
EBDetId(rawid)).iphi() - 0.5;
25 Double_t
eta = (Double_t)(
EBDetId(rawid)).ieta();
32 barrel->Fill(phi, eta, weight);
38 template <
class floatCondObj>
41 for(
int iz = -1; iz < 2; iz = iz + 2)
46 uint32_t rawid = myEEId.
rawId();
48 if (value_ptr == payload->
end())
53 endc_p->Fill(ix, iy, weight);
55 endc_m->Fill(ix, iy, weight);
61 template <
class floatCondObj>
63 float pEB[],
float & pEBmin,
float & pEBmax){
68 if (value_ptr == payload->
end())
75 Double_t
phi = (Double_t)(
EBDetId(rawid)).iphi() - 0.5;
76 Double_t
eta = (Double_t)(
EBDetId(rawid)).ieta();
83 double diff = weight - pEB[cellid];
90 barrel->Fill(phi, eta, diff);
99 template <
class floatCondObj>
101 float pEE[],
float & pEEmin,
float & pEEmax){
104 for(
int iz = -1; iz < 2; iz = iz + 2)
110 uint32_t rawid = myEEId.
rawId();
113 if (value_ptr == payload->
end())
120 double diff = weight - pEE[cellid];
127 endc_p->Fill(ix, iy, diff);
129 endc_m->Fill(ix, iy, diff);
138 const float & mean_x_EB,
const float & rms_EB,
const int & num_x_EB,
139 const float & mean_x_EE,
const float & rms_EE,
const int & num_x_EE){
142 align =
new TH2F(title.c_str(),
"EB/EE mean_x rms num_x", 4, 0, 4, NbRows, 0, NbRows);
144 double row = NbRows-0.5;
146 align->Fill(0.5,row,1);
147 align->Fill(1.5,row,mean_x_EB);
148 align->Fill(2.5,row,rms_EB);
149 align->Fill(3.5,row,num_x_EB);
153 align->Fill(0.5,row,2);
154 align->Fill(1.5,row,mean_x_EE);
155 align->Fill(2.5,row,rms_EE);
156 align->Fill(3.5,row,num_x_EE);
159 align->GetXaxis()->SetTickLength(0.);
160 align->GetXaxis()->SetLabelSize(0.);
161 align->GetYaxis()->SetTickLength(0.);
162 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)
constexpr uint32_t rawId() const
get the raw id
static const int MIN_HASH
void fillEEMap_DiffIOV(std::shared_ptr< floatCondObj > payload, TH2F *&endc_m, TH2F *&endc_p, int irun, float pEE[], float &pEEmin, float &pEEmax)
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
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 find(uint32_t rawId) const
const_iterator end() const
void fillEBMap_DiffIOV(std::shared_ptr< floatCondObj > payload, TH2F *&barrel, int irun, float pEB[], float &pEBmin, float &pEBmax)
void fillEBMap_SingleIOV(std::shared_ptr< floatCondObj > payload, TH2F *&barrel)