#include <InterestingDetIdFromSuperClusterProducer.h>
Public Member Functions | |
virtual void | beginRun (edm::Run const &, const edm::EventSetup &) override final |
InterestingDetIdFromSuperClusterProducer (const edm::ParameterSet &) | |
ctor More... | |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
producer More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
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 () | |
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, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
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 | |
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::vector< ModuleDescription const * > &modules, 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 |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Attributes | |
const CaloTopology * | caloTopology_ |
std::string | interestingDetIdCollection_ |
bool | keepNextToBoundary_ |
bool | keepNextToDead_ |
int | minimalEtaSize_ |
int | minimalPhiSize_ |
edm::EDGetTokenT< EcalRecHitCollection > | recHitsToken_ |
const EcalSeverityLevelAlgo * | severity_ |
int | severityLevel_ |
edm::EDGetTokenT< reco::SuperClusterCollection > | superClustersToken_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 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) |
Adapted from InterestingDetIdCollectionProducer by J.Bendavid
Make a collection of detids to be kept tipically in a AOD rechit collection
The following classes of "interesting id" are considered
1.All rechits included in all subclusters, plus in a region around the seed of each subcluster The size of the region is specified by minimalEtaSize_, minimalPhiSize_ 2. if the severity of the hit is >= severityLevel_ If severityLevel=0 this class is ignored 3. Channels next to dead ones, keepNextToDead_ is true 4. Channels next to the EB/EE transition if keepNextToBoundary_ is true
Definition at line 47 of file InterestingDetIdFromSuperClusterProducer.h.
|
explicit |
ctor
Definition at line 23 of file InterestingDetIdFromSuperClusterProducer.cc.
References edm::ParameterSet::getParameter(), interestingDetIdCollection_, keepNextToBoundary_, keepNextToDead_, minimalEtaSize_, minimalPhiSize_, recHitsToken_, severityLevel_, AlCaHLTBitMon_QueryRunRegistry::string, and superClustersToken_.
|
finaloverridevirtual |
Definition at line 47 of file InterestingDetIdFromSuperClusterProducer.cc.
References caloTopology_, edm::EventSetup::get(), edm::ESHandle< T >::product(), and severity_.
|
overridevirtual |
producer
Definition at line 60 of file InterestingDetIdFromSuperClusterProducer.cc.
References funct::abs(), edm::SortedCollection< T, SORT >::begin(), caloTopology_, DetId::det(), EcalBarrel, photonPostprocessing_cfi::eMax, edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), plotBeamSpotDB::first, edm::Event::getByToken(), CaloTopology::getSubdetectorTopology(), CaloSubdetectorTopology::getWindow(), cuy::ii, interestingDetIdCollection_, EcalTools::isNextToDead(), EEDetId::isNextToRingBoundary(), keepNextToBoundary_, keepNextToDead_, EcalRecHit::kTPSaturated, minimalEtaSize_, minimalPhiSize_, eostools::move(), DetId::null(), edm::Event::put(), recHitsToken_, severity_, EcalSeverityLevelAlgo::severityLevel(), severityLevel_, DetId::subdetId(), superClustersToken_, ecaldqm::topology(), and tier0::unique().
|
private |
Definition at line 62 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 59 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by InterestingDetIdFromSuperClusterProducer(), and produce().
|
private |
Definition at line 67 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by InterestingDetIdFromSuperClusterProducer(), and produce().
|
private |
Definition at line 66 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by InterestingDetIdFromSuperClusterProducer(), and produce().
|
private |
Definition at line 60 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by InterestingDetIdFromSuperClusterProducer(), and produce().
|
private |
Definition at line 61 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by InterestingDetIdFromSuperClusterProducer(), and produce().
|
private |
Definition at line 57 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by InterestingDetIdFromSuperClusterProducer(), and produce().
|
private |
Definition at line 65 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 64 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by InterestingDetIdFromSuperClusterProducer(), and produce().
|
private |
Definition at line 58 of file InterestingDetIdFromSuperClusterProducer.h.
Referenced by InterestingDetIdFromSuperClusterProducer(), and produce().