15 for(
unsigned iZ(0); iZ != 2; ++iZ)
16 for(
unsigned iD(0); iD != 2; ++iD)
25 if (
debug_ )
cout <<
"ESSummaryClient: setup" << endl;
35 for (
int i=0 ;
i<2; ++
i){
36 for (
int j=0 ; j<2; ++j){
37 int iz = (
i==0)? 1:-1;
38 sprintf(histo,
"EcalPreshower Z %d P %d", iz, j+1);
54 for (
int i = 0;
i < 80;
i++ ) {
55 for (
int j = 0; j < 80; j++ ) {
62 float nDI_FedErr[80][80];
68 for (
int i=0;
i<80; ++
i)
69 for (
int j=0; j<80; ++j) {
70 nDI_FedErr[
i][j] = -1;
74 for (
int i=0;
i<2; ++
i) {
75 for (
int j=0; j<2; ++j) {
77 int iz = (
i==0)? 1:-1;
79 sprintf(histo,
"ES Integrity Errors Z %d P %d", iz, j+1);
80 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/" + histo);
82 for (
int x=0;
x<40; ++
x)
83 for (
int y=0;
y<40; ++
y)
86 sprintf(histo,
"ES Integrity Summary 1 Z %d P %d", iz, j+1);
87 me = _igetter.
get(
prefixME_ +
"/ESIntegrityClient/" + histo);
89 for (
int x=0;
x<40; ++
x)
90 for (
int y=0;
y<40; ++
y)
93 sprintf(histo,
"ES RecHit 2D Occupancy Z %d P %d", iz, j+1);
94 me = _igetter.
get(
prefixME_ +
"/ESOccupancyTask/" + histo);
107 float nValidChannels=0;
108 float nGlobalErrors=0;
109 float nValidChannelsES[2][2]={};
110 float nGlobalErrorsES[2][2]={};
112 for (
int x=0;
x<80; ++
x) {
113 if (eCount < 1)
break;
114 for (
int y=0;
y<80; ++
y) {
116 int z = (
x<40) ? 0:1;
117 int p = (
y>=40) ? 0:1;
122 if (nDI_FedErr[
x][
y] >= 0) {
126 nGlobalErrors += nDI_FedErr[
x][
y]/eCount;
128 nValidChannelsES[
z][
p]++;
129 nGlobalErrorsES[
z][
p] += nDI_FedErr[
x][
y]/eCount;
139 for(
unsigned iZ(0); iZ != 2; ++iZ){
140 for(
unsigned iD(0); iD != 2; ++iD){
141 float reportSummaryES(-1.);
142 if(nValidChannelsES[iZ][iD] != 0)
143 reportSummaryES = 1. - nGlobalErrorsES[iZ][iD] / nValidChannelsES[iZ][iD];
149 float reportSummary(-1.);
150 if(nValidChannels != 0)
151 reportSummary = 1. - nGlobalErrors / nValidChannels;
167 for(
unsigned iZ(0); iZ != 2; ++iZ)
168 for(
unsigned iD(0); iD != 2; ++iD)
171 for (
int i=0;
i<2; ++
i)
172 for (
int j=0; j<2; ++j)
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * get(const std::string &path)
ESSummaryClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * meReportSummary_
void book(DQMStore::IBooker &) override
void endLumiAnalyze(DQMStore::IGetter &) override
Analyze.
MonitorElement * meReportSummaryContents_[2][2]
~ESSummaryClient() override
Destructor.
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void endJobAnalyze(DQMStore::IGetter &) override
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
MonitorElement * meReportSummaryMap_
double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * bookFloat(Args &&...args)
void fillReportSummary(DQMStore::IGetter &)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
static std::string const source