CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
HcalGPUComparisonTask Class Reference
Inheritance diagram for HcalGPUComparisonTask:
hcaldqm::DQTask DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > > hcaldqm::DQModule edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
std::shared_ptr< hcaldqm::CacheglobalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 HcalGPUComparisonTask (edm::ParameterSet const &)
 
 ~HcalGPUComparisonTask () override=default
 
- Public Member Functions inherited from hcaldqm::DQTask
void analyze (edm::Event const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
 DQTask (edm::ParameterSet const &)
 
std::shared_ptr< hcaldqm::CacheglobalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 ~DQTask () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from hcaldqm::DQTask
static void fillPSetDescription (edm::ParameterSetDescription &des)
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from hcaldqm::DQModule
static void fillPSetDescription (edm::ParameterSetDescription &desc)
 

Private Member Functions

void _process (edm::Event const &, edm::EventSetup const &) override
 
void _resetMonitors (hcaldqm::UpdateFreq) override
 

Private Attributes

hcaldqm::ContainerProf2D energyDiffGPUCPU_depth_
 
hcaldqm::Container1D energyDiffGPUCPU_subdet_
 
hcaldqm::Container2D energyGPUvsCPU_subdet_
 
edm::ESGetToken< HcalDbService, HcalDbRecordhcalDbServiceToken_
 
edm::InputTag tagHBHE_ref_
 
edm::InputTag tagHBHE_target_
 
edm::EDGetTokenT< HBHERecHitCollectiontokHBHE_ref_
 
edm::EDGetTokenT< HBHERecHitCollectiontokHBHE_target_
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from hcaldqm::DQTask
virtual int _getCalibType (edm::Event const &)
 
virtual bool _isApplicable (edm::Event const &)
 
- Protected Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 
- Protected Attributes inherited from hcaldqm::DQTask
ContainerI _cEvsPerLS
 
ContainerI _cEvsTotal
 
ContainerS _cProcessingTypeName
 
ContainerS _cRunKeyName
 
ContainerI _cRunKeyVal
 
edm::ESHandle< HcalDbService_dbService
 
HcalElectronicsMap const * _emap = nullptr
 
int _procLSs
 
edm::InputTag _tagRaw
 
edm::EDGetTokenT< FEDRawDataCollection_tokRaw
 
std::vector< uint32_t > _vcdaqEids
 
ContainerXXX< uint32_t > _xQuality
 
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcdhcalChannelQualityToken_
 
edm::ESGetToken< HcalDbService, HcalDbRecordhcalDbServiceToken_
 
edm::ESGetToken< RunInfo, RunInfoRcdrunInfoToken_
 
- Protected Attributes inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
edm::EDPutTokenT< DQMTokenrunToken_
 
- Protected Attributes inherited from hcaldqm::DQModule
int _currentLS
 
int _debug
 
int _evsPerLS
 
int _evsTotal
 
Logger _logger
 
int _maxLS
 
ModuleType _mtype
 
std::string _name
 
ProcessingType _ptype
 
std::string _runkeyName
 
int _runkeyVal
 
std::string _subsystem
 

Detailed Description

Definition at line 22 of file HcalGPUComparisonTask.cc.

Constructor & Destructor Documentation

◆ HcalGPUComparisonTask()

HcalGPUComparisonTask::HcalGPUComparisonTask ( edm::ParameterSet const &  ps)

Definition at line 49 of file HcalGPUComparisonTask.cc.

50  : DQTask(ps),
51  tagHBHE_ref_(ps.getUntrackedParameter<edm::InputTag>("tagHBHE_ref", edm::InputTag("hltHbhereco@cpu"))),
52  tagHBHE_target_(ps.getUntrackedParameter<edm::InputTag>("tagHBHE_target", edm::InputTag("hltHbhereco@cuda"))),
53  tokHBHE_ref_(consumes<HBHERecHitCollection>(tagHBHE_ref_)),
54  tokHBHE_target_(consumes<HBHERecHitCollection>(tagHBHE_target_)),
55  hcalDbServiceToken_(esConsumes<HcalDbService, HcalDbRecord, edm::Transition::BeginRun>()) {}
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:8
edm::EDGetTokenT< HBHERecHitCollection > tokHBHE_target_
edm::EDGetTokenT< HBHERecHitCollection > tokHBHE_ref_
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_

◆ ~HcalGPUComparisonTask()

HcalGPUComparisonTask::~HcalGPUComparisonTask ( )
overridedefault

Member Function Documentation

◆ _process()

void HcalGPUComparisonTask::_process ( edm::Event const &  e,
edm::EventSetup const &   
)
overrideprivatevirtual

Implements hcaldqm::DQTask.

Definition at line 95 of file HcalGPUComparisonTask.cc.

References hcaldqm::DQModule::_currentLS, hcaldqm::DQModule::_logger, edm::SortedCollection< T, SORT >::begin(), Logger::dqmthrow(), MillePedeFileConverter_cfg::e, edm::InputTag::encode(), edm::SortedCollection< T, SORT >::end(), HCALHighEnergyHPDFilter_cfi::energy, energyDiffGPUCPU_depth_, energyDiffGPUCPU_subdet_, energyGPUvsCPU_subdet_, hcaldqm::Container2D::fill(), hcaldqm::ContainerProf2D::fill(), hcaldqm::Container1D::fill(), tagHBHE_ref_, tagHBHE_target_, tokHBHE_ref_, and tokHBHE_target_.

95  {
98 
99  if (!(e.getByToken(tokHBHE_ref_, chbhe_ref)))
100  _logger.dqmthrow("The CPU HBHERecHitCollection \"" + tagHBHE_ref_.encode() + "\" is not available");
101  if (!(e.getByToken(tokHBHE_target_, chbhe_target)))
102  _logger.dqmthrow("The GPU HBHERecHitCollection \"" + tagHBHE_target_.encode() + "\" is not available");
103 
104  auto lumiCache = luminosityBlockCache(e.getLuminosityBlock().index());
105  _currentLS = lumiCache->currentLS;
106 
107  std::map<HcalDetId, double> mRecHitEnergy;
108 
109  for (HBHERecHitCollection::const_iterator it = chbhe_ref->begin(); it != chbhe_ref->end(); ++it) {
110  double energy = it->energy();
111 
112  // Explicit check on the DetIds present in the Collection
113  HcalDetId did = it->id();
114 
115  if (mRecHitEnergy.find(did) == mRecHitEnergy.end())
116  mRecHitEnergy.insert(std::make_pair(did, energy));
117  else
118  edm::LogError("HcalDQM|RechitTask") << "Duplicate Rechit from the same HcalDetId";
119  }
120 
121  for (HBHERecHitCollection::const_iterator it = chbhe_target->begin(); it != chbhe_target->end(); ++it) {
122  double energy = it->energy();
123  HcalDetId did = it->id();
124 
125  if (mRecHitEnergy.find(did) != mRecHitEnergy.end()) {
126  energyGPUvsCPU_subdet_.fill(did, mRecHitEnergy[did], energy);
127 
128  if (mRecHitEnergy[did] != 0.) {
129  energyDiffGPUCPU_subdet_.fill(did, (energy - mRecHitEnergy[did]) / mRecHitEnergy[did]);
130  if (energy > 0.1)
131  energyDiffGPUCPU_depth_.fill(did, (energy - mRecHitEnergy[did]) / mRecHitEnergy[did]);
132  } else if (mRecHitEnergy[did] == 0. && energy == 0.) {
134  if (energy > 0.1)
135  energyDiffGPUCPU_depth_.fill(did, 0.);
136  } else {
137  energyDiffGPUCPU_subdet_.fill(did, -1.);
138  if (energy > 0.1)
139  energyDiffGPUCPU_depth_.fill(did, -1.);
140  }
141 
142  mRecHitEnergy.erase(did);
143  } else
144  edm::LogError("HcalDQM|RechitTask") << "GPU Rechit id not found in CPU Rechit id collection";
145  }
146  if (!mRecHitEnergy.empty())
147  edm::LogError("HcalDQM|RechitTask") << "CPU Rechit id not found in GPU Rechit id collection";
148 }
void fill(HcalDetId const &) override
std::string encode() const
Definition: InputTag.cc:159
void dqmthrow(std::string const &msg) const
Definition: Logger.h:12
std::vector< T >::const_iterator const_iterator
hcaldqm::Container2D energyGPUvsCPU_subdet_
Log< level::Error, false > LogError
edm::EDGetTokenT< HBHERecHitCollection > tokHBHE_target_
virtual void fill(uint32_t)
Definition: Container1D.cc:73
Logger _logger
Definition: DQModule.h:55
const_iterator begin() const
edm::EDGetTokenT< HBHERecHitCollection > tokHBHE_ref_
const_iterator end() const
hcaldqm::ContainerProf2D energyDiffGPUCPU_depth_
void fill(HcalDetId const &) override
Definition: Container2D.cc:52
hcaldqm::Container1D energyDiffGPUCPU_subdet_

◆ _resetMonitors()

void HcalGPUComparisonTask::_resetMonitors ( hcaldqm::UpdateFreq  uf)
overrideprivatevirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 93 of file HcalGPUComparisonTask.cc.

93 { DQTask::_resetMonitors(uf); }

◆ bookHistograms()

void HcalGPUComparisonTask::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 57 of file HcalGPUComparisonTask.cc.

References hcaldqm::DQTask::_emap, hcaldqm::DQModule::_name, hcaldqm::DQModule::_subsystem, hcaldqm::ContainerProf2D::book(), hcaldqm::Container2D::book(), hcaldqm::Container1D::book(), bookHistograms(), energyDiffGPUCPU_depth_, energyDiffGPUCPU_subdet_, energyGPUvsCPU_subdet_, hcaldqm::quantity::fCPUenergy, hcaldqm::hashfunctions::fdepth, hcaldqm::quantity::fDiffRatio, hcaldqm::quantity::fGPUenergy, hcaldqm::quantity::fieta, hcaldqm::quantity::fiphi, hcaldqm::quantity::fN, hcaldqm::hashfunctions::fSubdet, edm::EventSetup::getHandle(), HcalDbService::getHcalMapping(), hcalDbServiceToken_, cuy::ib, hcaldqm::ContainerProf2D::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::Container1D::initialize(), and alignCSCRings::r.

59  {
61 
62  // GET WHAT YOU NEED
64  _emap = dbs->getHcalMapping();
65 
66  // Book monitoring elements
68  "EnergyGPUvsCPU",
73  0);
75  "EnergyDiffGPUCPU",
79  0);
81  "EnergyDiffGPUCPU",
86  0);
87 
91 }
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:33
const HcalElectronicsMap * getHcalMapping() const
hcaldqm::Container2D energyGPUvsCPU_subdet_
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::string _name
Definition: DQModule.h:42
HcalElectronicsMap const * _emap
Definition: DQTask.h:81
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:592
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:25
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
hcaldqm::ContainerProf2D energyDiffGPUCPU_depth_
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
std::string _subsystem
Definition: DQModule.h:49
hcaldqm::Container1D energyDiffGPUCPU_subdet_
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:567
ib
Definition: cuy.py:661

◆ fillDescriptions()

void HcalGPUComparisonTask::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 167 of file HcalGPUComparisonTask.cc.

References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, HLT_2022v12_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

167  {
169  desc.addUntracked<std::string>("name", "HcalGPUComparisonTask");
170  desc.addUntracked<int>("debug", 0);
171  desc.addUntracked<int>("runkeyVal", 0);
172  desc.addUntracked<std::string>("runkeyName", "pp_run");
173  desc.addUntracked<int>("ptype", 1);
174  desc.addUntracked<bool>("mtype", true);
175  desc.addUntracked<std::string>("subsystem", "Hcal");
176  desc.addUntracked<edm::InputTag>("tagHBHE_ref", edm::InputTag("hbhereco@cpu"));
177  desc.addUntracked<edm::InputTag>("tagHBHE_target", edm::InputTag("hbhereco@cuda"));
178  desc.addUntracked<edm::InputTag>("tagRaw", edm::InputTag("rawDataCollector"));
179  descriptions.addWithDefaultLabel(desc);
180 }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)

◆ globalBeginLuminosityBlock()

std::shared_ptr< hcaldqm::Cache > HcalGPUComparisonTask::globalBeginLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
) const
override

Definition at line 150 of file HcalGPUComparisonTask.cc.

151  {
152  return DQTask::globalBeginLuminosityBlock(lb, es);
153 }

◆ globalEndLuminosityBlock()

void HcalGPUComparisonTask::globalEndLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
override

Definition at line 155 of file HcalGPUComparisonTask.cc.

References hcaldqm::DQModule::_currentLS, hcaldqm::DQModule::_ptype, hcaldqm::fOnline, and edm::LuminosityBlock::index().

156  {
157  if (_ptype != fOnline)
158  return;
159 
160  auto lumiCache = luminosityBlockCache(lb.index());
161  _currentLS = lumiCache->currentLS;
162 
163  // in the end always do the DQTask::endLumi
164  DQTask::globalEndLuminosityBlock(lb, es);
165 }
ProcessingType _ptype
Definition: DQModule.h:44

Member Data Documentation

◆ energyDiffGPUCPU_depth_

hcaldqm::ContainerProf2D HcalGPUComparisonTask::energyDiffGPUCPU_depth_
private

Definition at line 46 of file HcalGPUComparisonTask.cc.

Referenced by _process(), and bookHistograms().

◆ energyDiffGPUCPU_subdet_

hcaldqm::Container1D HcalGPUComparisonTask::energyDiffGPUCPU_subdet_
private

Definition at line 45 of file HcalGPUComparisonTask.cc.

Referenced by _process(), and bookHistograms().

◆ energyGPUvsCPU_subdet_

hcaldqm::Container2D HcalGPUComparisonTask::energyGPUvsCPU_subdet_
private

Definition at line 44 of file HcalGPUComparisonTask.cc.

Referenced by _process(), and bookHistograms().

◆ hcalDbServiceToken_

edm::ESGetToken<HcalDbService, HcalDbRecord> HcalGPUComparisonTask::hcalDbServiceToken_
private

Definition at line 41 of file HcalGPUComparisonTask.cc.

Referenced by bookHistograms().

◆ tagHBHE_ref_

edm::InputTag HcalGPUComparisonTask::tagHBHE_ref_
private

Definition at line 37 of file HcalGPUComparisonTask.cc.

Referenced by _process().

◆ tagHBHE_target_

edm::InputTag HcalGPUComparisonTask::tagHBHE_target_
private

Definition at line 38 of file HcalGPUComparisonTask.cc.

Referenced by _process().

◆ tokHBHE_ref_

edm::EDGetTokenT<HBHERecHitCollection> HcalGPUComparisonTask::tokHBHE_ref_
private

Definition at line 39 of file HcalGPUComparisonTask.cc.

Referenced by _process().

◆ tokHBHE_target_

edm::EDGetTokenT<HBHERecHitCollection> HcalGPUComparisonTask::tokHBHE_target_
private

Definition at line 40 of file HcalGPUComparisonTask.cc.

Referenced by _process().