50 ZDCGoodLumi_(ps.getUntrackedParameter<std::vector<double> > (
"ZDC_QIValueForGoodLS")),
51 ZDCsubdir_(ps.getUntrackedParameter<std::
string>(
"ZDCsubdir",
"ZDCMonitor/ZDCMonitor_Hcal/"))
82 std::cout <<
"ZDCMonitorClient: endJob, ievt = " <<
ievt_ << std::endl;
92 std::cout <<
"<ZDCMonitorClient> Entered ZDCMonitorClient::analyze()"<<std::endl;
93 if(
debug_>1)
std::cout<<
"\nZDC Monitor Client heartbeat...."<<std::endl;
96 ZDCChannelSummary_= ib.
book2D(
"ZDC_Channel_Summary",
"Fraction of Events where ZDC Channels had no Errors" , 2, 0, 2, 9, 0, 9);
98 for (
int i=0;
i<18;++
i)
121 for (
int i=0;
i<3;++
i)
134 for (
int i=0;
i<18;++
i)
156 for (
int i=0;
i<18;++
i)
179 for (
int i=0;
i<18;++
i)
201 for (
int i=0;
i<18;++
i)
219 float ChannelRatio[18]={0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
230 me=ig.
get(
subdir_+
"Errors/Digis/ZDC_Digi_Errors");
232 TH2F* ZdcDigiErrors=0;
235 ZdcDigiErrors=HcalUtilsClient::getHisto<TH2F*>(
me,
false,0,0);
236 if (ZdcDigiErrors!=0)
238 int num_events_digis = ZdcDigiErrors->GetBinContent(-1,-1);
239 if(num_events_digis != 0)
241 for (
int i=0;
i<18;++
i)
254 me=ig.
get(
subdir_+
"Errors/HotChannel/ZDC_Hot_Channel_Errors");
255 TH2F* ZdcHotChannel=0;
258 ZdcHotChannel=HcalUtilsClient::getHisto<TH2F*>(
me,
false,0,0);
259 if (ZdcHotChannel!=0)
261 int num_events_hot = ZdcHotChannel->GetBinContent(-1,-1);
262 if(num_events_hot!=0)
264 for (
int i=0;
i<18;++
i)
277 me=ig.
get(
subdir_+
"Errors/ColdChannel/ZDC_Cold_Channel_Errors");
278 TH2F* ZdcColdChannel=0;
281 ZdcColdChannel=HcalUtilsClient::getHisto<TH2F*>(
me,
false,0,0);
282 if ((ZdcColdChannel)!=0)
284 int num_events_cold = ZdcColdChannel->GetBinContent(-1,-1);
285 if(num_events_cold!=0)
287 for (
int i=0;
i<18;++
i)
300 me=ig.
get(
subdir_+
"Errors/DeadChannel/ZDC_Dead_Channel_Errors");
301 TH2F* ZdcDeadChannel=0;
304 ZdcDeadChannel=HcalUtilsClient::getHisto<TH2F*>(
me,
false,0,0);
305 if ((ZdcDeadChannel)!=0)
307 int num_events_dead = ZdcDeadChannel->GetBinContent(-1,-1);
308 if(num_events_dead!=0)
310 for (
int i=0;
i<18;++
i)
328 me=ig.
get(
subdir_+
"Errors/ZDC_TotalChannelErrors");
329 TH2F* ZdcTotalErrors=0;
332 ZdcTotalErrors=HcalUtilsClient::getHisto<TH2F*>(
me,
false,0,0);
333 int num_events_errors = ZdcTotalErrors->GetBinContent(-1,-1);
334 if(num_events_errors!=0)
336 for (
int i=0;
i<18;++
i)
338 ChannelRatio[
i]=(ZdcTotalErrors->GetBinContent((
i/9)+1,(
i%9)+1))*1./num_events_errors;
359 EventsvsLs=HcalUtilsClient::getHisto<TH1F*>(
me,
false,0,0);
363 Pzdc_QI=HcalUtilsClient::getHisto<TH1F*>(
me,
false,0,0);
367 Nzdc_QI=HcalUtilsClient::getHisto<TH1F*>(
me,
false,0,0);
369 if(EventsvsLs!=0 && Pzdc_QI!=0 && Nzdc_QI!=0)
371 for (
int i=1;
i<=EventsvsLs->GetNbinsX();++
i)
373 if (EventsvsLs->GetBinContent(
i)==0)
void setBinContent(int binx, double content)
set content of bin (1-D)
ZDCMonitorClient(std::string myname, const edm::ParameterSet &ps)
Constructors.
MonitorElement * get(const std::string &path)
MonitorElement * ZDCColdChannelFraction_
MonitorElement * ZDCReportSummary_
void endJob(void) override
BeginJob.
MonitorElement * ZDCHotChannelFraction_
MonitorElement * ZDCChannelSummary_
MonitorElement * ZDCDigiErrorFraction_
virtual ~ZDCMonitorClient()
Destructor.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
virtual void analyze(DQMStore::IBooker &, DQMStore::IGetter &) override
Analyze.
std::vector< double > ZDCGoodLumi_
MonitorElement * ZDCDeadChannelFraction_
TH2F * getTH2F(void) const
void beginRun() override
BeginRun.
void Reset(void)
reset ME (ie. contents, errors, etc)