CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ecaldqm::GpuTask Class Reference

#include <GpuTask.h>

Inheritance diagram for ecaldqm::GpuTask:
ecaldqm::DQWorkerTask ecaldqm::DQWorker

Public Member Functions

void addDependencies (DependencySet &) override
 
bool analyze (void const *, Collections) override
 
void beginEvent (edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
 
bool filterRunType (short const *) override
 
 GpuTask ()
 
template<typename DigiCollection >
void runOnCpuDigis (DigiCollection const &, Collections)
 
void runOnCpuRecHits (EcalRecHitCollection const &, Collections)
 
void runOnCpuUncalibRecHits (EcalUncalibratedRecHitCollection const &, Collections)
 
template<typename DigiCollection >
void runOnGpuDigis (DigiCollection const &, Collections)
 
void runOnGpuRecHits (EcalRecHitCollection const &, Collections)
 
void runOnGpuUncalibRecHits (EcalUncalibratedRecHitCollection const &, Collections)
 
 ~GpuTask () override=default
 
- Public Member Functions inherited from ecaldqm::DQWorkerTask
 DQWorkerTask ()
 
virtual void endEvent (edm::Event const &, edm::EventSetup const &)
 
virtual bool filterTrigger (edm::TriggerResultsByName const &)
 
virtual void setTokens (edm::ConsumesCollector &)
 
 ~DQWorkerTask () override
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void bookMEs (DQMStore::IBooker &)
 
bool checkElectronicsMap (bool=true)
 
bool checkGeometry (bool=true)
 
bool checkTopology (bool=true)
 
bool checkTrigTowerMap (bool=true)
 
 DQWorker ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
EcalDQMSetupObjects const getEcalDQMSetupObjects ()
 
EcalElectronicsMapping const * GetElectronicsMap ()
 
CaloGeometry const * GetGeometry ()
 
std::string const & getName () const
 
CaloTopology const * GetTopology ()
 
EcalTrigTowerConstituentsMap const * GetTrigTowerMap ()
 
bool onlineMode () const
 
virtual void releaseMEs ()
 
void setEventNumber (edm::EventNumber_t _e)
 
void setLumiNumber (edm::LuminosityBlockNumber_t _l)
 
void setRunNumber (edm::RunNumber_t _r)
 
void setSetupObjects (edm::EventSetup const &)
 
void setSetupObjectsEndLumi (edm::EventSetup const &)
 
void setTime (time_t _t)
 
void setTokens (edm::ConsumesCollector &)
 
virtual ~DQWorker () noexcept(false)
 

Private Member Functions

void setParams (edm::ParameterSet const &) override
 

Private Attributes

bool digi1D_
 
bool digi2D_
 
EBDigiCollection const * EBCpuDigis_
 
EcalRecHitCollection const * EBCpuRecHits_
 
EcalUncalibratedRecHitCollection const * EBCpuUncalibRecHits_
 
EEDigiCollection const * EECpuDigis_
 
EcalRecHitCollection const * EECpuRecHits_
 
EcalUncalibratedRecHitCollection const * EECpuUncalibRecHits_
 
bool enableDigi_
 
bool enableRecHit_
 
bool enableUncalib_
 
bool rechit1D_
 
bool rechit2D_
 
bool runGpuTask_
 
bool uncalib1D_
 
bool uncalib2D_
 
std::vector< int > uncalibOOTAmps_
 

Additional Inherited Members

- Public Types inherited from ecaldqm::DQWorkerTask
typedef EcalDCCHeaderBlock::EcalDCCEventSettings EventSettings
 
- Static Public Member Functions inherited from ecaldqm::DQWorkerTask
static void fillDescriptions (edm::ParameterSetDescription &)
 
- Static Public Member Functions inherited from ecaldqm::DQWorker
static void fillDescriptions (edm::ParameterSetDescription &_desc)
 
- Public Attributes inherited from ecaldqm::DQWorker
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdelecMapHandle
 
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdelecMapHandleEndLumi
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomHandle
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomHandleEndLumi
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtopoHandle
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtopoHandleEndLumi
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapHandle
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapHandleEndLumi
 
- Protected Types inherited from ecaldqm::DQWorker
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- Protected Member Functions inherited from ecaldqm::DQWorkerTask
void setME (edm::ParameterSet const &) final
 
- Protected Member Functions inherited from ecaldqm::DQWorker
void initialize (std::string const &_name, edm::ParameterSet const &)
 
void print_ (std::string const &, int=0) const
 
virtual void setSource (edm::ParameterSet const &)
 
void setVerbosity (int _verbosity)
 
- Protected Attributes inherited from ecaldqm::DQWorker
bool booked_
 
MESetCollection MEs_
 
std::string name_
 
bool onlineMode_
 
Timestamp timestamp_
 
int verbosity_
 
bool willConvertToEDM_
 

Detailed Description

Definition at line 11 of file GpuTask.h.

Constructor & Destructor Documentation

◆ GpuTask()

ecaldqm::GpuTask::GpuTask ( )

Definition at line 13 of file GpuTask.cc.

14  : DQWorkerTask(),
15  runGpuTask_(false),
16  enableDigi_(false),
17  enableUncalib_(false),
18  enableRecHit_(false),
19  digi1D_(false),
20  digi2D_(false),
21  uncalib1D_(false),
22  uncalib2D_(false),
23  rechit1D_(false),
24  rechit2D_(false),
25  EBCpuDigis_(nullptr),
26  EECpuDigis_(nullptr),
27  EBCpuUncalibRecHits_(nullptr),
28  EECpuUncalibRecHits_(nullptr),
29  EBCpuRecHits_(nullptr),
30  EECpuRecHits_(nullptr) {}
bool uncalib2D_
Definition: GpuTask.h:43
bool runGpuTask_
Definition: GpuTask.h:35
EBDigiCollection const * EBCpuDigis_
Definition: GpuTask.h:49
bool rechit2D_
Definition: GpuTask.h:45
EEDigiCollection const * EECpuDigis_
Definition: GpuTask.h:50
EcalRecHitCollection const * EECpuRecHits_
Definition: GpuTask.h:56
bool enableDigi_
Definition: GpuTask.h:36
bool rechit1D_
Definition: GpuTask.h:44
bool enableUncalib_
Definition: GpuTask.h:37
EcalRecHitCollection const * EBCpuRecHits_
Definition: GpuTask.h:55
EcalUncalibratedRecHitCollection const * EECpuUncalibRecHits_
Definition: GpuTask.h:53
EcalUncalibratedRecHitCollection const * EBCpuUncalibRecHits_
Definition: GpuTask.h:52
bool uncalib1D_
Definition: GpuTask.h:42
bool enableRecHit_
Definition: GpuTask.h:38

◆ ~GpuTask()

ecaldqm::GpuTask::~GpuTask ( )
overridedefault

Member Function Documentation

◆ addDependencies()

void ecaldqm::GpuTask::addDependencies ( DependencySet dependencies)
overridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 32 of file GpuTask.cc.

References ecaldqm::kEBCpuDigi, ecaldqm::kEBCpuRecHit, ecaldqm::kEBCpuUncalibRecHit, ecaldqm::kEBGpuDigi, ecaldqm::kEBGpuRecHit, ecaldqm::kEBGpuUncalibRecHit, ecaldqm::kEECpuDigi, ecaldqm::kEECpuRecHit, ecaldqm::kEECpuUncalibRecHit, ecaldqm::kEEGpuDigi, ecaldqm::kEEGpuRecHit, ecaldqm::kEEGpuUncalibRecHit, and runGpuTask_.

◆ analyze()

bool ecaldqm::GpuTask::analyze ( void const *  collection_data,
Collections  collection 
)
inlineoverridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 59 of file GpuTask.h.

References universalConfigTemplate::collection, enableDigi_, enableRecHit_, enableUncalib_, ecaldqm::kEBCpuDigi, ecaldqm::kEBCpuRecHit, ecaldqm::kEBCpuUncalibRecHit, ecaldqm::kEBGpuDigi, ecaldqm::kEBGpuRecHit, ecaldqm::kEBGpuUncalibRecHit, ecaldqm::kEECpuDigi, ecaldqm::kEECpuRecHit, ecaldqm::kEECpuUncalibRecHit, ecaldqm::kEEGpuDigi, ecaldqm::kEEGpuRecHit, ecaldqm::kEEGpuUncalibRecHit, runGpuTask_, runOnCpuDigis(), runOnCpuRecHits(), runOnCpuUncalibRecHits(), runOnGpuDigis(), runOnGpuRecHits(), and runOnGpuUncalibRecHits().

59  {
60  switch (collection) {
61  case kEBCpuDigi:
62  if (collection_data && runGpuTask_ && enableDigi_)
63  runOnCpuDigis(*static_cast<EBDigiCollection const*>(collection_data), collection);
64  return runGpuTask_;
65  break;
66  case kEECpuDigi:
67  if (collection_data && runGpuTask_ && enableDigi_)
68  runOnCpuDigis(*static_cast<EEDigiCollection const*>(collection_data), collection);
69  return runGpuTask_;
70  break;
71  case kEBGpuDigi:
72  if (collection_data && runGpuTask_ && enableDigi_)
73  runOnGpuDigis(*static_cast<EBDigiCollection const*>(collection_data), collection);
74  return runGpuTask_;
75  break;
76  case kEEGpuDigi:
77  if (collection_data && runGpuTask_ && enableDigi_)
78  runOnGpuDigis(*static_cast<EEDigiCollection const*>(collection_data), collection);
79  return runGpuTask_;
80  break;
83  if (collection_data && runGpuTask_ && enableUncalib_)
84  runOnCpuUncalibRecHits(*static_cast<EcalUncalibratedRecHitCollection const*>(collection_data), collection);
85  return runGpuTask_;
86  break;
89  if (collection_data && runGpuTask_ && enableUncalib_)
90  runOnGpuUncalibRecHits(*static_cast<EcalUncalibratedRecHitCollection const*>(collection_data), collection);
91  return runGpuTask_;
92  break;
93  case kEBCpuRecHit:
94  case kEECpuRecHit:
95  if (collection_data && runGpuTask_ && enableRecHit_)
96  runOnCpuRecHits(*static_cast<EcalRecHitCollection const*>(collection_data), collection);
97  return runGpuTask_;
98  break;
99  case kEBGpuRecHit:
100  case kEEGpuRecHit:
101  if (collection_data && runGpuTask_ && enableRecHit_)
102  runOnGpuRecHits(*static_cast<EcalRecHitCollection const*>(collection_data), collection);
103  return runGpuTask_;
104  break;
105  default:
106  break;
107  }
108 
109  return false;
110  }
bool runGpuTask_
Definition: GpuTask.h:35
void runOnGpuRecHits(EcalRecHitCollection const &, Collections)
Definition: GpuTask.cc:491
void runOnCpuUncalibRecHits(EcalUncalibratedRecHitCollection const &, Collections)
Definition: GpuTask.cc:273
bool enableDigi_
Definition: GpuTask.h:36
void runOnGpuUncalibRecHits(EcalUncalibratedRecHitCollection const &, Collections)
Definition: GpuTask.cc:325
bool enableUncalib_
Definition: GpuTask.h:37
void runOnGpuDigis(DigiCollection const &, Collections)
Definition: GpuTask.cc:198
bool enableRecHit_
Definition: GpuTask.h:38
void runOnCpuRecHits(EcalRecHitCollection const &, Collections)
Definition: GpuTask.cc:463
void runOnCpuDigis(DigiCollection const &, Collections)
Definition: GpuTask.cc:165

◆ beginEvent()

void ecaldqm::GpuTask::beginEvent ( edm::Event const &  ,
edm::EventSetup const &  ,
bool const &  ,
bool &   
)
overridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 155 of file GpuTask.cc.

References EBCpuDigis_, EBCpuRecHits_, EBCpuUncalibRecHits_, EECpuDigis_, EECpuRecHits_, and EECpuUncalibRecHits_.

155  {
156  EBCpuDigis_ = nullptr;
157  EECpuDigis_ = nullptr;
158  EBCpuUncalibRecHits_ = nullptr;
159  EECpuUncalibRecHits_ = nullptr;
160  EBCpuRecHits_ = nullptr;
161  EECpuRecHits_ = nullptr;
162  }
EBDigiCollection const * EBCpuDigis_
Definition: GpuTask.h:49
EEDigiCollection const * EECpuDigis_
Definition: GpuTask.h:50
EcalRecHitCollection const * EECpuRecHits_
Definition: GpuTask.h:56
EcalRecHitCollection const * EBCpuRecHits_
Definition: GpuTask.h:55
EcalUncalibratedRecHitCollection const * EECpuUncalibRecHits_
Definition: GpuTask.h:53
EcalUncalibratedRecHitCollection const * EBCpuUncalibRecHits_
Definition: GpuTask.h:52

◆ filterRunType()

bool ecaldqm::GpuTask::filterRunType ( short const *  runType)
overridevirtual

◆ runOnCpuDigis()

template<typename DigiCollection >
void ecaldqm::GpuTask::runOnCpuDigis ( DigiCollection const &  cpuDigis,
Collections  collection 
)

Definition at line 165 of file GpuTask.cc.

References EcalMGPASample::adc(), cms::cuda::assert(), ecaldqm::MESetCollection::at(), universalConfigTemplate::collection, EBCpuDigis_, EcalBarrel, EcalEndcap, EECpuDigis_, ecaldqm::MESetMulti::fill(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::kEBCpuDigi, ecaldqm::DQWorker::MEs_, EcalDataFrame::sample(), and ecalPh1::sampleSize.

Referenced by analyze().

165  {
166  MESet& meDigiCpu(MEs_.at("DigiCpu"));
167  MESet& meDigiCpuAmplitude(MEs_.at("DigiCpuAmplitude"));
168 
169  int iSubdet(collection == kEBCpuDigi ? EcalBarrel : EcalEndcap);
170 
171  // Save CpuDigis for comparison with GpuDigis
172  // "if constexpr" ensures cpuDigis is the correct type at compile time
173  if constexpr (std::is_same_v<DigiCollection, EBDigiCollection>) {
174  assert(iSubdet == EcalBarrel);
175  EBCpuDigis_ = &cpuDigis;
176  } else {
177  assert(iSubdet == EcalEndcap);
178  EECpuDigis_ = &cpuDigis;
179  }
180 
181  unsigned nCpuDigis(cpuDigis.size());
182  meDigiCpu.fill(getEcalDQMSetupObjects(), iSubdet, nCpuDigis);
183 
184  for (auto const& cpuDigi : cpuDigis) {
185  // EcalDataFrame is not a derived class of edm::DataFrame, but can take edm::DataFrame (digis) in the constructor
186  EcalDataFrame cpuDataFrame(cpuDigi);
187 
188  for (unsigned iSample = 0; iSample < ecalPh1::sampleSize; iSample++) {
189  static_cast<MESetMulti&>(meDigiCpuAmplitude).use(iSample);
190 
191  int cpuAmp(cpuDataFrame.sample(iSample).adc());
192  meDigiCpuAmplitude.fill(getEcalDQMSetupObjects(), iSubdet, cpuAmp);
193  }
194  }
195  }
EBDigiCollection const * EBCpuDigis_
Definition: GpuTask.h:49
MESet & at(const std::string &key)
Definition: MESet.h:399
EEDigiCollection const * EECpuDigis_
Definition: GpuTask.h:50
assert(be >=bs)
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
MESetCollection MEs_
Definition: DQWorker.h:131
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:53

◆ runOnCpuRecHits()

void ecaldqm::GpuTask::runOnCpuRecHits ( EcalRecHitCollection const &  cpuHits,
Collections  collection 
)

Definition at line 463 of file GpuTask.cc.

References ecaldqm::MESetCollection::at(), universalConfigTemplate::collection, EBCpuRecHits_, EcalBarrel, EcalEndcap, EECpuRecHits_, ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::kEBCpuRecHit, ecaldqm::DQWorker::MEs_, and edm::SortedCollection< T, SORT >::size().

Referenced by analyze().

463  {
464  MESet& meRecHitCpu(MEs_.at("RecHitCpu"));
465  MESet& meRecHitCpuEnergy(MEs_.at("RecHitCpuEnergy"));
466  MESet& meRecHitCpuTime(MEs_.at("RecHitCpuTime"));
467  MESet& meRecHitCpuFlags(MEs_.at("RecHitCpuFlags"));
468 
469  int iSubdet(collection == kEBCpuRecHit ? EcalBarrel : EcalEndcap);
470 
471  // Save CpuRecHits for comparison with GpuRecHits
472  if (iSubdet == EcalBarrel)
473  EBCpuRecHits_ = &cpuHits;
474  else
475  EECpuRecHits_ = &cpuHits;
476 
477  unsigned nCpuHits(cpuHits.size());
478  meRecHitCpu.fill(getEcalDQMSetupObjects(), iSubdet, nCpuHits);
479 
480  for (auto const& cpuHit : cpuHits) {
481  float cpuEnergy(cpuHit.energy());
482  float cpuTime(cpuHit.time());
483  uint32_t cpuFlags(cpuHit.flagsBits());
484 
485  meRecHitCpuEnergy.fill(getEcalDQMSetupObjects(), iSubdet, cpuEnergy);
486  meRecHitCpuTime.fill(getEcalDQMSetupObjects(), iSubdet, cpuTime);
487  meRecHitCpuFlags.fill(getEcalDQMSetupObjects(), iSubdet, cpuFlags);
488  }
489  }
MESet & at(const std::string &key)
Definition: MESet.h:399
EcalRecHitCollection const * EECpuRecHits_
Definition: GpuTask.h:56
EcalRecHitCollection const * EBCpuRecHits_
Definition: GpuTask.h:55
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
MESetCollection MEs_
Definition: DQWorker.h:131

◆ runOnCpuUncalibRecHits()

void ecaldqm::GpuTask::runOnCpuUncalibRecHits ( EcalUncalibratedRecHitCollection const &  cpuHits,
Collections  collection 
)

Definition at line 273 of file GpuTask.cc.

References ecaldqm::MESetCollection::at(), universalConfigTemplate::collection, EBCpuUncalibRecHits_, EcalBarrel, EcalEndcap, EECpuUncalibRecHits_, ecaldqm::MESetMulti::fill(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::kEBCpuUncalibRecHit, ecaldqm::DQWorker::MEs_, edm::SortedCollection< T, SORT >::size(), and uncalibOOTAmps_.

Referenced by analyze().

273  {
274  MESet& meUncalibCpu(MEs_.at("UncalibCpu"));
275  MESet& meUncalibCpuAmp(MEs_.at("UncalibCpuAmp"));
276  MESet& meUncalibCpuAmpError(MEs_.at("UncalibCpuAmpError"));
277  MESet& meUncalibCpuPedestal(MEs_.at("UncalibCpuPedestal"));
278  MESet& meUncalibCpuJitter(MEs_.at("UncalibCpuJitter"));
279  MESet& meUncalibCpuJitterError(MEs_.at("UncalibCpuJitterError"));
280  MESet& meUncalibCpuChi2(MEs_.at("UncalibCpuChi2"));
281  MESet& meUncalibCpuOOTAmp(MEs_.at("UncalibCpuOOTAmp"));
282  MESet& meUncalibCpuFlags(MEs_.at("UncalibCpuFlags"));
283 
285 
286  // Save CpuUncalibRecHits for comparison with GpuUncalibRecHits
287  if (iSubdet == EcalBarrel)
288  EBCpuUncalibRecHits_ = &cpuHits;
289  else
290  EECpuUncalibRecHits_ = &cpuHits;
291 
292  unsigned nCpuHits(cpuHits.size());
293  meUncalibCpu.fill(getEcalDQMSetupObjects(), iSubdet, nCpuHits);
294 
295  for (auto const& cpuHit : cpuHits) {
296  float cpuAmp(cpuHit.amplitude());
297  float cpuAmpError(cpuHit.amplitudeError());
298  float cpuPedestal(cpuHit.pedestal());
299  float cpuJitter(cpuHit.jitter());
300  float cpuJitterError(cpuHit.jitterError());
301  float cpuChi2(cpuHit.chi2());
302  uint32_t cpuFlags(cpuHit.flags());
303 
304  if (cpuJitterError == 10000) // Set this so 10000 (special value) shows up in last bin
305  cpuJitterError = 0.249999;
306 
307  meUncalibCpuAmp.fill(getEcalDQMSetupObjects(), iSubdet, cpuAmp);
308  meUncalibCpuAmpError.fill(getEcalDQMSetupObjects(), iSubdet, cpuAmpError);
309  meUncalibCpuPedestal.fill(getEcalDQMSetupObjects(), iSubdet, cpuPedestal);
310  meUncalibCpuJitter.fill(getEcalDQMSetupObjects(), iSubdet, cpuJitter);
311  meUncalibCpuJitterError.fill(getEcalDQMSetupObjects(), iSubdet, cpuJitterError);
312  meUncalibCpuChi2.fill(getEcalDQMSetupObjects(), iSubdet, cpuChi2);
313  meUncalibCpuFlags.fill(getEcalDQMSetupObjects(), iSubdet, cpuFlags);
314 
315  for (unsigned iAmp = 0; iAmp < uncalibOOTAmps_.size(); iAmp++) {
316  static_cast<MESetMulti&>(meUncalibCpuOOTAmp).use(iAmp);
317 
318  // Get corresponding OOT Amplitude
319  int cpuOOTAmp(cpuHit.outOfTimeAmplitude(uncalibOOTAmps_[iAmp]));
320  meUncalibCpuOOTAmp.fill(getEcalDQMSetupObjects(), iSubdet, cpuOOTAmp);
321  }
322  }
323  }
MESet & at(const std::string &key)
Definition: MESet.h:399
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
std::vector< int > uncalibOOTAmps_
Definition: GpuTask.h:47
MESetCollection MEs_
Definition: DQWorker.h:131
EcalUncalibratedRecHitCollection const * EECpuUncalibRecHits_
Definition: GpuTask.h:53
EcalUncalibratedRecHitCollection const * EBCpuUncalibRecHits_
Definition: GpuTask.h:52

◆ runOnGpuDigis()

template<typename DigiCollection >
void ecaldqm::GpuTask::runOnGpuDigis ( DigiCollection const &  gpuDigis,
Collections  collection 
)

Definition at line 198 of file GpuTask.cc.

References EcalMGPASample::adc(), cms::cuda::assert(), ecaldqm::MESetCollection::at(), universalConfigTemplate::collection, digi1D_, digi2D_, siStripShotFilter_cfi::DigiCollection, EBCpuDigis_, EcalBarrel, EcalEndcap, EECpuDigis_, ecaldqm::MESetMulti::fill(), ecaldqm::MESet::fill(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::kEBGpuDigi, ecaldqm::DQWorker::MEs_, EcalDataFrame::sample(), and ecalPh1::sampleSize.

Referenced by analyze().

198  {
199  MESet& meDigiGpuCpu(MEs_.at("DigiGpuCpu"));
200  MESet& meDigiGpuCpuAmplitude(MEs_.at("DigiGpuCpuAmplitude"));
201 
202  int iSubdet(collection == kEBGpuDigi ? EcalBarrel : EcalEndcap);
203 
204  // Get CpuDigis saved from GpuTask::runOnCpuDigis() for this event
205  // "if constexpr" ensures cpuDigis is the correct type at compile time
206  // Note: gpuDigis is a collection and cpuDigis is a pointer to a collection (for historical reasons)
207  DigiCollection const* cpuDigis;
208  if constexpr (std::is_same_v<DigiCollection, EBDigiCollection>) {
209  assert(iSubdet == EcalBarrel);
210  cpuDigis = EBCpuDigis_;
211  } else {
212  assert(iSubdet == EcalEndcap);
213  cpuDigis = EECpuDigis_;
214  }
215 
216  if (!cpuDigis) {
217  edm::LogWarning("EcalDQM") << "GpuTask: Did not find " << ((iSubdet == EcalBarrel) ? "EB" : "EE")
218  << "CpuDigis Collection. Aborting runOnGpuDigis\n";
219  return;
220  }
221 
222  unsigned nGpuDigis(gpuDigis.size());
223  unsigned nCpuDigis(cpuDigis->size());
224 
225  meDigiGpuCpu.fill(getEcalDQMSetupObjects(), iSubdet, nGpuDigis - nCpuDigis);
226 
227  if (digi1D_) {
228  MESet& meDigiGpu(MEs_.at("DigiGpu"));
229  meDigiGpu.fill(getEcalDQMSetupObjects(), iSubdet, nGpuDigis);
230  }
231 
232  if (digi2D_) {
233  MESet& meDigi2D(MEs_.at("Digi2D"));
234  meDigi2D.fill(getEcalDQMSetupObjects(), iSubdet, nCpuDigis, nGpuDigis);
235  }
236 
237  for (auto const& gpuDigi : gpuDigis) {
238  // Find CpuDigi with matching DetId
239  DetId gpuId(gpuDigi.id());
240  typename DigiCollection::const_iterator cpuItr(cpuDigis->find(gpuId));
241  if (cpuItr == cpuDigis->end()) {
242  edm::LogWarning("EcalDQM") << "GpuTask: Did not find CpuDigi DetId " << gpuId.rawId() << " in CPU collection\n";
243  continue;
244  }
245 
246  // EcalDataFrame is not a derived class of edm::DataFrame, but can take edm::DataFrame (digis) in the constructor
247  EcalDataFrame gpuDataFrame(gpuDigi);
248  EcalDataFrame cpuDataFrame(*cpuItr);
249 
250  for (unsigned iSample = 0; iSample < ecalPh1::sampleSize; iSample++) {
251  static_cast<MESetMulti&>(meDigiGpuCpuAmplitude).use(iSample);
252 
253  int gpuAmp(gpuDataFrame.sample(iSample).adc());
254  int cpuAmp(cpuDataFrame.sample(iSample).adc());
255 
256  meDigiGpuCpuAmplitude.fill(getEcalDQMSetupObjects(), iSubdet, gpuAmp - cpuAmp);
257 
258  if (digi1D_) {
259  MESet& meDigiGpuAmplitude(MEs_.at("DigiGpuAmplitude"));
260  static_cast<MESetMulti&>(meDigiGpuAmplitude).use(iSample);
261  meDigiGpuAmplitude.fill(getEcalDQMSetupObjects(), iSubdet, gpuAmp);
262  }
263 
264  if (digi2D_) {
265  MESet& meDigi2DAmplitude(MEs_.at("Digi2DAmplitude"));
266  static_cast<MESetMulti&>(meDigi2DAmplitude).use(iSample);
267  meDigi2DAmplitude.fill(getEcalDQMSetupObjects(), iSubdet, cpuAmp, gpuAmp);
268  }
269  }
270  }
271  }
EBDigiCollection const * EBCpuDigis_
Definition: GpuTask.h:49
MESet & at(const std::string &key)
Definition: MESet.h:399
EEDigiCollection const * EECpuDigis_
Definition: GpuTask.h:50
assert(be >=bs)
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
Definition: DetId.h:17
MESetCollection MEs_
Definition: DQWorker.h:131
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:53
Log< level::Warning, false > LogWarning

◆ runOnGpuRecHits()

void ecaldqm::GpuTask::runOnGpuRecHits ( EcalRecHitCollection const &  gpuHits,
Collections  collection 
)

Definition at line 491 of file GpuTask.cc.

References ecaldqm::MESetCollection::at(), universalConfigTemplate::collection, EBCpuRecHits_, EcalBarrel, EcalEndcap, EECpuRecHits_, edm::SortedCollection< T, SORT >::end(), ecaldqm::MESet::fill(), edm::SortedCollection< T, SORT >::find(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::kEBGpuRecHit, ecaldqm::DQWorker::MEs_, rechit1D_, rechit2D_, and edm::SortedCollection< T, SORT >::size().

Referenced by analyze().

491  {
492  MESet& meRecHitGpuCpu(MEs_.at("RecHitGpuCpu"));
493  MESet& meRecHitGpuCpuEnergy(MEs_.at("RecHitGpuCpuEnergy"));
494  MESet& meRecHitGpuCpuTime(MEs_.at("RecHitGpuCpuTime"));
495  MESet& meRecHitGpuCpuFlags(MEs_.at("RecHitGpuCpuFlags"));
496 
497  int iSubdet(collection == kEBGpuRecHit ? EcalBarrel : EcalEndcap);
498 
499  // Get CpuRecHits saved from GpuTask::runOnCpuRecHits() for this event
500  // Note: _gpuHits is a collection and cpuHits is a pointer to a collection (for historical reasons)
501  EcalRecHitCollection const* cpuHits = (iSubdet == EcalBarrel) ? EBCpuRecHits_ : EECpuRecHits_;
502  if (!cpuHits) {
503  edm::LogWarning("EcalDQM") << "GpuTask: Did not find " << ((iSubdet == EcalBarrel) ? "EB" : "EE")
504  << "CpuRecHits Collection. Aborting runOnGpuRecHits\n";
505  return;
506  }
507 
508  unsigned nGpuHits(gpuHits.size());
509  unsigned nCpuHits(cpuHits->size());
510 
511  meRecHitGpuCpu.fill(getEcalDQMSetupObjects(), iSubdet, nGpuHits - nCpuHits);
512 
513  if (rechit1D_) {
514  MESet& meRecHitGpu(MEs_.at("RecHitGpu"));
515  meRecHitGpu.fill(getEcalDQMSetupObjects(), iSubdet, nGpuHits);
516  }
517  if (rechit2D_) {
518  MESet& meRecHit2D(MEs_.at("RecHit2D"));
519  meRecHit2D.fill(getEcalDQMSetupObjects(), iSubdet, nCpuHits, nGpuHits);
520  }
521 
522  for (auto const& gpuHit : gpuHits) {
523  // Find CpuRecHit with matching DetId
524  DetId gpuId(gpuHit.detid());
525  EcalRecHitCollection::const_iterator cpuItr(cpuHits->find(gpuId));
526  if (cpuItr == cpuHits->end()) {
527  edm::LogWarning("EcalDQM") << "GpuTask: Did not find GpuRecHit DetId " << gpuId.rawId()
528  << " in CPU collection\n";
529  continue;
530  }
531 
532  float gpuEnergy(gpuHit.energy());
533  float gpuTime(gpuHit.time());
534  uint32_t gpuFlags(gpuHit.flagsBits());
535 
536  float cpuEnergy(cpuItr->energy());
537  float cpuTime(cpuItr->time());
538  uint32_t cpuFlags(cpuItr->flagsBits());
539 
540  meRecHitGpuCpuEnergy.fill(getEcalDQMSetupObjects(), iSubdet, gpuEnergy - cpuEnergy);
541  meRecHitGpuCpuTime.fill(getEcalDQMSetupObjects(), iSubdet, gpuTime - cpuTime);
542  meRecHitGpuCpuFlags.fill(getEcalDQMSetupObjects(), iSubdet, gpuFlags - cpuFlags);
543 
544  if (rechit1D_) {
545  MESet& meRecHitGpuEnergy(MEs_.at("RecHitGpuEnergy"));
546  MESet& meRecHitGpuTime(MEs_.at("RecHitGpuTime"));
547  MESet& meRecHitGpuFlags(MEs_.at("RecHitGpuFlags"));
548 
549  meRecHitGpuEnergy.fill(getEcalDQMSetupObjects(), iSubdet, gpuEnergy);
550  meRecHitGpuTime.fill(getEcalDQMSetupObjects(), iSubdet, gpuTime);
551  meRecHitGpuFlags.fill(getEcalDQMSetupObjects(), iSubdet, gpuFlags);
552  }
553 
554  if (rechit2D_) {
555  MESet& meRecHit2DEnergy(MEs_.at("RecHit2DEnergy"));
556  MESet& meRecHit2DTime(MEs_.at("RecHit2DTime"));
557  MESet& meRecHit2DFlags(MEs_.at("RecHit2DFlags"));
558 
559  meRecHit2DEnergy.fill(getEcalDQMSetupObjects(), iSubdet, cpuEnergy, gpuEnergy);
560  meRecHit2DTime.fill(getEcalDQMSetupObjects(), iSubdet, cpuTime, gpuTime);
561  meRecHit2DFlags.fill(getEcalDQMSetupObjects(), iSubdet, cpuFlags, gpuFlags);
562  }
563  }
564  }
MESet & at(const std::string &key)
Definition: MESet.h:399
size_type size() const
std::vector< EcalRecHit >::const_iterator const_iterator
bool rechit2D_
Definition: GpuTask.h:45
EcalRecHitCollection const * EECpuRecHits_
Definition: GpuTask.h:56
bool rechit1D_
Definition: GpuTask.h:44
EcalRecHitCollection const * EBCpuRecHits_
Definition: GpuTask.h:55
const_iterator end() const
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
Definition: DetId.h:17
MESetCollection MEs_
Definition: DQWorker.h:131
iterator find(key_type k)
Log< level::Warning, false > LogWarning

◆ runOnGpuUncalibRecHits()

void ecaldqm::GpuTask::runOnGpuUncalibRecHits ( EcalUncalibratedRecHitCollection const &  gpuHits,
Collections  collection 
)

Definition at line 325 of file GpuTask.cc.

References ecaldqm::MESetCollection::at(), universalConfigTemplate::collection, EBCpuUncalibRecHits_, EcalBarrel, EcalEndcap, EECpuUncalibRecHits_, edm::SortedCollection< T, SORT >::end(), ecaldqm::MESetMulti::fill(), ecaldqm::MESet::fill(), edm::SortedCollection< T, SORT >::find(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::kEBGpuUncalibRecHit, ecaldqm::DQWorker::MEs_, edm::SortedCollection< T, SORT >::size(), uncalib1D_, uncalib2D_, and uncalibOOTAmps_.

Referenced by analyze().

325  {
326  MESet& meUncalibGpuCpu(MEs_.at("UncalibGpuCpu"));
327  MESet& meUncalibGpuCpuAmp(MEs_.at("UncalibGpuCpuAmp"));
328  MESet& meUncalibGpuCpuAmpError(MEs_.at("UncalibGpuCpuAmpError"));
329  MESet& meUncalibGpuCpuPedestal(MEs_.at("UncalibGpuCpuPedestal"));
330  MESet& meUncalibGpuCpuJitter(MEs_.at("UncalibGpuCpuJitter"));
331  MESet& meUncalibGpuCpuJitterError(MEs_.at("UncalibGpuCpuJitterError"));
332  MESet& meUncalibGpuCpuChi2(MEs_.at("UncalibGpuCpuChi2"));
333  MESet& meUncalibGpuCpuOOTAmp(MEs_.at("UncalibGpuCpuOOTAmp"));
334  MESet& meUncalibGpuCpuFlags(MEs_.at("UncalibGpuCpuFlags"));
335 
337 
338  // Get CpuUncalibRecHits saved from GpuTask::runOnCpuUncalibRecHits() for this event
339  // Note: _gpuHits is a collection and cpuHits is a pointer to a collection (for historical reasons)
340  EcalUncalibratedRecHitCollection const* cpuHits =
342  if (!cpuHits) {
343  edm::LogWarning("EcalDQM") << "GpuTask: Did not find " << ((iSubdet == EcalBarrel) ? "EB" : "EE")
344  << "CpuUncalibRecHits Collection. Aborting runOnGpuUncalibRecHits\n";
345  return;
346  }
347 
348  unsigned nGpuHits(gpuHits.size());
349  unsigned nCpuHits(cpuHits->size());
350 
351  meUncalibGpuCpu.fill(getEcalDQMSetupObjects(), iSubdet, nGpuHits - nCpuHits);
352 
353  if (uncalib1D_) {
354  MESet& meUncalibGpu(MEs_.at("UncalibGpu"));
355  meUncalibGpu.fill(getEcalDQMSetupObjects(), iSubdet, nGpuHits);
356  }
357 
358  if (uncalib2D_) {
359  MESet& meUncalib2D(MEs_.at("Uncalib2D"));
360  meUncalib2D.fill(getEcalDQMSetupObjects(), iSubdet, nCpuHits, nGpuHits);
361  }
362 
363  for (auto const& gpuHit : gpuHits) {
364  // Find CpuUncalibRecHit with matching DetId
365  DetId gpuId(gpuHit.id());
367  if (cpuItr == cpuHits->end()) {
368  edm::LogWarning("EcalDQM") << "GpuTask: Did not find GpuUncalibRecHit DetId " << gpuId.rawId()
369  << " in CPU collection\n";
370  continue;
371  }
372 
373  float gpuAmp(gpuHit.amplitude());
374  float gpuAmpError(gpuHit.amplitudeError());
375  float gpuPedestal(gpuHit.pedestal());
376  float gpuJitter(gpuHit.jitter());
377  float gpuJitterError(gpuHit.jitterError());
378  float gpuChi2(gpuHit.chi2());
379  uint32_t gpuFlags(gpuHit.flags());
380 
381  if (gpuJitterError == 10000) // Set this so 10000 (special value) shows up in last bin
382  gpuJitterError = 0.249999;
383 
384  float cpuAmp(cpuItr->amplitude());
385  float cpuAmpError(cpuItr->amplitudeError());
386  float cpuPedestal(cpuItr->pedestal());
387  float cpuJitter(cpuItr->jitter());
388  float cpuJitterError(cpuItr->jitterError());
389  float cpuChi2(cpuItr->chi2());
390  uint32_t cpuFlags(cpuItr->flags());
391 
392  if (cpuJitterError == 10000) // Set this so 10000 (special value) shows up in last bin
393  cpuJitterError = 0.249999;
394 
395  meUncalibGpuCpuAmp.fill(getEcalDQMSetupObjects(), iSubdet, gpuAmp - cpuAmp);
396  meUncalibGpuCpuAmpError.fill(getEcalDQMSetupObjects(), iSubdet, gpuAmpError - cpuAmpError);
397  meUncalibGpuCpuPedestal.fill(getEcalDQMSetupObjects(), iSubdet, gpuPedestal - cpuPedestal);
398  meUncalibGpuCpuJitter.fill(getEcalDQMSetupObjects(), iSubdet, gpuJitter - cpuJitter);
399  meUncalibGpuCpuJitterError.fill(getEcalDQMSetupObjects(), iSubdet, gpuJitterError - cpuJitterError);
400  meUncalibGpuCpuChi2.fill(getEcalDQMSetupObjects(), iSubdet, gpuChi2 - cpuChi2);
401  meUncalibGpuCpuFlags.fill(getEcalDQMSetupObjects(), iSubdet, gpuFlags - cpuFlags);
402 
403  if (uncalib1D_) {
404  MESet& meUncalibGpuAmp(MEs_.at("UncalibGpuAmp"));
405  MESet& meUncalibGpuAmpError(MEs_.at("UncalibGpuAmpError"));
406  MESet& meUncalibGpuPedestal(MEs_.at("UncalibGpuPedestal"));
407  MESet& meUncalibGpuJitter(MEs_.at("UncalibGpuJitter"));
408  MESet& meUncalibGpuJitterError(MEs_.at("UncalibGpuJitterError"));
409  MESet& meUncalibGpuChi2(MEs_.at("UncalibGpuChi2"));
410  MESet& meUncalibGpuFlags(MEs_.at("UncalibGpuFlags"));
411 
412  meUncalibGpuAmp.fill(getEcalDQMSetupObjects(), iSubdet, gpuAmp);
413  meUncalibGpuAmpError.fill(getEcalDQMSetupObjects(), iSubdet, gpuAmpError);
414  meUncalibGpuPedestal.fill(getEcalDQMSetupObjects(), iSubdet, gpuPedestal);
415  meUncalibGpuJitter.fill(getEcalDQMSetupObjects(), iSubdet, gpuJitter);
416  meUncalibGpuJitterError.fill(getEcalDQMSetupObjects(), iSubdet, gpuJitterError);
417  meUncalibGpuChi2.fill(getEcalDQMSetupObjects(), iSubdet, gpuChi2);
418  meUncalibGpuFlags.fill(getEcalDQMSetupObjects(), iSubdet, gpuFlags);
419  }
420 
421  if (uncalib2D_) {
422  MESet& meUncalib2DAmp(MEs_.at("Uncalib2DAmp"));
423  MESet& meUncalib2DAmpError(MEs_.at("Uncalib2DAmpError"));
424  MESet& meUncalib2DPedestal(MEs_.at("Uncalib2DPedestal"));
425  MESet& meUncalib2DJitter(MEs_.at("Uncalib2DJitter"));
426  MESet& meUncalib2DJitterError(MEs_.at("Uncalib2DJitterError"));
427  MESet& meUncalib2DChi2(MEs_.at("Uncalib2DChi2"));
428  MESet& meUncalib2DFlags(MEs_.at("Uncalib2DFlags"));
429 
430  meUncalib2DAmp.fill(getEcalDQMSetupObjects(), iSubdet, cpuAmp, gpuAmp);
431  meUncalib2DAmpError.fill(getEcalDQMSetupObjects(), iSubdet, cpuAmpError, gpuAmpError);
432  meUncalib2DPedestal.fill(getEcalDQMSetupObjects(), iSubdet, cpuPedestal, gpuPedestal);
433  meUncalib2DJitter.fill(getEcalDQMSetupObjects(), iSubdet, cpuJitter, gpuJitter);
434  meUncalib2DJitterError.fill(getEcalDQMSetupObjects(), iSubdet, cpuJitterError, gpuJitterError);
435  meUncalib2DChi2.fill(getEcalDQMSetupObjects(), iSubdet, cpuChi2, gpuChi2);
436  meUncalib2DFlags.fill(getEcalDQMSetupObjects(), iSubdet, cpuFlags, gpuFlags);
437  }
438 
439  for (unsigned iAmp = 0; iAmp < uncalibOOTAmps_.size(); iAmp++) {
440  static_cast<MESetMulti&>(meUncalibGpuCpuOOTAmp).use(iAmp);
441 
442  // Get corresponding OOT Amplitude
443  int gpuOOTAmp(gpuHit.outOfTimeAmplitude(uncalibOOTAmps_[iAmp]));
444  int cpuOOTAmp(cpuItr->outOfTimeAmplitude(uncalibOOTAmps_[iAmp]));
445 
446  meUncalibGpuCpuOOTAmp.fill(getEcalDQMSetupObjects(), iSubdet, gpuOOTAmp - cpuOOTAmp);
447 
448  if (uncalib1D_) {
449  MESet& meUncalibGpuOOTAmp(MEs_.at("UncalibGpuOOTAmp"));
450  static_cast<MESetMulti&>(meUncalibGpuOOTAmp).use(iAmp);
451  meUncalibGpuOOTAmp.fill(getEcalDQMSetupObjects(), iSubdet, gpuOOTAmp);
452  }
453 
454  if (uncalib2D_) {
455  MESet& meUncalib2DOOTAmp(MEs_.at("Uncalib2DOOTAmp"));
456  static_cast<MESetMulti&>(meUncalib2DOOTAmp).use(iAmp);
457  meUncalib2DOOTAmp.fill(getEcalDQMSetupObjects(), iSubdet, cpuOOTAmp, gpuOOTAmp);
458  }
459  }
460  }
461  }
bool uncalib2D_
Definition: GpuTask.h:43
MESet & at(const std::string &key)
Definition: MESet.h:399
size_type size() const
std::vector< T >::const_iterator const_iterator
const_iterator end() const
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
Definition: DetId.h:17
std::vector< int > uncalibOOTAmps_
Definition: GpuTask.h:47
MESetCollection MEs_
Definition: DQWorker.h:131
iterator find(key_type k)
EcalUncalibratedRecHitCollection const * EECpuUncalibRecHits_
Definition: GpuTask.h:53
EcalUncalibratedRecHitCollection const * EBCpuUncalibRecHits_
Definition: GpuTask.h:52
bool uncalib1D_
Definition: GpuTask.h:42
Log< level::Warning, false > LogWarning

◆ setParams()

void ecaldqm::GpuTask::setParams ( edm::ParameterSet const &  params)
overrideprivatevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 46 of file GpuTask.cc.

References digi1D_, digi2D_, enableDigi_, enableRecHit_, enableUncalib_, ecaldqm::MESetCollection::erase(), ecaldqm::DQWorker::MEs_, submitPVValidationJobs::params, rechit1D_, rechit2D_, runGpuTask_, AlCaHLTBitMon_QueryRunRegistry::string, uncalib1D_, uncalib2D_, and uncalibOOTAmps_.

46  {
47  runGpuTask_ = params.getUntrackedParameter<bool>("runGpuTask");
48 
49  // Enabling objects set to false if runGpuTask_ is false
50  enableDigi_ = runGpuTask_ && params.getUntrackedParameter<bool>("enableDigi");
51  enableUncalib_ = runGpuTask_ && params.getUntrackedParameter<bool>("enableUncalib");
52  enableRecHit_ = runGpuTask_ && params.getUntrackedParameter<bool>("enableRecHit");
53 
54  // Flags set to false if corresponding type is not enabled
55  digi1D_ = enableDigi_ && params.getUntrackedParameter<bool>("digi1D");
56  digi2D_ = enableDigi_ && params.getUntrackedParameter<bool>("digi2D");
57  uncalib1D_ = enableUncalib_ && params.getUntrackedParameter<bool>("uncalib1D");
58  uncalib2D_ = enableUncalib_ && params.getUntrackedParameter<bool>("uncalib2D");
59  rechit1D_ = enableRecHit_ && params.getUntrackedParameter<bool>("rechit1D");
60  rechit2D_ = enableRecHit_ && params.getUntrackedParameter<bool>("rechit2D");
61 
62  uncalibOOTAmps_ = params.getUntrackedParameter<std::vector<int> >("uncalibOOTAmps");
63 
64  if (!enableDigi_) {
65  MEs_.erase(std::string("DigiCpu"));
66  MEs_.erase(std::string("DigiCpuAmplitude"));
67  MEs_.erase(std::string("DigiGpuCpu"));
68  MEs_.erase(std::string("DigiGpuCpuAmplitude"));
69  }
70  if (!enableUncalib_) {
71  MEs_.erase(std::string("UncalibCpu"));
72  MEs_.erase(std::string("UncalibCpuAmp"));
73  MEs_.erase(std::string("UncalibCpuAmpError"));
74  MEs_.erase(std::string("UncalibCpuPedestal"));
75  MEs_.erase(std::string("UncalibCpuJitter"));
76  MEs_.erase(std::string("UncalibCpuJitterError"));
77  MEs_.erase(std::string("UncalibCpuChi2"));
78  MEs_.erase(std::string("UncalibCpuOOTAmp"));
79  MEs_.erase(std::string("UncalibCpuFlags"));
80  MEs_.erase(std::string("UncalibGpuCpu"));
81  MEs_.erase(std::string("UncalibGpuCpuAmp"));
82  MEs_.erase(std::string("UncalibGpuCpuAmpError"));
83  MEs_.erase(std::string("UncalibGpuCpuPedestal"));
84  MEs_.erase(std::string("UncalibGpuCpuJitter"));
85  MEs_.erase(std::string("UncalibGpuCpuJitterError"));
86  MEs_.erase(std::string("UncalibGpuCpuChi2"));
87  MEs_.erase(std::string("UncalibGpuCpuOOTAmp"));
88  MEs_.erase(std::string("UncalibGpuCpuFlags"));
89  }
90  if (!enableRecHit_) {
91  MEs_.erase(std::string("RecHitCpu"));
92  MEs_.erase(std::string("RecHitCpuEnergy"));
93  MEs_.erase(std::string("RecHitCpuTime"));
94  MEs_.erase(std::string("RecHitCpuFlags"));
95  MEs_.erase(std::string("RecHitGpuCpu"));
96  MEs_.erase(std::string("RecHitGpuCpuEnergy"));
97  MEs_.erase(std::string("RecHitGpuCpuTime"));
98  MEs_.erase(std::string("RecHitGpuCpuFlags"));
99  }
100  if (!digi1D_) {
101  MEs_.erase(std::string("DigiGpu"));
102  MEs_.erase(std::string("DigiGpuAmplitude"));
103  }
104  if (!uncalib1D_) {
105  MEs_.erase(std::string("UncalibGpu"));
106  MEs_.erase(std::string("UncalibGpuAmp"));
107  MEs_.erase(std::string("UncalibGpuAmpError"));
108  MEs_.erase(std::string("UncalibGpuPedestal"));
109  MEs_.erase(std::string("UncalibGpuJitter"));
110  MEs_.erase(std::string("UncalibGpuJitterError"));
111  MEs_.erase(std::string("UncalibGpuChi2"));
112  MEs_.erase(std::string("UncalibGpuOOTAmp"));
113  MEs_.erase(std::string("UncalibGpuFlags"));
114  }
115  if (!rechit1D_) {
116  MEs_.erase(std::string("RecHitGpu"));
117  MEs_.erase(std::string("RecHitGpuEnergy"));
118  MEs_.erase(std::string("RecHitGpuTime"));
119  MEs_.erase(std::string("RecHitGpuFlags"));
120  }
121  if (!digi2D_) {
122  MEs_.erase(std::string("Digi2D"));
123  MEs_.erase(std::string("Digi2DAmplitude"));
124  }
125  if (!uncalib2D_) {
126  MEs_.erase(std::string("Uncalib2D"));
127  MEs_.erase(std::string("Uncalib2DAmp"));
128  MEs_.erase(std::string("Uncalib2DAmpError"));
129  MEs_.erase(std::string("Uncalib2DPedestal"));
130  MEs_.erase(std::string("Uncalib2DJitter"));
131  MEs_.erase(std::string("Uncalib2DJitterError"));
132  MEs_.erase(std::string("Uncalib2DChi2"));
133  MEs_.erase(std::string("Uncalib2DOOTAmp"));
134  MEs_.erase(std::string("Uncalib2DFlags"));
135  }
136  if (!rechit2D_) {
137  MEs_.erase(std::string("RecHit2D"));
138  MEs_.erase(std::string("RecHit2DEnergy"));
139  MEs_.erase(std::string("RecHit2DTime"));
140  MEs_.erase(std::string("RecHit2DFlags"));
141  }
142  }
bool uncalib2D_
Definition: GpuTask.h:43
bool runGpuTask_
Definition: GpuTask.h:35
bool rechit2D_
Definition: GpuTask.h:45
bool enableDigi_
Definition: GpuTask.h:36
bool rechit1D_
Definition: GpuTask.h:44
bool enableUncalib_
Definition: GpuTask.h:37
std::vector< int > uncalibOOTAmps_
Definition: GpuTask.h:47
MESetCollection MEs_
Definition: DQWorker.h:131
bool uncalib1D_
Definition: GpuTask.h:42
bool enableRecHit_
Definition: GpuTask.h:38
void erase(const std::string &key)
Definition: MESet.h:390

Member Data Documentation

◆ digi1D_

bool ecaldqm::GpuTask::digi1D_
private

Definition at line 40 of file GpuTask.h.

Referenced by runOnGpuDigis(), and setParams().

◆ digi2D_

bool ecaldqm::GpuTask::digi2D_
private

Definition at line 41 of file GpuTask.h.

Referenced by runOnGpuDigis(), and setParams().

◆ EBCpuDigis_

EBDigiCollection const* ecaldqm::GpuTask::EBCpuDigis_
private

Definition at line 49 of file GpuTask.h.

Referenced by beginEvent(), runOnCpuDigis(), and runOnGpuDigis().

◆ EBCpuRecHits_

EcalRecHitCollection const* ecaldqm::GpuTask::EBCpuRecHits_
private

Definition at line 55 of file GpuTask.h.

Referenced by beginEvent(), runOnCpuRecHits(), and runOnGpuRecHits().

◆ EBCpuUncalibRecHits_

EcalUncalibratedRecHitCollection const* ecaldqm::GpuTask::EBCpuUncalibRecHits_
private

Definition at line 52 of file GpuTask.h.

Referenced by beginEvent(), runOnCpuUncalibRecHits(), and runOnGpuUncalibRecHits().

◆ EECpuDigis_

EEDigiCollection const* ecaldqm::GpuTask::EECpuDigis_
private

Definition at line 50 of file GpuTask.h.

Referenced by beginEvent(), runOnCpuDigis(), and runOnGpuDigis().

◆ EECpuRecHits_

EcalRecHitCollection const* ecaldqm::GpuTask::EECpuRecHits_
private

Definition at line 56 of file GpuTask.h.

Referenced by beginEvent(), runOnCpuRecHits(), and runOnGpuRecHits().

◆ EECpuUncalibRecHits_

EcalUncalibratedRecHitCollection const* ecaldqm::GpuTask::EECpuUncalibRecHits_
private

Definition at line 53 of file GpuTask.h.

Referenced by beginEvent(), runOnCpuUncalibRecHits(), and runOnGpuUncalibRecHits().

◆ enableDigi_

bool ecaldqm::GpuTask::enableDigi_
private

Definition at line 36 of file GpuTask.h.

Referenced by analyze(), and setParams().

◆ enableRecHit_

bool ecaldqm::GpuTask::enableRecHit_
private

Definition at line 38 of file GpuTask.h.

Referenced by analyze(), and setParams().

◆ enableUncalib_

bool ecaldqm::GpuTask::enableUncalib_
private

Definition at line 37 of file GpuTask.h.

Referenced by analyze(), and setParams().

◆ rechit1D_

bool ecaldqm::GpuTask::rechit1D_
private

Definition at line 44 of file GpuTask.h.

Referenced by runOnGpuRecHits(), and setParams().

◆ rechit2D_

bool ecaldqm::GpuTask::rechit2D_
private

Definition at line 45 of file GpuTask.h.

Referenced by runOnGpuRecHits(), and setParams().

◆ runGpuTask_

bool ecaldqm::GpuTask::runGpuTask_
private

Definition at line 35 of file GpuTask.h.

Referenced by addDependencies(), analyze(), and setParams().

◆ uncalib1D_

bool ecaldqm::GpuTask::uncalib1D_
private

Definition at line 42 of file GpuTask.h.

Referenced by runOnGpuUncalibRecHits(), and setParams().

◆ uncalib2D_

bool ecaldqm::GpuTask::uncalib2D_
private

Definition at line 43 of file GpuTask.h.

Referenced by runOnGpuUncalibRecHits(), and setParams().

◆ uncalibOOTAmps_

std::vector<int> ecaldqm::GpuTask::uncalibOOTAmps_
private

Definition at line 47 of file GpuTask.h.

Referenced by runOnCpuUncalibRecHits(), runOnGpuUncalibRecHits(), and setParams().