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
EELaserClient Class Reference

#include <EELaserClient.h>

Inheritance diagram for EELaserClient:
EEClient

Public Member Functions

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

Private Attributes

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

Friends

class EESummaryClient
 

Detailed Description

Definition at line 30 of file EELaserClient.h.

Constructor & Destructor Documentation

EELaserClient::EELaserClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 49 of file EELaserClient.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_, AlCaHLTBitMon_QueryRunRegistry::string, superModules_, and verbose_.

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

Destructor.

Definition at line 205 of file EELaserClient.cc.

205  {
206 
207 }

Member Function Documentation

void EELaserClient::analyze ( void  )
virtual

Analyze.

Implements EEClient.

Definition at line 1583 of file EELaserClient.cc.

References funct::abs(), amplitudeThresholdPnG01_, amplitudeThresholdPnG16_, cloneME_, gather_cfg::cout, debug_, dqmStore_, EcalEndcap, MonitorElement::Fill(), spr::find(), DQMStore::get(), UtilsClient::getBinStatistics(), UtilsClient::getFirstNonEmptyChannel(), UtilsClient::getHisto(), h01_, h02_, h03_, h04_, h05_, h06_, h07_, h08_, h09_, h10_, h11_, h12_, hs01_, hs02_, hs03_, hs04_, i, i01_, i02_, i03_, i04_, i05_, i06_, i07_, i08_, i09_, i10_, i11_, i12_, i13_, i14_, i15_, i16_, Numbers::icEE(), ievt_, Numbers::ix0EE(), Numbers::iy0EE(), 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::sEE(), MonitorElement::setBinContent(), MonitorElement::setBinError(), MonitorElement::setEntries(), superModules_, and Numbers::validEE().

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

BeginJob.

Implements EEClient.

Definition at line 209 of file EELaserClient.cc.

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

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

BeginRun.

Implements EEClient.

Definition at line 220 of file EELaserClient.cc.

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

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

Cleanup.

Implements EEClient.

Definition at line 672 of file EELaserClient.cc.

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

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

EndJob.

Implements EEClient.

Definition at line 230 of file EELaserClient.cc.

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

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

EndRun.

Implements EEClient.

Definition at line 238 of file EELaserClient.cc.

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

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

Get Functions.

Implements EEClient.

Definition at line 69 of file EELaserClient.h.

References ievt_.

69 { return ievt_; }
int EELaserClient::getEvtPerRun ( void  )
inlinevirtual

Returns the number of processed events in this Run.

Implements EEClient.

Definition at line 70 of file EELaserClient.h.

References jevt_.

70 { return jevt_; }
void EELaserClient::setup ( void  )
virtual

Setup.

Implements EEClient.

Definition at line 246 of file EELaserClient.cc.

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

Referenced by beginRun().

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

Friends And Related Function Documentation

friend class EESummaryClient
friend

Definition at line 32 of file EELaserClient.h.

Member Data Documentation

float EELaserClient::amplitudeThreshold_
private

Definition at line 183 of file EELaserClient.h.

Referenced by EELaserClient().

float EELaserClient::amplitudeThresholdPnG01_
private

Definition at line 188 of file EELaserClient.h.

Referenced by analyze(), and EELaserClient().

float EELaserClient::amplitudeThresholdPnG16_
private

Definition at line 189 of file EELaserClient.h.

Referenced by analyze(), and EELaserClient().

bool EELaserClient::cloneME_
private

Definition at line 77 of file EELaserClient.h.

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

bool EELaserClient::debug_
private

Definition at line 80 of file EELaserClient.h.

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

DQMStore* EELaserClient::dqmStore_
private

Definition at line 89 of file EELaserClient.h.

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

bool EELaserClient::enableCleanup_
private

Definition at line 84 of file EELaserClient.h.

Referenced by cleanup(), and EELaserClient().

TProfile2D* EELaserClient::h01_[18]
private

Definition at line 91 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h02_[18]
private

Definition at line 92 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h03_[18]
private

Definition at line 93 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h04_[18]
private

Definition at line 94 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h05_[18]
private

Definition at line 95 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h06_[18]
private

Definition at line 96 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h07_[18]
private

Definition at line 97 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h08_[18]
private

Definition at line 98 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h09_[18]
private

Definition at line 100 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h10_[18]
private

Definition at line 101 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h11_[18]
private

Definition at line 102 of file EELaserClient.h.

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

TProfile2D* EELaserClient::h12_[18]
private

Definition at line 103 of file EELaserClient.h.

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

TProfile2D* EELaserClient::hs01_[18]
private

Definition at line 105 of file EELaserClient.h.

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

TProfile2D* EELaserClient::hs02_[18]
private

Definition at line 106 of file EELaserClient.h.

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

TProfile2D* EELaserClient::hs03_[18]
private

Definition at line 107 of file EELaserClient.h.

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

TProfile2D* EELaserClient::hs04_[18]
private

Definition at line 108 of file EELaserClient.h.

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

TProfile* EELaserClient::i01_[18]
private

Definition at line 163 of file EELaserClient.h.

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

TProfile* EELaserClient::i02_[18]
private

Definition at line 164 of file EELaserClient.h.

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

TProfile* EELaserClient::i03_[18]
private

Definition at line 165 of file EELaserClient.h.

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

TProfile* EELaserClient::i04_[18]
private

Definition at line 166 of file EELaserClient.h.

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

TProfile* EELaserClient::i05_[18]
private

Definition at line 167 of file EELaserClient.h.

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

TProfile* EELaserClient::i06_[18]
private

Definition at line 168 of file EELaserClient.h.

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

TProfile* EELaserClient::i07_[18]
private

Definition at line 169 of file EELaserClient.h.

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

TProfile* EELaserClient::i08_[18]
private

Definition at line 170 of file EELaserClient.h.

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

TProfile* EELaserClient::i09_[18]
private

Definition at line 171 of file EELaserClient.h.

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

TProfile* EELaserClient::i10_[18]
private

Definition at line 172 of file EELaserClient.h.

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

TProfile* EELaserClient::i11_[18]
private

Definition at line 173 of file EELaserClient.h.

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

TProfile* EELaserClient::i12_[18]
private

Definition at line 174 of file EELaserClient.h.

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

TProfile* EELaserClient::i13_[18]
private

Definition at line 175 of file EELaserClient.h.

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

TProfile* EELaserClient::i14_[18]
private

Definition at line 176 of file EELaserClient.h.

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

TProfile* EELaserClient::i15_[18]
private

Definition at line 177 of file EELaserClient.h.

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

TProfile* EELaserClient::i16_[18]
private

Definition at line 178 of file EELaserClient.h.

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

int EELaserClient::ievt_
private

Definition at line 74 of file EELaserClient.h.

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

int EELaserClient::jevt_
private

Definition at line 75 of file EELaserClient.h.

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

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

Definition at line 87 of file EELaserClient.h.

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

MonitorElement* EELaserClient::me_hs01_[18]
private

Definition at line 158 of file EELaserClient.h.

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

MonitorElement* EELaserClient::me_hs02_[18]
private

Definition at line 159 of file EELaserClient.h.

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

MonitorElement* EELaserClient::me_hs03_[18]
private

Definition at line 160 of file EELaserClient.h.

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

MonitorElement* EELaserClient::me_hs04_[18]
private

Definition at line 161 of file EELaserClient.h.

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

MonitorElement* EELaserClient::mea01_[18]
private

Definition at line 124 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::mea02_[18]
private

Definition at line 125 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::mea03_[18]
private

Definition at line 126 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::mea04_[18]
private

Definition at line 127 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meaopn01_[18]
private

Definition at line 144 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meaopn02_[18]
private

Definition at line 145 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meaopn03_[18]
private

Definition at line 146 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meaopn04_[18]
private

Definition at line 147 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meg01_[18]
private

Definition at line 110 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meg02_[18]
private

Definition at line 111 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meg03_[18]
private

Definition at line 112 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meg04_[18]
private

Definition at line 113 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meg05_[18]
private

Definition at line 115 of file EELaserClient.h.

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

MonitorElement* EELaserClient::meg06_[18]
private

Definition at line 116 of file EELaserClient.h.

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

MonitorElement* EELaserClient::meg07_[18]
private

Definition at line 117 of file EELaserClient.h.

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

MonitorElement* EELaserClient::meg08_[18]
private

Definition at line 118 of file EELaserClient.h.

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

MonitorElement* EELaserClient::meg09_[18]
private

Definition at line 119 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meg10_[18]
private

Definition at line 120 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meg11_[18]
private

Definition at line 121 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::meg12_[18]
private

Definition at line 122 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::mepnprms01_[18]
private

Definition at line 149 of file EELaserClient.h.

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

MonitorElement* EELaserClient::mepnprms02_[18]
private

Definition at line 150 of file EELaserClient.h.

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

MonitorElement* EELaserClient::mepnprms03_[18]
private

Definition at line 151 of file EELaserClient.h.

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

MonitorElement* EELaserClient::mepnprms04_[18]
private

Definition at line 152 of file EELaserClient.h.

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

MonitorElement* EELaserClient::mepnprms05_[18]
private

Definition at line 153 of file EELaserClient.h.

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

MonitorElement* EELaserClient::mepnprms06_[18]
private

Definition at line 154 of file EELaserClient.h.

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

MonitorElement* EELaserClient::mepnprms07_[18]
private

Definition at line 155 of file EELaserClient.h.

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

MonitorElement* EELaserClient::mepnprms08_[18]
private

Definition at line 156 of file EELaserClient.h.

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

MonitorElement* EELaserClient::met01_[18]
private

Definition at line 129 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::met02_[18]
private

Definition at line 130 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::met03_[18]
private

Definition at line 131 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::met04_[18]
private

Definition at line 132 of file EELaserClient.h.

Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELaserClient(), and setup().

MonitorElement* EELaserClient::metav01_[18]
private

Definition at line 134 of file EELaserClient.h.

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

MonitorElement* EELaserClient::metav02_[18]
private

Definition at line 135 of file EELaserClient.h.

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

MonitorElement* EELaserClient::metav03_[18]
private

Definition at line 136 of file EELaserClient.h.

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

MonitorElement* EELaserClient::metav04_[18]
private

Definition at line 137 of file EELaserClient.h.

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

MonitorElement* EELaserClient::metrms01_[18]
private

Definition at line 139 of file EELaserClient.h.

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

MonitorElement* EELaserClient::metrms02_[18]
private

Definition at line 140 of file EELaserClient.h.

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

MonitorElement* EELaserClient::metrms03_[18]
private

Definition at line 141 of file EELaserClient.h.

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

MonitorElement* EELaserClient::metrms04_[18]
private

Definition at line 142 of file EELaserClient.h.

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

float EELaserClient::pedPnDiscrepancyMean_[2]
private

Definition at line 191 of file EELaserClient.h.

Referenced by analyze(), and EELaserClient().

float EELaserClient::pedPnExpectedMean_[2]
private

Definition at line 190 of file EELaserClient.h.

Referenced by analyze(), and EELaserClient().

float EELaserClient::pedPnRMSThreshold_[2]
private

Definition at line 192 of file EELaserClient.h.

Referenced by analyze(), and EELaserClient().

float EELaserClient::percentVariation_
private

Definition at line 182 of file EELaserClient.h.

Referenced by analyze(), and EELaserClient().

std::string EELaserClient::prefixME_
private

Definition at line 82 of file EELaserClient.h.

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

float EELaserClient::rmsThresholdRelative_
private

Definition at line 184 of file EELaserClient.h.

Referenced by analyze(), and EELaserClient().

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

Definition at line 86 of file EELaserClient.h.

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

bool EELaserClient::verbose_
private

Definition at line 79 of file EELaserClient.h.

Referenced by EELaserClient().