#include <EcalSelectiveReadoutProducer.h>
Static Public Member Functions | |
static void | printSrFlags (std::ostream &os, const EBSrFlagCollection &ebSrFlags, const EESrFlagCollection &eeSrFlags, int iEvent=-1, bool withHeader=true) |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | checkWeights (const edm::Event &evt, const edm::ProductID &noZSDigiId) const |
bool | getBinOfMax (const edm::Event &evt, const edm::ProductID &noZsDigiId, int &binOfMax) const |
const EBDigiCollection * | getEBDigis (edm::Event &event) |
const EEDigiCollection * | getEEDigis (edm::Event &event) |
const EcalTrigPrimDigiCollection * | getTrigPrims (edm::Event &event) const |
void | printTTFlags (const EcalTrigPrimDigiCollection &tp, std::ostream &os) const |
void | checkGeometry (const edm::EventSetup &eventSetup) |
void | checkTriggerMap (const edm::EventSetup &eventSetup) |
void | checkElecMap (const edm::EventSetup &eventSetup) |
Static Private Member Functions | |
static void | checkValidity (const EcalSRSettings &settings) |
Additional Inherited Members | |
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 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< 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 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) |
Definition at line 18 of file EcalSelectiveReadoutProducer.h.
|
explicit |
Constructor
params | seletive readout parameters |
Definition at line 19 of file EcalSelectiveReadoutProducer.cc.
References digiProducer_, dumpFlags_, EB_token, ebdigiCollection_, ebSrFlagCollection_, ebSRPdigiCollection_, EcTP_token, EE_token, eedigiCollection_, eElecmap_token_, eeSrFlagCollection_, eeSRPdigiCollection_, eTTmap_token_, geom_token_, hSr_token_, EcalSRCondTools::importParameterSet(), HLT_2022v14_cff::InputTag, submitPVValidationJobs::params, produceDigis_, settings_, settingsFromFile_, AlCaHLTBitMon_QueryRunRegistry::string, theElecMap, theGeometry, theTriggerTowerMap, trigPrimBypass_, trigPrimBypassMode_, trigPrimCollection_, trigPrimProducer_, useCondDb_, useFullReadout_, and writeSrFlags_.
|
override |
|
private |
Definition at line 234 of file EcalSelectiveReadoutProducer.cc.
References eElecmap_token_, options_cfi::eventSetup, EcalSelectiveReadoutSuppressor::setElecMap(), suppressor_, and theElecMap.
Referenced by produce().
|
private |
call these once an event, to make sure everything is up-to-date
Definition at line 210 of file EcalSelectiveReadoutProducer.cc.
References options_cfi::eventSetup, geom_token_, EcalSelectiveReadoutSuppressor::setGeometry(), suppressor_, and theGeometry.
Referenced by produce().
|
private |
Definition at line 222 of file EcalSelectiveReadoutProducer.cc.
References eTTmap_token_, options_cfi::eventSetup, EcalSelectiveReadoutSuppressor::setTriggerMap(), suppressor_, and theTriggerTowerMap.
Referenced by produce().
|
staticprivate |
Checks validity of selective setting object is valid to be used for MC, especially checks the number of elements in the vectors
forEmulator | if true check the restriction that applies for EcalSelectiveReadoutProducer |
cms::Exception | if the setting is not valid. |
Definition at line 495 of file EcalSelectiveReadoutProducer.cc.
References EcalSRSettings::dccNormalizedWeights_, EcalSRSettings::ecalDccZs1stSample_, and Exception.
Referenced by produce().
|
private |
Sanity check on the DCC FIR filter weights. Log warning or error message if an unexpected weight set is found. In principle it is checked that the maximum weight is applied to the expected maximum sample.
Definition at line 291 of file EcalSelectiveReadoutProducer.cc.
References EcalSRSettings::dccNormalizedWeights_, EcalSRSettings::ecalDccZs1stSample_, getBinOfMax(), EcalSelectiveReadoutSuppressor::getFIRTapCount(), mps_fire::i, settings_, and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
Referenced by getEBDigis(), and getEEDigis().
|
private |
Gets the value of the digitizer binOfMaximum parameter.
noZsDigiId | product ID of the non-suppressed digis |
binOfMax | [out] set the parameter value if found |
Definition at line 338 of file EcalSelectiveReadoutProducer.cc.
References spr::find(), edm::Event::getStableProvenance(), AlCaHLTBitMon_ParallelJobs::p, edm::parameterSet(), edm::Event::processHistory(), and mps_fire::result.
Referenced by checkWeights().
|
private |
Definition at line 178 of file EcalSelectiveReadoutProducer.cc.
References checkWeights(), EB_token, firstCallEB_, edm::HandleBase::id(), edm::Handle< T >::product(), and mps_fire::result.
Referenced by produce().
|
private |
Definition at line 191 of file EcalSelectiveReadoutProducer.cc.
References checkWeights(), EE_token, firstCallEE_, edm::HandleBase::id(), edm::Handle< T >::product(), and mps_fire::result.
Referenced by produce().
|
private |
Definition at line 204 of file EcalSelectiveReadoutProducer.cc.
References EcTP_token, and edm::Handle< T >::product().
Referenced by produce().
|
static |
Help function to print SR flags.
ebSrFlags | the action flags of EB |
eeSrFlag | the action flags of EE |
iEvent | event number. Ignored if <0. |
withHeader,if | true an output description is written out as header. |
Definition at line 355 of file EcalSelectiveReadoutProducer.cc.
References cms::cuda::assert(), edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), RemoveAddSevLevel::flag, mps_fire::i, l1tTowerCalibrationProducer_cfi::iEta, iEvent, nEndcaps, srpFlagMarker, submitPVValidationJobs::t, and protons_cff::time.
Referenced by produce().
|
private |
Definition at line 246 of file EcalSelectiveReadoutProducer.cc.
References EcalTriggerPrimitiveDigi::id(), EcalTrigTowerDetId::ieta(), l1tTowerCalibrationProducer_cfi::iEta, EcalTrigTowerDetId::iphi(), HLT_2022v14_cff::nEta, HLT_2022v14_cff::nPhi, EcalSelectiveReadout::nTriggerTowersInEta, EcalSelectiveReadout::nTriggerTowersInPhi, EcalTriggerPrimitiveDigi::size(), tccFlagMarker, cmsswSequenceInfo::tp, and EcalTriggerPrimitiveDigi::ttFlag().
|
overridevirtual |
Produces the EDM products
CMS | event |
eventSetup | event conditions |
Implements edm::one::EDProducerBase.
Definition at line 89 of file EcalSelectiveReadoutProducer.cc.
References checkElecMap(), checkGeometry(), checkTriggerMap(), checkValidity(), dumpFlags_, ebSrFlagCollection_, ebSRPdigiCollection_, SimL1EmulatorDM_cff::eeDigis, eeSrFlagCollection_, eeSRPdigiCollection_, options_cfi::eventSetup, getEBDigis(), EcalSelectiveReadoutSuppressor::getEcalSelectiveReadout(), getEEDigis(), getTrigPrims(), hSr_token_, iEvent_, eostools::move(), EcalSelectiveReadout::print(), EcalSelectiveReadout::printHeader(), printSrFlags(), EcalSelectiveReadoutSuppressor::printTTFlags(), produceDigis_, edm::ESHandle< T >::product(), EcalSelectiveReadoutSuppressor::run(), EcalSelectiveReadoutSuppressor::setSettings(), settings_, suppressor_, suppressorSettingsSet_, trigPrimBypass_, trigPrimBypassMode_, pileupReCalc_HLTpaths::trunc, useCondDb_, and writeSrFlags_.
|
private |
Definition at line 89 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer().
|
private |
Number of event whose TT and SR flags must be dumped into a file.
Definition at line 112 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Definition at line 150 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and getEBDigis().
|
private |
Definition at line 90 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer().
|
private |
Definition at line 94 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Definition at line 92 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Definition at line 152 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and getTrigPrims().
|
private |
Definition at line 151 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and getEEDigis().
|
private |
Definition at line 91 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer().
|
private |
Definition at line 156 of file EcalSelectiveReadoutProducer.h.
Referenced by checkElecMap(), and EcalSelectiveReadoutProducer().
|
private |
Definition at line 95 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Definition at line 93 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Definition at line 155 of file EcalSelectiveReadoutProducer.h.
Referenced by checkTriggerMap(), and EcalSelectiveReadoutProducer().
|
private |
|
private |
Definition at line 140 of file EcalSelectiveReadoutProducer.h.
Referenced by getEEDigis().
|
private |
Definition at line 154 of file EcalSelectiveReadoutProducer.h.
Referenced by checkGeometry(), and EcalSelectiveReadoutProducer().
|
private |
Definition at line 153 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Definition at line 141 of file EcalSelectiveReadoutProducer.h.
Referenced by produce().
|
private |
Switch for suppressed digi production If false SR flags are produced but selective readout is not applied on the crystal channel digis.
Definition at line 121 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
SR settings
Definition at line 125 of file EcalSelectiveReadoutProducer.h.
Referenced by checkWeights(), EcalSelectiveReadoutProducer(), and produce().
|
private |
Used when settings_ is imported from configuration file. Just used for memory management. Used settings_ to access to the object
Definition at line 146 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer().
|
private |
Definition at line 88 of file EcalSelectiveReadoutProducer.h.
Referenced by checkElecMap(), checkGeometry(), checkTriggerMap(), and produce().
|
private |
Definition at line 104 of file EcalSelectiveReadoutProducer.h.
Referenced by produce().
|
private |
Definition at line 102 of file EcalSelectiveReadoutProducer.h.
Referenced by checkElecMap(), and EcalSelectiveReadoutProducer().
|
private |
Definition at line 100 of file EcalSelectiveReadoutProducer.h.
Referenced by checkGeometry(), and EcalSelectiveReadoutProducer().
|
private |
Definition at line 101 of file EcalSelectiveReadoutProducer.h.
Referenced by checkTriggerMap(), and EcalSelectiveReadoutProducer().
|
private |
Definition at line 106 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Definition at line 108 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Definition at line 97 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer().
|
private |
Definition at line 96 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer().
|
private |
Switch for retrieving SR settings from condition database instead of CMSSW python configuration file.
Definition at line 130 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().
|
private |
Special switch to turn off SR entirely using special DB entries
Definition at line 135 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer().
|
private |
switch to write out the SrFlags collections in the event
Definition at line 116 of file EcalSelectiveReadoutProducer.h.
Referenced by EcalSelectiveReadoutProducer(), and produce().