CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
ecaldqm::LedTask Class Reference

#include <LedTask.h>

Inheritance diagram for ecaldqm::LedTask:
ecaldqm::DQWorkerTask ecaldqm::DQWorker

Public Types

enum  Constants { nWL = 2, nPNGain = 2 }
 
enum  MESets {
  kAmplitudeSummary, kAmplitude = kAmplitudeSummary + nWL, kOccupancy = kAmplitude + nWL, kShape = kOccupancy + nWL,
  kTiming = kShape + nWL, kAOverP = kTiming + nWL, kPNAmplitude = kAOverP + nWL, kPNOccupancy = kPNAmplitude + nWL * nPNGain,
  nMESets
}
 
- Public Types inherited from ecaldqm::DQWorker
enum  MESets { nMESets }
 

Public Member Functions

void analyze (const void *, Collections)
 
void beginRun (const edm::Run &, const edm::EventSetup &)
 
void bookMEs ()
 
void endEvent (const edm::Event &, const edm::EventSetup &)
 
bool filterRunType (const std::vector< short > &)
 
 LedTask (const edm::ParameterSet &, const edm::ParameterSet &)
 
void runOnDigis (const EcalDigiCollection &)
 
void runOnPnDigis (const EcalPnDiodeDigiCollection &)
 
void runOnRawData (const EcalRawDataCollection &)
 
void runOnUncalibRecHits (const EcalUncalibratedRecHitCollection &)
 
 ~LedTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorkerTask
virtual void beginEvent (const edm::Event &, const edm::EventSetup &)
 
 DQWorkerTask (const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
 
virtual bool filterTrigger (const edm::TriggerResultsByName &)
 
virtual const std::vector
< std::pair< Collections,
Collections > > & 
getDependencies ()
 
virtual bool runsOn (unsigned)
 
virtual ~DQWorkerTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
 DQWorker (const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void endRun (const edm::Run &, const edm::EventSetup &)
 
const std::vector< MESet * > & getMEs ()
 
virtual std::string const & getName ()
 
virtual bool isInitialized ()
 
virtual void reset ()
 
virtual void setInitialized (bool _init)
 
virtual void setVerbosity (int _verbosity)
 
virtual ~DQWorker ()
 

Static Public Member Functions

static void setMEData (std::vector< MEData > &)
 
- Static Public Member Functions inherited from ecaldqm::DQWorker
static void setMEData (std::vector< MEData > &)
 

Private Attributes

bool enable_ [BinService::nDCC]
 
std::vector< int > ledWavelengths_
 
std::vector< int > MGPAGainsPN_
 
std::map< int, std::vector
< float > > 
pnAmp_
 
int wavelength_ [BinService::nDCC]
 

Additional Inherited Members

- Static Public Attributes inherited from ecaldqm::DQWorker
static std::map< std::string,
std::vector< MEData > > 
meData
 
- Protected Member Functions inherited from ecaldqm::DQWorker
MESetcreateMESet_ (std::string const &, MEData const &, bool _readOnly=false) const
 
void meSet_ (unsigned, edm::ParameterSet const &)
 
- Protected Attributes inherited from ecaldqm::DQWorkerTask
uint32_t collectionMask_
 
std::vector< std::pair
< Collections, Collections > > 
dependencies_
 
- Protected Attributes inherited from ecaldqm::DQWorker
bool initialized_
 
std::vector< MESet * > MEs_
 
std::string name_
 
int verbosity_
 

Detailed Description

Definition at line 12 of file LedTask.h.

Member Enumeration Documentation

Enumerator
nWL 
nPNGain 

Definition at line 31 of file LedTask.h.

31  {
32  nWL = 2,
33  nPNGain = 2
34  };
Enumerator
kAmplitudeSummary 
kAmplitude 
kOccupancy 
kShape 
kTiming 
kAOverP 
kPNAmplitude 
kPNOccupancy 
nMESets 

Definition at line 36 of file LedTask.h.

36  {
37  kAmplitudeSummary, // profile2d
38  kAmplitude = kAmplitudeSummary + nWL, // profile2d
39  kOccupancy = kAmplitude + nWL,
40  kShape = kOccupancy + nWL,
41  kTiming = kShape + nWL, // profile2d
42  kAOverP = kTiming + nWL, // profile2d
43  kPNAmplitude = kAOverP + nWL, // profile2d
44  kPNOccupancy = kPNAmplitude + nWL * nPNGain, // profile2d
45  nMESets
46  };

Constructor & Destructor Documentation

ecaldqm::LedTask::LedTask ( const edm::ParameterSet _params,
const edm::ParameterSet _paths 
)

Definition at line 10 of file LedTask.cc.

References ecaldqm::DQWorkerTask::collectionMask_, edm::hlt::Exception, edm::ParameterSet::getUntrackedParameterSet(), kAmplitude, kAmplitudeSummary, kAOverP, ecaldqm::kEBUncalibRecHit, ecaldqm::kEcalRawData, ecaldqm::kEEDigi, ecaldqm::kEEUncalibRecHit, kOccupancy, kPNAmplitude, ecaldqm::kPnDiodeDigi, kShape, kTiming, ledWavelengths_, ecaldqm::DQWorker::MEs_, MGPAGainsPN_, ecaldqm::DQWorker::name_, nPNGain, and evf::evtn::offset().

10  :
11  DQWorkerTask(_params, _paths, "LedTask"),
13  MGPAGainsPN_(),
14  pnAmp_()
15  {
16  using namespace std;
17 
19  (0x1 << kEcalRawData) |
20  (0x1 << kEEDigi) |
21  (0x1 << kPnDiodeDigi) |
22  (0x1 << kEBUncalibRecHit) |
23  (0x1 << kEEUncalibRecHit);
24 
25  edm::ParameterSet const& commonParams(_params.getUntrackedParameterSet("Common"));
26  MGPAGainsPN_ = commonParams.getUntrackedParameter<std::vector<int> >("MGPAGainsPN");
27 
28  edm::ParameterSet const& taskParams(_params.getUntrackedParameterSet(name_));
29  ledWavelengths_ = taskParams.getUntrackedParameter<std::vector<int> >("ledWavelengths");
30 
31  for(std::vector<int>::iterator wlItr(ledWavelengths_.begin()); wlItr != ledWavelengths_.end(); ++wlItr)
32  if(*wlItr != 1 && *wlItr != 2) throw cms::Exception("InvalidConfiguration") << "Led Wavelength" << std::endl;
33 
34  for(std::vector<int>::iterator gainItr(MGPAGainsPN_.begin()); gainItr != MGPAGainsPN_.end(); ++gainItr)
35  if(*gainItr != 1 && *gainItr != 16) throw cms::Exception("InvalidConfiguration") << "PN diode gain" << std::endl;
36 
37  map<string, string> replacements;
38  stringstream ss;
39 
40  for(vector<int>::iterator wlItr(ledWavelengths_.begin()); wlItr != ledWavelengths_.end(); ++wlItr){
41  ss.str("");
42  ss << *wlItr;
43  replacements["wl"] = ss.str();
44 
45  unsigned offset(*wlItr - 1);
46 
47  MEs_[kAmplitudeSummary + offset]->name(replacements);
48  MEs_[kAmplitude + offset]->name(replacements);
49  MEs_[kOccupancy + offset]->name(replacements);
50  MEs_[kShape + offset]->name(replacements);
51  MEs_[kTiming + offset]->name(replacements);
52  MEs_[kAOverP + offset]->name(replacements);
53 
54  for(vector<int>::iterator gainItr(MGPAGainsPN_.begin()); gainItr != MGPAGainsPN_.end(); ++gainItr){
55  ss.str("");
56  ss << *gainItr;
57  replacements["pngain"] = ss.str();
58 
59  offset = (*wlItr - 1) * nPNGain + (*gainItr == 1 ? 0 : 1);
60 
61  MEs_[kPNAmplitude + offset]->name(replacements);
62  }
63  }
64  }
DQWorkerTask(const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
Definition: DQWorkerTask.cc:5
std::map< int, std::vector< float > > pnAmp_
Definition: LedTask.h:56
std::vector< int > ledWavelengths_
Definition: LedTask.h:51
ParameterSet const & getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
unsigned int offset(bool)
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
std::vector< int > MGPAGainsPN_
Definition: LedTask.h:52
std::string name_
Definition: DQWorker.h:55
ecaldqm::LedTask::~LedTask ( )

Definition at line 66 of file LedTask.cc.

67  {
68  }

Member Function Documentation

void ecaldqm::LedTask::analyze ( const void *  _p,
Collections  _collection 
)
inlinevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 59 of file LedTask.h.

References ecaldqm::kEBUncalibRecHit, ecaldqm::kEcalRawData, ecaldqm::kEEDigi, ecaldqm::kEEUncalibRecHit, ecaldqm::kPnDiodeDigi, runOnDigis(), runOnPnDigis(), runOnRawData(), and runOnUncalibRecHits().

59  {
60  switch(_collection){
61  case kEcalRawData:
62  runOnRawData(*static_cast<const EcalRawDataCollection*>(_p));
63  break;
64  case kEEDigi:
65  runOnDigis(*static_cast<const EcalDigiCollection*>(_p));
66  break;
67  case kPnDiodeDigi:
68  runOnPnDigis(*static_cast<const EcalPnDiodeDigiCollection*>(_p));
69  break;
70  case kEBUncalibRecHit:
71  case kEEUncalibRecHit:
72  runOnUncalibRecHits(*static_cast<const EcalUncalibratedRecHitCollection*>(_p));
73  break;
74  default:
75  break;
76  }
77  }
void runOnRawData(const EcalRawDataCollection &)
Definition: LedTask.cc:130
void runOnUncalibRecHits(const EcalUncalibratedRecHitCollection &)
Definition: LedTask.cc:214
void runOnPnDigis(const EcalPnDiodeDigiCollection &)
Definition: LedTask.cc:171
void runOnDigis(const EcalDigiCollection &)
Definition: LedTask.cc:144
void ecaldqm::LedTask::beginRun ( const edm::Run ,
const edm::EventSetup _es 
)
virtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 94 of file LedTask.cc.

References enable_, EcalDQMBinningService::nDCC, pnAmp_, and wavelength_.

95  {
96  for(int iDCC(0); iDCC < BinService::nDCC; iDCC++){
97  enable_[iDCC] = false;
98  wavelength_[iDCC] = -1;
99  }
100  pnAmp_.clear();
101  }
int wavelength_[BinService::nDCC]
Definition: LedTask.h:55
std::map< int, std::vector< float > > pnAmp_
Definition: LedTask.h:56
bool enable_[BinService::nDCC]
Definition: LedTask.h:54
void ecaldqm::LedTask::bookMEs ( )
virtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 71 of file LedTask.cc.

References kAmplitude, kAmplitudeSummary, kAOverP, kOccupancy, kPNAmplitude, kPNOccupancy, kShape, kTiming, ledWavelengths_, ecaldqm::DQWorker::MEs_, MGPAGainsPN_, nPNGain, and evf::evtn::offset().

72  {
73  for(std::vector<int>::iterator wlItr(ledWavelengths_.begin()); wlItr != ledWavelengths_.end(); ++wlItr){
74  unsigned offset(*wlItr - 1);
75 
76  MEs_[kAmplitudeSummary + offset]->book();
77  MEs_[kAmplitude + offset]->book();
78  MEs_[kOccupancy + offset]->book();
79  MEs_[kTiming + offset]->book();
80  MEs_[kShape + offset]->book();
81  MEs_[kAOverP + offset]->book();
82 
83  for(std::vector<int>::iterator gainItr(MGPAGainsPN_.begin()); gainItr != MGPAGainsPN_.end(); ++gainItr){
84  offset = (*wlItr - 1) * nPNGain + (*gainItr == 1 ? 0 : 1);
85 
86  MEs_[kPNAmplitude + offset]->book();
87  }
88  }
89 
90  MEs_[kPNOccupancy]->book();
91  }
std::vector< int > ledWavelengths_
Definition: LedTask.h:51
unsigned int offset(bool)
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
std::vector< int > MGPAGainsPN_
Definition: LedTask.h:52
void ecaldqm::LedTask::endEvent ( const edm::Event ,
const edm::EventSetup  
)
virtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 104 of file LedTask.cc.

References enable_, EcalDQMBinningService::nDCC, pnAmp_, and wavelength_.

105  {
106  for(int iDCC(0); iDCC < BinService::nDCC; iDCC++){
107  enable_[iDCC] = false;
108  wavelength_[iDCC] = -1;
109  }
110  pnAmp_.clear();
111  }
int wavelength_[BinService::nDCC]
Definition: LedTask.h:55
std::map< int, std::vector< float > > pnAmp_
Definition: LedTask.h:56
bool enable_[BinService::nDCC]
Definition: LedTask.h:54
bool ecaldqm::LedTask::filterRunType ( const std::vector< short > &  _runType)
virtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 114 of file LedTask.cc.

References enable_, EcalDCCHeaderBlock::LED_GAP, EcalDCCHeaderBlock::LED_STD, and EcalDQMBinningService::nDCC.

115  {
116  bool enable(false);
117 
118  for(int iDCC(0); iDCC < BinService::nDCC; iDCC++){
119  if(_runType[iDCC] == EcalDCCHeaderBlock::LED_STD ||
120  _runType[iDCC] == EcalDCCHeaderBlock::LED_GAP){
121  enable = true;
122  enable_[iDCC] = true;
123  }
124  }
125 
126  return enable;
127  }
bool enable_[BinService::nDCC]
Definition: LedTask.h:54
void ecaldqm::LedTask::runOnDigis ( const EcalDigiCollection _digis)

Definition at line 144 of file LedTask.cc.

References EcalMGPASample::adc(), edm::DataFrameContainer::begin(), ecaldqm::dccId(), enable_, edm::DataFrameContainer::end(), lumiContext::fill, errorMatrix2Lands_multiChannel::id, kOccupancy, kShape, ecaldqm::DQWorker::MEs_, evf::evtn::offset(), EcalDataFrame::sample(), and wavelength_.

Referenced by analyze().

145  {
146  for(EcalDigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr){
147  const DetId& id(digiItr->id());
148 
149  int iDCC(dccId(id) - 1);
150 
151  if(!enable_[iDCC]) continue;
152 
153  unsigned offset(-1);
154  switch(wavelength_[iDCC]){
155  case 1: offset = 0; break;
156  case 3: offset = 1; break;
157  default: continue;
158  }
159 
160  MEs_[kOccupancy + offset]->fill(id);
161 
162  // EcalDataFrame is not a derived class of edm::DataFrame, but can take edm::DataFrame in the constructor
163  EcalDataFrame dataFrame(*digiItr);
164 
165  for(int iSample(0); iSample < 10; iSample++)
166  MEs_[kShape + offset]->fill(id, iSample + 0.5, float(dataFrame.sample(iSample).adc()));
167  }
168  }
string fill
Definition: lumiContext.py:319
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
int wavelength_[BinService::nDCC]
Definition: LedTask.h:55
unsigned dccId(const DetId &)
const_iterator begin() const
unsigned int offset(bool)
Definition: DetId.h:20
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
const_iterator end() const
bool enable_[BinService::nDCC]
Definition: LedTask.h:54
void ecaldqm::LedTask::runOnPnDigis ( const EcalPnDiodeDigiCollection _digis)

Definition at line 171 of file LedTask.cc.

References edm::SortedCollection< T, SORT >::begin(), ecaldqm::dccId(), enable_, edm::SortedCollection< T, SORT >::end(), errorMatrix2Lands_multiChannel::id, kPNAmplitude, kPNOccupancy, max(), ecaldqm::DQWorker::MEs_, nPNGain, evf::evtn::offset(), pnAmp_, compare_using_db::sample, and wavelength_.

Referenced by analyze().

172  {
173  for(EcalPnDiodeDigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr){
174  const EcalPnDiodeDetId& id(digiItr->id());
175 
176  int iDCC(dccId(id) - 1);
177 
178  if(!enable_[iDCC]) continue;
179 
180  MEs_[kPNOccupancy]->fill(id);
181 
182  float pedestal(0.);
183  for(int iSample(0); iSample < 4; iSample++)
184  pedestal += digiItr->sample(iSample).adc();
185  pedestal /= 4.;
186 
187  float max(0.);
188  for(int iSample(0); iSample < 50; iSample++){
189  EcalFEMSample sample(digiItr->sample(iSample));
190 
191  float amp(digiItr->sample(iSample).adc() - pedestal);
192 
193  if(amp > max) max = amp;
194  }
195 
196  int gain(digiItr->sample(0).gainId() == 0 ? 1 : 16);
197  max *= (16. / gain);
198 
199  unsigned offset(-1);
200  switch(wavelength_[iDCC]){
201  case 1: offset = (gain == 1 ? 0 : 1); break;
202  case 3: offset = nPNGain + (gain == 1 ? 0 : 1); break;
203  default: continue;
204  }
205 
206  MEs_[kPNAmplitude + offset]->fill(id, max);
207 
208  if(pnAmp_.find(iDCC) == pnAmp_.end()) pnAmp_[iDCC].resize(10);
209  pnAmp_[iDCC][id.iPnId() - 1] = max;
210  }
211  }
int wavelength_[BinService::nDCC]
Definition: LedTask.h:55
std::vector< T >::const_iterator const_iterator
unsigned dccId(const DetId &)
std::map< int, std::vector< float > > pnAmp_
Definition: LedTask.h:56
const T & max(const T &a, const T &b)
unsigned int offset(bool)
const_iterator end() const
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
bool enable_[BinService::nDCC]
Definition: LedTask.h:54
const_iterator begin() const
void ecaldqm::LedTask::runOnRawData ( const EcalRawDataCollection _dcchs)

Definition at line 130 of file LedTask.cc.

References edm::SortedCollection< T, SORT >::begin(), enable_, edm::SortedCollection< T, SORT >::end(), spr::find(), ledWavelengths_, and wavelength_.

Referenced by analyze().

131  {
132  for(EcalRawDataCollection::const_iterator dcchItr(_dcchs.begin()); dcchItr != _dcchs.end(); ++dcchItr){
133  int iDCC(dcchItr->id() - 1);
134 
135  if(!enable_[iDCC]) continue;
136 
137  wavelength_[iDCC] = dcchItr->getEventSettings().wavelength + 1;
138 
139  if(std::find(ledWavelengths_.begin(), ledWavelengths_.end(), wavelength_[iDCC]) == ledWavelengths_.end()) enable_[iDCC] = false;
140  }
141  }
int wavelength_[BinService::nDCC]
Definition: LedTask.h:55
std::vector< T >::const_iterator const_iterator
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< int > ledWavelengths_
Definition: LedTask.h:51
const_iterator end() const
bool enable_[BinService::nDCC]
Definition: LedTask.h:54
const_iterator begin() const
void ecaldqm::LedTask::runOnUncalibRecHits ( const EcalUncalibratedRecHitCollection _uhits)

Definition at line 214 of file LedTask.cc.

References edm::SortedCollection< T, SORT >::begin(), ecaldqm::dccId(), MEEEGeom::dee(), enable_, edm::SortedCollection< T, SORT >::end(), ecaldqm::getEEPnDCC(), errorMatrix2Lands_multiChannel::id, EcalScDetId::ix(), EcalScDetId::iy(), kAmplitude, kAmplitudeSummary, kAOverP, kTiming, MEEEGeom::lmmod(), max(), ecaldqm::DQWorker::MEs_, evf::evtn::offset(), MEEEGeom::pn(), pnAmp_, wavelength_, and EcalScDetId::zside().

Referenced by analyze().

215  {
216  using namespace std;
217 
218  for(EcalUncalibratedRecHitCollection::const_iterator uhitItr(_uhits.begin()); uhitItr != _uhits.end(); ++uhitItr){
219  EEDetId id(uhitItr->id());
220 
221  int iDCC(dccId(id) - 1);
222 
223  if(!enable_[iDCC]) continue;
224 
225  unsigned offset(-1);
226  switch(wavelength_[iDCC]){
227  case 1: offset = 0; break;
228  case 3: offset = 1; break;
229  default: continue;
230  }
231 
232  float amp(max((double)uhitItr->amplitude(), 0.));
233  float jitter(max((double)uhitItr->jitter() + 5.0, 0.));
234 
235  MEs_[kAmplitudeSummary + offset]->fill(id, amp);
236  MEs_[kAmplitude + offset]->fill(id, amp);
237  MEs_[kTiming + offset]->fill(id, jitter);
238 
239  if(pnAmp_.find(iDCC) == pnAmp_.end()) continue;
240 
241  float aop(0.);
242  float pn0(0.), pn1(0.);
243 
244  EcalScDetId scid(id.sc());
245 
246  int dee(MEEEGeom::dee(scid.ix(), scid.iy(), scid.zside()));
247  int lmmod(MEEEGeom::lmmod(scid.ix(), scid.iy()));
248  pair<int, int> pnPair(MEEEGeom::pn(dee, lmmod));
249 
250  int pnAFED(getEEPnDCC(dee, 0)), pnBFED(getEEPnDCC(dee, 1));
251 
252  pn0 = pnAmp_[pnAFED][pnPair.first];
253  pn1 = pnAmp_[pnBFED][pnPair.second];
254 
255  if(pn0 < 10 && pn1 > 10){
256  aop = amp / pn1;
257  }else if(pn0 > 10 && pn1 < 10){
258  aop = amp / pn0;
259  }else if(pn0 + pn1 > 1){
260  aop = amp / (0.5 * (pn0 + pn1));
261  }else{
262  aop = 1000.;
263  }
264 
265  MEs_[kAOverP + offset]->fill(id, aop);
266  }
267  }
static int lmmod(SuperCrysCoord iX, SuperCrysCoord iY)
Definition: MEEEGeom.cc:93
int wavelength_[BinService::nDCC]
Definition: LedTask.h:55
unsigned getEEPnDCC(unsigned, unsigned)
std::vector< T >::const_iterator const_iterator
unsigned dccId(const DetId &)
std::map< int, std::vector< float > > pnAmp_
Definition: LedTask.h:56
static std::pair< int, int > pn(int dee, int ilmod)
Definition: MEEEGeom.cc:615
const T & max(const T &a, const T &b)
unsigned int offset(bool)
const_iterator end() const
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
static int dee(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
Definition: MEEEGeom.cc:285
bool enable_[BinService::nDCC]
Definition: LedTask.h:54
const_iterator begin() const
void ecaldqm::LedTask::setMEData ( std::vector< MEData > &  _data)
static

Definition at line 271 of file LedTask.cc.

References MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, EcalDQMBinningService::AxisSpecs::high, kAmplitude, kAmplitudeSummary, kAOverP, EcalDQMBinningService::kCrystal, EcalDQMBinningService::kEcal2P, EcalDQMBinningService::kEcalMEM2P, kOccupancy, kPNAmplitude, kPNOccupancy, kShape, EcalDQMBinningService::kSM, EcalDQMBinningService::kSMMEM, EcalDQMBinningService::kSuperCrystal, kTiming, EcalDQMBinningService::AxisSpecs::low, EcalDQMBinningService::AxisSpecs::nbins, nPNGain, nWL, and evf::evtn::offset().

272  {
274  axis.nbins = 10;
275  axis.low = 0.;
276  axis.high = 10.;
277 
278  for(unsigned iWL(0); iWL < nWL; iWL++){
282  _data[kShape + iWL] = MEData("Shape", BinService::kSM, BinService::kSuperCrystal, MonitorElement::DQM_KIND_TPROFILE2D, 0, &axis);
285 
286  for(unsigned iPNGain(0); iPNGain < nPNGain; iPNGain++){
287  unsigned offset(iWL * nPNGain + iPNGain);
289  }
290  }
292  }
unsigned int offset(bool)

Member Data Documentation

bool ecaldqm::LedTask::enable_[BinService::nDCC]
private
std::vector<int> ecaldqm::LedTask::ledWavelengths_
private

Definition at line 51 of file LedTask.h.

Referenced by bookMEs(), LedTask(), and runOnRawData().

std::vector<int> ecaldqm::LedTask::MGPAGainsPN_
private

Definition at line 52 of file LedTask.h.

Referenced by bookMEs(), and LedTask().

std::map<int, std::vector<float> > ecaldqm::LedTask::pnAmp_
private

Definition at line 56 of file LedTask.h.

Referenced by beginRun(), endEvent(), runOnPnDigis(), and runOnUncalibRecHits().

int ecaldqm::LedTask::wavelength_[BinService::nDCC]
private