52 tagHBHE_target_(ps.getUntrackedParameter<
edm::
InputTag>(
"tagHBHE_target",
edm::
InputTag(
"hltHbhereco@cuda"))),
104 auto lumiCache = luminosityBlockCache(
e.getLuminosityBlock().index());
107 std::map<HcalDetId, double> mRecHitEnergy;
110 double energy = it->energy();
115 if (mRecHitEnergy.find(did) == mRecHitEnergy.end())
116 mRecHitEnergy.insert(std::make_pair(did,
energy));
118 edm::LogError(
"HcalDQM|RechitTask") <<
"Duplicate Rechit from the same HcalDetId";
122 double energy = it->energy();
125 if (mRecHitEnergy.find(did) != mRecHitEnergy.end()) {
128 if (mRecHitEnergy[did] != 0.) {
132 }
else if (mRecHitEnergy[did] == 0. &&
energy == 0.) {
142 mRecHitEnergy.erase(did);
144 edm::LogError(
"HcalDQM|RechitTask") <<
"GPU Rechit id not found in CPU Rechit id collection";
146 if (!mRecHitEnergy.empty())
147 edm::LogError(
"HcalDQM|RechitTask") <<
"CPU Rechit id not found in GPU Rechit id collection";
152 return DQTask::globalBeginLuminosityBlock(lb, es);
160 auto lumiCache = luminosityBlockCache(lb.
index());
164 DQTask::globalEndLuminosityBlock(lb, es);
170 desc.addUntracked<
int>(
"debug", 0);
171 desc.addUntracked<
int>(
"runkeyVal", 0);
173 desc.addUntracked<
int>(
"ptype", 1);
174 desc.addUntracked<
bool>(
"mtype",
true);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
void fill(HcalDetId const &) override
#define DEFINE_FWK_MODULE(type)
void dqmthrow(std::string const &msg) const
void _resetMonitors(hcaldqm::UpdateFreq) override
edm::InputTag tagHBHE_target_
std::vector< T >::const_iterator const_iterator
HcalGPUComparisonTask(edm::ParameterSet const &)
const HcalElectronicsMap * getHcalMapping() const
void _process(edm::Event const &, edm::EventSetup const &) override
hcaldqm::Container2D energyGPUvsCPU_subdet_
Log< level::Error, false > LogError
edm::EDGetTokenT< HBHERecHitCollection > tokHBHE_target_
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
virtual void fill(uint32_t)
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const_iterator begin() const
edm::InputTag tagHBHE_ref_
HcalElectronicsMap const * _emap
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< HBHERecHitCollection > tokHBHE_ref_
const_iterator end() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
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
LuminosityBlockIndex index() const
void fill(HcalDetId const &) override
hcaldqm::Container1D energyDiffGPUCPU_subdet_
std::shared_ptr< hcaldqm::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override