36 enabledClients_.push_back(
"Integrity");
37 enabledClients_.push_back(
"Pedestal");
38 enabledClients_.push_back(
"Summary");
43 cout <<
" Enabled Clients:";
44 for (
unsigned int i = 0;
i < enabledClients_.size();
i++ ) {
45 cout <<
" " << enabledClients_[
i];
51 if (
find(enabledClients_.begin(), enabledClients_.end(),
"Integrity" ) != enabledClients_.end() ){
55 if (
find(enabledClients_.begin(), enabledClients_.end(),
"Pedestal" ) != enabledClients_.end() ){
59 if (
find(enabledClients_.begin(), enabledClients_.end(),
"Summary" ) != enabledClients_.end() ){
64 cout<<
"PrescaleFactor = "<<prescaleFactor_<<endl;
70 if ( verbose_ )
cout <<
"Finish EcalPreshowerMonitorClient" << endl;
72 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
81 cout<<
"EcalPreshowerMonitorClient: beginJob"<<endl;
91 if ( inputFile_.size() != 0 ) {
93 dqmStore_->open(inputFile_);
97 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
98 clients_[
i]->beginJob(dqmStore_);
106 cout <<
"EcalPreshowerMonitorClient: beginRun" << endl;
114 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
115 clients_[
i]->beginRun();
122 cout <<
"EcalPreshowerMonitorClient: beginRun" << endl;
130 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
131 clients_[
i]->beginRun();
138 cout <<
"EcalPreshowerMonitorClient: endJob, ievt = " << ievt_ << endl;
146 if ( outputFile_.size() != 0 ) {
147 cout<<
"Store Result in "<<outputFile_<<endl;
148 dqmStore_->save(outputFile_);
151 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
152 clients_[
i]->endJob();
160 cout <<
"EcalPreshowerMonitorClient: endRun, jevt = " << jevt_ << endl;
166 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
167 clients_[
i]->analyze();
168 clients_[
i]->endRun();
176 cout <<
"EcalPreshowerMonitorClient: endRun, jevt = " << jevt_ << endl;
182 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
183 clients_[
i]->analyze();
184 clients_[
i]->endRun();
192 cout <<
"EcalPreshowerMonitorClient: ievt/jevt = " << ievt_ <<
"/" << jevt_ << endl;
195 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
196 clients_[
i]->analyze();
205 if(debug_)
cout<<
" analyze(const Event & e, const EventSetup & c) is called"<<endl;
207 if ( prescaleFactor_ > 0 ) {
208 if ( jevt_ % prescaleFactor_ == 0 ) this->
analyze();
218 for (
unsigned int i=0;
i<clients_.size();
i++ ) {
219 clients_[
i]->endLumiAnalyze();
228 string border[2][10] = {
229 {
"style=\"border-top:solid white; border-left:solid white; border-bottom:solid white; border-right:solid white; border-width:1\"",
230 "style=\"border-top:solid black; border-left:solid black; border-bottom:solid white; border-right:solid white; border-width:1\"",
231 "style=\"border-top:solid black; border-left:solid white; border-bottom:solid white; border-right:solid black; border-width:1\"",
232 "style=\"border-top:solid white; border-left:solid black; border-bottom:solid white; border-right:solid white; border-width:1\"",
233 "style=\"border-top:solid white; border-left:solid white; border-bottom:solid white; border-right:solid black; border-width:1\"",
234 "style=\"border-top:solid black; border-left:solid black; border-bottom:solid white; border-right:solid black; border-width:1\"",
235 "style=\"border-top:solid white; border-left:solid black; border-bottom:solid black; border-right:solid black; border-width:1\"",
236 "style=\"border-top:solid white; border-left:solid black; border-bottom:solid black; border-right:solid white; border-width:1\"",
237 "style=\"border-top:solid white; border-left:solid white; border-bottom:solid black; border-right:solid black; border-width:1\"",
238 "style=\"border-top:solid white; border-left:solid black; border-bottom:solid white; border-right:solid black; border-width:1\""},
240 {
"style=\"border-top:solid white; border-left:solid white; border-bottom:solid white; border-right:solid white; border-width:1\"",
241 "style=\"border-top:solid black; border-left:solid black; border-bottom:solid white; border-right:solid white; border-width:1\"",
242 "style=\"border-top:solid black; border-left:solid white; border-bottom:solid white; border-right:solid black; border-width:1\"",
243 "style=\"border-top:solid black; border-left:solid white; border-bottom:solid white; border-right:solid white; border-width:1\"",
244 "style=\"border-top:solid white; border-left:solid white; border-bottom:solid black; border-right:solid white; border-width:1\"",
245 "style=\"border-top:solid black; border-left:solid black; border-bottom:solid black; border-right:solid white; border-width:1\"",
246 "style=\"border-top:solid black; border-left:solid white; border-bottom:solid black; border-right:solid black; border-width:1\"",
247 "style=\"border-top:solid white; border-left:solid black; border-bottom:solid black; border-right:solid white; border-width:1\"",
248 "style=\"border-top:solid white; border-left:solid white; border-bottom:solid black; border-right:solid black; border-width:1\"",
249 "style=\"border-top:solid black; border-left:solid white; border-bottom:solid black; border-right:solid white; border-width:1\""}
252 int iborder[2][40][40] = {
253 {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
254 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
255 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 1, 2, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 1, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
256 {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0},
257 {0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 3, 4, 3, 4, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 3, 4, 3, 4, 3, 4, 1, 2, 0, 0, 0, 0, 0, 0, 0},
258 {0, 0, 0, 0, 0, 0, 0, 3, 4, 7, 8, 3, 4, 7, 8, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 7, 8, 3, 4, 7, 8, 3, 4, 0, 0, 0, 0, 0, 0, 0},
259 {0, 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4, 4, 8, 7, 4, 4, 8, 7, 4, 4, 8, 0, 0, 0, 0},
327 {0, 0, 0, 0, 0, 0, 5, 3, 3, 2, 1, 3, 3, 3, 2, 1, 3, 3, 3, 2, 1, 3, 3, 3, 2, 1, 3, 3, 3, 2, 1, 3, 3, 6, 0, 0, 0, 0, 0, 0},
328 {0, 0, 0, 0, 0, 0, 0, 7, 4, 8, 7, 4, 4, 4, 8, 7, 4, 4, 4, 8, 7, 4, 4, 4, 8, 7, 4, 4, 4, 8, 7, 4, 8, 0, 0, 0, 0, 0, 0, 0},
329 {0, 0, 0, 0, 0, 0, 0, 0, 5, 3, 3, 2, 1, 3, 3, 2, 1, 3, 3, 2, 1, 3, 3, 2, 1, 3, 3, 2, 1, 3, 3, 6, 0, 0, 0, 0, 0, 0, 0, 0},
330 {0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 4, 8, 7, 4, 4, 8, 7, 4, 4, 8, 7, 4, 4, 8, 7, 4, 4, 8, 7, 4, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0},
331 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 9, 3, 2, 1, 3, 3, 2, 1, 3, 3, 2, 1, 3, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
332 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 8, 7, 4, 4, 8, 7, 4, 4, 8, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
333 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
341 sprintf(run_s,
"/var/www/html/DQM/%08d", run);
342 string htmlDir = run_s;
343 system((
"/bin/mkdir -m 777 -p " + htmlDir).c_str());
344 sprintf(run_s,
"/var/www/html/DQM/%08d/gif", run);
345 string gifDir = run_s;
346 system((
"/bin/mkdir -m 777 -p " + gifDir).c_str());
348 htmlFile.open((htmlDir+
"/index.html").c_str(), ios::app);
351 int iquad_M[2][40] = {{ 5, 7, 10, 11, 13, 13, 14, 15, 16, 17,
352 17, 17, 18, 18, 19, 19, 19, 19, 19, 19,
353 19, 19, 19, 19, 19, 19, 18, 18, 17, 17,
354 17, 16, 15, 14, 13, 13, 11, 10, 7, 5},
355 { 0, 6, 8, 11, 12, 13, 14, 16, 16, 17,
356 18, 18, 18, 19, 19, 20, 20, 20, 20, 20,
357 20, 20, 20, 20, 20, 19, 19, 18, 18, 18,
358 17, 16, 16, 14, 13, 12, 11, 8, 6, 0}
360 int iquad_m[2][40] = {{1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
361 1, 1, 1, 3, 5, 6, 7, 7, 8, 8,
362 8, 8, 7, 7, 6, 5, 3, 1, 1, 1,
363 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
364 {1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
365 1, 1, 1, 3, 5, 6, 7, 7, 8, 8,
366 8, 8, 7, 7, 6, 5, 3, 1, 1, 1,
367 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
370 htmlFile <<
"<table border=\"0\" bordercolor=\"white\" cellspacing=\"0\" style=\"float: left;\">" << endl;
371 htmlFile <<
"<tr align=\"center\">" << endl;
372 if (
layer_==1) htmlFile <<
"<td colspan=\"40\"> ES- F <a href=\"../plotAll.php?run="<<run<<
"&type="<<runtype_<<
"\">(summary plots)</a></td>" << endl;
373 else if (
layer_==1) htmlFile <<
"<td colspan=\"40\"> ES- R <a href=\"../plotAll.php?run="<<run<<
"&type="<<runtype_<<
"\">(summary plots)</a></td>" << endl;
376 for (
int i=0;
i<40; ++
i) {
377 htmlFile <<
"<tr>" << endl;
378 for (
int j=0;
j<40; ++
j) {
379 if ((iquad_m[
layer_-1][
i]-1) == 0) {
381 htmlFile <<
"<td "<<border[
layer_-1][iborder[
layer_-1][
i][
j]]<<
" > <img src=\"../0.png\" width=12 height=12 border=0> </img></td>" << endl;
383 htmlFile <<
"<td "<<border[
layer_-1][iborder[
layer_-1][
i][
j]]<<
" ><a href=\"../plot.php?run="<<run<<
"&type="<<runtype_<<
"&iz="<<senZ_[0]<<
"&ip="<<senP_[0]<<
"&ix="<<
j+1<<
"&iy="<<39-
i+1<<
"&gain="<<
gain_<<
"&prec="<<precision_<<
"\" STYLE=\"text-decoration:none\" target=_blank><img src=\"../"<< qt[
j][39-
i]<<
".png\" width=12 height=12 border=0></img></a></td>" << endl;
387 htmlFile <<
"<td "<<border[
layer_-1][iborder[
layer_-1][
i][
j]]<<
" > <img src=\"../0.png\" width=12 height=12 border=0> </img></td>" << endl;
389 htmlFile <<
"<td "<<border[
layer_-1][iborder[
layer_-1][
i][
j]]<<
" > <img src=\"../0.png\" width=12 height=12 border=0> </img></td>" << endl;
391 htmlFile <<
"<td "<<border[
layer_-1][iborder[
layer_-1][
i][
j]]<<
" ><a href=\"../plot.php?run="<<run<<
"&type="<<runtype_<<
"&iz="<<senZ_[0]<<
"&ip="<<senP_[0]<<
"&ix="<<
j+1<<
"&iy="<<39-
i+1<<
"&gain="<<
gain_<<
"&prec="<<precision_<<
"\" STYLE=\"text-decoration:none\" target=_blank><img src=\"../"<< qt[
j][39-
i]<<
".png\" width=12 height=12 border=0></img></a></td>" << endl;
395 htmlFile <<
"</tr>" <<endl;
397 htmlFile <<
"</table>" <<endl;
398 htmlFile <<
"<table border=\"1\">" <<endl;
400 htmlFile <<
"<tr><td><img src=\"../2.png\" width=20 height=20 border=0> this sensor is not used for injection </img></td></tr>" << endl;
401 htmlFile <<
"<tr><td><img src=\"../1.png\" width=20 height=20 border=0> the injection result for this sensor is OK </img></td></tr>" << endl;
402 htmlFile <<
"<tr><td><img src=\"../4.png\" width=20 height=20 border=0> at least one strip has signal 10% higher than average </img></td></tr>" <<endl;
403 htmlFile <<
"<tr><td><img src=\"../3.png\" width=20 height=20 border=0> at least one strip has signal 10% lower than average </img></td></tr>" <<endl;
404 htmlFile <<
"<tr><td><img src=\"../7.png\" width=20 height=20 border=0> all strips have signal lower than "<< qtCriteria<<
" ADC </img></td></tr>" <<endl;
405 htmlFile <<
"<tr><td><img src=\"../6.png\" width=20 height=20 border=0> the order of time sample is wrong </img></td></tr>" <<endl;
406 htmlFile <<
"<tr><td><img src=\"../5.png\" width=20 height=20 border=0> this sensor is used for data-taking, but does not deliver data </img></td></tr>" <<endl;
408 htmlFile <<
"</table>" <<endl;
409 htmlFile <<
"</body> " << endl;
410 htmlFile <<
"</html> " << endl;
T getUntrackedParameter(std::string const &, T const &) const
static const char layer_[]
virtual void beginRun(void)
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
#define DEFINE_FWK_MODULE(type)
EcalPreshowerMonitorClient(const edm::ParameterSet &ps)
virtual void endRun(void)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
virtual ~EcalPreshowerMonitorClient()