#include <EgammaHLTNxNClusterProducer.h>
Public Member Functions | |
EgammaHLTNxNClusterProducer (const edm::ParameterSet &ps) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
~EgammaHLTNxNClusterProducer () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
bool | checkStatusOfEcalRecHit (const EcalChannelStatus &channelStatus, const EcalRecHit &rh) |
void | makeNxNClusters (edm::Event &evt, const edm::EventSetup &es, const EcalRecHitCollection *hits, const reco::CaloID::Detectors detector) |
Private Attributes | |
const std::string | barrelClusterCollection_ |
const edm::EDGetTokenT < EcalRecHitCollection > | barrelHitProducer_ |
const int | clusEtaSize_ |
const int | clusPhiSize_ |
const double | clusSeedThr_ |
const double | clusSeedThrEndCap_ |
const int | debug_ |
const bool | doBarrel_ |
const bool | doEndcaps_ |
const std::string | endcapClusterCollection_ |
const edm::EDGetTokenT < EcalRecHitCollection > | endcapHitProducer_ |
const int | flagLevelRecHitsToUse_ |
const int | maxNumberofClusters_ |
const int | maxNumberofSeeds_ |
PositionCalc | posCalculator_ |
const int | statusLevelRecHitsToUse_ |
const bool | useDBStatus_ |
const bool | useRecoFlag_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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) |
Definition at line 47 of file EgammaHLTNxNClusterProducer.h.
EgammaHLTNxNClusterProducer::EgammaHLTNxNClusterProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 27 of file EgammaHLTNxNClusterProducer.cc.
References barrelClusterCollection_, and endcapClusterCollection_.
EgammaHLTNxNClusterProducer::~EgammaHLTNxNClusterProducer | ( | ) |
Definition at line 52 of file EgammaHLTNxNClusterProducer.cc.
|
private |
from recoFlag()
good
good || PoorCalib
good || PoorCalib || LeadingEdgeRecovered || kNeighboursRecovered,
Definition at line 122 of file EgammaHLTNxNClusterProducer.cc.
References archive::flag, flagLevelRecHitsToUse_, EcalRecHit::id(), DetId::rawId(), EcalRecHit::recoFlag(), ntuplemaker::status, statusLevelRecHitsToUse_, useDBStatus_, and useRecoFlag_.
Referenced by makeNxNClusters().
|
static |
Definition at line 55 of file EgammaHLTNxNClusterProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
get status from DB
if too much clusters made, then return 0 also
Definition at line 147 of file EgammaHLTNxNClusterProducer.cc.
References barrelClusterCollection_, edm::SortedCollection< T, SORT >::begin(), PositionCalc::Calculate_Location(), checkStatusOfEcalRecHit(), clusEtaSize_, clusPhiSize_, clusSeedThr_, clusSeedThrEndCap_, HLT_25ns14e33_v1_cff::clusters, debug_, reco::CaloID::DET_ECAL_BARREL, cond::rpcobgas::detid, DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, edm::SortedCollection< T, SORT >::end(), endcapClusterCollection_, relval_parameters_module::energy, edm::EventID::event(), spr::find(), edm::SortedCollection< T, SORT >::find(), edm::EventSetup::get(), edm::EventBase::id(), reco::CaloCluster::island, LogDebug, maxNumberofClusters_, maxNumberofSeeds_, posCalculator_, edm::Event::put(), edm::EventID::run(), python.multivaluedict::sort(), and useDBStatus_.
Referenced by produce().
|
overridevirtual |
Implements edm::EDProducer.
Definition at line 88 of file EgammaHLTNxNClusterProducer.cc.
References barrelHitProducer_, debug_, reco::CaloID::DET_ECAL_BARREL, reco::CaloID::DET_ECAL_ENDCAP, doBarrel_, doEndcaps_, endcapHitProducer_, edm::EventID::event(), edm::Event::getByToken(), edm::EventBase::id(), edm::HandleBase::isValid(), LogDebug, makeNxNClusters(), edm::Handle< T >::product(), edm::EventID::run(), and edm::SortedCollection< T, SORT >::size().
|
private |
Definition at line 70 of file EgammaHLTNxNClusterProducer.h.
Referenced by EgammaHLTNxNClusterProducer(), and makeNxNClusters().
|
private |
Definition at line 66 of file EgammaHLTNxNClusterProducer.h.
Referenced by produce().
|
private |
Definition at line 68 of file EgammaHLTNxNClusterProducer.h.
Referenced by makeNxNClusters().
|
private |
Definition at line 69 of file EgammaHLTNxNClusterProducer.h.
Referenced by makeNxNClusters().
|
private |
Definition at line 72 of file EgammaHLTNxNClusterProducer.h.
Referenced by makeNxNClusters().
|
private |
Definition at line 73 of file EgammaHLTNxNClusterProducer.h.
Referenced by makeNxNClusters().
|
private |
Definition at line 83 of file EgammaHLTNxNClusterProducer.h.
Referenced by makeNxNClusters(), and produce().
|
private |
Definition at line 64 of file EgammaHLTNxNClusterProducer.h.
Referenced by produce().
|
private |
Definition at line 65 of file EgammaHLTNxNClusterProducer.h.
Referenced by produce().
|
private |
Definition at line 71 of file EgammaHLTNxNClusterProducer.h.
Referenced by EgammaHLTNxNClusterProducer(), and makeNxNClusters().
|
private |
Definition at line 67 of file EgammaHLTNxNClusterProducer.h.
Referenced by produce().
|
private |
Definition at line 76 of file EgammaHLTNxNClusterProducer.h.
Referenced by checkStatusOfEcalRecHit().
|
private |
Definition at line 81 of file EgammaHLTNxNClusterProducer.h.
Referenced by makeNxNClusters().
|
private |
Definition at line 80 of file EgammaHLTNxNClusterProducer.h.
Referenced by makeNxNClusters().
|
private |
Definition at line 85 of file EgammaHLTNxNClusterProducer.h.
Referenced by makeNxNClusters().
|
private |
Definition at line 78 of file EgammaHLTNxNClusterProducer.h.
Referenced by checkStatusOfEcalRecHit().
|
private |
Definition at line 77 of file EgammaHLTNxNClusterProducer.h.
Referenced by checkStatusOfEcalRecHit(), and makeNxNClusters().
|
private |
Definition at line 75 of file EgammaHLTNxNClusterProducer.h.
Referenced by checkStatusOfEcalRecHit().