29 if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!=
"/")
30 prefixME_.append(
"/");
60 TH2F* TimingStudyTime=0;
61 TH2F* TimingStudyOcc=0;
66 TimingStudyTime=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_,TimingStudyTime,
debug_);
68 s=
subdir_+
"HFTimingStudy/sumplots/HFTiming_Occupancy";
71 TimingStudyOcc=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_,TimingStudyOcc,
debug_);
76 if (TimingStudyTime!=0 && TimingStudyOcc!=0)
80 for (
int x=1;
x<=etabins;++
x)
81 for (
int y=1;
y<=phibins;++
y)
82 if (TimingStudyOcc->GetBinContent(
x,
y)!=0)
91 if (
debug_>2)
std::cout <<
"\t\tHcalDigiClient::calculateProblems()"<<std::endl;
94 int etabins=0, phibins=0, zside=0;
95 double problemvalue=0;
115 TH2F* BadDigisByDepth[4];
116 TH2F* GoodDigisByDepth[4];
123 for (
int i=0;
i<4;++
i)
130 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Could not get histogram with name "<<s<<std::endl;
132 BadDigisByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, BadDigisByDepth[
i],
debug_);
134 s=
subdir_+
"good_digis/digi_occupancy/"+name[
i]+
" Digi Eta-Phi Occupancy Map";
139 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Could not get histogram with name "<<s<<std::endl;
141 GoodDigisByDepth[
i]=HcalUtilsClient::getHisto<TH2F*>(me,
cloneME_, BadDigisByDepth[
i],
debug_);
144 if (gothistos==
false)
146 if (
debug_>0)
std::cout <<
"<HcalDigiClient::calculateProblems> Unable to get all necessary histograms to evaluate problem rate"<<std::endl;
154 if (BadDigisByDepth[d]==0 || GoodDigisByDepth[d]==0)
continue;
155 totalevents=(int)GoodDigisByDepth[d]->GetBinContent(0,0);
163 if (ieta==-9999)
continue;
167 if (BadDigisByDepth[d]->GetBinContent(
eta+1,
phi+1) > 0)
168 problemvalue=(BadDigisByDepth[d]->GetBinContent(
eta+1,
phi+1)*1./(BadDigisByDepth[d]->GetBinContent(
eta+1,
phi+1)+GoodDigisByDepth[d]->GetBinContent(
eta+1,
phi+1)));
172 ieta<0 ? zside = -1 : zside = 1;
195 if (
debug_>0)
std::cout <<
"<HcalDigiClient::analyze> ProblemCells histogram does not exist!"<<std::endl;
221 std::cout <<
"<HcalDigiClient::beginJob()> Displaying dqmStore directory structure:"<<std::endl;
233 if (
debug_>0)
std::cout <<
"<HcalDigiClient::beginRun> dqmStore does not exist!"<<std::endl;
239 " Problem Digi Rate for all HCAL;ieta;iphi",
266 if (
debug_>1)
std::cout <<
"<HcalDigiClient::hasErrors_Temp> ProblemCells histogram does not exist!"<<std::endl;
272 for (
int depth=0;depth<4; ++depth)
276 for (
int hist_eta=0;hist_eta<etabins;++hist_eta)
278 for (
int hist_phi=0; hist_phi<phibins;++hist_phi)
281 if (ieta==-9999)
continue;
290 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)