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 | Friends
EBIntegrityClient Class Reference

#include <EBIntegrityClient.h>

Inheritance diagram for EBIntegrityClient:
EBClient

Public Member Functions

void analyze (void)
 Analyze. More...
 
void beginJob (void)
 BeginJob. More...
 
void beginRun (void)
 BeginRun. More...
 
void cleanup (void)
 Cleanup. More...
 
 EBIntegrityClient (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 ~EBIntegrityClient ()
 Destructor. More...
 
- Public Member Functions inherited from EBClient
virtual ~EBClient (void)
 

Private Attributes

bool cloneME_
 
bool debug_
 
DQMStoredqmStore_
 
bool enableCleanup_
 
TH1F * h00_
 
TH2F * h01_ [36]
 
TH2F * h02_ [36]
 
TH2F * h03_ [36]
 
TH2F * h04_ [36]
 
TH2F * h05_ [36]
 
TH2F * h06_ [36]
 
TH2F * h07_ [36]
 
TH2F * h08_ [36]
 
TH2F * h09_ [36]
 
TH2F * h_ [36]
 
TH2F * hmem_ [36]
 
int ievt_
 
int jevt_
 
MonitorElementmeg01_ [36]
 
MonitorElementmeg02_ [36]
 
std::string prefixME_
 
std::string subfolder_
 
std::vector< int > superModules_
 
float threshCry_
 
bool verbose_
 

Static Private Attributes

static const int chNum [5][5]
 

Friends

class EBSummaryClient
 

Detailed Description

Definition at line 33 of file EBIntegrityClient.h.

Constructor & Destructor Documentation

EBIntegrityClient::EBIntegrityClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 45 of file EBIntegrityClient.cc.

References cloneME_, debug_, enableCleanup_, edm::ParameterSet::getUntrackedParameter(), h00_, h01_, h02_, h03_, h04_, h05_, h06_, h07_, h08_, h09_, h_, hmem_, i, ecalpyutils::ism(), meg01_, meg02_, prefixME_, subfolder_, superModules_, threshCry_, and verbose_.

45  {
46 
47  // cloneME switch
48  cloneME_ = ps.getUntrackedParameter<bool>("cloneME", true);
49 
50  // verbose switch
51  verbose_ = ps.getUntrackedParameter<bool>("verbose", true);
52 
53  // debug switch
54  debug_ = ps.getUntrackedParameter<bool>("debug", false);
55 
56  // prefixME path
57  prefixME_ = ps.getUntrackedParameter<std::string>("prefixME", "");
58 
59  subfolder_ = ps.getUntrackedParameter<std::string>("subfolder", "");
60 
61  // enableCleanup_ switch
62  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false);
63 
64  // vector of selected Super Modules (Defaults to all 36).
65  superModules_.reserve(36);
66  for ( unsigned int i = 1; i <= 36; i++ ) superModules_.push_back(i);
67  superModules_ = ps.getUntrackedParameter<std::vector<int> >("superModules", superModules_);
68 
69  h00_ = 0;
70 
71  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
72 
73  int ism = superModules_[i];
74 
75  h_[ism-1] = 0;
76  hmem_[ism-1] = 0;
77 
78  h01_[ism-1] = 0;
79  h02_[ism-1] = 0;
80  h03_[ism-1] = 0;
81  h04_[ism-1] = 0;
82  h05_[ism-1] = 0;
83  h06_[ism-1] = 0;
84  h07_[ism-1] = 0;
85  h08_[ism-1] = 0;
86  h09_[ism-1] = 0;
87 
88  }
89 
90  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
91 
92  int ism = superModules_[i];
93 
94  // integrity summary histograms
95  meg01_[ism-1] = 0;
96  meg02_[ism-1] = 0;
97 
98  }
99 
100  threshCry_ = 0.01;
101 
102 }
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
std::vector< int > superModules_
MonitorElement * meg01_[36]
MonitorElement * meg02_[36]
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
std::string subfolder_
EBIntegrityClient::~EBIntegrityClient ( )
virtual

Destructor.

Definition at line 104 of file EBIntegrityClient.cc.

104  {
105 
106 }

Member Function Documentation

void EBIntegrityClient::analyze ( void  )
virtual

Analyze.

Implements EBClient.

Definition at line 644 of file EBIntegrityClient.cc.

References EcalDQMStatusHelper::CH_GAIN_SWITCH_ERROR, EcalDQMStatusHelper::CH_GAIN_ZERO_ERROR, EcalDQMStatusHelper::CH_ID_ERROR, cloneME_, gather_cfg::cout, debug_, dqmStore_, EcalBarrel, DQMStore::get(), UtilsClient::getHisto(), h00_, h01_, h02_, h03_, h04_, h05_, h06_, h07_, h08_, h09_, h_, hmem_, i, ievt_, jevt_, UtilsClient::maskBinContent(), Masks::maskChannel(), Masks::maskPn(), meg01_, meg02_, prefixME_, MonitorElement::Reset(), Numbers::sEB(), MonitorElement::setBinContent(), subfolder_, superModules_, threshCry_, EcalDQMStatusHelper::TT_ID_ERROR, and EcalDQMStatusHelper::TT_SIZE_ERROR.

644  {
645 
646  ievt_++;
647  jevt_++;
648  if ( ievt_ % 10 == 0 ) {
649  if ( debug_ ) std::cout << "EBIntegrityClient: ievt/jevt = " << ievt_ << "/" << jevt_ << std::endl;
650  }
651 
652  uint32_t bits01 = 0;
653  bits01 |= 1 << EcalDQMStatusHelper::CH_ID_ERROR;
656  bits01 |= 1 << EcalDQMStatusHelper::TT_ID_ERROR;
657  bits01 |= 1 << EcalDQMStatusHelper::TT_SIZE_ERROR;
658 
659  std::string subdir(subfolder_.size() ? subfolder_ + "/" : "");
660 
661  MonitorElement* me;
662 
663  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "EBIT DCC size error" );
665 
666  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
667 
668  int ism = superModules_[i];
669 
670  me = dqmStore_->get( prefixME_ + "/EBOccupancyTask/" + subdir + "EBOT digi occupancy " + Numbers::sEB(ism) );
671  h_[ism-1] = UtilsClient::getHisto( me, cloneME_, h_[ism-1] );
672 
673  me = dqmStore_->get( prefixME_ + "/EBOccupancyTask/" + subdir + "EBOT MEM digi occupancy " + Numbers::sEB(ism) );
674  hmem_[ism-1] = UtilsClient::getHisto( me, cloneME_, hmem_[ism-1] );
675 
676  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "Gain/EBIT gain " + Numbers::sEB(ism) );
677  h01_[ism-1] = UtilsClient::getHisto( me, cloneME_, h01_[ism-1] );
678 
679  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "ChId/EBIT ChId " + Numbers::sEB(ism) );
680  h02_[ism-1] = UtilsClient::getHisto( me, cloneME_, h02_[ism-1] );
681 
682  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "GainSwitch/EBIT gain switch " + Numbers::sEB(ism) );
683  h03_[ism-1] = UtilsClient::getHisto( me, cloneME_, h03_[ism-1] );
684 
685  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "TTId/EBIT TTId " + Numbers::sEB(ism) );
686  h04_[ism-1] = UtilsClient::getHisto( me, cloneME_, h04_[ism-1] );
687 
688  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "TTBlockSize/EBIT TTBlockSize " + Numbers::sEB(ism) );
689  h05_[ism-1] = UtilsClient::getHisto( me, cloneME_, h05_[ism-1] );
690 
691  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "MemChId/EBIT MemChId " + Numbers::sEB(ism) );
692  h06_[ism-1] = UtilsClient::getHisto( me, cloneME_, h06_[ism-1] );
693 
694  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "MemGain/EBIT MemGain " + Numbers::sEB(ism) );
695  h07_[ism-1] = UtilsClient::getHisto( me, cloneME_, h07_[ism-1] );
696 
697  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "MemTTId/EBIT MemTTId " + Numbers::sEB(ism) );
698  h08_[ism-1] = UtilsClient::getHisto( me, cloneME_, h08_[ism-1] );
699 
700  me = dqmStore_->get( prefixME_ + "/EBIntegrityTask/" + subdir + "MemSize/EBIT MemSize " + Numbers::sEB(ism) );
701  h09_[ism-1] = UtilsClient::getHisto( me, cloneME_, h09_[ism-1] );
702 
703  float num00;
704 
705  // integrity summary histograms
706  if ( meg01_[ism-1] ) meg01_[ism-1]->Reset();
707  if ( meg02_[ism-1] ) meg02_[ism-1]->Reset();
708 
709  num00 = 0.;
710 
711  bool update0 = false;
712 
713  // dcc size errors
714  if ( h00_ ) {
715  num00 = h00_->GetBinContent(ism);
716  update0 = true;
717  }
718 
719  float num01, num02, num03, num04, num05;
720 
721  for ( int ie = 1; ie <= 85; ie++ ) {
722  for ( int ip = 1; ip <= 20; ip++ ) {
723 
724  num01 = num02 = num03 = num04 = num05 = 0.;
725 
726  if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ie, ip, 2. );
727 
728  bool update1 = false;
729  bool update2 = false;
730 
731  float numTot = -1.;
732 
733  if ( h_[ism-1] ) numTot = h_[ism-1]->GetBinContent(ie, ip);
734 
735  if ( h01_[ism-1] ) {
736  num01 = h01_[ism-1]->GetBinContent(ie, ip);
737  update1 = true;
738  }
739 
740  if ( h02_[ism-1] ) {
741  num02 = h02_[ism-1]->GetBinContent(ie, ip);
742  update1 = true;
743  }
744 
745  if ( h03_[ism-1] ) {
746  num03 = h03_[ism-1]->GetBinContent(ie, ip);
747  update1 = true;
748  }
749 
750  int iet = 1 + ((ie-1)/5);
751  int ipt = 1 + ((ip-1)/5);
752 
753  if ( h04_[ism-1] ) {
754  num04 = h04_[ism-1]->GetBinContent(iet, ipt);
755  update2 = true;
756  }
757 
758  if ( h05_[ism-1] ) {
759  num05 = h05_[ism-1]->GetBinContent(iet, ipt);
760  update2 = true;
761  }
762 
763  if ( update0 || update1 || update2 ) {
764 
765  float val;
766 
767  val = 1.;
768  // number of events on a channel
769  if ( numTot > 0 ) {
770  float errorRate1 = num00 / ( numTot + num01 + num02 + num03 );
771  if ( errorRate1 > threshCry_ )
772  val = 0.;
773  errorRate1 = ( num01 + num02 + num03 ) / ( numTot + num01 + num02 + num03 ) / 3.;
774  if ( errorRate1 > threshCry_ )
775  val = 0.;
776  float errorRate2 = ( num04 + num05 ) / ( numTot/25. + num04 + num05 ) / 2.;
777  if ( errorRate2 > threshCry_ )
778  val = 0.;
779  } else {
780  val = 2.;
781  if ( num00 > 0 )
782  val = 0.;
783  if ( ( num01 + num02 + num03 ) > 0 )
784  val = 0.;
785  if ( ( num04 + num05 ) > 0 )
786  val = 0.;
787  }
788 
789  // filling the summary for SM channels
790  if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ie, ip, val );
791 
792  }
793 
794  if ( Masks::maskChannel(ism, ie, ip, bits01, EcalBarrel) ) UtilsClient::maskBinContent( meg01_[ism-1], ie, ip );
795 
796  }
797  } // end of loop on crystals
798 
799  // summaries for mem channels
800  float num06, num07, num08, num09;
801 
802  for ( int ie = 1; ie <= 10; ie++ ) {
803  for ( int ip = 1; ip <= 5; ip++ ) {
804 
805  num06 = num07 = num08 = num09 = 0.;
806 
807  // initialize summary histo for mem
808  if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ie, ip, 2. );
809 
810  bool update1 = false;
811  bool update2 = false;
812 
813  float numTotmem = -1.;
814 
815  if ( hmem_[ism-1] ) numTotmem = hmem_[ism-1]->GetBinContent(ie, ip);
816 
817  if ( h06_[ism-1] ) {
818  num06 = h06_[ism-1]->GetBinContent(ie, ip);
819  update1 = true;
820  }
821 
822  if ( h07_[ism-1] ) {
823  num07 = h07_[ism-1]->GetBinContent(ie, ip);
824  update1 = true;
825  }
826 
827  int iet = 1 + ((ie-1)/5);
828  int ipt = 1;
829 
830  if ( h08_[ism-1] ) {
831  num08 = h08_[ism-1]->GetBinContent(iet, ipt);
832  update2 = true;
833  }
834 
835  if ( h09_[ism-1] ) {
836  num09 = h09_[ism-1]->GetBinContent(iet, ipt);
837  update2 = true;
838  }
839 
840  if ( update0 || update1 || update2 ) {
841 
842  float val;
843 
844  val = 1.;
845  // number of events on a channel
846  if ( numTotmem > 0 ) {
847  float errorRate1 = ( num06 + num07 ) / ( numTotmem + num06 + num07 ) / 2.;
848  if ( errorRate1 > threshCry_ )
849  val = 0.;
850  float errorRate2 = ( num08 + num09 ) / ( numTotmem/25. + num08 + num09 ) / 2.;
851  if ( errorRate2 > threshCry_ )
852  val = 0.;
853  } else {
854  val = 2.;
855  if ( ( num06 + num07 ) > 0 )
856  val = 0.;
857  if ( ( num08 + num09 ) > 0 )
858  val = 0.;
859  }
860 
861  // filling summary for mem channels
862  if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ie, ip, val );
863 
864  }
865 
866  if ( Masks::maskPn(ism, ie, bits01, EcalBarrel) ) UtilsClient::maskBinContent( meg02_[ism-1], ie, ip );
867 
868  }
869  } // end loop on mem channels
870 
871  } // end loop on supermodules
872 
873 }
int i
Definition: DBlmapReader.cc:9
void setBinContent(int binx, double content)
set content of bin (1-D)
static bool maskChannel(int ism, int i1, int i2, uint32_t bits, const EcalSubdetector subdet)
Definition: Masks.cc:60
static T getHisto(const MonitorElement *me, bool clone=false, T ret=0)
Returns the histogram contained by the Monitor Element.
Definition: UtilsClient.h:91
static std::string sEB(const unsigned ism)
Definition: Numbers.cc:94
static const int TT_SIZE_ERROR
static const int CH_GAIN_SWITCH_ERROR
static void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
Definition: UtilsClient.cc:231
static bool maskPn(int ism, int i1, uint32_t bits, const EcalSubdetector subdet)
Definition: Masks.cc:112
std::vector< int > superModules_
MonitorElement * meg01_[36]
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1468
static const int CH_GAIN_ZERO_ERROR
static const int TT_ID_ERROR
tuple cout
Definition: gather_cfg.py:121
MonitorElement * meg02_[36]
static const int CH_ID_ERROR
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
void Reset(void)
reset ME (ie. contents, errors, etc)
std::string subfolder_
void EBIntegrityClient::beginJob ( void  )
virtual

BeginJob.

Implements EBClient.

Definition at line 108 of file EBIntegrityClient.cc.

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

108  {
109 
111 
112  if ( debug_ ) std::cout << "EBIntegrityClient: beginJob" << std::endl;
113 
114  ievt_ = 0;
115  jevt_ = 0;
116 
117 }
tuple cout
Definition: gather_cfg.py:121
void EBIntegrityClient::beginRun ( void  )
virtual

BeginRun.

Implements EBClient.

Definition at line 119 of file EBIntegrityClient.cc.

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

119  {
120 
121  if ( debug_ ) std::cout << "EBIntegrityClient: beginRun" << std::endl;
122 
123  jevt_ = 0;
124 
125  this->setup();
126 
127 }
void setup(void)
Setup.
tuple cout
Definition: gather_cfg.py:121
void EBIntegrityClient::cleanup ( void  )
virtual

Cleanup.

Implements EBClient.

Definition at line 199 of file EBIntegrityClient.cc.

References cloneME_, dqmStore_, enableCleanup_, edm::getName(), h00_, h01_, h02_, h03_, h04_, h05_, h06_, h07_, h08_, h09_, h_, hmem_, i, ecalpyutils::ism(), meg01_, meg02_, prefixME_, DQMStore::removeElement(), DQMStore::setCurrentFolder(), subfolder_, and superModules_.

Referenced by endJob(), and endRun().

199  {
200 
201  if ( ! enableCleanup_ ) return;
202 
203  if ( cloneME_ ) {
204  if ( h00_ ) delete h00_;
205  }
206 
207  h00_ = 0;
208 
209  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
210 
211  int ism = superModules_[i];
212 
213  if ( cloneME_ ) {
214  if ( h_[ism-1] ) delete h_[ism-1];
215  if ( hmem_[ism-1] ) delete hmem_[ism-1];
216 
217  if ( h01_[ism-1] ) delete h01_[ism-1];
218  if ( h02_[ism-1] ) delete h02_[ism-1];
219  if ( h03_[ism-1] ) delete h03_[ism-1];
220  if ( h04_[ism-1] ) delete h04_[ism-1];
221  if ( h05_[ism-1] ) delete h05_[ism-1];
222  if ( h06_[ism-1] ) delete h06_[ism-1];
223  if ( h07_[ism-1] ) delete h07_[ism-1];
224  if ( h08_[ism-1] ) delete h08_[ism-1];
225  if ( h09_[ism-1] ) delete h09_[ism-1];
226  }
227 
228  h_[ism-1] = 0;
229  hmem_[ism-1] = 0;
230 
231  h01_[ism-1] = 0;
232  h02_[ism-1] = 0;
233  h03_[ism-1] = 0;
234  h04_[ism-1] = 0;
235  h05_[ism-1] = 0;
236  h06_[ism-1] = 0;
237  h07_[ism-1] = 0;
238  h08_[ism-1] = 0;
239  h09_[ism-1] = 0;
240 
241  }
242 
243  dqmStore_->setCurrentFolder( prefixME_ + "/EBIntegrityClient" );
244 
245  if(subfolder_.size())
246  dqmStore_->setCurrentFolder( prefixME_ + "/EBIntegrityClient/" + subfolder_);
247 
248  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
249 
250  int ism = superModules_[i];
251 
252  if ( meg01_[ism-1] ) dqmStore_->removeElement( meg01_[ism-1]->getName() );
253  meg01_[ism-1] = 0;
254 
255  if ( meg02_[ism-1] ) dqmStore_->removeElement( meg02_[ism-1]->getName() );
256  meg02_[ism-1] = 0;
257 
258  }
259 
260 }
int i
Definition: DBlmapReader.cc:9
std::vector< int > superModules_
MonitorElement * meg01_[36]
void removeElement(const std::string &name)
Definition: DQMStore.cc:2572
std::string getName(Reflex::Type &cc)
Definition: ClassFiller.cc:18
MonitorElement * meg02_[36]
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
std::string subfolder_
void EBIntegrityClient::endJob ( void  )
virtual

EndJob.

Implements EBClient.

Definition at line 129 of file EBIntegrityClient.cc.

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

129  {
130 
131  if ( debug_ ) std::cout << "EBIntegrityClient: endJob, ievt = " << ievt_ << std::endl;
132 
133  this->cleanup();
134 
135 }
void cleanup(void)
Cleanup.
tuple cout
Definition: gather_cfg.py:121
void EBIntegrityClient::endRun ( void  )
virtual

EndRun.

Implements EBClient.

Definition at line 137 of file EBIntegrityClient.cc.

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

137  {
138 
139  if ( debug_ ) std::cout << "EBIntegrityClient: endRun, jevt = " << jevt_ << std::endl;
140 
141  this->cleanup();
142 
143 }
void cleanup(void)
Cleanup.
tuple cout
Definition: gather_cfg.py:121
int EBIntegrityClient::getEvtPerJob ( void  )
inlinevirtual

Get Functions.

Implements EBClient.

Definition at line 72 of file EBIntegrityClient.h.

References ievt_.

72 { return ievt_; }
int EBIntegrityClient::getEvtPerRun ( void  )
inlinevirtual

Returns the number of processed events in this Run.

Implements EBClient.

Definition at line 73 of file EBIntegrityClient.h.

References jevt_.

73 { return jevt_; }
void EBIntegrityClient::setup ( void  )
virtual

Setup.

Implements EBClient.

Definition at line 145 of file EBIntegrityClient.cc.

References DQMStore::book2D(), dqmStore_, edm::getName(), i, ecalpyutils::ism(), meg01_, meg02_, mergeVDriftHistosByStation::name, prefixME_, DQMStore::removeElement(), MonitorElement::Reset(), Numbers::sEB(), MonitorElement::setAxisTitle(), MonitorElement::setBinContent(), DQMStore::setCurrentFolder(), subfolder_, and superModules_.

Referenced by beginRun().

145  {
146 
147  std::string name;
148 
149  dqmStore_->setCurrentFolder( prefixME_ + "/EBIntegrityClient" );
150 
151  if(subfolder_.size())
152  dqmStore_->setCurrentFolder( prefixME_ + "/EBIntegrityClient/" + subfolder_);
153 
154  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
155 
156  int ism = superModules_[i];
157 
158  if ( meg01_[ism-1] ) dqmStore_->removeElement( meg01_[ism-1]->getName() );
159  name = "EBIT data integrity quality " + Numbers::sEB(ism);
160  meg01_[ism-1] = dqmStore_->book2D(name, name, 85, 0., 85., 20, 0., 20.);
161  meg01_[ism-1]->setAxisTitle("ieta", 1);
162  meg01_[ism-1]->setAxisTitle("iphi", 2);
163 
164  if ( meg02_[ism-1] ) dqmStore_->removeElement( meg02_[ism-1]->getName() );
165  name = "EBIT data integrity quality MEM " + Numbers::sEB(ism);
166  meg02_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 5, 0.,5.);
167  meg02_[ism-1]->setAxisTitle("pseudo-strip", 1);
168  meg02_[ism-1]->setAxisTitle("channel", 2);
169 
170  }
171 
172  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
173 
174  int ism = superModules_[i];
175 
176  if ( meg01_[ism-1] ) meg01_[ism-1]->Reset();
177  if ( meg02_[ism-1] ) meg02_[ism-1]->Reset();
178 
179  for ( int ie = 1; ie <= 85; ie++ ) {
180  for ( int ip = 1; ip <= 20; ip++ ) {
181 
182  if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ie, ip, 2. );
183 
184  }
185  }
186 
187  for ( int ie = 1; ie <= 10; ie++ ) {
188  for ( int ip = 1; ip <= 5; ip++ ) {
189 
190  if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ie, ip, 2. );
191 
192  }
193  }
194 
195  }
196 
197 }
int i
Definition: DBlmapReader.cc:9
void setBinContent(int binx, double content)
set content of bin (1-D)
static std::string sEB(const unsigned ism)
Definition: Numbers.cc:94
std::vector< int > superModules_
MonitorElement * meg01_[36]
void removeElement(const std::string &name)
Definition: DQMStore.cc:2572
std::string getName(Reflex::Type &cc)
Definition: ClassFiller.cc:18
MonitorElement * meg02_[36]
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:845
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
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)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
std::string subfolder_

Friends And Related Function Documentation

friend class EBSummaryClient
friend

Definition at line 35 of file EBIntegrityClient.h.

Member Data Documentation

const int EBIntegrityClient::chNum
staticprivate
Initial value:
= {
{ 1, 2, 3, 4, 5},
{10, 9, 8, 7, 6},
{11, 12, 13, 14, 15},
{20, 19, 18, 17, 16},
{21, 22, 23, 24, 25}
}

Definition at line 117 of file EBIntegrityClient.h.

bool EBIntegrityClient::cloneME_
private

Definition at line 80 of file EBIntegrityClient.h.

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

bool EBIntegrityClient::debug_
private

Definition at line 83 of file EBIntegrityClient.h.

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

DQMStore* EBIntegrityClient::dqmStore_
private

Definition at line 93 of file EBIntegrityClient.h.

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

bool EBIntegrityClient::enableCleanup_
private

Definition at line 89 of file EBIntegrityClient.h.

Referenced by cleanup(), and EBIntegrityClient().

TH1F* EBIntegrityClient::h00_
private

Definition at line 95 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h01_[36]
private

Definition at line 97 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h02_[36]
private

Definition at line 98 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h03_[36]
private

Definition at line 99 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h04_[36]
private

Definition at line 100 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h05_[36]
private

Definition at line 101 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h06_[36]
private

Definition at line 102 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h07_[36]
private

Definition at line 103 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h08_[36]
private

Definition at line 104 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h09_[36]
private

Definition at line 105 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h_[36]
private

Definition at line 110 of file EBIntegrityClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), and EBIntegrityClient().

TH2F* EBIntegrityClient::hmem_[36]
private

Definition at line 111 of file EBIntegrityClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), and EBIntegrityClient().

int EBIntegrityClient::ievt_
private

Definition at line 77 of file EBIntegrityClient.h.

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

int EBIntegrityClient::jevt_
private

Definition at line 78 of file EBIntegrityClient.h.

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

MonitorElement* EBIntegrityClient::meg01_[36]
private
MonitorElement* EBIntegrityClient::meg02_[36]
private
std::string EBIntegrityClient::prefixME_
private

Definition at line 85 of file EBIntegrityClient.h.

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

std::string EBIntegrityClient::subfolder_
private

Definition at line 87 of file EBIntegrityClient.h.

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

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

Definition at line 91 of file EBIntegrityClient.h.

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

float EBIntegrityClient::threshCry_
private

Definition at line 115 of file EBIntegrityClient.h.

Referenced by analyze(), and EBIntegrityClient().

bool EBIntegrityClient::verbose_
private

Definition at line 82 of file EBIntegrityClient.h.

Referenced by EBIntegrityClient().