Producer for particle flow rechits (PFRecHit) in HO. More...
#include <PFRecHitProducerHO.h>
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 HcalTopology &topo, const std::map< unsigned, unsigned > &sortedHits) |
find rechit neighbours, using the hashed index More... | |
void | hoNeighbArray (const CaloSubdetectorGeometry &barrelGeom, const HcalTopology &barrelTopo) |
DetId | move (DetId cell, const HcalTopology &barrelTopo, 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 |
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::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) |
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 57 of file PFRecHitProducerHO.cc.
|
private |
Definition at line 174 of file PFRecHitProducerHO.cc.
References funct::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 60 of file PFRecHitProducerHO.cc.
References funct::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 259 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 310 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 362 of file PFRecHitProducerHO.cc.
References HcalTopology::detId2denseIdHO(), EAST, HcalTopology::getHOSize(), CaloSubdetectorGeometry::getValidDetIds(), CaloSubdetectorTopology::getWindow(), 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 559 of file PFRecHitProducerHO.cc.
References HcalTopology::detId2denseIdHO(), dir, neighbourmapcalculated_, neighboursHO_, NONE, and query::result.
Referenced by Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
private |
Definition at line 470 of file PFRecHitProducerHO.cc.
References EAST, NORTH, NORTHEAST, NORTHWEST, query::result, SOUTH, SOUTHEAST, SOUTHWEST, stdsimplemove(), and WEST.
Referenced by hoNeighbArray().
|
private |
Definition at line 437 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.