31 if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!=
"/")
32 prefixME_.append(
"/");
58 TH2F* TimingStudyTime=0;
59 TH2F* TimingStudyOcc=0;
60 std::string
s=
subdir_+
"HFTimingStudy/sumplots/HFTiming_Total_Time";
64 TimingStudyTime=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_,TimingStudyTime,
debug_);
66 s=
subdir_+
"HFTimingStudy/sumplots/HFTiming_Occupancy";
69 TimingStudyOcc=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_,TimingStudyOcc,
debug_);
74 if (TimingStudyTime!=0 && TimingStudyOcc!=0)
78 for (
int x=1;
x<=etabins;++
x)
79 for (
int y=1;
y<=phibins;++
y)
80 if (TimingStudyOcc->GetBinContent(
x,
y)!=0)
89 if (
debug_>2)
std::cout <<
"\t\tHcalDigiClient::calculateProblems()"<<std::endl;
92 int etabins=0, phibins=0, zside=0;
93 double problemvalue=0;
113 TH2F* BadDigisByDepth[4];
114 TH2F* GoodDigisByDepth[4];
121 for (
int i=0;
i<4;++
i)
123 std::string
s=
subdir_+
"bad_digis/bad_digi_occupancy/"+name[
i]+
"Bad Digi Map";
128 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Could not get histogram with name "<<s<<std::endl;
130 BadDigisByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, BadDigisByDepth[
i],
debug_);
132 s=
subdir_+
"good_digis/digi_occupancy/"+name[
i]+
" Digi Eta-Phi Occupancy Map";
137 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Could not get histogram with name "<<s<<std::endl;
139 GoodDigisByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, BadDigisByDepth[
i],
debug_);
142 if (gothistos==
false)
144 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Unable to get all necessary histograms to evaluate problem rate"<<std::endl;
152 if (BadDigisByDepth[d]==0 || GoodDigisByDepth[d]==0)
continue;
153 totalevents=(int)GoodDigisByDepth[d]->GetBinContent(0,0);
161 if (ieta==-9999)
continue;
165 if (BadDigisByDepth[d]->GetBinContent(
eta+1,
phi+1) > 0)
166 problemvalue=(BadDigisByDepth[d]->GetBinContent(
eta+1,
phi+1)*1./(BadDigisByDepth[d]->GetBinContent(
eta+1,
phi+1)+GoodDigisByDepth[d]->GetBinContent(
eta+1,
phi+1)));
170 ieta<0 ? zside = -1 : zside = 1;
193 if (
debug_>0)
std::cout <<
"<HcalDigiClient::analyze> ProblemCells histogram does not exist!"<<std::endl;
219 std::cout <<
"<HcalDigiClient::beginJob()> Displaying dqmStore directory structure:"<<std::endl;
231 if (
debug_>0)
std::cout <<
"<HcalDigiClient::beginRun> dqmStore does not exist!"<<std::endl;
237 " Problem Digi Rate for all HCAL;ieta;iphi",
264 if (
debug_>1)
std::cout <<
"<HcalDigiClient::hasErrors_Temp> ProblemCells histogram does not exist!"<<std::endl;
270 for (
int depth=0;depth<4; ++depth)
274 for (
int hist_eta=0;hist_eta<etabins;++hist_eta)
276 for (
int hist_phi=0; hist_phi<phibins;++hist_phi)
279 if (ieta==-9999)
continue;
288 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)
bool hasErrors_Temp(void)
std::vector< std::string > HcalEtaPhiHistNames()
void setup(DQMStore *&m_dbe, std::string Name, std::string Units="")
MonitorElement * HFTiming_averageTime
bool isHE(int etabin, int depth)
std::vector< MonitorElement * > depth
std::vector< std::string > problemnames_
void updateChannelStatus(std::map< HcalDetId, unsigned int > &myqual)
EtaPhiHists * ProblemCellsByDepth
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
bool isHB(int etabin, int depth)
int CalcIeta(int subdet, int eta, int depth)
void calculateProblems(void)
bool isHF(int etabin, int depth)
bool hasWarnings_Temp(void)
void FillUnphysicalHEHFBins(EtaPhiHists &hh)
std::map< HcalDetId, unsigned int > badstatusmap
double getBinContent(int binx) const
get content of bin (1-D)
HcalDigiClient()
Constructors.
void showDirStructure(void) const
int badChannelStatusMask_
TH2F * getTH2F(void) const
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void Reset(void)
reset ME (ie. contents, errors, etc)
void setCurrentFolder(const std::string &fullpath)