68 TH2F* OccupancyByDepth[4];
69 TH2F* SumEnergyByDepth[4];
70 TH2F* SumTimeByDepth[4];
71 TH2F* SqrtSumEnergy2ByDepth[4];
73 TH2F* OccupancyThreshByDepth[4];
74 TH2F* SumEnergyThreshByDepth[4];
75 TH2F* SumTimeThreshByDepth[4];
76 TH2F* SqrtSumEnergy2ThreshByDepth[4];
87 if (me==0) {
if (
debug_>0)
std::cout <<
"Could not get histogram "<<s<<std::endl; gotHistos=
false;
break;}
88 OccupancyByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, OccupancyByDepth[
i],
debug_);
89 s=
subdir_+
"Distributions_AllRecHits/sumplots/"+name[
i]+
"RecHit Summed Energy GeV";
91 if (me==0) {
if (
debug_>0)
std::cout <<
"Could not get histogram "<<s<<std::endl; gotHistos=
false;
break;}
92 SumEnergyByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, SumEnergyByDepth[
i],
debug_);
93 s=
subdir_+
"Distributions_AllRecHits/sumplots/"+name[
i]+
"RecHit Summed Time nS";
95 if (me==0) {
if (
debug_>0)
std::cout <<
"Could not get histogram "<<s<<std::endl; gotHistos=
false;
break;}
96 SumTimeByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, SumTimeByDepth[
i],
debug_);
97 s=
subdir_+
"Distributions_AllRecHits/sumplots/"+name[
i]+
"RecHit Sqrt Summed Energy2 GeV";
99 if (me==0) {
if (
debug_>0)
std::cout <<
"Could not get histogram "<<s<<std::endl; gotHistos=
false;
break;}
100 SqrtSumEnergy2ByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, SqrtSumEnergy2ByDepth[
i],
debug_);
103 s=
subdir_+
"Distributions_PassedMinBias/"+name[
i]+
"Above Threshold RecHit Occupancy";
104 me=ig.
get(s.c_str());
105 if (me==0) {
if (
debug_>0)
std::cout <<
"Could not get histogram "<<s<<std::endl; gotHistos=
false;
break;}
106 OccupancyThreshByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, OccupancyThreshByDepth[
i],
debug_);
107 s=
subdir_+
"Distributions_PassedMinBias/sumplots/"+name[
i]+
"Above Threshold RecHit Summed Energy GeV";
108 me=ig.
get(s.c_str());
109 if (me==0) {
if (
debug_>0)
std::cout <<
"Could not get histogram "<<s<<std::endl; gotHistos=
false;
break;}
110 SumEnergyThreshByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, SumEnergyThreshByDepth[
i],
debug_);
111 s=
subdir_+
"Distributions_PassedMinBias/sumplots/"+name[
i]+
"Above Threshold RecHit Summed Time nS";
112 me=ig.
get(s.c_str());
113 if (me==0) {
if (
debug_>0)
std::cout <<
"Could not get histogram "<<s<<std::endl; gotHistos=
false;
break;}
114 SumTimeThreshByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, SumTimeThreshByDepth[
i],
debug_);
115 s=
subdir_+
"Distributions_PassedMinBias/sumplots/"+name[
i]+
"Above Threshold RecHit Sqrt Summed Energy2 GeV";
116 me=ig.
get(s.c_str());
117 if (me==0) {
if (
debug_>0)
std::cout <<
"Could not get histogram "<<s<<std::endl; gotHistos=
false;
break;}
118 SqrtSumEnergy2ThreshByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, SqrtSumEnergy2ThreshByDepth[
i],
debug_);
120 if (gotHistos==
false)
122 if (
debug_>0)
std::cout <<
"<HcalRecHitClient::calculateProblems()> Not all histograms could be found; skipping normalization"<<std::endl;
144 for (
int mydepth=0;mydepth<4;++mydepth)
146 for (
int eta=0;
eta<OccupancyByDepth[mydepth]->GetNbinsX();++
eta)
153 if (OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)>0)
161 meHBEnergyRMS_1D->
Fill(
sqrt(
pow(SqrtSumEnergy2ByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)/OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)-
pow(SumEnergyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)/OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)));
170 meHEEnergyRMS_1D->
Fill(
sqrt(
pow(SqrtSumEnergy2ByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)/OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)-
pow(SumEnergyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)/OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)));
178 meHOEnergyRMS_1D->
Fill(
sqrt(
pow(SqrtSumEnergy2ByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)/OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)-
pow(SumEnergyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)/OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)));
186 meHFEnergyRMS_1D->
Fill(
sqrt(
pow(SqrtSumEnergy2ByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)/OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)-
pow(SumEnergyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)/OccupancyByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)));
195 if (OccupancyThreshByDepth[mydepth]==0)
continue;
196 if (OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)>0)
204 double RMS=
pow(SqrtSumEnergy2ThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)/OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)-
pow(SumEnergyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)/OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2);
205 RMS=
pow(fabs(RMS),0.5);
215 double RMS=
pow(SqrtSumEnergy2ThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)/OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)-
pow(SumEnergyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)/OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2);
216 RMS=
pow(fabs(RMS),0.5);
225 double RMS=
pow(SqrtSumEnergy2ThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)/OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)-
pow(SumEnergyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)/OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2);
226 RMS=
pow(fabs(RMS),0.5);
235 double RMS=
pow(SqrtSumEnergy2ThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2)/OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)-
pow(SumEnergyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1)/OccupancyThreshByDepth[mydepth]->GetBinContent(
eta+1,
phi+1),2);
236 RMS=
pow(fabs(RMS),0.5);
bool isHO(int etabin, int depth)
MonitorElement * meHFEnergyThresh_1D
MonitorElement * meHOEnergyRMS_1D
MonitorElement * meHEEnergyRMS_1D
MonitorElement * get(const std::string &path)
MonitorElement * meHFEnergyRMS_1D
MonitorElement * meHEEnergyRMSThresh_1D
std::vector< std::string > HcalEtaPhiHistNames()
MonitorElement * meHBEnergyRMS_1D
bool isHE(int etabin, int depth)
EtaPhiHists * meTimeThreshByDepth
MonitorElement * meHFEnergyRMSThresh_1D
MonitorElement * meHEEnergy_1D
MonitorElement * meHBEnergy_1D
std::vector< MonitorElement * > depth
int CalcIeta(int subdet, int eta, int depth)
MonitorElement * meHOEnergyRMSThresh_1D
EtaPhiHists * meEnergyThreshByDepth
MonitorElement * meHOEnergyThresh_1D
bool isHB(int etabin, int depth)
void setupProblemCells(DQMStore::IBooker &, DQMStore::IGetter &)
MonitorElement * meHOEnergy_1D
MonitorElement * meHEEnergyThresh_1D
virtual void calculateProblems(void)
bool isHF(int etabin, int depth)
MonitorElement * meHFEnergy_1D
EtaPhiHists * meEnergyByDepth
MonitorElement * meHBEnergyThresh_1D
void FillUnphysicalHEHFBins(std::vector< TH2F > &hh)
EtaPhiHists * meTimeByDepth
MonitorElement * meHBEnergyRMSThresh_1D
void Reset(void)
reset ME (ie. contents, errors, etc)
Power< A, B >::type pow(const A &a, const B &b)
bool validDetId(HcalSubdetector sd, int ies, int ip, int dp)