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::LaserTask Class Reference

#include <LaserTask.h>

Inheritance diagram for ecaldqm::LaserTask:
ecaldqm::DQWorkerTask ecaldqm::DQWorker

Public Types

enum  Constants { nWL = 4, nPNGain = 2 }
 
enum  MESets {
  kAmplitudeSummary, kAmplitude = kAmplitudeSummary + nWL, kOccupancy = kAmplitude + nWL, kTiming = kOccupancy + nWL,
  kShape = kTiming + nWL, kAOverP = kShape + 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 > &)
 
std::vector< int > const & getLaserWavelengths () const
 
std::vector< int > const & getMGPAGainsPN () const
 
 LaserTask (const edm::ParameterSet &, const edm::ParameterSet &)
 
void runOnDigis (const EcalDigiCollection &)
 
void runOnPnDigis (const EcalPnDiodeDigiCollection &)
 
void runOnRawData (const EcalRawDataCollection &)
 
void runOnUncalibRecHits (const EcalUncalibratedRecHitCollection &, Collections)
 
 ~LaserTask ()
 
- 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 > laserWavelengths_
 
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 LaserTask.h.

Member Enumeration Documentation

Enumerator
nWL 
nPNGain 

Definition at line 34 of file LaserTask.h.

34  {
35  nWL = 4,
36  nPNGain = 2
37  };
Enumerator
kAmplitudeSummary 
kAmplitude 
kOccupancy 
kTiming 
kShape 
kAOverP 
kPNAmplitude 
kPNOccupancy 
nMESets 

Definition at line 39 of file LaserTask.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file LaserTask.cc.

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

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

Definition at line 70 of file LaserTask.cc.

71  {
72  }

Member Function Documentation

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

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 62 of file LaserTask.h.

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

62  {
63  switch(_collection){
64  case kEcalRawData:
65  runOnRawData(*static_cast<const EcalRawDataCollection*>(_p));
66  break;
67  case kEBDigi:
68  case kEEDigi:
69  runOnDigis(*static_cast<const EcalDigiCollection*>(_p));
70  break;
71  case kPnDiodeDigi:
72  runOnPnDigis(*static_cast<const EcalPnDiodeDigiCollection*>(_p));
73  break;
74  case kEBUncalibRecHit:
75  case kEEUncalibRecHit:
76  runOnUncalibRecHits(*static_cast<const EcalUncalibratedRecHitCollection*>(_p), _collection);
77  break;
78  default:
79  break;
80  }
81  }
void runOnRawData(const EcalRawDataCollection &)
Definition: LaserTask.cc:134
void runOnDigis(const EcalDigiCollection &)
Definition: LaserTask.cc:148
void runOnUncalibRecHits(const EcalUncalibratedRecHitCollection &, Collections)
Definition: LaserTask.cc:207
void runOnPnDigis(const EcalPnDiodeDigiCollection &)
Definition: LaserTask.cc:169
void ecaldqm::LaserTask::beginRun ( const edm::Run ,
const edm::EventSetup _es 
)
virtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 98 of file LaserTask.cc.

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

99  {
100  for(int iDCC(0); iDCC < BinService::nDCC; iDCC++){
101  enable_[iDCC] = false;
102  wavelength_[iDCC] = -1;
103  }
104  pnAmp_.clear();
105  }
std::map< int, std::vector< float > > pnAmp_
Definition: LaserTask.h:59
int wavelength_[BinService::nDCC]
Definition: LaserTask.h:58
bool enable_[BinService::nDCC]
Definition: LaserTask.h:57
void ecaldqm::LaserTask::bookMEs ( )
virtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 75 of file LaserTask.cc.

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

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

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 108 of file LaserTask.cc.

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

109  {
110  for(int iDCC(0); iDCC < BinService::nDCC; iDCC++){
111  enable_[iDCC] = false;
112  wavelength_[iDCC] = -1;
113  }
114  pnAmp_.clear();
115  }
std::map< int, std::vector< float > > pnAmp_
Definition: LaserTask.h:59
int wavelength_[BinService::nDCC]
Definition: LaserTask.h:58
bool enable_[BinService::nDCC]
Definition: LaserTask.h:57
bool ecaldqm::LaserTask::filterRunType ( const std::vector< short > &  _runType)
virtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 118 of file LaserTask.cc.

References enable_, EcalDCCHeaderBlock::LASER_GAP, EcalDCCHeaderBlock::LASER_STD, and EcalDQMBinningService::nDCC.

119  {
120  bool enable(false);
121 
122  for(int iDCC(0); iDCC < BinService::nDCC; iDCC++){
123  if(_runType[iDCC] == EcalDCCHeaderBlock::LASER_STD ||
124  _runType[iDCC] == EcalDCCHeaderBlock::LASER_GAP){
125  enable = true;
126  enable_[iDCC] = true;
127  }
128  }
129 
130  return enable;
131  }
bool enable_[BinService::nDCC]
Definition: LaserTask.h:57
std::vector<int> const& ecaldqm::LaserTask::getLaserWavelengths ( ) const
inline

Definition at line 31 of file LaserTask.h.

References laserWavelengths_.

31 { return laserWavelengths_; }
std::vector< int > laserWavelengths_
Definition: LaserTask.h:54
std::vector<int> const& ecaldqm::LaserTask::getMGPAGainsPN ( ) const
inline

Definition at line 32 of file LaserTask.h.

References MGPAGainsPN_.

32 { return MGPAGainsPN_; }
std::vector< int > MGPAGainsPN_
Definition: LaserTask.h:55
void ecaldqm::LaserTask::runOnDigis ( const EcalDigiCollection _digis)

Definition at line 148 of file LaserTask.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().

149  {
150  for(EcalDigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr){
151  const DetId& id(digiItr->id());
152 
153  int iDCC(dccId(id) - 1);
154 
155  if(!enable_[iDCC]) continue;
156 
157  EcalDataFrame dataFrame(*digiItr);
158 
159  unsigned offset(wavelength_[iDCC] - 1);
160 
161  MEs_[kOccupancy + offset]->fill(id);
162 
163  for(int iSample(0); iSample < 10; iSample++)
164  MEs_[kShape + offset]->fill(id, iSample + 0.5, float(dataFrame.sample(iSample).adc()));
165  }
166  }
string fill
Definition: lumiContext.py:319
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
unsigned dccId(const DetId &)
const_iterator begin() const
int wavelength_[BinService::nDCC]
Definition: LaserTask.h:58
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: LaserTask.h:57
void ecaldqm::LaserTask::runOnPnDigis ( const EcalPnDiodeDigiCollection _digis)

Definition at line 169 of file LaserTask.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().

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

Definition at line 134 of file LaserTask.cc.

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

Referenced by analyze().

135  {
136  for(EcalRawDataCollection::const_iterator dcchItr(_dcchs.begin()); dcchItr != _dcchs.end(); ++dcchItr){
137  int iDCC(dcchItr->id() - 1);
138 
139  if(!enable_[iDCC]) continue;
140 
141  wavelength_[iDCC] = dcchItr->getEventSettings().wavelength + 1;
142 
143  if(std::find(laserWavelengths_.begin(), laserWavelengths_.end(), wavelength_[iDCC]) == laserWavelengths_.end()) enable_[iDCC] = false;
144  }
145  }
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
int wavelength_[BinService::nDCC]
Definition: LaserTask.h:58
std::vector< int > laserWavelengths_
Definition: LaserTask.h:54
const_iterator end() const
bool enable_[BinService::nDCC]
Definition: LaserTask.h:57
const_iterator begin() const
void ecaldqm::LaserTask::runOnUncalibRecHits ( const EcalUncalibratedRecHitCollection _uhits,
Collections  _collection 
)

Definition at line 207 of file LaserTask.cc.

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

Referenced by analyze().

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

Definition at line 268 of file LaserTask.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().

269  {
271  axis.nbins = 10;
272  axis.low = 0.;
273  axis.high = 10.;
274 
275  for(unsigned iWL(0); iWL < nWL; iWL++){
280  _data[kShape + iWL] = MEData("Shape", BinService::kSM, BinService::kSuperCrystal, MonitorElement::DQM_KIND_TPROFILE2D, 0, &axis);
282  for(unsigned iPNGain(0); iPNGain < nPNGain; iPNGain++){
283  unsigned offset(iWL * nPNGain + iPNGain);
285  }
286  }
288  }
unsigned int offset(bool)

Member Data Documentation

bool ecaldqm::LaserTask::enable_[BinService::nDCC]
private
std::vector<int> ecaldqm::LaserTask::laserWavelengths_
private

Definition at line 54 of file LaserTask.h.

Referenced by bookMEs(), getLaserWavelengths(), LaserTask(), and runOnRawData().

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

Definition at line 55 of file LaserTask.h.

Referenced by bookMEs(), getMGPAGainsPN(), and LaserTask().

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

Definition at line 59 of file LaserTask.h.

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

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