#include <ESSummaryClient.h>
Definition at line 14 of file ESSummaryClient.h.
ESSummaryClient::~ESSummaryClient |
( |
| ) |
|
|
virtual |
void ESSummaryClient::analyze |
( |
void |
| ) |
|
|
virtual |
Analyze.
Implements ESClient.
Definition at line 120 of file ESSummaryClient.cc.
References MonitorElement::Fill(), MonitorElement::getBinContent(), timingPdfMaker::histo, i, j, AlCaHLTBitMon_ParallelJobs::p, getDQMSummary::reportSummary, MonitorElement::setBinContent(), x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
124 float nDI_FedErr[80][80];
130 for (
int i=0;
i<80; ++
i)
131 for (
int j=0;
j<80; ++
j) {
132 nDI_FedErr[
i][
j] = -1;
136 for (
int i=0;
i<2; ++
i) {
137 for (
int j=0;
j<2; ++
j) {
139 int iz = (
i==0)? 1:-1;
141 sprintf(histo,
"ES Integrity Errors Z %d P %d", iz,
j+1);
144 for (
int x=0;
x<40; ++
x)
145 for (
int y=0;
y<40; ++
y)
148 sprintf(histo,
"ES Integrity Summary 1 Z %d P %d", iz,
j+1);
151 for (
int x=0;
x<40; ++
x)
152 for (
int y=0;
y<40; ++
y)
155 sprintf(histo,
"ES RecHit 2D Occupancy Z %d P %d", iz,
j+1);
169 float nValidChannels=0;
170 float nGlobalErrors=0;
171 float nValidChannelsES[2][2]={};
172 float nGlobalErrorsES[2][2]={};
176 for (
int x=0;
x<80; ++
x) {
177 if (eCount < 1)
break;
178 for (
int y=0;
y<80; ++
y) {
180 int z = (
x<40) ? 0:1;
181 int p = (
y>=40) ? 0:1;
186 if (nDI_FedErr[
x][
y] >= 0) {
190 nGlobalErrors += nDI_FedErr[
x][
y]/eCount;
192 nValidChannelsES[
z][
p]++;
193 nGlobalErrorsES[
z][
p] += nDI_FedErr[
x][
y]/eCount;
204 for (
int i=0;
i<2; ++
i) {
205 for (
int j=0;
j<2; ++
j) {
206 int iz = (
i==0)? 1:-1;
207 float reportSummaryES = -1.;
208 if (nValidChannelsES[
i][
j] != 0)
209 reportSummaryES = 1.0 - nGlobalErrorsES[
i][
j]/nValidChannelsES[
i][
j];
210 sprintf(histo,
"EcalPreshower Z %d P %d", iz,
j+1);
212 if ( me ) me->
Fill(reportSummaryES);
218 if ( nValidChannels != 0 )
219 reportSummary = 1.0 - nGlobalErrors/nValidChannels;
221 if ( me ) me->
Fill(reportSummary);
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
double getBinContent(int binx) const
get content of bin (1-D)
void ESSummaryClient::beginJob |
( |
DQMStore * |
dqmStore | ) |
|
|
virtual |
BeginJob.
Implements ESClient.
Definition at line 27 of file ESSummaryClient.cc.
References gather_cfg::cout, MonitorElement::Fill(), MonitorElement::getName(), timingPdfMaker::histo, i, j, MonitorElement::setAxisTitle(), and MonitorElement::setBinContent().
31 if (
debug_ )
cout <<
"ESSummaryClient: beginJob" << endl;
42 sprintf(histo,
"reportSummary");
52 for (
int i=0 ;
i<2; ++
i){
53 for (
int j=0 ;
j<2; ++
j){
54 int iz = (
i==0)? 1:-1;
55 sprintf(histo,
"EcalPreshower Z %d P %d", iz,
j+1);
67 sprintf(histo,
"reportSummaryMap");
76 for (
int i = 0;
i < 80;
i++ ) {
77 for (
int j = 0;
j < 80;
j++ ) {
const std::string & getName(void) const
get name of ME
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * bookFloat(const char *name)
Book float.
void removeElement(const std::string &name)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)
void ESSummaryClient::beginRun |
( |
void |
| ) |
|
|
virtual |
void ESSummaryClient::cleanup |
( |
void |
| ) |
|
|
virtual |
void ESSummaryClient::endJob |
( |
void |
| ) |
|
|
virtual |
void ESSummaryClient::endLumiAnalyze |
( |
void |
| ) |
|
|
virtual |
void ESSummaryClient::endRun |
( |
void |
| ) |
|
|
virtual |
int ESSummaryClient::getEvtPerJob |
( |
| ) |
|
|
inline |
int ESSummaryClient::getEvtPerRun |
( |
| ) |
|
|
inline |
void ESSummaryClient::setFriends |
( |
const std::vector< ESClient * > & |
clients | ) |
|
|
inline |
void ESSummaryClient::setup |
( |
void |
| ) |
|
|
virtual |
void ESSummaryClient::softReset |
( |
bool |
flag | ) |
|
std::vector<ESClient*> ESSummaryClient::clients_ |
|
private |
bool ESSummaryClient::cloneME_ |
|
private |
bool ESSummaryClient::debug_ |
|
private |
bool ESSummaryClient::enableCleanup_ |
|
private |
int ESSummaryClient::ievt_ |
|
private |
int ESSummaryClient::jevt_ |
|
private |
std::string ESSummaryClient::prefixME_ |
|
private |
bool ESSummaryClient::verbose_ |
|
private |