Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClusterAlgo. More...
#include <PFRecHit.h>
Classes | |
struct | Neighbours |
Public Types | |
enum | { NONE = 0 } |
using | CornersVec = CaloCellGeometry::CornersVec |
using | PositionType = GlobalPoint::BasicVectorType |
using | RepCorners = CaloCellGeometry::RepCorners |
using | REPPoint = RhoEtaPhi |
using | REPPointVector = RepCorners |
Public Member Functions | |
void | addNeighbour (short x, short y, short z, unsigned int) |
CaloCellGeometry const & | caloCell () const |
calo cell More... | |
void | clearNeighbours () |
int | depth () const |
depth for segemntation More... | |
unsigned | detId () const |
rechit detId More... | |
float | energy () const |
rechit energy More... | |
RepCorners const & | getCornersREP () const |
CornersVec const & | getCornersXYZ () const |
rechit corners More... | |
unsigned int | getNeighbour (short x, short y, short z) const |
bool | hasCaloCell () const |
PFLayer::Layer | layer () const |
rechit layer More... | |
const std::vector< unsigned short > & | neighbourInfos () |
Neighbours | neighbours () const |
Neighbours | neighbours4 () const |
Neighbours | neighbours8 () const |
bool | operator< (const PFRecHit &rhs) const |
comparison < operator More... | |
bool | operator<= (const PFRecHit &rhs) const |
comparison <= operator More... | |
PFRecHit & | operator= (const PFRecHit &other)=default |
PFRecHit & | operator= (PFRecHit &&other)=default |
bool | operator> (const PFRecHit &rhs) const |
comparison > operator More... | |
bool | operator>= (const PFRecHit &rhs) const |
comparison >= operator More... | |
PFRecHit () | |
default constructor. Sets energy and position to zero More... | |
PFRecHit (std::shared_ptr< const CaloCellGeometry > caloCell, unsigned int detId, PFLayer::Layer layer, float energy) | |
PFRecHit (const PFRecHit &other)=default | |
copy More... | |
PFRecHit (PFRecHit &&other)=default | |
PositionType const & | position () const |
rechit cell centre x, y, z More... | |
RhoEtaPhi const & | positionREP () const |
double | pt2 () const |
rechit momentum transverse to the beam, squared. More... | |
void | setDepth (int depth) |
void | setEnergy (float energy) |
void | setTime (double time) |
float | time () const |
timing for cleaned hits More... | |
~PFRecHit ()=default | |
destructor More... | |
Private Member Functions | |
Neighbours | buildNeighbours (unsigned int n) const |
Private Attributes | |
std::shared_ptr< const CaloCellGeometry > | caloCell_ = 0 |
cell geometry More... | |
int | depth_ = 0 |
depth More... | |
unsigned int | detId_ = 0 |
cell detid More... | |
float | energy_ = 0 |
rechit energy More... | |
PFLayer::Layer | layer_ = PFLayer::NONE |
rechit layer More... | |
std::vector< unsigned short > | neighbourInfos_ |
unsigned int | neighbours4_ = 0 |
unsigned int | neighbours8_ = 0 |
std::vector< unsigned int > | neighbours_ |
indices to existing neighbours (1 common side) More... | |
float | time_ = -1 |
time More... | |
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClusterAlgo.
Feb 2014 [Michalis: 8 years later!Modifying the class to be able to generalize the neighbours for 3D calorimeters ]
Definition at line 31 of file PFRecHit.h.
Definition at line 37 of file PFRecHit.h.
Definition at line 33 of file PFRecHit.h.
Definition at line 35 of file PFRecHit.h.
using reco::PFRecHit::REPPoint = RhoEtaPhi |
Definition at line 34 of file PFRecHit.h.
Definition at line 36 of file PFRecHit.h.
anonymous enum |
|
inline |
default constructor. Sets energy and position to zero
Definition at line 51 of file PFRecHit.h.
Referenced by PFRecHit().
|
inline |
Definition at line 53 of file PFRecHit.h.
References operator=(), trackingPlots::other, PFRecHit(), and ~PFRecHit().
|
default |
copy
|
default |
|
default |
destructor
Referenced by PFRecHit().
void reco::PFRecHit::addNeighbour | ( | short | x, |
short | y, | ||
short | z, | ||
unsigned int | ref | ||
) |
Definition at line 5 of file PFRecHit.cc.
References funct::abs(), neighbourInfos_, neighbours4_, neighbours8_, and neighbours_.
Referenced by PFRecHitNavigatorBase::associateNeighbour(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbour(), and setEnergy().
|
inlineprivate |
Definition at line 129 of file PFRecHit.h.
References dqmiodumpmetadata::n, reco::PFRecHit::Neighbours::Neighbours(), and neighbours_.
Referenced by neighbours(), neighbours4(), and neighbours8().
|
inline |
calo cell
Definition at line 85 of file PFRecHit.h.
References caloCell_.
Referenced by getCornersREP(), getCornersXYZ(), position(), and positionREP().
|
inline |
Definition at line 71 of file PFRecHit.h.
References neighbourInfos_, neighbours4_, neighbours8_, and neighbours_.
|
inline |
depth for segemntation
Definition at line 101 of file PFRecHit.h.
References depth_.
Referenced by Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), and setDepth().
|
inline |
rechit detId
Definition at line 89 of file PFRecHit.h.
References detId_.
Referenced by PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >::associateNeighbours(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbours(), PFECALHashNavigator::associateNeighbours(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::associateNeighbours(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), PFHFRecHitCreator::DetIDSorter::operator()(), operator<<(), PFRecHitQTestDBThreshold::pass(), PFRecHitQTestECALMultiThreshold::pass(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), and PFRecHitQTestHCALCalib29::test().
|
inline |
rechit energy
Definition at line 95 of file PFRecHit.h.
References energy_.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbour(), PFAlgo::checkCleaning(), RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), operator<<(), PFRecHitQTestThreshold::pass(), PFRecHitQTestDBThreshold::pass(), PFRecHitQTestECALMultiThreshold::pass(), PFRecHitQTestThresholdInMIPs::pass(), PFRecHitQTestThresholdInThicknessNormalizedMIPs::pass(), Jet.Jet::rawEnergy(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), setEnergy(), PFRecHitQTestHOThreshold::test(), and PFRecHitQTestHCALCalib29::test().
|
inline |
Definition at line 114 of file PFRecHit.h.
References caloCell(), and CaloCellGeometry::getCornersREP().
|
inline |
rechit corners
Definition at line 112 of file PFRecHit.h.
References caloCell(), and CaloCellGeometry::getCorners().
Referenced by LinkByRecHit::testECALAndPSByRecHit().
unsigned int reco::PFRecHit::getNeighbour | ( | short | x, |
short | y, | ||
short | z | ||
) | const |
Definition at line 46 of file PFRecHit.cc.
References funct::abs(), mps_fire::i, SiStripPI::max, neighbourInfos_, and neighbours_.
Referenced by setEnergy().
|
inline |
Definition at line 86 of file PFRecHit.h.
References caloCell_.
Referenced by operator<<().
|
inline |
rechit layer
Definition at line 92 of file PFRecHit.h.
References layer_.
Referenced by PFRecHitDualNavigator< D1, barrel, D2, endcap >::associateNeighbours(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), PFAlgo::checkCleaning(), RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and operator<<().
|
inline |
Definition at line 82 of file PFRecHit.h.
References neighbourInfos_.
|
inline |
Definition at line 80 of file PFRecHit.h.
References buildNeighbours(), and neighbours_.
|
inline |
Definition at line 77 of file PFRecHit.h.
References buildNeighbours(), and neighbours4_.
Referenced by RBXAndHPDCleaner::clean(), and SpikeAndDoubleSpikeCleaner::clean().
|
inline |
Definition at line 78 of file PFRecHit.h.
References buildNeighbours(), and neighbours8_.
|
inline |
|
inline |
Referenced by PFRecHit().
|
inline |
|
inline |
|
inline |
rechit cell centre x, y, z
Definition at line 107 of file PFRecHit.h.
References PV3DBase< T, PVType, FrameType >::basicVector(), caloCell(), and CaloCellGeometry::getPosition().
Referenced by KDTreeLinkerPSEcal::buildTree(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), PFAlgo::checkCleaning(), pt2(), and LinkByRecHit::testECALAndPSByRecHit().
|
inline |
Definition at line 109 of file PFRecHit.h.
References caloCell(), and CaloCellGeometry::repPos().
Referenced by SpikeAndDoubleSpikeCleaner::clean(), and operator<<().
|
inline |
rechit momentum transverse to the beam, squared.
Definition at line 104 of file PFRecHit.h.
References energy_, Basic3DVector< T >::mag2(), Basic3DVector< T >::perp2(), and position().
|
inline |
|
inline |
Definition at line 65 of file PFRecHit.h.
References addNeighbour(), energy(), energy_, and getNeighbour().
Referenced by PFHFRecHitCreator::importRecHits(), PFRecHitQTestHCALCalib29::test(), PFRecHitQTestThresholdInMIPs::test(), and PFRecHitQTestThresholdInThicknessNormalizedMIPs::test().
|
inline |
Definition at line 69 of file PFRecHit.h.
Referenced by PFHBHERecHitCreator::importRecHits(), PFHcalRecHitCreator< Digi, Geometry, Layer, Detector >::importRecHits(), PFHFRecHitCreator::importRecHits(), and PFCTRecHitProducer::produce().
|
inline |
timing for cleaned hits
Definition at line 98 of file PFRecHit.h.
References time_.
Referenced by PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbour(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), PFAlgo::checkCleaning(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), operator<<(), and setTime().
|
private |
cell geometry
Definition at line 132 of file PFRecHit.h.
Referenced by caloCell(), and hasCaloCell().
|
private |
|
private |
|
private |
rechit energy
Definition at line 141 of file PFRecHit.h.
Referenced by energy(), operator<(), operator<=(), operator>(), operator>=(), pt2(), and setEnergy().
|
private |
|
private |
Definition at line 151 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), getNeighbour(), and neighbourInfos().
|
private |
Definition at line 154 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), and neighbours4().
|
private |
Definition at line 155 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), and neighbours8().
|
private |
indices to existing neighbours (1 common side)
Definition at line 150 of file PFRecHit.h.
Referenced by addNeighbour(), buildNeighbours(), clearNeighbours(), getNeighbour(), and neighbours().
|
private |