Producer for particle flow rechits (PFRecHit) in HO. More...
#include <PFRecHitProducerHO.h>
Public Member Functions | |
PFRecHitProducerHO (const edm::ParameterSet &) | |
~PFRecHitProducerHO () | |
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 | |
reco::PFRecHit * | createHORecHit (const DetId &detid, double energy, PFLayer::Layer layer, const CaloSubdetectorGeometry *geom) |
void | createRecHits (std::vector< reco::PFRecHit > &rechits, std::vector< reco::PFRecHit > &rechitsCleaned, edm::Event &, const edm::EventSetup &) |
bool | findHORecHitGeometry (const DetId &detid, const CaloSubdetectorGeometry *geom, math::XYZVector &position, math::XYZVector &axis) |
find the position and the axis of the cell for a given rechit More... | |
void | findRecHitNeighbours (reco::PFRecHit &rh, const std::map< unsigned, unsigned > &sortedHits, const CaloSubdetectorTopology &barrelTopo, const CaloSubdetectorGeometry &barrelGeom) |
void | findRecHitNeighboursHO (reco::PFRecHit &rh, const std::map< unsigned, unsigned > &sortedHits) |
find rechit neighbours, using the hashed index More... | |
void | hoNeighbArray (const CaloSubdetectorGeometry &barrelGeom, const CaloSubdetectorTopology &barrelTopo) |
DetId | move (DetId cell, const CaloDirection &dir) const |
bool | stdmove (DetId &cell, const CaloDirection &dir, const CaloSubdetectorTopology &barrelTopo, const CaloSubdetectorGeometry &barrelGeom) const |
bool | stdsimplemove (DetId &cell, const CaloDirection &dir, const CaloSubdetectorTopology &barrelTopo, const CaloSubdetectorGeometry &barrelGeom) const |
Private Attributes | |
int | HOMaxAllowedSev_ |
edm::InputTag | inputTagHORecHits_ |
bool | neighbourmapcalculated_ |
set to true in hoNeighbArray More... | |
std::vector< std::vector< DetId > > | neighboursHO_ |
for each HO barrel rechit, keep track of the neighbours More... | |
double | thresholdR0_ |
double | thresholdR1_ |
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) in HO.
Definition at line 35 of file PFRecHitProducerHO.h.
|
explicit |
Definition at line 43 of file PFRecHitProducerHO.cc.
References edm::ParameterSet::getParameter(), HOMaxAllowedSev_, inputTagHORecHits_, and neighbourmapcalculated_.
PFRecHitProducerHO::~PFRecHitProducerHO | ( | ) |
Definition at line 56 of file PFRecHitProducerHO.cc.
|
private |
Definition at line 172 of file PFRecHitProducerHO.cc.
References abs, relval_parameters_module::energy, CaloCellGeometry::getCorners(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), position, DetId::rawId(), reco::PFRecHit::setNECorner(), reco::PFRecHit::setNWCorner(), reco::PFRecHit::setSECorner(), reco::PFRecHit::setSWCorner(), x, PV3DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by createRecHits().
|
privatevirtual |
translate the standard rechits ( or calotowers) them to PFRecHits, which are stored in the rechits vector
Implements PFRecHitProducer.
Definition at line 59 of file PFRecHitProducerHO.cc.
References abs, createHORecHit(), CaloRecHit::detid(), cond::rpcobgas::detid, CaloRecHit::energy(), relval_parameters_module::energy, edm::hlt::Exception, findRecHitNeighboursHO(), CaloRecHit::flags(), newFWLiteAna::found, edm::EventSetup::get(), edm::Event::getByLabel(), HcalSeverityLevelComputer::getSeverityLevel(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), DetId::Hcal, PFLayer::HCAL_BARREL2, HcalOuter, HOMaxAllowedSev_, hoNeighbArray(), i, HcalDetId::ieta(), inputTagHORecHits_, edm::HandleBase::isValid(), neighbourmapcalculated_, edm::ESHandle< class >::product(), DetId::rawId(), reco::PFRecHit::setRescale(), DetId::subdetId(), PFRecHitProducer::theHcalChStatus, PFRecHitProducer::thresh_Barrel_, PFRecHitProducer::thresh_Endcap_, CaloRecHit::time(), and cond::rpcobgas::time.
|
private |
find the position and the axis of the cell for a given rechit
Definition at line 257 of file PFRecHitProducerHO.cc.
References CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), DetId::rawId(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
|
private |
find rechit neighbours, using the hashed index
Definition at line 308 of file PFRecHitProducerHO.cc.
References reco::PFRecHit::add4Neighbour(), reco::PFRecHit::add8Neighbour(), reco::PFRecHit::detId(), EAST, east, i, NORTH, north, NORTHEAST, NORTHWEST, DetId::rawId(), SOUTH, south, SOUTHEAST, SOUTHWEST, WEST, and west.
Referenced by createRecHits().
|
private |
fill the vectors neighboursEB_ and neighboursEE_ which keep track of the neighbours of each rechit. to be called at the beginning of the run
Definition at line 359 of file PFRecHitProducerHO.cc.
References EAST, CaloSubdetectorGeometry::getValidDetIds(), CaloSubdetectorTopology::getWindow(), HcalDetId::hashed_index(), DetId::Hcal, HcalOuter, recoMuon::in, LogDebug, neighbourmapcalculated_, neighboursHO_, NORTH, NORTHEAST, NORTHWEST, findQualityFiles::size, SOUTH, SOUTHEAST, SOUTHWEST, ntuplemaker::status, stdmove(), and WEST.
Referenced by createRecHits().
|
private |
Definition at line 556 of file PFRecHitProducerHO.cc.
References dir, HcalDetId::hashed_index(), neighbourmapcalculated_, neighboursHO_, NONE, and query::result.
Referenced by Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
private |
Definition at line 467 of file PFRecHitProducerHO.cc.
References EAST, NORTH, NORTHEAST, NORTHWEST, query::result, SOUTH, SOUTHEAST, SOUTHWEST, stdsimplemove(), and WEST.
Referenced by hoNeighbArray().
|
private |
Definition at line 434 of file PFRecHitProducerHO.cc.
References CaloSubdetectorTopology::getNeighbours(), HcalOuter, and DetId::subdetId().
Referenced by stdmove().
|
private |
Definition at line 114 of file PFRecHitProducerHO.h.
Referenced by createRecHits(), and PFRecHitProducerHO().
|
private |
Definition at line 105 of file PFRecHitProducerHO.h.
Referenced by createRecHits(), and PFRecHitProducerHO().
|
private |
set to true in hoNeighbArray
Definition at line 99 of file PFRecHitProducerHO.h.
Referenced by createRecHits(), hoNeighbArray(), move(), and PFRecHitProducerHO().
|
private |
for each HO barrel rechit, keep track of the neighbours
Definition at line 96 of file PFRecHitProducerHO.h.
Referenced by hoNeighbArray(), and move().
|
private |
Definition at line 108 of file PFRecHitProducerHO.h.
|
private |
Definition at line 111 of file PFRecHitProducerHO.h.