29 if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!=
"/")
30 prefixME_.append(
"/");
63 TH2F* TimingStudyTime=0;
64 TH2F* TimingStudyOcc=0;
69 TimingStudyTime=HcalUtilsClient::getHisto<TH2F*>(
me,
cloneME_,TimingStudyTime,
debug_);
71 s=
subdir_+
"HFTimingStudy/sumplots/HFTiming_Occupancy";
74 TimingStudyOcc=HcalUtilsClient::getHisto<TH2F*>(
me,
cloneME_,TimingStudyOcc,
debug_);
79 if (TimingStudyTime!=0 && TimingStudyOcc!=0)
83 for (
int x=1;
x<=etabins;++
x)
84 for (
int y=1;
y<=phibins;++
y)
85 if (TimingStudyOcc->GetBinContent(
x,
y)!=0)
94 if (
debug_>2)
std::cout <<
"\t\tHcalDigiClient::calculateProblems()"<<std::endl;
96 int etabins=0, phibins=0,
zside=0;
97 double problemvalue=0;
117 TH2F* BadDigisByDepth[4];
118 TH2F* GoodDigisByDepth[4];
125 for (
int i=0;
i<4;++
i)
128 me=ig.
get(s.c_str());
132 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Could not get histogram with name "<<s<<std::endl;
134 BadDigisByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(
me,
cloneME_, BadDigisByDepth[
i],
debug_);
136 s=
subdir_+
"good_digis/digi_occupancy/"+name[
i]+
" Digi Eta-Phi Occupancy Map";
137 me=ig.
get(s.c_str());
141 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Could not get histogram with name "<<s<<std::endl;
143 GoodDigisByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(
me,
cloneME_, BadDigisByDepth[
i],
debug_);
146 if (gothistos==
false)
148 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Unable to get all necessary histograms to evaluate problem rate"<<std::endl;
156 if (BadDigisByDepth[
d]==0 || GoodDigisByDepth[
d]==0)
continue;
157 totalevents=(int)GoodDigisByDepth[
d]->GetBinContent(0,0);
165 if (ieta==-9999)
continue;
169 if (BadDigisByDepth[
d]->GetBinContent(
eta+1,
phi+1) > 0)
170 problemvalue=(BadDigisByDepth[
d]->GetBinContent(
eta+1,
phi+1)*1./(BadDigisByDepth[
d]->GetBinContent(
eta+1,
phi+1)+GoodDigisByDepth[
d]->GetBinContent(
eta+1,
phi+1)));
197 if (
debug_>0)
std::cout <<
"<HcalDigiClient::analyze> ProblemCells histogram does not exist!"<<std::endl;
226 " Problem Digi Rate for all HCAL;ieta;iphi",
239 HFTiming_averageTime=ib.
book2D(
"HFTimingStudy_Average_Time",
"HFTimingStudy Average Time (time sample)",83,-41.5,41.5,72,0.5,72.5);
260 if (
debug_>1)
std::cout <<
"<HcalDigiClient::hasErrors_Temp> ProblemCells histogram does not exist!"<<std::endl;
270 for (
int hist_eta=0;hist_eta<etabins;++hist_eta)
272 for (
int hist_phi=0; hist_phi<phibins;++hist_phi)
275 if (ieta==-9999)
continue;
284 if (problemcount>0)
return true;
bool isHO(int etabin, int depth)
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
MonitorElement * ProblemCells
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * get(const std::string &path)
bool hasErrors_Temp(void)
std::vector< std::string > HcalEtaPhiHistNames()
MonitorElement * HFTiming_averageTime
bool isHE(int etabin, int depth)
void analyze(DQMStore::IBooker &, DQMStore::IGetter &)
std::vector< MonitorElement * > depth
int CalcIeta(int subdet, int eta, int depth)
std::vector< std::string > problemnames_
void updateChannelStatus(std::map< HcalDetId, unsigned int > &myqual)
EtaPhiHists * ProblemCellsByDepth
void setupProblemCells(DQMStore::IBooker &, DQMStore::IGetter &)
void setup(DQMStore::IBooker &m_dbe, std::string Name, std::string Units="")
bool isHB(int etabin, int depth)
~HcalDigiClient()
Destructor.
virtual void calculateProblems(void)
bool isHF(int etabin, int depth)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
bool hasWarnings_Temp(void)
std::map< HcalDetId, unsigned int > badstatusmap
void FillUnphysicalHEHFBins(std::vector< TH2F > &hh)
double getBinContent(int binx) const
get content of bin (1-D)
HcalDigiClient()
Constructors.
int badChannelStatusMask_
TH2F * getTH2F(void) const
void Reset(void)
reset ME (ie. contents, errors, etc)