31 if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!=
"/")
32 prefixME_.append(
"/");
62 TH2F* TimingStudyTime=0;
63 TH2F* TimingStudyOcc=0;
68 TimingStudyTime=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_,TimingStudyTime,
debug_);
70 s=
subdir_+
"HFTimingStudy/sumplots/HFTiming_Occupancy";
73 TimingStudyOcc=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_,TimingStudyOcc,
debug_);
78 if (TimingStudyTime!=0 && TimingStudyOcc!=0)
82 for (
int x=1;
x<=etabins;++
x)
83 for (
int y=1;
y<=phibins;++
y)
84 if (TimingStudyOcc->GetBinContent(
x,
y)!=0)
93 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)
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";
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)));
174 ieta<0 ? zside = -1 : zside = 1;
197 if (
debug_>0)
std::cout <<
"<HcalDigiClient::analyze> ProblemCells histogram does not exist!"<<std::endl;
223 std::cout <<
"<HcalDigiClient::beginJob()> Displaying dqmStore directory structure:"<<std::endl;
235 if (
debug_>0)
std::cout <<
"<HcalDigiClient::beginRun> dqmStore does not exist!"<<std::endl;
241 " Problem Digi Rate for all HCAL;ieta;iphi",
268 if (
debug_>1)
std::cout <<
"<HcalDigiClient::hasErrors_Temp> ProblemCells histogram does not exist!"<<std::endl;
274 for (
int depth=0;depth<4; ++depth)
278 for (
int hist_eta=0;hist_eta<etabins;++hist_eta)
280 for (
int hist_phi=0; hist_phi<phibins;++hist_phi)
283 if (ieta==-9999)
continue;
292 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
int CalcIeta(int subdet, int eta, int 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)
~HcalDigiClient()
Destructor.
void calculateProblems(void)
bool isHF(int etabin, int depth)
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.
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)