31 if (r.runAuxiliary().run() == 1)
107 auto lumiCache = luminosityBlockCache(
e.getLuminosityBlock().index());
112 auto const cumn =
e.getHandle(
tokuMN_);
113 if (not(cumn.isValid())) {
114 edm::LogWarning(
"UMNioTask") <<
"HcalUMNioDigi isn't available, calling return";
119 uint32_t
laserType = cumn->valueUserWord(0);
123 auto const chbhe =
e.getHandle(
tokHBHE_);
124 if (chbhe.isValid()) {
136 double sumQ = hcaldqm::utilities::sumQDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
141 auto const cho =
e.getHandle(
tokHO_);
154 double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
159 auto const chf =
e.getHandle(
tokHF_);
172 double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
181 return DQTask::globalBeginLuminosityBlock(lb, es);
185 DQTask::globalEndLuminosityBlock(lb, es);
constexpr DetId detid() const
Get the detector id.
std::vector< uint32_t > _eventtypes
uint8_t const EVENTTYPE_PHYSICS
virtual bool exists(HcalDetId const &)
edm::EDGetTokenT< HODigiCollection > tokHO_
uint8_t const EVENTTYPE_HFRADDAM
edm::EDGetTokenT< HcalUMNioDigi > tokuMN_
void fill(int, int) override
std::vector< T >::const_iterator const_iterator
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
const HcalElectronicsMap * getHcalMapping() const
hcaldqm::ContainerSingleProf2D _cTotalChargeProfile
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
constexpr DetId detid() const
Get the detector id.
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
T getUntrackedParameter(std::string const &, T const &) const
constexpr HcalSubdetector subdet() const
get the subdetector
UMNioTask(edm::ParameterSet const &)
uint8_t const EVENTTYPE_LED
ContainerXXX< uint32_t > _xQuality
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
int getOrbitGapIndex(uint8_t eventType, uint32_t laserType)
HcalElectronicsMap const * _emap
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0) override
constexpr int samples() const
total number of samples in the digi
uint8_t const EVENTTYPE_LASER
constexpr uint32_t rawId() const
get the raw id
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< QIE10DigiCollection > tokHF_
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
uint8_t const EVENTTYPE_PEDESTAL
constexpr int size() const
total number of samples in the digi
edm::EDGetTokenT< QIE11DigiCollection > tokHBHE_
virtual STDTYPE & get(HcalDetId const &)
edm::ESHandle< HcalDbService > _dbService
hcaldqm::ContainerSingle2D _cTotalCharge
std::shared_ptr< hcaldqm::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
virtual void fill(int, int)
void _process(edm::Event const &, edm::EventSetup const &) override
Log< level::Warning, false > LogWarning
void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::ContainerSingle2D _cEventType
constexpr int samples() const
total number of samples in the digi
constexpr HcalDetId const & id() const
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)