|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) override |
|
std::shared_ptr< hcaldqm::Cache > | globalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override |
|
void | globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
| HcalMLTask (edm::ParameterSet const &) |
|
| ~HcalMLTask () override=default |
|
void | analyze (edm::Event const &, edm::EventSetup const &) override |
|
| DQTask (edm::ParameterSet const &) |
|
std::shared_ptr< hcaldqm::Cache > | globalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override |
|
void | globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
| ~DQTask () override |
|
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 () |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () 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 EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
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 |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > 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 |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, 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::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
| DQModule (edm::ParameterSet const &) |
|
virtual | ~DQModule () noexcept(false) |
|
|
typedef dqm::reco::DQMStore | DQMStore |
|
typedef dqm::reco::MonitorElement | MonitorElement |
|
typedef EDProducerBase | ModuleType |
|
template<typename T > |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
virtual int | _getCalibType (edm::Event const &) |
|
virtual bool | _isApplicable (edm::Event const &) |
|
virtual void | dqmEndRun (edm::Run const &, edm::EventSetup const &) |
|
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 () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (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 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) |
|
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, HcalChannelQualityRcd > | hcalChannelQualityToken_ |
|
edm::ESGetToken< HcalDbService, HcalDbRecord > | hcalDbServiceToken_ |
|
edm::ESGetToken< RunInfo, RunInfoRcd > | runInfoToken_ |
|
edm::EDPutTokenT< DQMToken > | runToken_ |
|
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 |
|
Definition at line 33 of file HcalMLTask.cc.
Definition at line 161 of file HcalMLTask.cc.
References hcaldqm::DQModule::_currentLS, hcaldqm::DQTask::_emap, hcaldqm::DQModule::_evsPerLS, hcaldqm::DQTask::_xQuality, HcalElectronicsMap::allPrecisionId(), submitPVResolutionJobs::count, callgraph::cs, HcalDetId::depth(), digiHcal2DHist_depth_1, digiHcal2DHist_depth_2, digiHcal2DHist_depth_3, digiHcal2DHist_depth_4, digiHcal2DHist_depth_5, digiHcal2DHist_depth_6, digiHcal2DHist_depth_7, dqmadObj_HB, dqmadObj_HE, hcaldqm::ContainerXXX< STDTYPE >::exists(), hcaldqm::Container1D::fill(), ntuplemaker::fill, flagDecisionThr, nano_mu_digi_cff::float, hcaldqm::ContainerXXX< STDTYPE >::get(), HcalBarrel, HcalChannelStatus::HcalCellDead, HcalChannelStatus::HcalCellMask, HcalEndcap, HcalDetId::ieta(), edm::LuminosityBlock::index(), HcalDetId::iphi(), MLFlagvsLS_Subdet, Occupancy1LS, hcaldqm::ContainerXXX< STDTYPE >::reset(), and HcalDetId::subdet().
162 auto lumiCache = luminosityBlockCache(lb.index());
168 std::fill(HistElement.begin(), HistElement.end(), 0);
170 std::fill(HistElement.begin(), HistElement.end(), 0);
172 std::fill(HistElement.begin(), HistElement.end(), 0);
174 std::fill(HistElement.begin(), HistElement.end(), 0);
176 std::fill(HistElement.begin(), HistElement.end(), 0);
178 std::fill(HistElement.begin(), HistElement.end(), 0);
180 std::fill(HistElement.begin(), HistElement.end(), 0);
184 for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
185 if (!it->isHcalDetId())
197 if (did.
depth() == 1)
200 if (did.
depth() == 2)
203 if (did.
depth() == 3)
206 if (did.
depth() == 4)
209 if (did.
depth() == 5)
212 if (did.
depth() == 6)
215 if (did.
depth() == 7)
240 std::vector<std::vector<std::vector<float>>> digiHcal3DHist_ANOMALY_FLAG_HB =
241 dqmadObj_HB->ONNXOutputToDQMHistMap(ad_HBmodel_output_vectors, 7);
242 std::vector<std::vector<std::vector<float>>> digiHcal3DHist_ANOMALY_FLAG_HE =
243 dqmadObj_HE->ONNXOutputToDQMHistMap(ad_HEmodel_output_vectors, 7);
245 int NHB_MLbadflags_ = 0, NHE_MLbadflags_ = 0;
246 for (
const auto& plane : digiHcal3DHist_ANOMALY_FLAG_HB)
247 for (
const auto& row : plane)
248 NHB_MLbadflags_ +=
std::count(row.begin(), row.end(), 1);
249 for (
const auto& plane : digiHcal3DHist_ANOMALY_FLAG_HE)
250 for (
const auto& row : plane)
251 NHE_MLbadflags_ +=
std::count(row.begin(), row.end(), 1);
257 DQTask::globalEndLuminosityBlock(lb, es);
virtual bool exists(HcalDetId const &)
std::vector< std::vector< float > > digiHcal2DHist_depth_5
hcaldqm::ContainerXXX< double > Occupancy1LS
std::vector< std::vector< float > > digiHcal2DHist_depth_3
std::unique_ptr< OnlineDQMDigiAD > dqmadObj_HB
constexpr HcalSubdetector subdet() const
get the subdetector
virtual void fill(uint32_t)
std::vector< std::vector< float > > digiHcal2DHist_depth_4
ContainerXXX< uint32_t > _xQuality
constexpr int ieta() const
get the cell ieta
std::vector< std::vector< float > > digiHcal2DHist_depth_1
HcalElectronicsMap const * _emap
hcaldqm::Container1D MLFlagvsLS_Subdet
std::unique_ptr< OnlineDQMDigiAD > dqmadObj_HE
std::vector< std::vector< float > > digiHcal2DHist_depth_7
std::vector< std::vector< float > > digiHcal2DHist_depth_2
virtual STDTYPE & get(HcalDetId const &)
std::vector< HcalGenericDetId > allPrecisionId() const
constexpr int iphi() const
get the cell iphi
std::vector< std::vector< float > > digiHcal2DHist_depth_6
constexpr int depth() const
get the tower depth