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 48 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_.

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

204  {
205 
206 }

Member Function Documentation

void EBLaserClient::analyze ( void  )
virtual

Analyze.

Implements EBClient.

Definition at line 1523 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_, trackerHits::histo, 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_.

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

BeginJob.

Implements EBClient.

Definition at line 208 of file EBLaserClient.cc.

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

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

BeginRun.

Implements EBClient.

Definition at line 219 of file EBLaserClient.cc.

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

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

Cleanup.

Implements EBClient.

Definition at line 642 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().

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

EndJob.

Implements EBClient.

Definition at line 229 of file EBLaserClient.cc.

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

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

EndRun.

Implements EBClient.

Definition at line 237 of file EBLaserClient.cc.

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

237  {
238 
239  if ( debug_ ) std::cout << "EBLaserClient: endRun, jevt = " << jevt_ << std::endl;
240 
241  this->cleanup();
242 
243 }
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 245 of file EBLaserClient.cc.

References DQMStore::book1D(), DQMStore::book2D(), dqmStore_, spr::find(), edm::getName(), trackerHits::histo, 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_, prefixME_, DQMStore::removeElement(), MonitorElement::Reset(), Numbers::sEB(), MonitorElement::setAxisTitle(), MonitorElement::setBinContent(), DQMStore::setCurrentFolder(), and superModules_.

Referenced by beginRun().

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