CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Static Private Attributes
EBBeamCaloClient Class Reference

#include <EBBeamCaloClient.h>

Inheritance diagram for EBBeamCaloClient:
EBClient

Public Member Functions

void analyze (void)
 Analyze. More...
 
void beginJob (void)
 BeginJob. More...
 
void beginRun (void)
 BeginRun. More...
 
void cleanup (void)
 Cleanup. More...
 
 EBBeamCaloClient (const edm::ParameterSet &ps)
 Constructor. More...
 
void endJob (void)
 EndJob. More...
 
void endRun (void)
 EndRun. More...
 
int getEvtPerJob ()
 Get Functions. More...
 
int getEvtPerRun ()
 Returns the number of processed events in this Run. More...
 
void setup (void)
 Setup. More...
 
virtual ~EBBeamCaloClient ()
 Destructor. More...
 
- Public Member Functions inherited from EBClient
virtual ~EBClient (void)
 

Private Attributes

float aveEne1_
 
float aveEne3x3_
 
std::vector< int > checkedSteps_
 
bool cloneME_
 
bool debug_
 
DQMStoredqmStore_
 
float E1Th_
 
float E3x3Th_
 
bool enableCleanup_
 
TH1F * hBAllNeededCry_
 
TH2F * hBBeamCentered_
 
TH1F * hBcryDone_
 
TH2F * hBCryOnBeam_
 
TH1F * hbDesync_
 
TH1F * hbE1MaxCry_
 
TProfile * hBE1vsCry_
 
TH1F * hBE3x3_
 
TH1F * hBE3x3Moving_
 
TProfile * hBE3x3vsCry_
 
TH1F * hBEne1_
 
TH1F * hBEntriesvsCry_
 
TH1F * hBGains_ [cryInArray_]
 
TH2F * hBMaxEneCry_
 
TH1F * hBNumReadCry_
 
TProfile * hBpulse_ [cryInArray_]
 
TH1F * hBReadCryErrors_
 
TH1F * hbTBmoving_
 
int ievt_
 
int jevt_
 
MonitorElementmeEBBCaloRedGreen_
 
MonitorElementmeEBBCaloRedGreenReadCry_
 
MonitorElementmeEBBCaloRedGreenSteps_
 
int minEvtNum_
 
TProfile * pBCriInBeamEvents_
 
std::string prefixME_
 
float prescaling_
 
float ReadCryErrThr_
 
float RMSEne3x3_
 
std::vector< int > superModules_
 
bool verbose_
 

Static Private Attributes

static const int cryInArray_ = 9
 

Detailed Description

Definition at line 34 of file EBBeamCaloClient.h.

Constructor & Destructor Documentation

EBBeamCaloClient::EBBeamCaloClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 35 of file EBBeamCaloClient.cc.

References aveEne1_, aveEne3x3_, checkedSteps_, cloneME_, cryInArray_, debug_, E1Th_, E3x3Th_, enableCleanup_, edm::ParameterSet::getUntrackedParameter(), hBAllNeededCry_, hBBeamCentered_, hBcryDone_, hBCryOnBeam_, hbDesync_, hbE1MaxCry_, hBE1vsCry_, hBE3x3_, hBE3x3Moving_, hBE3x3vsCry_, hBEne1_, hBEntriesvsCry_, hBGains_, hBMaxEneCry_, hBNumReadCry_, hBpulse_, hBReadCryErrors_, hbTBmoving_, i, meEBBCaloRedGreen_, meEBBCaloRedGreenReadCry_, meEBBCaloRedGreenSteps_, minEvtNum_, pBCriInBeamEvents_, prefixME_, prescaling_, ReadCryErrThr_, RMSEne3x3_, superModules_, and verbose_.

35  {
36 
37  // cloneME switch
38  cloneME_ = ps.getUntrackedParameter<bool>("cloneME", true);
39 
40  // verbose switch
41  verbose_ = ps.getUntrackedParameter<bool>("verbose", true);
42 
43  // debug switch
44  debug_ = ps.getUntrackedParameter<bool>("debug", false);
45 
46  // prefixME path
47  prefixME_ = ps.getUntrackedParameter<std::string>("prefixME", "");
48 
49  // enableCleanup_ switch
50  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false);
51 
52  // vector of selected Super Modules (Defaults to all 36).
53  superModules_.reserve(36);
54  for ( unsigned int i = 1; i <= 36; i++ ) superModules_.push_back(i);
55  superModules_ = ps.getUntrackedParameter<std::vector<int> >("superModules", superModules_);
56 
57  checkedSteps_.reserve(86);
58  // there should be not more than a eta row in an autoscan
59  minEvtNum_ = 1800;//
60  //FIX ME, this should be configurable and change with the beam energy
61  aveEne1_ = 1850; E1Th_ = 900;
62  aveEne3x3_ = 2600; E3x3Th_ = 2600;
63  RMSEne3x3_ = 800;
64 
65  ReadCryErrThr_ = 0.01;// 1%
66  //FIX ME, this should follow the prescaling in the monitoring
67  prescaling_ = 20;
68 
70  for(int u=0;u<cryInArray_;u++) {
71  hBGains_[u] = 0;
72  hBpulse_[u] = 0;
73  //hBGainsMoving_[u] = 0;
74  }
75  hBEne1_ = 0;
76  //hBEne1Moving_ = 0;
77  hBAllNeededCry_ = 0;
78  hBNumReadCry_ = 0;
79  hBE3x3_ = 0;
80  hBE3x3Moving_ = 0;
81  hBCryOnBeam_ = 0;
82  hBMaxEneCry_ = 0;
83  hBReadCryErrors_ = 0;
84  hBE1vsCry_ = 0;
85  hBE3x3vsCry_ = 0;
86  hBEntriesvsCry_ = 0;
87  hBcryDone_ = 0;
88  hBBeamCentered_ = 0;
89  hbTBmoving_ = 0;
90  hbE1MaxCry_ = 0;
91  hbDesync_ = 0;
93 
97 }
std::string prefixME_
MonitorElement * meEBBCaloRedGreenReadCry_
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
std::vector< int > superModules_
MonitorElement * meEBBCaloRedGreen_
TProfile * hBpulse_[cryInArray_]
std::vector< int > checkedSteps_
TProfile * pBCriInBeamEvents_
static const int cryInArray_
TH1F * hBGains_[cryInArray_]
MonitorElement * meEBBCaloRedGreenSteps_
TProfile * hBE3x3vsCry_
EBBeamCaloClient::~EBBeamCaloClient ( )
virtual

Destructor.

Definition at line 99 of file EBBeamCaloClient.cc.

99  {
100 
101 }

Member Function Documentation

void EBBeamCaloClient::analyze ( void  )
virtual

Analyze.

Implements EBClient.

Definition at line 335 of file EBBeamCaloClient.cc.

References abs, aveEne1_, aveEne3x3_, cloneME_, gather_cfg::cout, cryInArray_, debug_, dqmStore_, E1Th_, E3x3Th_, Entries, newFWLiteAna::found, DQMStore::get(), MonitorElement::getBinContent(), UtilsClient::getHisto(), hBAllNeededCry_, hBBeamCentered_, hBcryDone_, hBCryOnBeam_, hbDesync_, hbE1MaxCry_, hBE1vsCry_, hBE3x3_, hBE3x3vsCry_, hBEne1_, hBEntriesvsCry_, hBGains_, hBMaxEneCry_, hBNumReadCry_, hBpulse_, hBReadCryErrors_, hbTBmoving_, ievt_, jevt_, meEBBCaloRedGreen_, meEBBCaloRedGreenReadCry_, meEBBCaloRedGreenSteps_, minEvtNum_, pBCriInBeamEvents_, prefixME_, prescaling_, ReadCryErrThr_, RMSEne3x3_, and MonitorElement::setBinContent().

335  {
336 
337  ievt_++;
338  jevt_++;
339  if ( ievt_ % 10 == 0 ) {
340  if ( debug_ ) std::cout << "EBBeamCaloClient: ievt/jevt = " << ievt_ << "/" << jevt_ << std::endl;
341  }
342 
343  MonitorElement* me = 0;
344 
345  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT crystals done");
347 
348  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT crystal on beam");
350 
351  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT all needed crystals readout");
353 
354  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT readout crystals number");
356 
357  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT rec Ene sum 3x3");
359 
360  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT readout crystals errors");
362 
363  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT rec energy cry 5");
365 
366  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT crystal with maximum rec energy");
368 
369  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT average rec energy in the 3x3 array");
371 
372  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT average rec energy in the single crystal");
374 
375  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT number of entries");
377 
378  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT energy deposition in the 3x3");
380 
381  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT table is moving");
383 
384  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT crystal in beam vs event");
386 
387  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT E1 in the max cry");
389 
390  me = dqmStore_->get(prefixME_ + "/EBBeamCaloTask/EBBCT Desynchronization vs step");
392 
393  std::stringstream ss;
394  for(int ind = 0; ind < cryInArray_; ind ++) {
395  ss.str("");
396  ss << prefixME_ << "/EBBeamCaloTask/EBBCT pulse profile in G12 cry " << std::setfill('0') << std::setw(1) << ind+1;
397  me = dqmStore_->get(ss.str());
398  hBpulse_[ind] = UtilsClient::getHisto( me, cloneME_, hBpulse_[ind]);
399 
400  ss.str("");
401  ss << prefixME_ << "/EBBeamCaloTask/EBBCT found gains cry " << std::setfill('0') << std::setw(1) << ind+1;
402  me = dqmStore_->get(ss.str());
403  hBGains_[ind] = UtilsClient::getHisto( me, cloneME_, hBGains_[ind]);
404  }
405 
406  int DoneCry = 0;//if it stays 1 the run is not an autoscan
407  if (hBcryDone_) {
408  for(int cry=1 ; cry<1701 ; cry ++) {
409  int step = (int) hBcryDone_->GetBinContent(cry);
410  if( step>0 ) {//this crystal has been scanned or is being scanned
411  DoneCry++;
412  float E3x3RMS = -1, E3x3 =-1, E1=-1;
413  if(hBE3x3vsCry_) {
414  //E3x3RMS = hBE3x3vsCry_->GetBinError(step);
415  //E3x3 = hBE3x3vsCry_->GetBinContent(step);
416  E3x3RMS = hBE3x3vsCry_->GetBinError(cry);
417  E3x3 = hBE3x3vsCry_->GetBinContent(cry);
418  }
419  //if( hBE1vsCry_) {E1=hBE1vsCry_->GetBinContent(step);}
420  if( hBE1vsCry_) {E1=hBE1vsCry_->GetBinContent(cry);}
421  bool RMS3x3 = ( E3x3RMS < RMSEne3x3_ && E3x3RMS >= 0 );
422  bool Mean3x3 = ( std::abs( E3x3 - aveEne3x3_ ) < E3x3Th_);
423  bool Mean1 = ( std::abs( E1 - aveEne1_ ) < E1Th_ );
424  int ieta = ( cry - 1)/20 + 1 ;//+1 for the bin
425  int iphi = ( cry - 1)%20 + 1 ;//+1 for the bin
426  //fill the RedGreen histo
427  if(ieta >0 && iphi >0 ) {
428  if(RMS3x3 && Mean3x3 && Mean1) {meEBBCaloRedGreen_->setBinContent(ieta,iphi,1.);}
429  else {meEBBCaloRedGreen_->setBinContent(ieta,iphi,0.);}
430  }
431 
432  float Entries = -1;
433  //if ( hBEntriesvsCry_ ) {Entries = hBEntriesvsCry_->GetBinContent(step);}
434  if ( hBEntriesvsCry_ ) {Entries = hBEntriesvsCry_->GetBinContent(cry);}
435  bool Nent = ( Entries * prescaling_ > minEvtNum_ );
436  bool readCryOk = true;
437  if( hBReadCryErrors_ ) {
438  int step_bin = hBReadCryErrors_->GetXaxis()->FindFixBin(step);
439  if ( step_bin > 0 && step_bin < hBReadCryErrors_->GetNbinsX() ) {
440  if ( hBReadCryErrors_->GetBinContent(step_bin) <= Entries*ReadCryErrThr_ ) {readCryOk = true;}
441  else {readCryOk = false;}
442  }
443  }
444 
445  if(Nent && readCryOk ) { meEBBCaloRedGreenSteps_->setBinContent(step,1,1.);}
446  else{ meEBBCaloRedGreenSteps_->setBinContent(step,1,0.);}
447 
448  if (readCryOk && meEBBCaloRedGreenReadCry_->getBinContent(1,1) != 0.) { meEBBCaloRedGreenReadCry_->setBinContent(1,1, 1.);}
449  else if ( !readCryOk ) { meEBBCaloRedGreenReadCry_->setBinContent(1,1, 0.);}
450  }// end of if (step>0)
451  }//end of loop over cry
452  }//end of if(hBcryDone_)
453 
454  if(DoneCry == 1) {//this is probably not an auotscan or it is the first crystal
455  float nEvt = 0;
456  if(hBE3x3_) {nEvt = hBE3x3_->GetEntries();}
457  if(nEvt > 1*prescaling_ && hBE3x3_ && hBEne1_ && hBCryOnBeam_ && meEBBCaloRedGreen_) {//check for mean and RMS
458  bool RMS3x3 = ( hBE3x3_->GetRMS() < RMSEne3x3_ );
459  bool Mean3x3 = ( std::abs( hBE3x3_->GetMean() - aveEne3x3_ ) < E3x3Th_ );
460  bool Mean1 = ( std::abs( hBEne1_->GetMean() - aveEne1_ ) < E1Th_ );
461  //fill the RedGreen histo
462  int ieta=0,iphi=0;
463  float found =0; //there should be just one bin filled but...
464  for (int b_eta =1; b_eta<86; b_eta++) {
465  for (int b_phi =1; b_phi<21; b_phi++) {
466  float bc = hBCryOnBeam_->GetBinContent(b_eta,b_phi);//FIX ME check if this is the correct binning
467  if(bc > found) { found =bc; ieta = b_eta; iphi= b_phi;}
468  }
469  }
470  if(ieta >0 && iphi >0 ) {
471  if(RMS3x3 && Mean3x3 && Mean1) {meEBBCaloRedGreen_->setBinContent(ieta,iphi,1.);}
472  else {meEBBCaloRedGreen_->setBinContent(ieta,iphi,0.);}
473  }
474  }
475  if(hBReadCryErrors_) {
476  float nErr = hBReadCryErrors_->GetBinContent(1);// for a non autoscan just the first bin should be filled
477  if( nErr > nEvt*ReadCryErrThr_ ) { meEBBCaloRedGreenReadCry_->setBinContent(1,1,0.);}
478  else { meEBBCaloRedGreenReadCry_->setBinContent(1,1,1.);}
479  }
480  }
481 }
std::string prefixME_
MonitorElement * meEBBCaloRedGreenReadCry_
void setBinContent(int binx, double content)
set content of bin (1-D)
list step
Definition: launcher.py:15
static T getHisto(const MonitorElement *me, bool clone=false, T ret=0)
Returns the histogram contained by the Monitor Element.
Definition: UtilsClient.h:91
MonitorElement * meEBBCaloRedGreen_
#define abs(x)
Definition: mlp_lapack.h:159
TProfile * hBpulse_[cryInArray_]
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1265
TProfile * pBCriInBeamEvents_
DQMStore * dqmStore_
double getBinContent(int binx) const
get content of bin (1-D)
static const int cryInArray_
tuple cout
Definition: gather_cfg.py:41
TH1F * hBGains_[cryInArray_]
MonitorElement * meEBBCaloRedGreenSteps_
TProfile * hBE3x3vsCry_
void EBBeamCaloClient::beginJob ( void  )
virtual

BeginJob.

Implements EBClient.

Definition at line 103 of file EBBeamCaloClient.cc.

References gather_cfg::cout, debug_, dqmStore_, ievt_, jevt_, and cmsCodeRules.cppFunctionSkipper::operator.

103  {
104 
106 
107  if ( debug_ ) std::cout << "EBBeamCaloClient: beginJob" << std::endl;
108 
109  ievt_ = 0;
110  jevt_ = 0;
111 
112 }
DQMStore * dqmStore_
tuple cout
Definition: gather_cfg.py:41
void EBBeamCaloClient::beginRun ( void  )
virtual

BeginRun.

Implements EBClient.

Definition at line 114 of file EBBeamCaloClient.cc.

References gather_cfg::cout, debug_, jevt_, and setup().

114  {
115 
116  if ( debug_ ) std::cout << "EBBeamCaloClient: beginRun" << std::endl;
117 
118  jevt_ = 0;
119 
120  this->setup();
121 
122 }
void setup(void)
Setup.
tuple cout
Definition: gather_cfg.py:41
void EBBeamCaloClient::cleanup ( void  )
virtual

Cleanup.

Implements EBClient.

Definition at line 175 of file EBBeamCaloClient.cc.

References cloneME_, cryInArray_, dqmStore_, enableCleanup_, MonitorElement::getName(), hBAllNeededCry_, hBBeamCentered_, hBcryDone_, hBCryOnBeam_, hbDesync_, hbE1MaxCry_, hBE1vsCry_, hBE3x3_, hBE3x3Moving_, hBE3x3vsCry_, hBEne1_, hBEntriesvsCry_, hBGains_, hBMaxEneCry_, hBNumReadCry_, hBpulse_, hBReadCryErrors_, hbTBmoving_, meEBBCaloRedGreen_, meEBBCaloRedGreenReadCry_, meEBBCaloRedGreenSteps_, pBCriInBeamEvents_, prefixME_, DQMStore::removeElement(), and DQMStore::setCurrentFolder().

Referenced by endJob(), and endRun().

175  {
176  if ( ! enableCleanup_ ) return;
177  if ( cloneME_ ) {
178  for(int u=0;u<cryInArray_;u++) {
179  if(hBGains_[u]) delete hBGains_[u];
180  if(hBpulse_[u]) delete hBpulse_[u];
181  //if(hBGainsMoving_[u])delete hBGainsMoving_[u];
182  }
183  if(hBEne1_) delete hBEne1_;
184  // if(hBEne1Moving_) delete hBEne1Moving_;
185  if(hBAllNeededCry_) delete hBAllNeededCry_;
186  if(hBNumReadCry_) delete hBNumReadCry_;
187  if(hBE3x3_) delete hBE3x3_;
188  if(hBE3x3Moving_) delete hBE3x3Moving_;
189  if(hBCryOnBeam_) delete hBCryOnBeam_;
190  if(hBMaxEneCry_) delete hBMaxEneCry_;
192  if(hBE1vsCry_) delete hBE1vsCry_;
193  if(hBE3x3vsCry_) delete hBE3x3vsCry_;
194  if(hBEntriesvsCry_) delete hBEntriesvsCry_;
195  if(hBcryDone_) delete hBcryDone_;
196  if(hBBeamCentered_) delete hBBeamCentered_;
197  if(hbTBmoving_) delete hbTBmoving_;
198  if(hbE1MaxCry_) delete hbE1MaxCry_;
199  if(hbDesync_) delete hbDesync_;
201  }
202 
203  for(int u=0;u<cryInArray_;u++) {
204  hBGains_[u] = 0;
205  hBpulse_[u] = 0;
206  //hBGainsMoving_[u] = 0;
207  }
208  hBEne1_ = 0;
209  //hBEne1Moving_ = 0;
210  hBAllNeededCry_ = 0;
211  hBNumReadCry_ = 0;
212  hBE3x3_ = 0;
213  hBE3x3Moving_ = 0;
214  hBCryOnBeam_ = 0;
215  hBMaxEneCry_ = 0;
216  hBReadCryErrors_ = 0;
217  hBE1vsCry_ = 0;
218  hBE3x3vsCry_ = 0;
219  hBEntriesvsCry_ = 0;
220  hBcryDone_ = 0;
221  hBBeamCentered_ = 0;
222  hbTBmoving_ = 0;
223  hbE1MaxCry_ = 0;
224  hbDesync_ = 0;
226 
227  dqmStore_->setCurrentFolder( prefixME_ + "/EBBeamCaloClient" );
228 
230  meEBBCaloRedGreen_ = 0;
235 }
std::string prefixME_
MonitorElement * meEBBCaloRedGreenReadCry_
const std::string & getName(void) const
get name of ME
MonitorElement * meEBBCaloRedGreen_
TProfile * hBpulse_[cryInArray_]
void removeElement(const std::string &name)
Definition: DQMStore.cc:2353
TProfile * pBCriInBeamEvents_
DQMStore * dqmStore_
static const int cryInArray_
TH1F * hBGains_[cryInArray_]
MonitorElement * meEBBCaloRedGreenSteps_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232
TProfile * hBE3x3vsCry_
void EBBeamCaloClient::endJob ( void  )
virtual

EndJob.

Implements EBClient.

Definition at line 124 of file EBBeamCaloClient.cc.

References cleanup(), gather_cfg::cout, debug_, and ievt_.

124  {
125 
126  if ( debug_ ) std::cout << "EBBeamCaloClient: endJob, ievt = " << ievt_ << std::endl;
127 
128  this->cleanup();
129 
130 }
void cleanup(void)
Cleanup.
tuple cout
Definition: gather_cfg.py:41
void EBBeamCaloClient::endRun ( void  )
virtual

EndRun.

Implements EBClient.

Definition at line 132 of file EBBeamCaloClient.cc.

References cleanup(), gather_cfg::cout, debug_, and jevt_.

132  {
133 
134  if ( debug_ ) std::cout << "EBBeamCaloClient: endRun, jevt = " << jevt_ << std::endl;
135 
136  this->cleanup();
137 
138 }
void cleanup(void)
Cleanup.
tuple cout
Definition: gather_cfg.py:41
int EBBeamCaloClient::getEvtPerJob ( void  )
inlinevirtual

Get Functions.

Implements EBClient.

Definition at line 71 of file EBBeamCaloClient.h.

References ievt_.

71 { return ievt_; }
int EBBeamCaloClient::getEvtPerRun ( void  )
inlinevirtual

Returns the number of processed events in this Run.

Implements EBClient.

Definition at line 72 of file EBBeamCaloClient.h.

References jevt_.

72 { return jevt_; }
void EBBeamCaloClient::setup ( void  )
virtual

Setup.

Implements EBClient.

Definition at line 140 of file EBBeamCaloClient.cc.

References newFWLiteAna::bin, DQMStore::book2D(), dqmStore_, MonitorElement::getName(), meEBBCaloRedGreen_, meEBBCaloRedGreenReadCry_, meEBBCaloRedGreenSteps_, mergeVDriftHistosByStation::name, prefixME_, DQMStore::removeElement(), MonitorElement::Reset(), MonitorElement::setAxisTitle(), MonitorElement::setBinContent(), and DQMStore::setCurrentFolder().

Referenced by beginRun().

140  {
141 
142  std::string name;
143 
144  dqmStore_->setCurrentFolder( prefixME_ + "/EBBeamCaloClient" );
145 
147  name = "EBBCT quality";
148  meEBBCaloRedGreen_ = dqmStore_->book2D(name, name, 85, 0., 85., 20, 0., 20.);
149 
151 
152  for ( int ie = 1; ie <= 85; ie++ ) {
153  for ( int ip = 1; ip <= 20; ip++ ) {
154 
155  meEBBCaloRedGreen_ ->setBinContent( ie, ip, 2. );
156 
157  }
158  }
159 
161  name = "EBBCT quality read crystal errors";
162  meEBBCaloRedGreenReadCry_ = dqmStore_->book2D(name, name, 1, 0., 1., 1, 0., 1.);
165 
167  name = "EBBCT quality entries or read crystals errors";
168  meEBBCaloRedGreenSteps_ = dqmStore_->book2D(name, name, 86, 1., 87., 1, 0., 1.);
169  meEBBCaloRedGreenSteps_->setAxisTitle("step in the scan");
171  for( int bin=1; bin <87; bin++) { meEBBCaloRedGreenSteps_->setBinContent( bin, 1, 2. );}
172 
173 }
std::string prefixME_
MonitorElement * meEBBCaloRedGreenReadCry_
const std::string & getName(void) const
get name of ME
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meEBBCaloRedGreen_
void removeElement(const std::string &name)
Definition: DQMStore.cc:2353
DQMStore * dqmStore_
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:642
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meEBBCaloRedGreenSteps_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232

Member Data Documentation

float EBBeamCaloClient::aveEne1_
private

Definition at line 147 of file EBBeamCaloClient.h.

Referenced by analyze(), and EBBeamCaloClient().

float EBBeamCaloClient::aveEne3x3_
private

Definition at line 149 of file EBBeamCaloClient.h.

Referenced by analyze(), and EBBeamCaloClient().

std::vector<int> EBBeamCaloClient::checkedSteps_
private

Definition at line 95 of file EBBeamCaloClient.h.

Referenced by EBBeamCaloClient().

bool EBBeamCaloClient::cloneME_
private

Definition at line 81 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

const int EBBeamCaloClient::cryInArray_ = 9
staticprivate

Definition at line 76 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

bool EBBeamCaloClient::debug_
private

Definition at line 84 of file EBBeamCaloClient.h.

Referenced by analyze(), beginJob(), beginRun(), EBBeamCaloClient(), endJob(), and endRun().

DQMStore* EBBeamCaloClient::dqmStore_
private

Definition at line 92 of file EBBeamCaloClient.h.

Referenced by analyze(), beginJob(), cleanup(), and setup().

float EBBeamCaloClient::E1Th_
private

Definition at line 148 of file EBBeamCaloClient.h.

Referenced by analyze(), and EBBeamCaloClient().

float EBBeamCaloClient::E3x3Th_
private

Definition at line 150 of file EBBeamCaloClient.h.

Referenced by analyze(), and EBBeamCaloClient().

bool EBBeamCaloClient::enableCleanup_
private

Definition at line 88 of file EBBeamCaloClient.h.

Referenced by cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBAllNeededCry_
private

Definition at line 107 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH2F* EBBeamCaloClient::hBBeamCentered_
private

Definition at line 129 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBcryDone_
private

Definition at line 127 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH2F* EBBeamCaloClient::hBCryOnBeam_
private

Definition at line 115 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hbDesync_
private

Definition at line 135 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hbE1MaxCry_
private

Definition at line 133 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TProfile* EBBeamCaloClient::hBE1vsCry_
private

Definition at line 121 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBE3x3_
private

Definition at line 111 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBE3x3Moving_
private

Definition at line 113 of file EBBeamCaloClient.h.

Referenced by cleanup(), and EBBeamCaloClient().

TProfile* EBBeamCaloClient::hBE3x3vsCry_
private

Definition at line 123 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBEne1_
private

Definition at line 102 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBEntriesvsCry_
private

Definition at line 125 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBGains_[cryInArray_]
private

Definition at line 99 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH2F* EBBeamCaloClient::hBMaxEneCry_
private

Definition at line 117 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBNumReadCry_
private

Definition at line 109 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TProfile* EBBeamCaloClient::hBpulse_[cryInArray_]
private

Definition at line 100 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hBReadCryErrors_
private

Definition at line 119 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

TH1F* EBBeamCaloClient::hbTBmoving_
private

Definition at line 131 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

int EBBeamCaloClient::ievt_
private

Definition at line 78 of file EBBeamCaloClient.h.

Referenced by analyze(), beginJob(), endJob(), and getEvtPerJob().

int EBBeamCaloClient::jevt_
private

Definition at line 79 of file EBBeamCaloClient.h.

Referenced by analyze(), beginJob(), beginRun(), endRun(), and getEvtPerRun().

MonitorElement* EBBeamCaloClient::meEBBCaloRedGreen_
private

Definition at line 139 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), EBBeamCaloClient(), and setup().

MonitorElement* EBBeamCaloClient::meEBBCaloRedGreenReadCry_
private

Definition at line 140 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), EBBeamCaloClient(), and setup().

MonitorElement* EBBeamCaloClient::meEBBCaloRedGreenSteps_
private

Definition at line 141 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), EBBeamCaloClient(), and setup().

int EBBeamCaloClient::minEvtNum_
private

Definition at line 145 of file EBBeamCaloClient.h.

Referenced by analyze(), and EBBeamCaloClient().

TProfile* EBBeamCaloClient::pBCriInBeamEvents_
private

Definition at line 137 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), and EBBeamCaloClient().

std::string EBBeamCaloClient::prefixME_
private

Definition at line 86 of file EBBeamCaloClient.h.

Referenced by analyze(), cleanup(), EBBeamCaloClient(), and setup().

float EBBeamCaloClient::prescaling_
private

Definition at line 96 of file EBBeamCaloClient.h.

Referenced by analyze(), and EBBeamCaloClient().

float EBBeamCaloClient::ReadCryErrThr_
private

Definition at line 152 of file EBBeamCaloClient.h.

Referenced by analyze(), and EBBeamCaloClient().

float EBBeamCaloClient::RMSEne3x3_
private

Definition at line 151 of file EBBeamCaloClient.h.

Referenced by analyze(), and EBBeamCaloClient().

std::vector<int> EBBeamCaloClient::superModules_
private

Definition at line 90 of file EBBeamCaloClient.h.

Referenced by EBBeamCaloClient().

bool EBBeamCaloClient::verbose_
private

Definition at line 83 of file EBBeamCaloClient.h.

Referenced by EBBeamCaloClient().