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 31 of file EBIntegrityClient.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 43 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_, AlCaHLTBitMon_QueryRunRegistry::string, subfolder_, superModules_, threshCry_, and verbose_.

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

102  {
103 
104 }

Member Function Documentation

void EBIntegrityClient::analyze ( void  )
virtual

Analyze.

Implements EBClient.

Definition at line 642 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(), AlCaHLTBitMon_QueryRunRegistry::string, subfolder_, superModules_, threshCry_, EcalDQMStatusHelper::TT_ID_ERROR, and EcalDQMStatusHelper::TT_SIZE_ERROR.

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

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

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

BeginRun.

Implements EBClient.

Definition at line 117 of file EBIntegrityClient.cc.

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

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

Cleanup.

Implements EBClient.

Definition at line 197 of file EBIntegrityClient.cc.

References cloneME_, dqmStore_, enableCleanup_, 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().

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

EndJob.

Implements EBClient.

Definition at line 127 of file EBIntegrityClient.cc.

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

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

EndRun.

Implements EBClient.

Definition at line 135 of file EBIntegrityClient.cc.

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

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

Get Functions.

Implements EBClient.

Definition at line 70 of file EBIntegrityClient.h.

References ievt_.

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

Returns the number of processed events in this Run.

Implements EBClient.

Definition at line 71 of file EBIntegrityClient.h.

References jevt_.

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

Setup.

Implements EBClient.

Definition at line 143 of file EBIntegrityClient.cc.

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

Referenced by beginRun().

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

Friends And Related Function Documentation

friend class EBSummaryClient
friend

Definition at line 33 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 115 of file EBIntegrityClient.h.

bool EBIntegrityClient::cloneME_
private

Definition at line 78 of file EBIntegrityClient.h.

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

bool EBIntegrityClient::debug_
private

Definition at line 81 of file EBIntegrityClient.h.

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

DQMStore* EBIntegrityClient::dqmStore_
private

Definition at line 91 of file EBIntegrityClient.h.

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

bool EBIntegrityClient::enableCleanup_
private

Definition at line 87 of file EBIntegrityClient.h.

Referenced by cleanup(), and EBIntegrityClient().

TH1F* EBIntegrityClient::h00_
private

Definition at line 93 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h01_[36]
private

Definition at line 95 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h02_[36]
private

Definition at line 96 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h03_[36]
private

Definition at line 97 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h04_[36]
private

Definition at line 98 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h05_[36]
private

Definition at line 99 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h06_[36]
private

Definition at line 100 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h07_[36]
private

Definition at line 101 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h08_[36]
private

Definition at line 102 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h09_[36]
private

Definition at line 103 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::h_[36]
private

Definition at line 108 of file EBIntegrityClient.h.

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

TH2F* EBIntegrityClient::hmem_[36]
private

Definition at line 109 of file EBIntegrityClient.h.

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

int EBIntegrityClient::ievt_
private

Definition at line 75 of file EBIntegrityClient.h.

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

int EBIntegrityClient::jevt_
private

Definition at line 76 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 83 of file EBIntegrityClient.h.

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

std::string EBIntegrityClient::subfolder_
private

Definition at line 85 of file EBIntegrityClient.h.

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

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

Definition at line 89 of file EBIntegrityClient.h.

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

float EBIntegrityClient::threshCry_
private

Definition at line 113 of file EBIntegrityClient.h.

Referenced by analyze(), and EBIntegrityClient().

bool EBIntegrityClient::verbose_
private

Definition at line 80 of file EBIntegrityClient.h.

Referenced by EBIntegrityClient().