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 (CaloCellGeometry const *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 | |
CaloCellGeometry const * | 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 38 of file PFRecHit.h.
Definition at line 34 of file PFRecHit.h.
Definition at line 36 of file PFRecHit.h.
using reco::PFRecHit::REPPoint = RhoEtaPhi |
Definition at line 35 of file PFRecHit.h.
Definition at line 37 of file PFRecHit.h.
anonymous enum |
Enumerator | |
---|---|
NONE |
Definition at line 50 of file PFRecHit.h.
|
inline |
default constructor. Sets energy and position to zero
Definition at line 54 of file PFRecHit.h.
Referenced by PFRecHit().
|
inline |
Definition at line 56 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 154 of file PFRecHit.h.
References gen::n, reco::PFRecHit::Neighbours::Neighbours(), and neighbours_.
Referenced by neighbours(), neighbours4(), and neighbours8().
|
inline |
calo cell
Definition at line 104 of file PFRecHit.h.
References caloCell_.
Referenced by getCornersREP(), getCornersXYZ(), position(), and positionREP().
|
inline |
Definition at line 81 of file PFRecHit.h.
References neighbourInfos_, neighbours4_, neighbours8_, and neighbours_.
|
inline |
depth for segemntation
Definition at line 121 of file PFRecHit.h.
References depth_.
Referenced by Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), and setDepth().
|
inline |
rechit detId
Definition at line 108 of file PFRecHit.h.
References detId_.
Referenced by PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >::associateNeighbours(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbours(), HGCRecHitNavigator< D1, hgcee, D2, hgchef, D3, hgcheb >::associateNeighbours(), PFECALHashNavigator::associateNeighbours(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), PFHFRecHitCreator::DetIDSorter::operator()(), operator<<(), PFRecHitQTestECALMultiThreshold::pass(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), and PFRecHitQTestHCALCalib29::test().
|
inline |
rechit energy
Definition at line 114 of file PFRecHit.h.
References energy_.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbour(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), PFAlgo::checkCleaning(), RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), operator<<(), PFRecHitQTestThreshold::pass(), PFRecHitQTestECALMultiThreshold::pass(), PFRecHitQTestThresholdInMIPs::pass(), PFRecHitQTestThresholdInThicknessNormalizedMIPs::pass(), Jet.Jet::rawEnergy(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), setEnergy(), PFRecHitQTestHOThreshold::test(), and PFRecHitQTestHCALCalib29::test().
|
inline |
Definition at line 136 of file PFRecHit.h.
References caloCell(), and CaloCellGeometry::getCornersREP().
|
inline |
rechit corners
Definition at line 134 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 49 of file PFRecHit.cc.
References funct::abs(), mps_fire::i, hpstanc_transforms::max, neighbourInfos_, and neighbours_.
Referenced by setEnergy().
|
inline |
|
inline |
rechit layer
Definition at line 111 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 98 of file PFRecHit.h.
References neighbourInfos_.
|
inline |
Definition at line 94 of file PFRecHit.h.
References buildNeighbours(), and neighbours_.
|
inline |
Definition at line 87 of file PFRecHit.h.
References buildNeighbours(), and neighbours4_.
Referenced by RBXAndHPDCleaner::clean(), and SpikeAndDoubleSpikeCleaner::clean().
|
inline |
Definition at line 90 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 129 of file PFRecHit.h.
References PV3DBase< T, PVType, FrameType >::basicVector(), caloCell(), and CaloCellGeometry::getPosition().
Referenced by KDTreeLinkerPSEcal::buildTree(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), PFAlgo::checkCleaning(), RBXAndHPDCleaner::clean(), pt2(), and LinkByRecHit::testECALAndPSByRecHit().
|
inline |
Definition at line 131 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 124 of file PFRecHit.h.
References energy_, Basic3DVector< T >::mag2(), Basic3DVector< T >::perp2(), and position().
|
inline |
Definition at line 80 of file PFRecHit.h.
References depth(), and depth_.
Referenced by PFHBHERecHitCreatorMaxSample::importRecHits().
|
inline |
Definition at line 74 of file PFRecHit.h.
References addNeighbour(), energy(), energy_, getNeighbour(), and x().
Referenced by PFHFRecHitCreator::importRecHits(), PFRecHitQTestHCALCalib29::test(), PFRecHitQTestThresholdInMIPs::test(), and PFRecHitQTestThresholdInThicknessNormalizedMIPs::test().
|
inline |
Definition at line 79 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 118 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 157 of file PFRecHit.h.
Referenced by caloCell(), and hasCaloCell().
|
private |
|
private |
|
private |
rechit energy
Definition at line 166 of file PFRecHit.h.
Referenced by energy(), operator<(), operator<=(), operator>(), operator>=(), pt2(), and setEnergy().
|
private |
|
private |
Definition at line 177 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), getNeighbour(), and neighbourInfos().
|
private |
Definition at line 180 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), and neighbours4().
|
private |
Definition at line 181 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), and neighbours8().
|
private |
indices to existing neighbours (1 common side)
Definition at line 176 of file PFRecHit.h.
Referenced by addNeighbour(), buildNeighbours(), clearNeighbours(), getNeighbour(), and neighbours().
|
private |