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

#include <EBLaserClient.h>

Inheritance diagram for EBLaserClient:
EBClient

Public Member Functions

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

Private Attributes

float amplitudeThreshold_
 
float amplitudeThresholdPnG01_
 
float amplitudeThresholdPnG16_
 
bool cloneME_
 
bool debug_
 
DQMStoredqmStore_
 
bool enableCleanup_
 
TProfile2D * h01_ [36]
 
TProfile2D * h02_ [36]
 
TProfile2D * h03_ [36]
 
TProfile2D * h04_ [36]
 
TProfile2D * h05_ [36]
 
TProfile2D * h06_ [36]
 
TProfile2D * h07_ [36]
 
TProfile2D * h08_ [36]
 
TProfile2D * h09_ [36]
 
TProfile2D * h10_ [36]
 
TProfile2D * h11_ [36]
 
TProfile2D * h12_ [36]
 
TProfile2D * hs01_ [36]
 
TProfile2D * hs02_ [36]
 
TProfile2D * hs03_ [36]
 
TProfile2D * hs04_ [36]
 
TProfile * i01_ [36]
 
TProfile * i02_ [36]
 
TProfile * i03_ [36]
 
TProfile * i04_ [36]
 
TProfile * i05_ [36]
 
TProfile * i06_ [36]
 
TProfile * i07_ [36]
 
TProfile * i08_ [36]
 
TProfile * i09_ [36]
 
TProfile * i10_ [36]
 
TProfile * i11_ [36]
 
TProfile * i12_ [36]
 
TProfile * i13_ [36]
 
TProfile * i14_ [36]
 
TProfile * i15_ [36]
 
TProfile * i16_ [36]
 
int ievt_
 
int jevt_
 
std::vector< int > laserWavelengths_
 
MonitorElementme_hs01_ [36]
 
MonitorElementme_hs02_ [36]
 
MonitorElementme_hs03_ [36]
 
MonitorElementme_hs04_ [36]
 
MonitorElementme_hs05_ [36]
 
MonitorElementme_hs06_ [36]
 
MonitorElementme_hs07_ [36]
 
MonitorElementme_hs08_ [36]
 
MonitorElementmea01_ [36]
 
MonitorElementmea02_ [36]
 
MonitorElementmea03_ [36]
 
MonitorElementmea04_ [36]
 
MonitorElementmeaopn01_ [36]
 
MonitorElementmeaopn02_ [36]
 
MonitorElementmeaopn03_ [36]
 
MonitorElementmeaopn04_ [36]
 
MonitorElementmeg01_ [36]
 
MonitorElementmeg02_ [36]
 
MonitorElementmeg03_ [36]
 
MonitorElementmeg04_ [36]
 
MonitorElementmeg05_ [36]
 
MonitorElementmeg06_ [36]
 
MonitorElementmeg07_ [36]
 
MonitorElementmeg08_ [36]
 
MonitorElementmeg09_ [36]
 
MonitorElementmeg10_ [36]
 
MonitorElementmeg11_ [36]
 
MonitorElementmeg12_ [36]
 
MonitorElementmepnprms01_ [36]
 
MonitorElementmepnprms02_ [36]
 
MonitorElementmepnprms03_ [36]
 
MonitorElementmepnprms04_ [36]
 
MonitorElementmepnprms05_ [36]
 
MonitorElementmepnprms06_ [36]
 
MonitorElementmepnprms07_ [36]
 
MonitorElementmepnprms08_ [36]
 
MonitorElementmet01_ [36]
 
MonitorElementmet02_ [36]
 
MonitorElementmet03_ [36]
 
MonitorElementmet04_ [36]
 
MonitorElementmetav01_ [36]
 
MonitorElementmetav02_ [36]
 
MonitorElementmetav03_ [36]
 
MonitorElementmetav04_ [36]
 
MonitorElementmetrms01_ [36]
 
MonitorElementmetrms02_ [36]
 
MonitorElementmetrms03_ [36]
 
MonitorElementmetrms04_ [36]
 
float pedPnDiscrepancyMean_ [2]
 
float pedPnExpectedMean_ [2]
 
float pedPnRMSThreshold_ [2]
 
float percentVariation_
 
std::string prefixME_
 
float rmsThresholdRelative_
 
std::vector< int > superModules_
 
bool verbose_
 

Friends

class EBSummaryClient
 

Detailed Description

Definition at line 32 of file EBLaserClient.h.

Constructor & Destructor Documentation

EBLaserClient::EBLaserClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 49 of file EBLaserClient.cc.

References amplitudeThreshold_, amplitudeThresholdPnG01_, amplitudeThresholdPnG16_, cloneME_, gather_cfg::cout, debug_, enableCleanup_, edm::ParameterSet::getUntrackedParameter(), h01_, h02_, h03_, h04_, h05_, h06_, h07_, h08_, h09_, h10_, h11_, h12_, hs01_, hs02_, hs03_, hs04_, i, i01_, i02_, i03_, i04_, i05_, i06_, i07_, i08_, i09_, i10_, i11_, i12_, i13_, i14_, i15_, i16_, ecalpyutils::ism(), laserWavelengths_, me_hs01_, me_hs02_, me_hs03_, me_hs04_, mea01_, mea02_, mea03_, mea04_, meaopn01_, meaopn02_, meaopn03_, meaopn04_, meg01_, meg02_, meg03_, meg04_, meg05_, meg06_, meg07_, meg08_, meg09_, meg10_, meg11_, meg12_, mepnprms01_, mepnprms02_, mepnprms03_, mepnprms04_, mepnprms05_, mepnprms06_, mepnprms07_, mepnprms08_, met01_, met02_, met03_, met04_, metav01_, metav02_, metav03_, metav04_, metrms01_, metrms02_, metrms03_, metrms04_, pedPnDiscrepancyMean_, pedPnExpectedMean_, pedPnRMSThreshold_, percentVariation_, prefixME_, rmsThresholdRelative_, superModules_, and verbose_.

49  {
50 
51  // cloneME switch
52  cloneME_ = ps.getUntrackedParameter<bool>("cloneME", true);
53 
54  // verbose switch
55  verbose_ = ps.getUntrackedParameter<bool>("verbose", true);
56 
57  // debug switch
58  debug_ = ps.getUntrackedParameter<bool>("debug", false);
59 
60  // prefixME path
61  prefixME_ = ps.getUntrackedParameter<std::string>("prefixME", "");
62 
63  // enableCleanup_ switch
64  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false);
65 
66  // vector of selected Super Modules (Defaults to all 36).
67  superModules_.reserve(36);
68  for ( unsigned int i = 1; i <= 36; i++ ) superModules_.push_back(i);
69  superModules_ = ps.getUntrackedParameter<std::vector<int> >("superModules", superModules_);
70 
71  laserWavelengths_.reserve(4);
72  for ( unsigned int i = 1; i <= 4; i++ ) laserWavelengths_.push_back(i);
73  laserWavelengths_ = ps.getUntrackedParameter<std::vector<int> >("laserWavelengths", laserWavelengths_);
74 
75  if ( verbose_ ) {
76  std::cout << " Laser wavelengths:" << std::endl;
77  for ( unsigned int i = 0; i < laserWavelengths_.size(); i++ ) {
78  std::cout << " " << laserWavelengths_[i];
79  }
80  std::cout << std::endl;
81  }
82 
83  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
84 
85  int ism = superModules_[i];
86 
87  h01_[ism-1] = 0;
88  h02_[ism-1] = 0;
89  h03_[ism-1] = 0;
90  h04_[ism-1] = 0;
91  h05_[ism-1] = 0;
92  h06_[ism-1] = 0;
93  h07_[ism-1] = 0;
94  h08_[ism-1] = 0;
95 
96  h09_[ism-1] = 0;
97  h10_[ism-1] = 0;
98  h11_[ism-1] = 0;
99  h12_[ism-1] = 0;
100 
101  hs01_[ism-1] = 0;
102  hs02_[ism-1] = 0;
103  hs03_[ism-1] = 0;
104  hs04_[ism-1] = 0;
105 
106  i01_[ism-1] = 0;
107  i02_[ism-1] = 0;
108  i03_[ism-1] = 0;
109  i04_[ism-1] = 0;
110  i05_[ism-1] = 0;
111  i06_[ism-1] = 0;
112  i07_[ism-1] = 0;
113  i08_[ism-1] = 0;
114 
115  i09_[ism-1] = 0;
116  i10_[ism-1] = 0;
117  i11_[ism-1] = 0;
118  i12_[ism-1] = 0;
119  i13_[ism-1] = 0;
120  i14_[ism-1] = 0;
121  i15_[ism-1] = 0;
122  i16_[ism-1] = 0;
123 
124  }
125 
126  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
127 
128  int ism = superModules_[i];
129 
130  meg01_[ism-1] = 0;
131  meg02_[ism-1] = 0;
132  meg03_[ism-1] = 0;
133  meg04_[ism-1] = 0;
134 
135  meg05_[ism-1] = 0;
136  meg06_[ism-1] = 0;
137  meg07_[ism-1] = 0;
138  meg08_[ism-1] = 0;
139  meg09_[ism-1] = 0;
140  meg10_[ism-1] = 0;
141  meg11_[ism-1] = 0;
142  meg12_[ism-1] = 0;
143 
144  mea01_[ism-1] = 0;
145  mea02_[ism-1] = 0;
146  mea03_[ism-1] = 0;
147  mea04_[ism-1] = 0;
148 
149  met01_[ism-1] = 0;
150  met02_[ism-1] = 0;
151  met03_[ism-1] = 0;
152  met04_[ism-1] = 0;
153 
154  metav01_[ism-1] = 0;
155  metav02_[ism-1] = 0;
156  metav03_[ism-1] = 0;
157  metav04_[ism-1] = 0;
158 
159  metrms01_[ism-1] = 0;
160  metrms02_[ism-1] = 0;
161  metrms03_[ism-1] = 0;
162  metrms04_[ism-1] = 0;
163 
164  meaopn01_[ism-1] = 0;
165  meaopn02_[ism-1] = 0;
166  meaopn03_[ism-1] = 0;
167  meaopn04_[ism-1] = 0;
168 
169  mepnprms01_[ism-1] = 0;
170  mepnprms02_[ism-1] = 0;
171  mepnprms03_[ism-1] = 0;
172  mepnprms04_[ism-1] = 0;
173  mepnprms05_[ism-1] = 0;
174  mepnprms06_[ism-1] = 0;
175  mepnprms07_[ism-1] = 0;
176  mepnprms08_[ism-1] = 0;
177 
178  me_hs01_[ism-1] = 0;
179  me_hs02_[ism-1] = 0;
180  me_hs03_[ism-1] = 0;
181  me_hs04_[ism-1] = 0;
182 
183  }
184 
185  percentVariation_ = 0.4;
186 
187  amplitudeThreshold_ = 100.;
188 
189  rmsThresholdRelative_ = 0.3;
190 
193 
194  pedPnExpectedMean_[0] = 750.0;
195  pedPnExpectedMean_[1] = 750.0;
196 
197  pedPnDiscrepancyMean_[0] = 100.0;
198  pedPnDiscrepancyMean_[1] = 100.0;
199 
200  pedPnRMSThreshold_[0] = 999.;
201  pedPnRMSThreshold_[1] = 999.;
202 
203 }
MonitorElement * mea02_[36]
MonitorElement * metav02_[36]
MonitorElement * meg12_[36]
MonitorElement * me_hs03_[36]
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
MonitorElement * meg09_[36]
TProfile2D * h10_[36]
MonitorElement * mepnprms06_[36]
float pedPnDiscrepancyMean_[2]
MonitorElement * meg07_[36]
MonitorElement * mepnprms01_[36]
TProfile * i09_[36]
MonitorElement * meg04_[36]
TProfile2D * h08_[36]
TProfile2D * hs03_[36]
MonitorElement * metav04_[36]
TProfile * i04_[36]
MonitorElement * met02_[36]
TProfile * i15_[36]
TProfile * i13_[36]
float percentVariation_
TProfile2D * h11_[36]
MonitorElement * metav01_[36]
MonitorElement * meg02_[36]
MonitorElement * mepnprms03_[36]
MonitorElement * mepnprms02_[36]
MonitorElement * mepnprms08_[36]
TProfile2D * h06_[36]
Definition: EBLaserClient.h:98
MonitorElement * me_hs02_[36]
std::vector< int > laserWavelengths_
Definition: EBLaserClient.h:89
float amplitudeThresholdPnG01_
TProfile2D * h07_[36]
Definition: EBLaserClient.h:99
MonitorElement * metrms01_[36]
MonitorElement * met04_[36]
TProfile * i01_[36]
TProfile2D * hs02_[36]
MonitorElement * meg06_[36]
float amplitudeThreshold_
MonitorElement * meg10_[36]
TProfile * i06_[36]
TProfile * i12_[36]
float pedPnRMSThreshold_[2]
MonitorElement * metrms03_[36]
float rmsThresholdRelative_
TProfile2D * h01_[36]
Definition: EBLaserClient.h:93
MonitorElement * metav03_[36]
std::string prefixME_
Definition: EBLaserClient.h:84
MonitorElement * mea04_[36]
MonitorElement * metrms02_[36]
TProfile2D * h03_[36]
Definition: EBLaserClient.h:95
MonitorElement * met03_[36]
TProfile * i02_[36]
TProfile2D * h05_[36]
Definition: EBLaserClient.h:97
MonitorElement * meg08_[36]
TProfile2D * h04_[36]
Definition: EBLaserClient.h:96
TProfile * i05_[36]
MonitorElement * mepnprms04_[36]
MonitorElement * meaopn04_[36]
MonitorElement * meaopn01_[36]
TProfile2D * hs01_[36]
std::vector< int > superModules_
Definition: EBLaserClient.h:88
MonitorElement * mepnprms07_[36]
MonitorElement * meg11_[36]
MonitorElement * mea01_[36]
MonitorElement * mea03_[36]
MonitorElement * meg05_[36]
TProfile * i08_[36]
MonitorElement * meg01_[36]
TProfile2D * hs04_[36]
TProfile2D * h12_[36]
float amplitudeThresholdPnG16_
TProfile2D * h09_[36]
TProfile * i07_[36]
MonitorElement * me_hs04_[36]
MonitorElement * metrms04_[36]
float pedPnExpectedMean_[2]
tuple cout
Definition: gather_cfg.py:41
TProfile * i03_[36]
MonitorElement * me_hs01_[36]
MonitorElement * meg03_[36]
MonitorElement * meaopn02_[36]
TProfile * i14_[36]
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
MonitorElement * meaopn03_[36]
TProfile * i16_[36]
TProfile * i10_[36]
TProfile2D * h02_[36]
Definition: EBLaserClient.h:94
MonitorElement * mepnprms05_[36]
MonitorElement * met01_[36]
TProfile * i11_[36]
EBLaserClient::~EBLaserClient ( )
virtual

Destructor.

Definition at line 205 of file EBLaserClient.cc.

205  {
206 
207 }

Member Function Documentation

void EBLaserClient::analyze ( void  )
virtual

Analyze.

Implements EBClient.

Definition at line 1524 of file EBLaserClient.cc.

References abs, amplitudeThresholdPnG01_, amplitudeThresholdPnG16_, cloneME_, gather_cfg::cout, debug_, dqmStore_, EcalBarrel, MonitorElement::Fill(), spr::find(), DQMStore::get(), UtilsClient::getBinStatistics(), UtilsClient::getFirstNonEmptyChannel(), h01_, h02_, h03_, h04_, h05_, h06_, h07_, h08_, h09_, h10_, h11_, h12_, hs01_, hs02_, hs03_, hs04_, i, i01_, i02_, i03_, i04_, i05_, i06_, i07_, i08_, i09_, i10_, i11_, i12_, i13_, i14_, i15_, i16_, Numbers::icEB(), ievt_, jevt_, EcalDQMStatusHelper::LASER_MEAN_ERROR, EcalDQMStatusHelper::LASER_RMS_ERROR, EcalDQMStatusHelper::LASER_TIMING_MEAN_ERROR, EcalDQMStatusHelper::LASER_TIMING_RMS_ERROR, laserWavelengths_, UtilsClient::maskBinContent(), Masks::maskChannel(), Masks::maskPn(), me_hs01_, me_hs02_, me_hs03_, me_hs04_, mea01_, mea02_, mea03_, mea04_, meaopn01_, meaopn02_, meaopn03_, meaopn04_, meg01_, meg02_, meg03_, meg04_, meg05_, meg06_, meg07_, meg08_, meg09_, meg10_, meg11_, meg12_, mepnprms01_, mepnprms02_, mepnprms03_, mepnprms04_, mepnprms05_, mepnprms06_, mepnprms07_, mepnprms08_, met01_, met02_, met03_, met04_, metav01_, metav02_, metav03_, metav04_, metrms01_, metrms02_, metrms03_, metrms04_, EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_MEAN_ERROR, EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_RMS_ERROR, EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_MEAN_ERROR, EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_RMS_ERROR, pedPnDiscrepancyMean_, pedPnExpectedMean_, pedPnRMSThreshold_, percentVariation_, prefixME_, MonitorElement::Reset(), rmsThresholdRelative_, Numbers::sEB(), MonitorElement::setBinContent(), MonitorElement::setBinError(), MonitorElement::setEntries(), and superModules_.

1524  {
1525 
1526  ievt_++;
1527  jevt_++;
1528  if ( ievt_ % 10 == 0 ) {
1529  if ( debug_ ) std::cout << "EBLaserClient: ievt/jevt = " << ievt_ << "/" << jevt_ << std::endl;
1530  }
1531 
1532  uint32_t bits01 = 0;
1534  bits01 |= 1 << EcalDQMStatusHelper::LASER_RMS_ERROR;
1535 
1536  uint32_t bits02 = 0;
1539 
1540  uint32_t bits03 = 0;
1543 
1544  uint32_t bits04 = 0;
1547 
1548  MonitorElement* me;
1549 
1550  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
1551 
1552  int ism = superModules_[i];
1553 
1554  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
1555 
1556  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser1/EBLT amplitude " + Numbers::sEB(ism) + " L1");
1557  h01_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h01_[ism-1] );
1558 
1559  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser1/EBLT amplitude over PN " + Numbers::sEB(ism) + " L1");
1560  h02_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h02_[ism-1] );
1561 
1562  }
1563 
1564  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
1565 
1566  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser2/EBLT amplitude " + Numbers::sEB(ism) + " L2");
1567  h03_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h03_[ism-1] );
1568 
1569  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser2/EBLT amplitude over PN " + Numbers::sEB(ism) + " L2");
1570  h04_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h04_[ism-1] );
1571 
1572  }
1573 
1574  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
1575 
1576  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser3/EBLT amplitude " + Numbers::sEB(ism) + " L3");
1577  h05_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h05_[ism-1] );
1578 
1579  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser3/EBLT amplitude over PN " + Numbers::sEB(ism) + " L3");
1580  h06_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h06_[ism-1] );
1581 
1582  }
1583 
1584  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
1585 
1586  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser4/EBLT amplitude " + Numbers::sEB(ism) + " L4");
1587  h07_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h07_[ism-1] );
1588 
1589  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser4/EBLT amplitude over PN " + Numbers::sEB(ism) + " L4");
1590  h08_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h08_[ism-1] );
1591 
1592  }
1593 
1594  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
1595 
1596  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser1/EBLT timing " + Numbers::sEB(ism) + " L1");
1597  h09_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h09_[ism-1] );
1598 
1599  }
1600 
1601  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
1602 
1603  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser2/EBLT timing " + Numbers::sEB(ism) + " L2");
1604  h10_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h10_[ism-1] );
1605 
1606  }
1607 
1608  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
1609 
1610  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser3/EBLT timing " + Numbers::sEB(ism) + " L3");
1611  h11_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h11_[ism-1] );
1612 
1613  }
1614 
1615  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
1616 
1617  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser4/EBLT timing " + Numbers::sEB(ism) + " L4");
1618  h12_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h12_[ism-1] );
1619 
1620  }
1621 
1622  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
1623 
1624  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser1/EBLT shape " + Numbers::sEB(ism) + " L1");
1625  hs01_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, hs01_[ism-1] );
1626 
1627  }
1628 
1629  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
1630 
1631  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser2/EBLT shape " + Numbers::sEB(ism) + " L2");
1632  hs02_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, hs02_[ism-1] );
1633 
1634  }
1635 
1636  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
1637 
1638  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser3/EBLT shape " + Numbers::sEB(ism) + " L3");
1639  hs03_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, hs03_[ism-1] );
1640 
1641  }
1642 
1643  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
1644 
1645  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser4/EBLT shape " + Numbers::sEB(ism) + " L4");
1646  hs04_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, hs04_[ism-1] );
1647 
1648  }
1649 
1650  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
1651 
1652  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser1/PN/Gain01/EBLT PNs amplitude " + Numbers::sEB(ism) + " G01 L1");
1653  i01_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i01_[ism-1] );
1654 
1655  }
1656 
1657 
1658  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
1659 
1660  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser2/PN/Gain01/EBLT PNs amplitude " + Numbers::sEB(ism) + " G01 L2");
1661  i02_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i02_[ism-1] );
1662 
1663  }
1664 
1665  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
1666 
1667  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser3/PN/Gain01/EBLT PNs amplitude " + Numbers::sEB(ism) + " G01 L3");
1668  i03_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i03_[ism-1] );
1669 
1670  }
1671 
1672  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
1673 
1674  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser4/PN/Gain01/EBLT PNs amplitude " + Numbers::sEB(ism) + " G01 L4");
1675  i04_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i04_[ism-1] );
1676 
1677  }
1678 
1679  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
1680 
1681  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser1/PN/Gain01/EBLT PNs pedestal " + Numbers::sEB(ism) + " G01 L1");
1682  i05_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i05_[ism-1] );
1683 
1684  }
1685 
1686  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
1687 
1688  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser2/PN/Gain01/EBLT PNs pedestal " + Numbers::sEB(ism) + " G01 L2");
1689  i06_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i06_[ism-1] );
1690 
1691  }
1692 
1693  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
1694 
1695  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser3/PN/Gain01/EBLT PNs pedestal " + Numbers::sEB(ism) + " G01 L3");
1696  i07_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i07_[ism-1] );
1697 
1698  }
1699 
1700  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
1701 
1702  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser4/PN/Gain01/EBLT PNs pedestal " + Numbers::sEB(ism) + " G01 L4");
1703  i08_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i08_[ism-1] );
1704 
1705  }
1706 
1707  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
1708 
1709  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser1/PN/Gain16/EBLT PNs amplitude " + Numbers::sEB(ism) + " G16 L1");
1710  i09_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i09_[ism-1] );
1711 
1712  }
1713 
1714  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
1715 
1716  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser2/PN/Gain16/EBLT PNs amplitude " + Numbers::sEB(ism) + " G16 L2");
1717  i10_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i10_[ism-1] );
1718 
1719  }
1720 
1721  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
1722 
1723  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser3/PN/Gain16/EBLT PNs amplitude " + Numbers::sEB(ism) + " G16 L3");
1724  i11_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i11_[ism-1] );
1725 
1726  }
1727 
1728  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
1729 
1730  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser4/PN/Gain16/EBLT PNs amplitude " + Numbers::sEB(ism) + " G16 L4");
1731  i12_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i12_[ism-1] );
1732 
1733  }
1734 
1735  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
1736 
1737  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser1/PN/Gain16/EBLT PNs pedestal " + Numbers::sEB(ism) + " G16 L1");
1738  i13_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i13_[ism-1] );
1739 
1740  }
1741 
1742  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
1743 
1744  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser2/PN/Gain16/EBLT PNs pedestal " + Numbers::sEB(ism) + " G16 L2");
1745  i14_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i14_[ism-1] );
1746 
1747  }
1748 
1749  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
1750 
1751  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser3/PN/Gain16/EBLT PNs pedestal " + Numbers::sEB(ism) + " G16 L3");
1752  i15_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i15_[ism-1] );
1753 
1754  }
1755 
1756  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
1757 
1758  me = dqmStore_->get( prefixME_ + "/EBLaserTask/Laser4/PN/Gain16/EBLT PNs pedestal " + Numbers::sEB(ism) + " G16 L4");
1759  i16_[ism-1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, i16_[ism-1] );
1760 
1761  }
1762 
1763  if ( meg01_[ism-1] ) meg01_[ism-1]->Reset();
1764  if ( meg02_[ism-1] ) meg02_[ism-1]->Reset();
1765  if ( meg03_[ism-1] ) meg03_[ism-1]->Reset();
1766  if ( meg04_[ism-1] ) meg04_[ism-1]->Reset();
1767 
1768  if ( meg05_[ism-1] ) meg05_[ism-1]->Reset();
1769  if ( meg06_[ism-1] ) meg06_[ism-1]->Reset();
1770  if ( meg07_[ism-1] ) meg07_[ism-1]->Reset();
1771  if ( meg08_[ism-1] ) meg08_[ism-1]->Reset();
1772  if ( meg09_[ism-1] ) meg09_[ism-1]->Reset();
1773  if ( meg10_[ism-1] ) meg10_[ism-1]->Reset();
1774  if ( meg11_[ism-1] ) meg11_[ism-1]->Reset();
1775  if ( meg12_[ism-1] ) meg12_[ism-1]->Reset();
1776 
1777  if ( mea01_[ism-1] ) mea01_[ism-1]->Reset();
1778  if ( mea02_[ism-1] ) mea02_[ism-1]->Reset();
1779  if ( mea03_[ism-1] ) mea03_[ism-1]->Reset();
1780  if ( mea04_[ism-1] ) mea04_[ism-1]->Reset();
1781 
1782  if ( met01_[ism-1] ) met01_[ism-1]->Reset();
1783  if ( met02_[ism-1] ) met02_[ism-1]->Reset();
1784  if ( met03_[ism-1] ) met03_[ism-1]->Reset();
1785  if ( met04_[ism-1] ) met04_[ism-1]->Reset();
1786 
1787  if ( metav01_[ism-1] ) metav01_[ism-1]->Reset();
1788  if ( metav02_[ism-1] ) metav02_[ism-1]->Reset();
1789  if ( metav03_[ism-1] ) metav03_[ism-1]->Reset();
1790  if ( metav04_[ism-1] ) metav04_[ism-1]->Reset();
1791 
1792  if ( metrms01_[ism-1] ) metrms01_[ism-1]->Reset();
1793  if ( metrms02_[ism-1] ) metrms02_[ism-1]->Reset();
1794  if ( metrms03_[ism-1] ) metrms03_[ism-1]->Reset();
1795  if ( metrms04_[ism-1] ) metrms04_[ism-1]->Reset();
1796 
1797  if ( meaopn01_[ism-1] ) meaopn01_[ism-1]->Reset();
1798  if ( meaopn02_[ism-1] ) meaopn02_[ism-1]->Reset();
1799  if ( meaopn03_[ism-1] ) meaopn03_[ism-1]->Reset();
1800  if ( meaopn04_[ism-1] ) meaopn04_[ism-1]->Reset();
1801 
1802  if ( mepnprms01_[ism-1] ) mepnprms01_[ism-1]->Reset();
1803  if ( mepnprms02_[ism-1] ) mepnprms02_[ism-1]->Reset();
1804  if ( mepnprms03_[ism-1] ) mepnprms03_[ism-1]->Reset();
1805  if ( mepnprms04_[ism-1] ) mepnprms04_[ism-1]->Reset();
1806  if ( mepnprms05_[ism-1] ) mepnprms05_[ism-1]->Reset();
1807  if ( mepnprms06_[ism-1] ) mepnprms06_[ism-1]->Reset();
1808  if ( mepnprms07_[ism-1] ) mepnprms07_[ism-1]->Reset();
1809  if ( mepnprms08_[ism-1] ) mepnprms08_[ism-1]->Reset();
1810 
1811  if ( me_hs01_[ism-1] ) me_hs01_[ism-1]->Reset();
1812  if ( me_hs02_[ism-1] ) me_hs02_[ism-1]->Reset();
1813  if ( me_hs03_[ism-1] ) me_hs03_[ism-1]->Reset();
1814  if ( me_hs04_[ism-1] ) me_hs04_[ism-1]->Reset();
1815 
1816  float meanAmplL1, meanAmplL2, meanAmplL3, meanAmplL4;
1817 
1818  int nCryL1, nCryL2, nCryL3, nCryL4;
1819 
1820  meanAmplL1 = meanAmplL2 = meanAmplL3 = meanAmplL4 = 0.;
1821 
1822  nCryL1 = nCryL2 = nCryL3 = nCryL4 = 0;
1823 
1824  for ( int ie = 1; ie <= 85; ie++ ) {
1825  for ( int ip = 1; ip <= 20; ip++ ) {
1826 
1827  bool update01;
1828  bool update02;
1829  bool update03;
1830  bool update04;
1831 
1832  float num01, num02, num03, num04;
1833  float mean01, mean02, mean03, mean04;
1834  float rms01, rms02, rms03, rms04;
1835 
1836  update01 = UtilsClient::getBinStatistics(h01_[ism-1], ie, ip, num01, mean01, rms01);
1837  update02 = UtilsClient::getBinStatistics(h03_[ism-1], ie, ip, num02, mean02, rms02);
1838  update03 = UtilsClient::getBinStatistics(h05_[ism-1], ie, ip, num03, mean03, rms03);
1839  update04 = UtilsClient::getBinStatistics(h07_[ism-1], ie, ip, num04, mean04, rms04);
1840 
1841  float xmean01 = mean01;
1842  float xmean02 = mean02;
1843  float xmean03 = mean03;
1844  float xmean04 = mean04;
1845 
1846  // special correction for EB+04
1847  if ( ism == 22 && ie <= 5 ) {
1848  xmean01 = xmean01 * 1.5;
1849  xmean02 = xmean02 * 1.5;
1850  xmean03 = xmean03 * 1.5;
1851  xmean04 = xmean04 * 1.5;
1852  }
1853 
1854  // special correction for EB+09
1855  if ( ism == 27 && ie > 5 && ip <= 10 ) {
1856  xmean01 = xmean01 * 1.5;
1857  xmean02 = xmean02 * 1.5;
1858  xmean03 = xmean03 * 1.5;
1859  xmean04 = xmean04 * 1.5;
1860  }
1861 
1862  // special correction for EB+18
1863  if ( ism == 36 && ie > 5 && ip <= 10 ) {
1864  xmean01 = xmean01 * 1.0;
1865  xmean02 = xmean02 * 1.0;
1866  xmean03 = xmean03 * 1.0;
1867  xmean04 = xmean04 * 2.0;
1868  }
1869 
1870  if ( update01 ) {
1871  meanAmplL1 += xmean01;
1872  nCryL1++;
1873  }
1874 
1875  if ( update02 ) {
1876  meanAmplL2 += xmean02;
1877  nCryL2++;
1878  }
1879 
1880  if ( update03 ) {
1881  meanAmplL3 += xmean03;
1882  nCryL3++;
1883  }
1884 
1885  if ( update04 ) {
1886  meanAmplL4 += xmean04;
1887  nCryL4++;
1888  }
1889 
1890  }
1891  }
1892 
1893  if ( nCryL1 > 0 ) meanAmplL1 /= float (nCryL1);
1894  if ( nCryL2 > 0 ) meanAmplL2 /= float (nCryL2);
1895  if ( nCryL3 > 0 ) meanAmplL3 /= float (nCryL3);
1896  if ( nCryL4 > 0 ) meanAmplL4 /= float (nCryL4);
1897 
1898  for ( int ie = 1; ie <= 85; ie++ ) {
1899  for ( int ip = 1; ip <= 20; ip++ ) {
1900 
1901  if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ie, ip, 2.);
1902  if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ie, ip, 2.);
1903  if ( meg03_[ism-1] ) meg03_[ism-1]->setBinContent( ie, ip, 2.);
1904  if ( meg04_[ism-1] ) meg04_[ism-1]->setBinContent( ie, ip, 2.);
1905 
1906  bool update01;
1907  bool update02;
1908  bool update03;
1909  bool update04;
1910  bool update05;
1911  bool update06;
1912  bool update07;
1913  bool update08;
1914  bool update09;
1915  bool update10;
1916  bool update11;
1917  bool update12;
1918 
1919  float num01, num02, num03, num04, num05, num06, num07, num08;
1920  float num09, num10, num11, num12;
1921  float mean01, mean02, mean03, mean04, mean05, mean06, mean07, mean08;
1922  float mean09, mean10, mean11, mean12;
1923  float rms01, rms02, rms03, rms04, rms05, rms06, rms07, rms08;
1924  float rms09, rms10, rms11, rms12;
1925 
1926  update01 = UtilsClient::getBinStatistics(h01_[ism-1], ie, ip, num01, mean01, rms01);
1927  update02 = UtilsClient::getBinStatistics(h02_[ism-1], ie, ip, num02, mean02, rms02);
1928  update03 = UtilsClient::getBinStatistics(h03_[ism-1], ie, ip, num03, mean03, rms03);
1929  update04 = UtilsClient::getBinStatistics(h04_[ism-1], ie, ip, num04, mean04, rms04);
1930  update05 = UtilsClient::getBinStatistics(h05_[ism-1], ie, ip, num05, mean05, rms05);
1931  update06 = UtilsClient::getBinStatistics(h06_[ism-1], ie, ip, num06, mean06, rms06);
1932  update07 = UtilsClient::getBinStatistics(h07_[ism-1], ie, ip, num07, mean07, rms07);
1933  update08 = UtilsClient::getBinStatistics(h08_[ism-1], ie, ip, num08, mean08, rms08);
1934  update09 = UtilsClient::getBinStatistics(h09_[ism-1], ie, ip, num09, mean09, rms09);
1935  update10 = UtilsClient::getBinStatistics(h10_[ism-1], ie, ip, num10, mean10, rms10);
1936  update11 = UtilsClient::getBinStatistics(h11_[ism-1], ie, ip, num11, mean11, rms11);
1937  update12 = UtilsClient::getBinStatistics(h12_[ism-1], ie, ip, num12, mean12, rms12);
1938 
1939  float xmean01 = mean01;
1940  float xmean03 = mean03;
1941  float xmean05 = mean05;
1942  float xmean07 = mean07;
1943 
1944  // special correction for EB+04
1945  if ( ism == 22 && ie <= 5 ) {
1946  xmean01 = xmean01 * 1.5;
1947  xmean03 = xmean03 * 1.5;
1948  xmean05 = xmean05 * 1.5;
1949  xmean07 = xmean07 * 1.5;
1950  }
1951 
1952  // special correction for EB+09
1953  if ( ism == 27 && ie > 5 && ip <= 10 ) {
1954  xmean01 = xmean01 * 1.5;
1955  xmean03 = xmean03 * 1.5;
1956  xmean05 = xmean05 * 1.5;
1957  xmean07 = xmean07 * 1.5;
1958  }
1959 
1960  // special correction for EB+18
1961  if ( ism == 36 && ie > 5 && ip <= 10 ) {
1962  xmean01 = xmean01 * 1.0;
1963  xmean03 = xmean03 * 1.0;
1964  xmean05 = xmean05 * 1.0;
1965  xmean07 = xmean07 * 2.0;
1966  }
1967 
1968  if ( update01 ) {
1969 
1970  float val;
1971 
1972  val = 1.;
1973  if ( std::abs(xmean01 - meanAmplL1) > std::abs(percentVariation_ * meanAmplL1) || xmean01 < amplitudeThreshold_ || rms01 > rmsThresholdRelative_ * mean01 )
1974  val = 0.;
1975  if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ie, ip, val );
1976 
1977  int ic = Numbers::icEB(ism, ie, ip);
1978 
1979  if ( mea01_[ism-1] ) {
1980  if ( mean01 > 0. ) {
1981  mea01_[ism-1]->setBinContent( ic, mean01 );
1982  mea01_[ism-1]->setBinError( ic, rms01 );
1983  } else {
1984  mea01_[ism-1]->setEntries( 1.+mea01_[ism-1]->getEntries() );
1985  }
1986  }
1987 
1988  }
1989 
1990  if ( update03 ) {
1991 
1992  float val;
1993 
1994  val = 1.;
1995  if ( std::abs(xmean03 - meanAmplL2) > std::abs(percentVariation_ * meanAmplL2) || xmean03 < amplitudeThreshold_ || rms03 > rmsThresholdRelative_ * mean03 )
1996  val = 0.;
1997  if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ie, ip, val );
1998 
1999  int ic = Numbers::icEB(ism, ie, ip);
2000 
2001  if ( mea02_[ism-1] ) {
2002  if ( mean03 > 0. ) {
2003  mea02_[ism-1]->setBinContent( ic, mean03 );
2004  mea02_[ism-1]->setBinError( ic, rms03 );
2005  } else {
2006  mea02_[ism-1]->setEntries( 1.+mea02_[ism-1]->getEntries() );
2007  }
2008  }
2009 
2010  }
2011 
2012  if ( update05 ) {
2013 
2014  float val;
2015 
2016  val = 1.;
2017  if ( std::abs(xmean05 - meanAmplL3) > std::abs(percentVariation_ * meanAmplL3) || xmean05 < amplitudeThreshold_ || rms05 > rmsThresholdRelative_ * mean05 )
2018  val = 0.;
2019  if ( meg03_[ism-1] ) meg03_[ism-1]->setBinContent( ie, ip, val );
2020 
2021  int ic = Numbers::icEB(ism, ie, ip);
2022 
2023  if ( mea03_[ism-1] ) {
2024  if ( mean05 > 0. ) {
2025  mea03_[ism-1]->setBinContent( ic, mean05 );
2026  mea03_[ism-1]->setBinError( ic, rms05 );
2027  } else {
2028  mea03_[ism-1]->setEntries( 1.+mea03_[ism-1]->getEntries() );
2029  }
2030  }
2031 
2032  }
2033 
2034  if ( update07 ) {
2035 
2036  float val;
2037 
2038  val = 1.;
2039  if ( std::abs(xmean07 - meanAmplL4) > std::abs(percentVariation_ * meanAmplL4) || xmean07 < amplitudeThreshold_ || rms07 > rmsThresholdRelative_ * mean07 )
2040  val = 0.;
2041  if ( meg04_[ism-1] ) meg04_[ism-1]->setBinContent( ie, ip, val );
2042 
2043  int ic = Numbers::icEB(ism, ie, ip);
2044 
2045  if ( mea04_[ism-1] ) {
2046  if ( mean07 > 0. ) {
2047  mea04_[ism-1]->setBinContent( ic, mean07 );
2048  mea04_[ism-1]->setBinError( ic, rms07 );
2049  } else {
2050  mea04_[ism-1]->setEntries( 1.+mea04_[ism-1]->getEntries() );
2051  }
2052  }
2053 
2054  }
2055 
2056  if ( Masks::maskChannel(ism, ie, ip, bits01, EcalBarrel) ) {
2057  UtilsClient::maskBinContent( meg01_[ism-1], ie, ip );
2058  UtilsClient::maskBinContent( meg02_[ism-1], ie, ip );
2059  UtilsClient::maskBinContent( meg03_[ism-1], ie, ip );
2060  UtilsClient::maskBinContent( meg04_[ism-1], ie, ip );
2061  }
2062 
2063  if ( update02 ) {
2064 
2065  int ic = Numbers::icEB(ism, ie, ip);
2066 
2067  if ( meaopn01_[ism-1] ) {
2068  if ( mean02 > 0. ) {
2069  meaopn01_[ism-1]->setBinContent( ic, mean02 );
2070  meaopn01_[ism-1]->setBinError( ic, rms02 );
2071  } else {
2072  meaopn01_[ism-1]->setEntries( 1.+meaopn01_[ism-1]->getEntries() );
2073  }
2074  }
2075 
2076  }
2077 
2078  if ( update04 ) {
2079 
2080  int ic = Numbers::icEB(ism, ie, ip);
2081 
2082  if ( meaopn02_[ism-1] ) {
2083  if ( mean04 > 0. ) {
2084  meaopn02_[ism-1]->setBinContent( ic, mean04 );
2085  meaopn02_[ism-1]->setBinError( ic, rms04 );
2086  } else {
2087  meaopn02_[ism-1]->setEntries( 1.+meaopn02_[ism-1]->getEntries() );
2088  }
2089  }
2090 
2091  }
2092 
2093  if ( update06 ) {
2094 
2095  int ic = Numbers::icEB(ism, ie, ip);
2096 
2097  if ( meaopn03_[ism-1] ) {
2098  if ( mean06 > 0. ) {
2099  meaopn03_[ism-1]->setBinContent( ic, mean06 );
2100  meaopn03_[ism-1]->setBinError( ic, rms06 );
2101  } else {
2102  meaopn03_[ism-1]->setEntries( 1.+meaopn03_[ism-1]->getEntries() );
2103  }
2104  }
2105 
2106  }
2107 
2108  if ( update08 ) {
2109 
2110  int ic = Numbers::icEB(ism, ie, ip);
2111 
2112  if ( meaopn04_[ism-1] ) {
2113  if ( mean08 > 0. ) {
2114  meaopn04_[ism-1]->setBinContent( ic, mean08 );
2115  meaopn04_[ism-1]->setBinError( ic, rms08 );
2116  } else {
2117  meaopn04_[ism-1]->setEntries( 1.+meaopn04_[ism-1]->getEntries() );
2118  }
2119  }
2120 
2121  }
2122 
2123  if ( update09 ) {
2124 
2125  int ic = Numbers::icEB(ism, ie, ip);
2126 
2127  if ( met01_[ism-1] ) {
2128  if ( mean09 > 0. ) {
2129  met01_[ism-1]->setBinContent( ic, mean09 );
2130  met01_[ism-1]->setBinError( ic, rms09 );
2131  } else {
2132  met01_[ism-1]->setEntries(1.+met01_[ism-1]->getEntries());
2133  }
2134  }
2135 
2136  if ( metav01_[ism-1] ) metav01_[ism-1] ->Fill(mean09);
2137  if ( metrms01_[ism-1] ) metrms01_[ism-1]->Fill(rms09);
2138 
2139  }
2140 
2141  if ( update10 ) {
2142 
2143  int ic = Numbers::icEB(ism, ie, ip);
2144 
2145  if ( met02_[ism-1] ) {
2146  if ( mean10 > 0. ) {
2147  met02_[ism-1]->setBinContent( ic, mean10 );
2148  met02_[ism-1]->setBinError( ic, rms10 );
2149  } else {
2150  met02_[ism-1]->setEntries(1.+met02_[ism-1]->getEntries());
2151  }
2152  }
2153 
2154  if ( metav02_[ism-1] ) metav02_[ism-1] ->Fill(mean10);
2155  if ( metrms02_[ism-1] ) metrms02_[ism-1]->Fill(rms10);
2156 
2157  }
2158 
2159  if ( update11 ) {
2160 
2161  int ic = Numbers::icEB(ism, ie, ip);
2162 
2163  if ( met03_[ism-1] ) {
2164  if ( mean11 > 0. ) {
2165  met03_[ism-1]->setBinContent( ic, mean11 );
2166  met03_[ism-1]->setBinError( ic, rms11 );
2167  } else {
2168  met03_[ism-1]->setEntries(1.+met03_[ism-1]->getEntries());
2169  }
2170  }
2171 
2172  if ( metav03_[ism-1] ) metav03_[ism-1] ->Fill(mean11);
2173  if ( metrms03_[ism-1] ) metrms03_[ism-1]->Fill(rms11);
2174 
2175  }
2176 
2177  if ( update12 ) {
2178 
2179  int ic = Numbers::icEB(ism, ie, ip);
2180 
2181  if ( met04_[ism-1] ) {
2182  if ( mean12 > 0. ) {
2183  met04_[ism-1]->setBinContent( ic, mean12 );
2184  met04_[ism-1]->setBinError( ic, rms12 );
2185  } else {
2186  met04_[ism-1]->setEntries(1.+met04_[ism-1]->getEntries());
2187  }
2188  }
2189 
2190  if ( metav04_[ism-1] ) metav04_[ism-1] ->Fill(mean12);
2191  if ( metrms04_[ism-1] ) metrms04_[ism-1]->Fill(rms12);
2192 
2193  }
2194 
2195  }
2196  }
2197 
2198  for ( int i = 1; i <= 10; i++ ) {
2199 
2200  if ( meg05_[ism-1] ) meg05_[ism-1]->setBinContent( i, 1, 2. );
2201  if ( meg06_[ism-1] ) meg06_[ism-1]->setBinContent( i, 1, 2. );
2202  if ( meg07_[ism-1] ) meg07_[ism-1]->setBinContent( i, 1, 2. );
2203  if ( meg08_[ism-1] ) meg08_[ism-1]->setBinContent( i, 1, 2. );
2204  if ( meg09_[ism-1] ) meg09_[ism-1]->setBinContent( i, 1, 2. );
2205  if ( meg10_[ism-1] ) meg10_[ism-1]->setBinContent( i, 1, 2. );
2206  if ( meg11_[ism-1] ) meg11_[ism-1]->setBinContent( i, 1, 2. );
2207  if ( meg12_[ism-1] ) meg12_[ism-1]->setBinContent( i, 1, 2. );
2208 
2209  bool update01;
2210  bool update02;
2211  bool update03;
2212  bool update04;
2213  bool update05;
2214  bool update06;
2215  bool update07;
2216  bool update08;
2217  bool update09;
2218  bool update10;
2219  bool update11;
2220  bool update12;
2221  bool update13;
2222  bool update14;
2223  bool update15;
2224  bool update16;
2225 
2226  float num01, num02, num03, num04, num05, num06, num07, num08;
2227  float num09, num10, num11, num12, num13, num14, num15, num16;
2228  float mean01, mean02, mean03, mean04, mean05, mean06, mean07, mean08;
2229  float mean09, mean10, mean11, mean12, mean13, mean14, mean15, mean16;
2230  float rms01, rms02, rms03, rms04, rms05, rms06, rms07, rms08;
2231  float rms09, rms10, rms11, rms12, rms13, rms14, rms15, rms16;
2232 
2233  update01 = UtilsClient::getBinStatistics(i01_[ism-1], i, 0, num01, mean01, rms01);
2234  update02 = UtilsClient::getBinStatistics(i02_[ism-1], i, 0, num02, mean02, rms02);
2235  update03 = UtilsClient::getBinStatistics(i03_[ism-1], i, 0, num03, mean03, rms03);
2236  update04 = UtilsClient::getBinStatistics(i04_[ism-1], i, 0, num04, mean04, rms04);
2237  update05 = UtilsClient::getBinStatistics(i05_[ism-1], i, 0, num05, mean05, rms05);
2238  update06 = UtilsClient::getBinStatistics(i06_[ism-1], i, 0, num06, mean06, rms06);
2239  update07 = UtilsClient::getBinStatistics(i07_[ism-1], i, 0, num07, mean07, rms07);
2240  update08 = UtilsClient::getBinStatistics(i08_[ism-1], i, 0, num08, mean08, rms08);
2241  update09 = UtilsClient::getBinStatistics(i09_[ism-1], i, 0, num09, mean09, rms09);
2242  update10 = UtilsClient::getBinStatistics(i10_[ism-1], i, 0, num10, mean10, rms10);
2243  update11 = UtilsClient::getBinStatistics(i11_[ism-1], i, 0, num11, mean11, rms11);
2244  update12 = UtilsClient::getBinStatistics(i12_[ism-1], i, 0, num12, mean12, rms12);
2245  update13 = UtilsClient::getBinStatistics(i13_[ism-1], i, 0, num13, mean13, rms13);
2246  update14 = UtilsClient::getBinStatistics(i14_[ism-1], i, 0, num14, mean14, rms14);
2247  update15 = UtilsClient::getBinStatistics(i15_[ism-1], i, 0, num15, mean15, rms15);
2248  update16 = UtilsClient::getBinStatistics(i16_[ism-1], i, 0, num16, mean16, rms16);
2249 
2250  if ( update01 && update05 ) {
2251 
2252  float val;
2253 
2254  val = 1.;
2255  if ( mean01 < amplitudeThresholdPnG01_ )
2256  val = 0.;
2257  if ( mean05 < pedPnExpectedMean_[0] - pedPnDiscrepancyMean_[0] ||
2258  pedPnExpectedMean_[0] + pedPnDiscrepancyMean_[0] < mean05)
2259  val = 0.;
2260  if ( rms05 > pedPnRMSThreshold_[0] )
2261  val = 0.;
2262 
2263  if ( meg05_[ism-1] ) meg05_[ism-1]->setBinContent(i, 1, val);
2264  if ( mepnprms01_[ism-1] ) mepnprms01_[ism-1]->Fill(rms05);
2265 
2266  }
2267 
2268  if ( update02 && update06 ) {
2269 
2270  float val;
2271 
2272  val = 1.;
2273  if ( mean02 < amplitudeThresholdPnG01_ )
2274  val = 0.;
2275  if ( mean06 < pedPnExpectedMean_[0] - pedPnDiscrepancyMean_[0] ||
2276  pedPnExpectedMean_[0] + pedPnDiscrepancyMean_[0] < mean06)
2277  val = 0.;
2278  if ( rms06 > pedPnRMSThreshold_[0] )
2279  val = 0.;
2280 
2281  if ( meg06_[ism-1] ) meg06_[ism-1]->setBinContent(i, 1, val);
2282  if ( mepnprms02_[ism-1] ) mepnprms02_[ism-1]->Fill(rms06);
2283  }
2284 
2285  if ( update03 && update07 ) {
2286 
2287  float val;
2288 
2289  val = 1.;
2290  if ( mean03 < amplitudeThresholdPnG01_ )
2291  val = 0.;
2292  if ( mean07 < pedPnExpectedMean_[0] - pedPnDiscrepancyMean_[0] ||
2293  pedPnExpectedMean_[0] + pedPnDiscrepancyMean_[0] < mean07)
2294  val = 0.;
2295  if ( rms07 > pedPnRMSThreshold_[0] )
2296  val = 0.;
2297 
2298  if ( meg07_[ism-1] ) meg07_[ism-1]->setBinContent(i, 1, val);
2299  if ( mepnprms03_[ism-1] ) mepnprms03_[ism-1]->Fill(rms07);
2300  }
2301 
2302  if ( update04 && update08 ) {
2303 
2304  float val;
2305 
2306  val = 1.;
2307  if ( mean04 < amplitudeThresholdPnG01_ )
2308  val = 0.;
2309  if ( mean08 < pedPnExpectedMean_[0] - pedPnDiscrepancyMean_[0] ||
2310  pedPnExpectedMean_[0] + pedPnDiscrepancyMean_[0] < mean08)
2311  val = 0.;
2312  if ( rms08 > pedPnRMSThreshold_[0] )
2313  val = 0.;
2314 
2315  if ( meg08_[ism-1] ) meg08_[ism-1]->setBinContent(i, 1, val);
2316  if ( mepnprms04_[ism-1] ) mepnprms04_[ism-1]->Fill(rms08);
2317  }
2318 
2319  if ( update09 && update13 ) {
2320 
2321  float val;
2322 
2323  val = 1.;
2324  if ( mean09 < amplitudeThresholdPnG16_ )
2325  val = 0.;
2326  if ( mean13 < pedPnExpectedMean_[1] - pedPnDiscrepancyMean_[1] ||
2327  pedPnExpectedMean_[1] + pedPnDiscrepancyMean_[1] < mean13)
2328  val = 0.;
2329  if ( rms13 > pedPnRMSThreshold_[1] )
2330  val = 0.;
2331 
2332  if ( meg09_[ism-1] ) meg09_[ism-1]->setBinContent(i, 1, val);
2333  if ( mepnprms05_[ism-1] ) mepnprms05_[ism-1]->Fill(rms13);
2334  }
2335 
2336  if ( update10 && update14 ) {
2337 
2338  float val;
2339 
2340  val = 1.;
2341  if ( mean10 < amplitudeThresholdPnG16_ )
2342  val = 0.;
2343  if ( mean14 < pedPnExpectedMean_[1] - pedPnDiscrepancyMean_[1] ||
2344  pedPnExpectedMean_[1] + pedPnDiscrepancyMean_[1] < mean14)
2345  val = 0.;
2346  if ( rms14 > pedPnRMSThreshold_[1] )
2347  val = 0.;
2348 
2349  if ( meg10_[ism-1] ) meg10_[ism-1]->setBinContent(i, 1, val);
2350  if ( mepnprms06_[ism-1] ) mepnprms06_[ism-1]->Fill(rms14);
2351  }
2352 
2353  if ( update11 && update15 ) {
2354 
2355  float val;
2356 
2357  val = 1.;
2358  if ( mean11 < amplitudeThresholdPnG16_ )
2359  val = 0.;
2360  if ( mean15 < pedPnExpectedMean_[1] - pedPnDiscrepancyMean_[1] ||
2361  pedPnExpectedMean_[1] + pedPnDiscrepancyMean_[1] < mean15)
2362  val = 0.;
2363  if ( rms15 > pedPnRMSThreshold_[1] )
2364  val = 0.;
2365 
2366  if ( meg11_[ism-1] ) meg11_[ism-1]->setBinContent(i, 1, val);
2367  if ( mepnprms07_[ism-1] ) mepnprms07_[ism-1]->Fill(rms15);
2368  }
2369 
2370  if ( update12 && update16 ) {
2371 
2372  float val;
2373 
2374  val = 1.;
2375  if ( mean12 < amplitudeThresholdPnG16_ )
2376  val = 0.;
2377  if ( mean16 < pedPnExpectedMean_[1] - pedPnDiscrepancyMean_[1] ||
2378  pedPnExpectedMean_[1] + pedPnDiscrepancyMean_[1] < mean16)
2379  val = 0.;
2380  if ( rms16 > pedPnRMSThreshold_[1] )
2381  val = 0.;
2382 
2383  if ( meg12_[ism-1] ) meg12_[ism-1]->setBinContent(i, 1, val);
2384  if ( mepnprms08_[ism-1] ) mepnprms08_[ism-1]->Fill(rms16);
2385  }
2386 
2387  if ( Masks::maskPn(ism, i, bits01|bits03, EcalBarrel) ) {
2388  UtilsClient::maskBinContent( meg05_[ism-1], i, 1 );
2389  UtilsClient::maskBinContent( meg06_[ism-1], i, 1 );
2390  UtilsClient::maskBinContent( meg07_[ism-1], i, 1 );
2391  UtilsClient::maskBinContent( meg08_[ism-1], i, 1 );
2392  }
2393 
2394  if ( Masks::maskPn(ism, i, bits01|bits04, EcalBarrel) ) {
2395  UtilsClient::maskBinContent( meg09_[ism-1], i, 1 );
2396  UtilsClient::maskBinContent( meg10_[ism-1], i, 1 );
2397  UtilsClient::maskBinContent( meg11_[ism-1], i, 1 );
2398  UtilsClient::maskBinContent( meg12_[ism-1], i, 1 );
2399  }
2400 
2401  }
2402 
2403  for ( int i = 1; i <= 10; i++ ) {
2404 
2405  if ( hs01_[ism-1] ) {
2406  int ic = UtilsClient::getFirstNonEmptyChannel( hs01_[ism-1] );
2407  if ( me_hs01_[ism-1] ) {
2408  me_hs01_[ism-1]->setBinContent( i, hs01_[ism-1]->GetBinContent(ic, i) );
2409  me_hs01_[ism-1]->setBinError( i, hs01_[ism-1]->GetBinError(ic, i) );
2410  }
2411  }
2412 
2413  if ( hs02_[ism-1] ) {
2414  int ic = UtilsClient::getFirstNonEmptyChannel( hs02_[ism-1] );
2415  if ( me_hs02_[ism-1] ) {
2416  me_hs02_[ism-1]->setBinContent( i, hs02_[ism-1]->GetBinContent(ic, i) );
2417  me_hs02_[ism-1]->setBinError( i, hs02_[ism-1]->GetBinError(ic, i) );
2418  }
2419  }
2420 
2421  if ( hs03_[ism-1] ) {
2422  int ic = UtilsClient::getFirstNonEmptyChannel( hs03_[ism-1] );
2423  if ( me_hs03_[ism-1] ) {
2424  me_hs03_[ism-1]->setBinContent( i, hs03_[ism-1]->GetBinContent(ic, i) );
2425  me_hs03_[ism-1]->setBinError( i, hs03_[ism-1]->GetBinError(ic, i) );
2426  }
2427  }
2428 
2429  if ( hs04_[ism-1] ) {
2430  int ic = UtilsClient::getFirstNonEmptyChannel( hs04_[ism-1] );
2431  if ( me_hs04_[ism-1] ) {
2432  me_hs04_[ism-1]->setBinContent( i, hs04_[ism-1]->GetBinContent(ic, i) );
2433  me_hs04_[ism-1]->setBinError( i, hs04_[ism-1]->GetBinError(ic, i) );
2434  }
2435  }
2436 
2437  }
2438 
2439  }
2440 
2441 }
MonitorElement * mea02_[36]
MonitorElement * metav02_[36]
MonitorElement * meg12_[36]
MonitorElement * me_hs03_[36]
int i
Definition: DBlmapReader.cc:9
MonitorElement * meg09_[36]
void setBinContent(int binx, double content)
set content of bin (1-D)
static const int LASER_MEAN_ERROR
TProfile2D * h10_[36]
static bool maskChannel(int ism, int i1, int i2, uint32_t bits, const EcalSubdetector subdet)
Definition: Masks.cc:60
static std::string sEB(const int ism)
Definition: Numbers.cc:87
MonitorElement * mepnprms06_[36]
float pedPnDiscrepancyMean_[2]
MonitorElement * meg07_[36]
MonitorElement * mepnprms01_[36]
TProfile * i09_[36]
MonitorElement * meg04_[36]
TProfile2D * h08_[36]
TProfile2D * hs03_[36]
MonitorElement * metav04_[36]
TProfile * i04_[36]
MonitorElement * met02_[36]
TProfile * i15_[36]
TProfile * i13_[36]
static const int LASER_TIMING_RMS_ERROR
static const int PEDESTAL_HIGH_GAIN_MEAN_ERROR
float percentVariation_
TProfile2D * h11_[36]
MonitorElement * metav01_[36]
MonitorElement * meg02_[36]
MonitorElement * mepnprms03_[36]
MonitorElement * mepnprms02_[36]
MonitorElement * mepnprms08_[36]
#define abs(x)
Definition: mlp_lapack.h:159
TProfile2D * h06_[36]
Definition: EBLaserClient.h:98
MonitorElement * me_hs02_[36]
std::vector< int > laserWavelengths_
Definition: EBLaserClient.h:89
float amplitudeThresholdPnG01_
TProfile2D * h07_[36]
Definition: EBLaserClient.h:99
static const int PEDESTAL_LOW_GAIN_RMS_ERROR
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
static void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
Definition: UtilsClient.cc:231
MonitorElement * metrms01_[36]
static int icEB(const int ism, const int ix, const int iy)
Definition: Numbers.cc:898
MonitorElement * met04_[36]
static const int PEDESTAL_HIGH_GAIN_RMS_ERROR
static bool maskPn(int ism, int i1, uint32_t bits, const EcalSubdetector subdet)
Definition: Masks.cc:112
TProfile * i01_[36]
TProfile2D * hs02_[36]
void Fill(long long x)
MonitorElement * meg06_[36]
MonitorElement * meg10_[36]
TProfile * i06_[36]
TProfile * i12_[36]
float pedPnRMSThreshold_[2]
MonitorElement * metrms03_[36]
float rmsThresholdRelative_
TProfile2D * h01_[36]
Definition: EBLaserClient.h:93
MonitorElement * metav03_[36]
std::string prefixME_
Definition: EBLaserClient.h:84
MonitorElement * mea04_[36]
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
void setEntries(double nentries)
set # of entries
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
MonitorElement * metrms02_[36]
TProfile2D * h03_[36]
Definition: EBLaserClient.h:95
MonitorElement * met03_[36]
TProfile * i02_[36]
static const int PEDESTAL_LOW_GAIN_MEAN_ERROR
TProfile2D * h05_[36]
Definition: EBLaserClient.h:97
MonitorElement * meg08_[36]
TProfile2D * h04_[36]
Definition: EBLaserClient.h:96
TProfile * i05_[36]
MonitorElement * mepnprms04_[36]
static bool getBinStatistics(TH1 *histo, const int ix, const int iy, float &num, float &mean, float &rms, float minEntries=1.)
Returns true if the bin contains good statistical data.
Definition: UtilsClient.cc:74
MonitorElement * meaopn04_[36]
MonitorElement * meaopn01_[36]
TProfile2D * hs01_[36]
std::vector< int > superModules_
Definition: EBLaserClient.h:88
MonitorElement * mepnprms07_[36]
MonitorElement * meg11_[36]
MonitorElement * mea01_[36]
MonitorElement * mea03_[36]
MonitorElement * meg05_[36]
static const int LASER_TIMING_MEAN_ERROR
TProfile * i08_[36]
MonitorElement * meg01_[36]
TProfile2D * hs04_[36]
TProfile2D * h12_[36]
float amplitudeThresholdPnG16_
TProfile2D * h09_[36]
TProfile * i07_[36]
MonitorElement * me_hs04_[36]
MonitorElement * metrms04_[36]
float pedPnExpectedMean_[2]
tuple cout
Definition: gather_cfg.py:41
TProfile * i03_[36]
DQMStore * dqmStore_
Definition: EBLaserClient.h:91
MonitorElement * me_hs01_[36]
MonitorElement * meg03_[36]
static const int LASER_RMS_ERROR
MonitorElement * meaopn02_[36]
TProfile * i14_[36]
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
MonitorElement * meaopn03_[36]
TProfile * i16_[36]
void Reset(void)
reset ME (ie. contents, errors, etc)
TProfile * i10_[36]
TProfile2D * h02_[36]
Definition: EBLaserClient.h:94
MonitorElement * mepnprms05_[36]
MonitorElement * met01_[36]
static int getFirstNonEmptyChannel(const TProfile2D *histo)
Find the first non empty bin.
Definition: UtilsClient.cc:246
TProfile * i11_[36]
void EBLaserClient::beginJob ( void  )
virtual

BeginJob.

Implements EBClient.

Definition at line 209 of file EBLaserClient.cc.

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

209  {
210 
212 
213  if ( debug_ ) std::cout << "EBLaserClient: beginJob" << std::endl;
214 
215  ievt_ = 0;
216  jevt_ = 0;
217 
218 }
tuple cout
Definition: gather_cfg.py:41
DQMStore * dqmStore_
Definition: EBLaserClient.h:91
void EBLaserClient::beginRun ( void  )
virtual

BeginRun.

Implements EBClient.

Definition at line 220 of file EBLaserClient.cc.

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

220  {
221 
222  if ( debug_ ) std::cout << "EBLaserClient: beginRun" << std::endl;
223 
224  jevt_ = 0;
225 
226  this->setup();
227 
228 }
void setup(void)
Setup.
tuple cout
Definition: gather_cfg.py:41
void EBLaserClient::cleanup ( void  )
virtual

Cleanup.

Implements EBClient.

Definition at line 643 of file EBLaserClient.cc.

References cloneME_, dqmStore_, enableCleanup_, edm::getName(), h01_, h02_, h03_, h04_, h05_, h06_, h07_, h08_, h09_, h10_, h11_, h12_, hs01_, hs02_, hs03_, hs04_, i, i01_, i02_, i03_, i04_, i05_, i06_, i07_, i08_, i09_, i10_, i11_, i12_, i13_, i14_, i15_, i16_, ecalpyutils::ism(), me_hs01_, me_hs02_, me_hs03_, me_hs04_, mea01_, mea02_, mea03_, mea04_, meaopn01_, meaopn02_, meaopn03_, meaopn04_, meg01_, meg02_, meg03_, meg04_, meg05_, meg06_, meg07_, meg08_, meg09_, meg10_, meg11_, meg12_, mepnprms01_, mepnprms02_, mepnprms03_, mepnprms04_, mepnprms05_, mepnprms06_, mepnprms07_, mepnprms08_, met01_, met02_, met03_, met04_, metav01_, metav02_, metav03_, metav04_, metrms01_, metrms02_, metrms03_, metrms04_, prefixME_, DQMStore::removeElement(), DQMStore::setCurrentFolder(), and superModules_.

Referenced by endJob(), and endRun().

643  {
644 
645  if ( ! enableCleanup_ ) return;
646 
647  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
648 
649  int ism = superModules_[i];
650 
651  if ( cloneME_ ) {
652  if ( h01_[ism-1] ) delete h01_[ism-1];
653  if ( h02_[ism-1] ) delete h02_[ism-1];
654  if ( h03_[ism-1] ) delete h03_[ism-1];
655  if ( h04_[ism-1] ) delete h04_[ism-1];
656  if ( h05_[ism-1] ) delete h05_[ism-1];
657  if ( h06_[ism-1] ) delete h06_[ism-1];
658  if ( h07_[ism-1] ) delete h07_[ism-1];
659  if ( h08_[ism-1] ) delete h08_[ism-1];
660 
661  if ( h09_[ism-1] ) delete h09_[ism-1];
662  if ( h10_[ism-1] ) delete h10_[ism-1];
663  if ( h11_[ism-1] ) delete h11_[ism-1];
664  if ( h12_[ism-1] ) delete h12_[ism-1];
665 
666  if ( hs01_[ism-1] ) delete hs01_[ism-1];
667  if ( hs02_[ism-1] ) delete hs02_[ism-1];
668  if ( hs03_[ism-1] ) delete hs03_[ism-1];
669  if ( hs04_[ism-1] ) delete hs04_[ism-1];
670 
671  if ( i01_[ism-1] ) delete i01_[ism-1];
672  if ( i02_[ism-1] ) delete i02_[ism-1];
673  if ( i03_[ism-1] ) delete i03_[ism-1];
674  if ( i04_[ism-1] ) delete i04_[ism-1];
675  if ( i05_[ism-1] ) delete i05_[ism-1];
676  if ( i06_[ism-1] ) delete i06_[ism-1];
677  if ( i07_[ism-1] ) delete i07_[ism-1];
678  if ( i08_[ism-1] ) delete i08_[ism-1];
679 
680  if ( i09_[ism-1] ) delete i09_[ism-1];
681  if ( i10_[ism-1] ) delete i10_[ism-1];
682  if ( i11_[ism-1] ) delete i11_[ism-1];
683  if ( i12_[ism-1] ) delete i12_[ism-1];
684  if ( i13_[ism-1] ) delete i13_[ism-1];
685  if ( i14_[ism-1] ) delete i14_[ism-1];
686  if ( i15_[ism-1] ) delete i15_[ism-1];
687  if ( i16_[ism-1] ) delete i16_[ism-1];
688  }
689 
690  h01_[ism-1] = 0;
691  h02_[ism-1] = 0;
692  h03_[ism-1] = 0;
693  h04_[ism-1] = 0;
694  h05_[ism-1] = 0;
695  h06_[ism-1] = 0;
696  h07_[ism-1] = 0;
697  h08_[ism-1] = 0;
698 
699  h09_[ism-1] = 0;
700  h10_[ism-1] = 0;
701  h11_[ism-1] = 0;
702  h12_[ism-1] = 0;
703 
704  hs01_[ism-1] = 0;
705  hs02_[ism-1] = 0;
706  hs03_[ism-1] = 0;
707  hs04_[ism-1] = 0;
708 
709  i01_[ism-1] = 0;
710  i02_[ism-1] = 0;
711  i03_[ism-1] = 0;
712  i04_[ism-1] = 0;
713  i05_[ism-1] = 0;
714  i06_[ism-1] = 0;
715  i07_[ism-1] = 0;
716  i08_[ism-1] = 0;
717 
718  i09_[ism-1] = 0;
719  i10_[ism-1] = 0;
720  i11_[ism-1] = 0;
721  i12_[ism-1] = 0;
722  i13_[ism-1] = 0;
723  i14_[ism-1] = 0;
724  i15_[ism-1] = 0;
725  i16_[ism-1] = 0;
726 
727  }
728 
729  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
730 
731  int ism = superModules_[i];
732 
733  dqmStore_->setCurrentFolder( prefixME_ + "/EBLaserClient" );
734 
735  if ( meg01_[ism-1] ) dqmStore_->removeElement( meg01_[ism-1]->getName() );
736  meg01_[ism-1] = 0;
737  if ( meg02_[ism-1] ) dqmStore_->removeElement( meg02_[ism-1]->getName() );
738  meg02_[ism-1] = 0;
739  if ( meg03_[ism-1] ) dqmStore_->removeElement( meg03_[ism-1]->getName() );
740  meg03_[ism-1] = 0;
741  if ( meg04_[ism-1] ) dqmStore_->removeElement( meg04_[ism-1]->getName() );
742  meg04_[ism-1] = 0;
743 
744  if ( meg05_[ism-1] ) dqmStore_->removeElement( meg05_[ism-1]->getName() );
745  meg05_[ism-1] = 0;
746  if ( meg06_[ism-1] ) dqmStore_->removeElement( meg06_[ism-1]->getName() );
747  meg06_[ism-1] = 0;
748  if ( meg07_[ism-1] ) dqmStore_->removeElement( meg07_[ism-1]->getName() );
749  meg07_[ism-1] = 0;
750  if ( meg08_[ism-1] ) dqmStore_->removeElement( meg08_[ism-1]->getName() );
751  meg08_[ism-1] = 0;
752  if ( meg09_[ism-1] ) dqmStore_->removeElement( meg09_[ism-1]->getName() );
753  meg09_[ism-1] = 0;
754  if ( meg10_[ism-1] ) dqmStore_->removeElement( meg10_[ism-1]->getName() );
755  meg10_[ism-1] = 0;
756  if ( meg11_[ism-1] ) dqmStore_->removeElement( meg11_[ism-1]->getName() );
757  meg11_[ism-1] = 0;
758  if ( meg12_[ism-1] ) dqmStore_->removeElement( meg12_[ism-1]->getName() );
759  meg12_[ism-1] = 0;
760 
761  if ( mea01_[ism-1] ) dqmStore_->removeElement( mea01_[ism-1]->getName() );
762  mea01_[ism-1] = 0;
763  if ( mea02_[ism-1] ) dqmStore_->removeElement( mea02_[ism-1]->getName() );
764  mea02_[ism-1] = 0;
765  if ( mea03_[ism-1] ) dqmStore_->removeElement( mea03_[ism-1]->getName() );
766  mea03_[ism-1] = 0;
767  if ( mea04_[ism-1] ) dqmStore_->removeElement( mea04_[ism-1]->getName() );
768  mea04_[ism-1] = 0;
769 
770  if ( met01_[ism-1] ) dqmStore_->removeElement( met01_[ism-1]->getName() );
771  met01_[ism-1] = 0;
772  if ( met02_[ism-1] ) dqmStore_->removeElement( met02_[ism-1]->getName() );
773  met02_[ism-1] = 0;
774  if ( met03_[ism-1] ) dqmStore_->removeElement( met03_[ism-1]->getName() );
775  met03_[ism-1] = 0;
776  if ( met04_[ism-1] ) dqmStore_->removeElement( met04_[ism-1]->getName() );
777  met04_[ism-1] = 0;
778 
779  if ( metav01_[ism-1] ) dqmStore_->removeElement( metav01_[ism-1]->getName() );
780  metav01_[ism-1] = 0;
781  if ( metav02_[ism-1] ) dqmStore_->removeElement( metav02_[ism-1]->getName() );
782  metav02_[ism-1] = 0;
783  if ( metav03_[ism-1] ) dqmStore_->removeElement( metav03_[ism-1]->getName() );
784  metav03_[ism-1] = 0;
785  if ( metav04_[ism-1] ) dqmStore_->removeElement( metav04_[ism-1]->getName() );
786  metav04_[ism-1] = 0;
787 
788  if ( metrms01_[ism-1] ) dqmStore_->removeElement( metrms01_[ism-1]->getName() );
789  metrms01_[ism-1] = 0;
790  if ( metrms02_[ism-1] ) dqmStore_->removeElement( metrms02_[ism-1]->getName() );
791  metrms02_[ism-1] = 0;
792  if ( metrms03_[ism-1] ) dqmStore_->removeElement( metrms03_[ism-1]->getName() );
793  metrms03_[ism-1] = 0;
794  if ( metrms04_[ism-1] ) dqmStore_->removeElement( metrms04_[ism-1]->getName() );
795  metrms04_[ism-1] = 0;
796 
797  if ( meaopn01_[ism-1] ) dqmStore_->removeElement( meaopn01_[ism-1]->getName() );
798  meaopn01_[ism-1] = 0;
799  if ( meaopn02_[ism-1] ) dqmStore_->removeElement( meaopn02_[ism-1]->getName() );
800  meaopn02_[ism-1] = 0;
801  if ( meaopn03_[ism-1] ) dqmStore_->removeElement( meaopn03_[ism-1]->getName() );
802  meaopn03_[ism-1] = 0;
803  if ( meaopn04_[ism-1] ) dqmStore_->removeElement( meaopn04_[ism-1]->getName() );
804  meaopn04_[ism-1] = 0;
805 
806  if ( mepnprms01_[ism-1] ) dqmStore_->removeElement( mepnprms01_[ism-1]->getName() );
807  mepnprms01_[ism-1] = 0;
808  if ( mepnprms02_[ism-1] ) dqmStore_->removeElement( mepnprms02_[ism-1]->getName() );
809  mepnprms02_[ism-1] = 0;
810  if ( mepnprms03_[ism-1] ) dqmStore_->removeElement( mepnprms03_[ism-1]->getName() );
811  mepnprms03_[ism-1] = 0;
812  if ( mepnprms04_[ism-1] ) dqmStore_->removeElement( mepnprms04_[ism-1]->getName() );
813  mepnprms04_[ism-1] = 0;
814  if ( mepnprms05_[ism-1] ) dqmStore_->removeElement( mepnprms05_[ism-1]->getName() );
815  mepnprms05_[ism-1] = 0;
816  if ( mepnprms06_[ism-1] ) dqmStore_->removeElement( mepnprms06_[ism-1]->getName() );
817  mepnprms06_[ism-1] = 0;
818  if ( mepnprms07_[ism-1] ) dqmStore_->removeElement( mepnprms07_[ism-1]->getName() );
819  mepnprms07_[ism-1] = 0;
820  if ( mepnprms08_[ism-1] ) dqmStore_->removeElement( mepnprms08_[ism-1]->getName() );
821  mepnprms08_[ism-1] = 0;
822 
823  if ( me_hs01_[ism-1] ) dqmStore_->removeElement( me_hs01_[ism-1]->getName() );
824  me_hs01_[ism-1] = 0;
825  if ( me_hs02_[ism-1] ) dqmStore_->removeElement( me_hs02_[ism-1]->getName() );
826  me_hs02_[ism-1] = 0;
827  if ( me_hs03_[ism-1] ) dqmStore_->removeElement( me_hs03_[ism-1]->getName() );
828  me_hs03_[ism-1] = 0;
829  if ( me_hs04_[ism-1] ) dqmStore_->removeElement( me_hs04_[ism-1]->getName() );
830  me_hs04_[ism-1] = 0;
831 
832  }
833 
834 }
MonitorElement * mea02_[36]
MonitorElement * metav02_[36]
MonitorElement * meg12_[36]
MonitorElement * me_hs03_[36]
int i
Definition: DBlmapReader.cc:9
MonitorElement * meg09_[36]
TProfile2D * h10_[36]
MonitorElement * mepnprms06_[36]
MonitorElement * meg07_[36]
MonitorElement * mepnprms01_[36]
TProfile * i09_[36]
MonitorElement * meg04_[36]
TProfile2D * h08_[36]
TProfile2D * hs03_[36]
MonitorElement * metav04_[36]
TProfile * i04_[36]
MonitorElement * met02_[36]
TProfile * i15_[36]
TProfile * i13_[36]
TProfile2D * h11_[36]
MonitorElement * metav01_[36]
MonitorElement * meg02_[36]
MonitorElement * mepnprms03_[36]
MonitorElement * mepnprms02_[36]
MonitorElement * mepnprms08_[36]
TProfile2D * h06_[36]
Definition: EBLaserClient.h:98
MonitorElement * me_hs02_[36]
TProfile2D * h07_[36]
Definition: EBLaserClient.h:99
MonitorElement * metrms01_[36]
MonitorElement * met04_[36]
TProfile * i01_[36]
TProfile2D * hs02_[36]
MonitorElement * meg06_[36]
MonitorElement * meg10_[36]
TProfile * i06_[36]
TProfile * i12_[36]
MonitorElement * metrms03_[36]
void removeElement(const std::string &name)
Definition: DQMStore.cc:2353
TProfile2D * h01_[36]
Definition: EBLaserClient.h:93
MonitorElement * metav03_[36]
std::string prefixME_
Definition: EBLaserClient.h:84
MonitorElement * mea04_[36]
std::string getName(Reflex::Type &cc)
Definition: ClassFiller.cc:18
MonitorElement * metrms02_[36]
TProfile2D * h03_[36]
Definition: EBLaserClient.h:95
MonitorElement * met03_[36]
TProfile * i02_[36]
TProfile2D * h05_[36]
Definition: EBLaserClient.h:97
MonitorElement * meg08_[36]
TProfile2D * h04_[36]
Definition: EBLaserClient.h:96
TProfile * i05_[36]
MonitorElement * mepnprms04_[36]
MonitorElement * meaopn04_[36]
MonitorElement * meaopn01_[36]
TProfile2D * hs01_[36]
std::vector< int > superModules_
Definition: EBLaserClient.h:88
MonitorElement * mepnprms07_[36]
MonitorElement * meg11_[36]
MonitorElement * mea01_[36]
MonitorElement * mea03_[36]
MonitorElement * meg05_[36]
TProfile * i08_[36]
MonitorElement * meg01_[36]
TProfile2D * hs04_[36]
TProfile2D * h12_[36]
TProfile2D * h09_[36]
TProfile * i07_[36]
MonitorElement * me_hs04_[36]
MonitorElement * metrms04_[36]
TProfile * i03_[36]
DQMStore * dqmStore_
Definition: EBLaserClient.h:91
MonitorElement * me_hs01_[36]
MonitorElement * meg03_[36]
MonitorElement * meaopn02_[36]
TProfile * i14_[36]
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
MonitorElement * meaopn03_[36]
TProfile * i16_[36]
TProfile * i10_[36]
TProfile2D * h02_[36]
Definition: EBLaserClient.h:94
MonitorElement * mepnprms05_[36]
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232
MonitorElement * met01_[36]
TProfile * i11_[36]
void EBLaserClient::endJob ( void  )
virtual

EndJob.

Implements EBClient.

Definition at line 230 of file EBLaserClient.cc.

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

230  {
231 
232  if ( debug_ ) std::cout << "EBLaserClient: endJob, ievt = " << ievt_ << std::endl;
233 
234  this->cleanup();
235 
236 }
void cleanup(void)
Cleanup.
tuple cout
Definition: gather_cfg.py:41
void EBLaserClient::endRun ( void  )
virtual

EndRun.

Implements EBClient.

Definition at line 238 of file EBLaserClient.cc.

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

238  {
239 
240  if ( debug_ ) std::cout << "EBLaserClient: endRun, jevt = " << jevt_ << std::endl;
241 
242  this->cleanup();
243 
244 }
void cleanup(void)
Cleanup.
tuple cout
Definition: gather_cfg.py:41
int EBLaserClient::getEvtPerJob ( void  )
inlinevirtual

Get Functions.

Implements EBClient.

Definition at line 71 of file EBLaserClient.h.

References ievt_.

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

Returns the number of processed events in this Run.

Implements EBClient.

Definition at line 72 of file EBLaserClient.h.

References jevt_.

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

Setup.

Implements EBClient.

Definition at line 246 of file EBLaserClient.cc.

References DQMStore::book1D(), DQMStore::book2D(), dqmStore_, spr::find(), edm::getName(), i, ecalpyutils::ism(), laserWavelengths_, me_hs01_, me_hs02_, me_hs03_, me_hs04_, mea01_, mea02_, mea03_, mea04_, meaopn01_, meaopn02_, meaopn03_, meaopn04_, meg01_, meg02_, meg03_, meg04_, meg05_, meg06_, meg07_, meg08_, meg09_, meg10_, meg11_, meg12_, mepnprms01_, mepnprms02_, mepnprms03_, mepnprms04_, mepnprms05_, mepnprms06_, mepnprms07_, mepnprms08_, met01_, met02_, met03_, met04_, metav01_, metav02_, metav03_, metav04_, metrms01_, metrms02_, metrms03_, metrms04_, mergeVDriftHistosByStation::name, prefixME_, DQMStore::removeElement(), MonitorElement::Reset(), Numbers::sEB(), MonitorElement::setAxisTitle(), MonitorElement::setBinContent(), DQMStore::setCurrentFolder(), and superModules_.

Referenced by beginRun().

246  {
247 
248  std::string name;
249 
250  dqmStore_->setCurrentFolder( prefixME_ + "/EBLaserClient" );
251 
252  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
253 
254  int ism = superModules_[i];
255 
256  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
257  if ( meg01_[ism-1] ) dqmStore_->removeElement( meg01_[ism-1]->getName() );
258  name = "EBLT laser quality L1 " + Numbers::sEB(ism);
259  meg01_[ism-1] = dqmStore_->book2D(name, name, 85, 0., 85., 20, 0., 20.);
260  meg01_[ism-1]->setAxisTitle("ieta", 1);
261  meg01_[ism-1]->setAxisTitle("iphi", 2);
262  }
263  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
264  if ( meg02_[ism-1] ) dqmStore_->removeElement( meg02_[ism-1]->getName() );
265  name = "EBLT laser quality L2 " + Numbers::sEB(ism);
266  meg02_[ism-1] = dqmStore_->book2D(name, name, 85, 0., 85., 20, 0., 20.);
267  meg02_[ism-1]->setAxisTitle("ieta", 1);
268  meg02_[ism-1]->setAxisTitle("iphi", 2);
269  }
270  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
271  if ( meg03_[ism-1] ) dqmStore_->removeElement( meg03_[ism-1]->getName() );
272  name = "EBLT laser quality L3 " + Numbers::sEB(ism);
273  meg03_[ism-1] = dqmStore_->book2D(name, name, 85, 0., 85., 20, 0., 20.);
274  meg03_[ism-1]->setAxisTitle("ieta", 1);
275  meg03_[ism-1]->setAxisTitle("iphi", 2);
276  }
277  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
278  if ( meg04_[ism-1] ) dqmStore_->removeElement( meg04_[ism-1]->getName() );
279  name = "EBLT laser quality L4 " + Numbers::sEB(ism);
280  meg04_[ism-1] = dqmStore_->book2D(name, name, 85, 0., 85., 20, 0., 20.);
281  meg04_[ism-1]->setAxisTitle("ieta", 1);
282  meg04_[ism-1]->setAxisTitle("iphi", 2);
283  }
284 
285  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
286  if ( meg05_[ism-1] ) dqmStore_->removeElement( meg05_[ism-1]->getName() );
287  name = "EBLT laser quality L1 PNs G01 " + Numbers::sEB(ism);
288  meg05_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.);
289  meg05_[ism-1]->setAxisTitle("pseudo-strip", 1);
290  meg05_[ism-1]->setAxisTitle("channel", 2);
291  }
292  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
293  if ( meg06_[ism-1] ) dqmStore_->removeElement( meg06_[ism-1]->getName() );
294  name = "EBLT laser quality L2 PNs G01 " + Numbers::sEB(ism);
295  meg06_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.);
296  meg06_[ism-1]->setAxisTitle("pseudo-strip", 1);
297  meg06_[ism-1]->setAxisTitle("channel", 2);
298  }
299  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
300  if ( meg07_[ism-1] ) dqmStore_->removeElement( meg07_[ism-1]->getName() );
301  name = "EBLT laser quality L3 PNs G01 " + Numbers::sEB(ism);
302  meg07_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.);
303  meg07_[ism-1]->setAxisTitle("pseudo-strip", 1);
304  meg07_[ism-1]->setAxisTitle("channel", 2);
305  }
306  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
307  if ( meg08_[ism-1] ) dqmStore_->removeElement( meg08_[ism-1]->getName() );
308  name = "EBLT laser quality L4 PNs G01 " + Numbers::sEB(ism);
309  meg08_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.);
310  meg08_[ism-1]->setAxisTitle("pseudo-strip", 1);
311  meg08_[ism-1]->setAxisTitle("channel", 2);
312  }
313  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
314  if ( meg09_[ism-1] ) dqmStore_->removeElement( meg09_[ism-1]->getName() );
315  name = "EBLT laser quality L1 PNs G16 " + Numbers::sEB(ism);
316  meg09_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.);
317  meg09_[ism-1]->setAxisTitle("pseudo-strip", 1);
318  meg09_[ism-1]->setAxisTitle("channel", 2);
319  }
320  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
321  if ( meg10_[ism-1] ) dqmStore_->removeElement( meg10_[ism-1]->getName() );
322  name = "EBLT laser quality L2 PNs G16 " + Numbers::sEB(ism);
323  meg10_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.);
324  meg10_[ism-1]->setAxisTitle("pseudo-strip", 1);
325  meg10_[ism-1]->setAxisTitle("channel", 2);
326  }
327  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
328  if ( meg11_[ism-1] ) dqmStore_->removeElement( meg11_[ism-1]->getName() );
329  name = "EBLT laser quality L3 PNs G16 " + Numbers::sEB(ism);
330  meg11_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.);
331  meg11_[ism-1]->setAxisTitle("pseudo-strip", 1);
332  meg11_[ism-1]->setAxisTitle("channel", 2);
333  }
334  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
335  if ( meg12_[ism-1] ) dqmStore_->removeElement( meg12_[ism-1]->getName() );
336  name = "EBLT laser quality L4 PNs G16 " + Numbers::sEB(ism);
337  meg12_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.);
338  meg12_[ism-1]->setAxisTitle("pseudo-strip", 1);
339  meg12_[ism-1]->setAxisTitle("channel", 2);
340  }
341 
342  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
343  if ( mea01_[ism-1] ) dqmStore_->removeElement( mea01_[ism-1]->getName() );;
344  name = "EBLT amplitude L1 " + Numbers::sEB(ism);
345  mea01_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
346  mea01_[ism-1]->setAxisTitle("channel", 1);
347  mea01_[ism-1]->setAxisTitle("amplitude", 2);
348  }
349  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
350  if ( mea02_[ism-1] ) dqmStore_->removeElement( mea02_[ism-1]->getName() );
351  name = "EBLT amplitude L2 " + Numbers::sEB(ism);
352  mea02_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
353  mea02_[ism-1]->setAxisTitle("channel", 1);
354  mea02_[ism-1]->setAxisTitle("amplitude", 2);
355  }
356  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
357  if ( mea03_[ism-1] ) dqmStore_->removeElement( mea03_[ism-1]->getName() );
358  name = "EBLT amplitude L3 " + Numbers::sEB(ism);
359  mea03_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
360  mea03_[ism-1]->setAxisTitle("channel", 1);
361  mea03_[ism-1]->setAxisTitle("amplitude", 2);
362  }
363  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
364  if ( mea04_[ism-1] ) dqmStore_->removeElement( mea04_[ism-1]->getName() );
365  name = "EBLT amplitude L4 " + Numbers::sEB(ism);
366  mea04_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
367  mea04_[ism-1]->setAxisTitle("channel", 1);
368  mea04_[ism-1]->setAxisTitle("amplitude", 2);
369  }
370 
371  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
372  if ( met01_[ism-1] ) dqmStore_->removeElement( met01_[ism-1]->getName() );
373  name = "EBLT laser timing L1 " + Numbers::sEB(ism);
374  met01_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
375  met01_[ism-1]->setAxisTitle("channel", 1);
376  met01_[ism-1]->setAxisTitle("jitter", 2);
377  }
378  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
379  if ( met02_[ism-1] ) dqmStore_->removeElement( met02_[ism-1]->getName() );
380  name = "EBLT laser timing L2 " + Numbers::sEB(ism);
381  met02_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
382  met02_[ism-1]->setAxisTitle("channel", 1);
383  met02_[ism-1]->setAxisTitle("jitter", 2);
384  }
385  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
386  if ( met03_[ism-1] ) dqmStore_->removeElement( met03_[ism-1]->getName() );
387  name = "EBLT laser timing L3 " + Numbers::sEB(ism);
388  met03_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
389  met03_[ism-1]->setAxisTitle("channel", 1);
390  met03_[ism-1]->setAxisTitle("jitter", 2);
391  }
392  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
393  if ( met04_[ism-1] ) dqmStore_->removeElement( met04_[ism-1]->getName() );
394  name = "EBLT laser timing L4 " + Numbers::sEB(ism);
395  met04_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
396  met04_[ism-1]->setAxisTitle("channel", 1);
397  met04_[ism-1]->setAxisTitle("jitter", 2);
398  }
399 
400  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
401  if ( metav01_[ism-1] ) dqmStore_->removeElement( metav01_[ism-1]->getName() );
402  name = "EBLT laser timing mean L1 " + Numbers::sEB(ism);
403  metav01_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
404  metav01_[ism-1]->setAxisTitle("mean", 1);
405  }
406  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
407  if ( metav02_[ism-1] ) dqmStore_->removeElement( metav02_[ism-1]->getName() );
408  name = "EBLT laser timing mean L2 " + Numbers::sEB(ism);
409  metav02_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
410  metav02_[ism-1]->setAxisTitle("mean", 1);
411  }
412  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
413  if ( metav03_[ism-1] ) dqmStore_->removeElement( metav03_[ism-1]->getName() );
414  name = "EBLT laser timing mean L3 " + Numbers::sEB(ism);
415  metav03_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
416  metav03_[ism-1]->setAxisTitle("mean", 1);
417  }
418  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
419  if ( metav04_[ism-1] ) dqmStore_->removeElement( metav04_[ism-1]->getName() );
420  name = "EBLT laser timing mean L4 " + Numbers::sEB(ism);
421  metav04_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
422  metav04_[ism-1]->setAxisTitle("mean", 1);
423  }
424 
425  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
426  if ( metrms01_[ism-1] ) dqmStore_->removeElement( metrms01_[ism-1]->getName() );
427  name = "EBLT laser timing rms L1 " + Numbers::sEB(ism);
428  metrms01_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 0.5);
429  metrms01_[ism-1]->setAxisTitle("rms", 1);
430  }
431  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
432  if ( metrms02_[ism-1] ) dqmStore_->removeElement( metrms02_[ism-1]->getName() );
433  name = "EBLT laser timing rms L2 " + Numbers::sEB(ism);
434  metrms02_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 0.5);
435  metrms02_[ism-1]->setAxisTitle("rms", 1);
436  }
437  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
438  if ( metrms03_[ism-1] ) dqmStore_->removeElement( metrms03_[ism-1]->getName() );
439  name = "EBLT laser timing rms L3 " + Numbers::sEB(ism);
440  metrms03_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 0.5);
441  metrms03_[ism-1]->setAxisTitle("rms", 1);
442  }
443  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
444  if ( metrms04_[ism-1] ) dqmStore_->removeElement( metrms04_[ism-1]->getName() );
445  name = "EBLT laser timing rms L4 " + Numbers::sEB(ism);
446  metrms04_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 0.5);
447  metrms04_[ism-1]->setAxisTitle("rms", 1);
448  }
449 
450  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
451  if ( meaopn01_[ism-1] ) dqmStore_->removeElement( meaopn01_[ism-1]->getName() );
452  name = "EBLT amplitude over PN L1 " + Numbers::sEB(ism);
453  meaopn01_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
454  meaopn01_[ism-1]->setAxisTitle("channel", 1);
455  meaopn01_[ism-1]->setAxisTitle("amplitude/PN", 2);
456  }
457  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
458  if ( meaopn02_[ism-1] ) dqmStore_->removeElement( meaopn02_[ism-1]->getName() );
459  name = "EBLT amplitude over PN L2 " + Numbers::sEB(ism);
460  meaopn02_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
461  meaopn02_[ism-1]->setAxisTitle("channel", 1);
462  meaopn02_[ism-1]->setAxisTitle("amplitude/PN", 2);
463  }
464  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
465  if ( meaopn03_[ism-1] ) dqmStore_->removeElement( meaopn03_[ism-1]->getName() );
466  name = "EBLT amplitude over PN L3 " + Numbers::sEB(ism);
467  meaopn03_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
468  meaopn03_[ism-1]->setAxisTitle("channel", 1);
469  meaopn03_[ism-1]->setAxisTitle("amplitude/PN", 2);
470  }
471  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
472  if ( meaopn04_[ism-1] ) dqmStore_->removeElement( meaopn04_[ism-1]->getName() );
473  name = "EBLT amplitude over PN L4 " + Numbers::sEB(ism);
474  meaopn04_[ism-1] = dqmStore_->book1D(name, name, 1700, 0., 1700.);
475  meaopn04_[ism-1]->setAxisTitle("channel", 1);
476  meaopn04_[ism-1]->setAxisTitle("amplitude/PN", 2);
477  }
478 
479  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
480  if ( mepnprms01_[ism-1] ) dqmStore_->removeElement( mepnprms01_[ism-1]->getName() );
481  name = "EBLT PNs pedestal rms " + Numbers::sEB(ism) + " G01 L1";
482  mepnprms01_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
483  mepnprms01_[ism-1]->setAxisTitle("rms", 1);
484  }
485  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
486  if ( mepnprms02_[ism-1] ) dqmStore_->removeElement( mepnprms02_[ism-1]->getName() );
487  name = "EBLT PNs pedestal rms " + Numbers::sEB(ism) + " G01 L2";
488  mepnprms02_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
489  mepnprms02_[ism-1]->setAxisTitle("rms", 1);
490  }
491  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
492  if ( mepnprms03_[ism-1] ) dqmStore_->removeElement( mepnprms03_[ism-1]->getName() );
493  name = "EBLT PNs pedestal rms " + Numbers::sEB(ism) + " G01 L3";
494  mepnprms03_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
495  mepnprms03_[ism-1]->setAxisTitle("rms", 1);
496  }
497  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
498  if ( mepnprms04_[ism-1] ) dqmStore_->removeElement( mepnprms04_[ism-1]->getName() );
499  name = "EBLT PNs pedestal rms " + Numbers::sEB(ism) + " G01 L4";
500  mepnprms04_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
501  mepnprms04_[ism-1]->setAxisTitle("rms", 1);
502  }
503  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
504  if ( mepnprms05_[ism-1] ) dqmStore_->removeElement( mepnprms05_[ism-1]->getName() );
505  name = "EBLT PNs pedestal rms " + Numbers::sEB(ism) + " G16 L1";
506  mepnprms05_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
507  mepnprms05_[ism-1]->setAxisTitle("rms", 1);
508  }
509  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
510  if ( mepnprms06_[ism-1] ) dqmStore_->removeElement( mepnprms06_[ism-1]->getName() );
511  name = "EBLT PNs pedestal rms " + Numbers::sEB(ism) + " G16 L2";
512  mepnprms06_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
513  mepnprms06_[ism-1]->setAxisTitle("rms", 1);
514  }
515  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
516  if ( mepnprms07_[ism-1] ) dqmStore_->removeElement( mepnprms07_[ism-1]->getName() );
517  name = "EBLT PNs pedestal rms " + Numbers::sEB(ism) + " G16 L3";
518  mepnprms07_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
519  mepnprms07_[ism-1]->setAxisTitle("rms", 1);
520  }
521  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
522  if ( mepnprms08_[ism-1] ) dqmStore_->removeElement( mepnprms08_[ism-1]->getName() );
523  name = "EBLT PNs pedestal rms " + Numbers::sEB(ism) + " G16 L4";
524  mepnprms08_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.);
525  mepnprms08_[ism-1]->setAxisTitle("rms", 1);
526  }
527  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 1) != laserWavelengths_.end() ) {
528  if ( me_hs01_[ism-1] ) dqmStore_->removeElement( me_hs01_[ism-1]->getName() );
529  name = "EBLT laser shape L1 " + Numbers::sEB(ism);
530  me_hs01_[ism-1] = dqmStore_->book1D(name, name, 10, 0., 10.);
531  me_hs01_[ism-1]->setAxisTitle("sample", 1);
532  me_hs01_[ism-1]->setAxisTitle("amplitude", 2);
533  }
534  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 2) != laserWavelengths_.end() ) {
535  if ( me_hs02_[ism-1] ) dqmStore_->removeElement( me_hs02_[ism-1]->getName() );
536  name = "EBLT laser shape L2 " + Numbers::sEB(ism);
537  me_hs02_[ism-1] = dqmStore_->book1D(name, name, 10, 0., 10.);
538  me_hs02_[ism-1]->setAxisTitle("sample", 1);
539  me_hs02_[ism-1]->setAxisTitle("amplitude", 2);
540  }
541  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 3) != laserWavelengths_.end() ) {
542  if ( me_hs03_[ism-1] ) dqmStore_->removeElement( me_hs03_[ism-1]->getName() );
543  name = "EBLT laser shape L3 " + Numbers::sEB(ism);
544  me_hs03_[ism-1] = dqmStore_->book1D(name, name, 10, 0., 10.);
545  me_hs03_[ism-1]->setAxisTitle("sample", 1);
546  me_hs03_[ism-1]->setAxisTitle("amplitude", 2);
547  }
548  if ( find(laserWavelengths_.begin(), laserWavelengths_.end(), 4) != laserWavelengths_.end() ) {
549  if ( me_hs04_[ism-1] ) dqmStore_->removeElement( me_hs04_[ism-1]->getName() );
550  name = "EBLT laser shape L4 " + Numbers::sEB(ism);
551  me_hs04_[ism-1] = dqmStore_->book1D(name, name, 10, 0., 10.);
552  me_hs04_[ism-1]->setAxisTitle("sample", 1);
553  me_hs04_[ism-1]->setAxisTitle("amplitude", 2);
554  }
555 
556  }
557 
558  for ( unsigned int i=0; i<superModules_.size(); i++ ) {
559 
560  int ism = superModules_[i];
561 
562  if ( meg01_[ism-1] ) meg01_[ism-1]->Reset();
563  if ( meg02_[ism-1] ) meg02_[ism-1]->Reset();
564  if ( meg03_[ism-1] ) meg03_[ism-1]->Reset();
565  if ( meg04_[ism-1] ) meg04_[ism-1]->Reset();
566 
567  if ( meg05_[ism-1] ) meg05_[ism-1]->Reset();
568  if ( meg06_[ism-1] ) meg06_[ism-1]->Reset();
569  if ( meg07_[ism-1] ) meg07_[ism-1]->Reset();
570  if ( meg08_[ism-1] ) meg08_[ism-1]->Reset();
571  if ( meg09_[ism-1] ) meg09_[ism-1]->Reset();
572  if ( meg10_[ism-1] ) meg10_[ism-1]->Reset();
573  if ( meg11_[ism-1] ) meg11_[ism-1]->Reset();
574  if ( meg12_[ism-1] ) meg12_[ism-1]->Reset();
575 
576  for ( int ie = 1; ie <= 85; ie++ ) {
577  for ( int ip = 1; ip <= 20; ip++ ) {
578 
579  if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ie, ip, 2. );
580  if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ie, ip, 2. );
581  if ( meg03_[ism-1] ) meg03_[ism-1]->setBinContent( ie, ip, 2. );
582  if ( meg04_[ism-1] ) meg04_[ism-1]->setBinContent( ie, ip, 2. );
583 
584  }
585  }
586 
587  for ( int i = 1; i <= 10; i++ ) {
588 
589  if ( meg05_[ism-1] ) meg05_[ism-1]->setBinContent( i, 1, 2. );
590  if ( meg06_[ism-1] ) meg06_[ism-1]->setBinContent( i, 1, 2. );
591  if ( meg07_[ism-1] ) meg07_[ism-1]->setBinContent( i, 1, 2. );
592  if ( meg08_[ism-1] ) meg08_[ism-1]->setBinContent( i, 1, 2. );
593  if ( meg09_[ism-1] ) meg09_[ism-1]->setBinContent( i, 1, 2. );
594  if ( meg10_[ism-1] ) meg10_[ism-1]->setBinContent( i, 1, 2. );
595  if ( meg11_[ism-1] ) meg11_[ism-1]->setBinContent( i, 1, 2. );
596  if ( meg12_[ism-1] ) meg12_[ism-1]->setBinContent( i, 1, 2. );
597 
598  }
599 
600  if ( mea01_[ism-1] ) mea01_[ism-1]->Reset();
601  if ( mea02_[ism-1] ) mea02_[ism-1]->Reset();
602  if ( mea03_[ism-1] ) mea03_[ism-1]->Reset();
603  if ( mea04_[ism-1] ) mea04_[ism-1]->Reset();
604 
605  if ( met01_[ism-1] ) met01_[ism-1]->Reset();
606  if ( met02_[ism-1] ) met02_[ism-1]->Reset();
607  if ( met03_[ism-1] ) met03_[ism-1]->Reset();
608  if ( met04_[ism-1] ) met04_[ism-1]->Reset();
609 
610  if ( metav01_[ism-1] ) metav01_[ism-1]->Reset();
611  if ( metav02_[ism-1] ) metav02_[ism-1]->Reset();
612  if ( metav03_[ism-1] ) metav03_[ism-1]->Reset();
613  if ( metav04_[ism-1] ) metav04_[ism-1]->Reset();
614 
615  if ( metrms01_[ism-1] ) metrms01_[ism-1]->Reset();
616  if ( metrms02_[ism-1] ) metrms02_[ism-1]->Reset();
617  if ( metrms03_[ism-1] ) metrms03_[ism-1]->Reset();
618  if ( metrms04_[ism-1] ) metrms04_[ism-1]->Reset();
619 
620  if ( meaopn01_[ism-1] ) meaopn01_[ism-1]->Reset();
621  if ( meaopn02_[ism-1] ) meaopn02_[ism-1]->Reset();
622  if ( meaopn03_[ism-1] ) meaopn03_[ism-1]->Reset();
623  if ( meaopn04_[ism-1] ) meaopn04_[ism-1]->Reset();
624 
625  if ( mepnprms01_[ism-1] ) mepnprms01_[ism-1]->Reset();
626  if ( mepnprms02_[ism-1] ) mepnprms02_[ism-1]->Reset();
627  if ( mepnprms03_[ism-1] ) mepnprms03_[ism-1]->Reset();
628  if ( mepnprms04_[ism-1] ) mepnprms04_[ism-1]->Reset();
629  if ( mepnprms05_[ism-1] ) mepnprms01_[ism-1]->Reset();
630  if ( mepnprms06_[ism-1] ) mepnprms02_[ism-1]->Reset();
631  if ( mepnprms07_[ism-1] ) mepnprms03_[ism-1]->Reset();
632  if ( mepnprms08_[ism-1] ) mepnprms04_[ism-1]->Reset();
633 
634  if ( me_hs01_[ism-1] ) me_hs01_[ism-1]->Reset();
635  if ( me_hs02_[ism-1] ) me_hs02_[ism-1]->Reset();
636  if ( me_hs03_[ism-1] ) me_hs03_[ism-1]->Reset();
637  if ( me_hs04_[ism-1] ) me_hs04_[ism-1]->Reset();
638 
639  }
640 
641 }
MonitorElement * mea02_[36]
MonitorElement * metav02_[36]
MonitorElement * meg12_[36]
MonitorElement * me_hs03_[36]
int i
Definition: DBlmapReader.cc:9
MonitorElement * meg09_[36]
void setBinContent(int binx, double content)
set content of bin (1-D)
static std::string sEB(const int ism)
Definition: Numbers.cc:87
MonitorElement * mepnprms06_[36]
MonitorElement * meg07_[36]
MonitorElement * mepnprms01_[36]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
MonitorElement * meg04_[36]
MonitorElement * metav04_[36]
MonitorElement * met02_[36]
MonitorElement * metav01_[36]
MonitorElement * meg02_[36]
MonitorElement * mepnprms03_[36]
MonitorElement * mepnprms02_[36]
MonitorElement * mepnprms08_[36]
MonitorElement * me_hs02_[36]
std::vector< int > laserWavelengths_
Definition: EBLaserClient.h:89
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
MonitorElement * metrms01_[36]
MonitorElement * met04_[36]
MonitorElement * meg06_[36]
MonitorElement * meg10_[36]
MonitorElement * metrms03_[36]
void removeElement(const std::string &name)
Definition: DQMStore.cc:2353
MonitorElement * metav03_[36]
std::string prefixME_
Definition: EBLaserClient.h:84
MonitorElement * mea04_[36]
std::string getName(Reflex::Type &cc)
Definition: ClassFiller.cc:18
MonitorElement * metrms02_[36]
MonitorElement * met03_[36]
MonitorElement * meg08_[36]
MonitorElement * mepnprms04_[36]
MonitorElement * meaopn04_[36]
MonitorElement * meaopn01_[36]
std::vector< int > superModules_
Definition: EBLaserClient.h:88
MonitorElement * mepnprms07_[36]
MonitorElement * meg11_[36]
MonitorElement * mea01_[36]
MonitorElement * mea03_[36]
MonitorElement * meg05_[36]
MonitorElement * meg01_[36]
MonitorElement * me_hs04_[36]
MonitorElement * metrms04_[36]
DQMStore * dqmStore_
Definition: EBLaserClient.h:91
MonitorElement * me_hs01_[36]
MonitorElement * meg03_[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:642
MonitorElement * meaopn02_[36]
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
MonitorElement * meaopn03_[36]
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 * mepnprms05_[36]
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232
MonitorElement * met01_[36]

Friends And Related Function Documentation

friend class EBSummaryClient
friend

Definition at line 34 of file EBLaserClient.h.

Member Data Documentation

float EBLaserClient::amplitudeThreshold_
private

Definition at line 189 of file EBLaserClient.h.

Referenced by EBLaserClient().

float EBLaserClient::amplitudeThresholdPnG01_
private

Definition at line 194 of file EBLaserClient.h.

Referenced by analyze(), and EBLaserClient().

float EBLaserClient::amplitudeThresholdPnG16_
private

Definition at line 195 of file EBLaserClient.h.

Referenced by analyze(), and EBLaserClient().

bool EBLaserClient::cloneME_
private

Definition at line 79 of file EBLaserClient.h.

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

bool EBLaserClient::debug_
private

Definition at line 82 of file EBLaserClient.h.

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

DQMStore* EBLaserClient::dqmStore_
private

Definition at line 91 of file EBLaserClient.h.

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

bool EBLaserClient::enableCleanup_
private

Definition at line 86 of file EBLaserClient.h.

Referenced by cleanup(), and EBLaserClient().

TProfile2D* EBLaserClient::h01_[36]
private

Definition at line 93 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h02_[36]
private

Definition at line 94 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h03_[36]
private

Definition at line 95 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h04_[36]
private

Definition at line 96 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h05_[36]
private

Definition at line 97 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h06_[36]
private

Definition at line 98 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h07_[36]
private

Definition at line 99 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h08_[36]
private

Definition at line 100 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h09_[36]
private

Definition at line 102 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h10_[36]
private

Definition at line 103 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h11_[36]
private

Definition at line 104 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::h12_[36]
private

Definition at line 105 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::hs01_[36]
private

Definition at line 107 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::hs02_[36]
private

Definition at line 108 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::hs03_[36]
private

Definition at line 109 of file EBLaserClient.h.

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

TProfile2D* EBLaserClient::hs04_[36]
private

Definition at line 110 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i01_[36]
private

Definition at line 169 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i02_[36]
private

Definition at line 170 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i03_[36]
private

Definition at line 171 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i04_[36]
private

Definition at line 172 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i05_[36]
private

Definition at line 173 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i06_[36]
private

Definition at line 174 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i07_[36]
private

Definition at line 175 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i08_[36]
private

Definition at line 176 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i09_[36]
private

Definition at line 177 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i10_[36]
private

Definition at line 178 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i11_[36]
private

Definition at line 179 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i12_[36]
private

Definition at line 180 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i13_[36]
private

Definition at line 181 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i14_[36]
private

Definition at line 182 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i15_[36]
private

Definition at line 183 of file EBLaserClient.h.

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

TProfile* EBLaserClient::i16_[36]
private

Definition at line 184 of file EBLaserClient.h.

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

int EBLaserClient::ievt_
private

Definition at line 76 of file EBLaserClient.h.

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

int EBLaserClient::jevt_
private

Definition at line 77 of file EBLaserClient.h.

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

std::vector<int> EBLaserClient::laserWavelengths_
private

Definition at line 89 of file EBLaserClient.h.

Referenced by analyze(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::me_hs01_[36]
private

Definition at line 160 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::me_hs02_[36]
private

Definition at line 161 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::me_hs03_[36]
private

Definition at line 162 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::me_hs04_[36]
private

Definition at line 163 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::me_hs05_[36]
private

Definition at line 164 of file EBLaserClient.h.

MonitorElement* EBLaserClient::me_hs06_[36]
private

Definition at line 165 of file EBLaserClient.h.

MonitorElement* EBLaserClient::me_hs07_[36]
private

Definition at line 166 of file EBLaserClient.h.

MonitorElement* EBLaserClient::me_hs08_[36]
private

Definition at line 167 of file EBLaserClient.h.

MonitorElement* EBLaserClient::mea01_[36]
private

Definition at line 126 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::mea02_[36]
private

Definition at line 127 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::mea03_[36]
private

Definition at line 128 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::mea04_[36]
private

Definition at line 129 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meaopn01_[36]
private

Definition at line 146 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meaopn02_[36]
private

Definition at line 147 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meaopn03_[36]
private

Definition at line 148 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meaopn04_[36]
private

Definition at line 149 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meg01_[36]
private

Definition at line 112 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meg02_[36]
private

Definition at line 113 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meg03_[36]
private

Definition at line 114 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meg04_[36]
private

Definition at line 115 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meg05_[36]
private

Definition at line 117 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::meg06_[36]
private

Definition at line 118 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::meg07_[36]
private

Definition at line 119 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::meg08_[36]
private

Definition at line 120 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::meg09_[36]
private

Definition at line 121 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meg10_[36]
private

Definition at line 122 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meg11_[36]
private

Definition at line 123 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::meg12_[36]
private

Definition at line 124 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::mepnprms01_[36]
private

Definition at line 151 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::mepnprms02_[36]
private

Definition at line 152 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::mepnprms03_[36]
private

Definition at line 153 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::mepnprms04_[36]
private

Definition at line 154 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::mepnprms05_[36]
private

Definition at line 155 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::mepnprms06_[36]
private

Definition at line 156 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::mepnprms07_[36]
private

Definition at line 157 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::mepnprms08_[36]
private

Definition at line 158 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::met01_[36]
private

Definition at line 131 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::met02_[36]
private

Definition at line 132 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::met03_[36]
private

Definition at line 133 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::met04_[36]
private

Definition at line 134 of file EBLaserClient.h.

Referenced by EBSummaryClient::analyze(), analyze(), cleanup(), EBLaserClient(), and setup().

MonitorElement* EBLaserClient::metav01_[36]
private

Definition at line 136 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::metav02_[36]
private

Definition at line 137 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::metav03_[36]
private

Definition at line 138 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::metav04_[36]
private

Definition at line 139 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::metrms01_[36]
private

Definition at line 141 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::metrms02_[36]
private

Definition at line 142 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::metrms03_[36]
private

Definition at line 143 of file EBLaserClient.h.

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

MonitorElement* EBLaserClient::metrms04_[36]
private

Definition at line 144 of file EBLaserClient.h.

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

float EBLaserClient::pedPnDiscrepancyMean_[2]
private

Definition at line 197 of file EBLaserClient.h.

Referenced by analyze(), and EBLaserClient().

float EBLaserClient::pedPnExpectedMean_[2]
private

Definition at line 196 of file EBLaserClient.h.

Referenced by analyze(), and EBLaserClient().

float EBLaserClient::pedPnRMSThreshold_[2]
private

Definition at line 198 of file EBLaserClient.h.

Referenced by analyze(), and EBLaserClient().

float EBLaserClient::percentVariation_
private

Definition at line 188 of file EBLaserClient.h.

Referenced by analyze(), and EBLaserClient().

std::string EBLaserClient::prefixME_
private

Definition at line 84 of file EBLaserClient.h.

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

float EBLaserClient::rmsThresholdRelative_
private

Definition at line 190 of file EBLaserClient.h.

Referenced by analyze(), and EBLaserClient().

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

Definition at line 88 of file EBLaserClient.h.

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

bool EBLaserClient::verbose_
private

Definition at line 81 of file EBLaserClient.h.

Referenced by EBLaserClient().