Producer for particle flow rechits (PFRecHit) More...
#include <PFRecHitProducerPS.h>
Public Member Functions | |
PFRecHitProducerPS (const edm::ParameterSet &) | |
~PFRecHitProducerPS () | |
Public Member Functions inherited from PFRecHitProducer | |
virtual void | beginRun (edm::Run &run, const edm::EventSetup &es) |
virtual void | endRun () |
PFRecHitProducer (const edm::ParameterSet &) | |
void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) |
~PFRecHitProducer () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Member Functions | |
void | createRecHits (std::vector< reco::PFRecHit > &rechits, std::vector< reco::PFRecHit > &rechitsCleaned, edm::Event &, const edm::EventSetup &) |
void | findRecHitNeighbours (reco::PFRecHit &rh, const std::map< unsigned, unsigned > &sortedHits, const CaloSubdetectorTopology &barrelTopo, const CaloSubdetectorGeometry &barrelGeom, const CaloSubdetectorTopology &endcapTopo, const CaloSubdetectorGeometry &endcapGeom) |
Private Attributes | |
edm::InputTag | inputTagEcalRecHitsES_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Types inherited from PFRecHitProducer | |
typedef std::map< unsigned, unsigned >::const_iterator | IDH |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Protected Attributes inherited from PFRecHitProducer | |
const HcalPFCorrs * | myPFCorr |
const EcalChannelStatus * | theEcalChStatus |
const HcalChannelQuality * | theHcalChStatus |
const CaloTowerConstituentsMap * | theTowerConstituentsMap |
double | thresh_Barrel_ |
rechits with E < threshold will not give rise to a PFRecHit More... | |
double | thresh_Endcap_ |
bool | verbose_ |
verbose ? More... | |
Producer for particle flow rechits (PFRecHit)
Definition at line 32 of file PFRecHitProducerPS.h.
|
explicit |
Definition at line 32 of file PFRecHitProducerPS.cc.
References edm::ParameterSet::getParameter(), and inputTagEcalRecHitsES_.
PFRecHitProducerPS::~PFRecHitProducerPS | ( | ) |
Definition at line 45 of file PFRecHitProducerPS.cc.
|
privatevirtual |
gets PS rechits, translate them to PFRecHits, which are stored in the rechits vector
Implements PFRecHitProducer.
Definition at line 49 of file PFRecHitProducerPS.cc.
References CaloRecHit::detid(), cond::rpcobgas::detid, DetId::Ecal, EcalPreshower, CaloRecHit::energy(), relval_parameters_module::energy, edm::hlt::Exception, findRecHitNeighbours(), newFWLiteAna::found, edm::EventSetup::get(), edm::Event::getByLabel(), CaloCellGeometry::getCorners(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), i, inputTagEcalRecHitsES_, edm::HandleBase::isValid(), LogDebug, PFLayer::NONE, ESDetId::plane(), position, edm::Handle< T >::product(), PFLayer::PS1, PFLayer::PS2, DetId::rawId(), reco::PFRecHit::setNECorner(), reco::PFRecHit::setNWCorner(), reco::PFRecHit::setSECorner(), reco::PFRecHit::setSWCorner(), PFRecHitProducer::thresh_Endcap_, x, PV3DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, and PV3DBase< T, PVType, FrameType >::z().
|
private |
find and set the neighbours to a given rechit this works for ecal, hcal, ps COLIN remonter cette fonction dans la classe de base
Definition at line 169 of file PFRecHitProducerPS.cc.
References reco::PFRecHit::add4Neighbour(), reco::PFRecHit::add8Neighbour(), cond::rpcobgas::detid, reco::PFRecHit::detId(), east, CaloNavigator< T >::east(), PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, geometry, PFLayer::HCAL_BARREL1, PFLayer::HCAL_ENDCAP, CaloNavigator< T >::home(), i, reco::PFRecHit::layer(), north, CaloNavigator< T >::north(), PFLayer::PS1, PFLayer::PS2, DetId::rawId(), south, CaloNavigator< T >::south(), west, and CaloNavigator< T >::west().
Referenced by createRecHits().
|
private |
Definition at line 63 of file PFRecHitProducerPS.h.
Referenced by createRecHits(), and PFRecHitProducerPS().