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... | |
uint32_t | flags () const |
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 (const PFRecHit &other)=default | |
copy More... | |
PFRecHit (PFRecHit &&other)=default | |
PFRecHit (std::shared_ptr< const CaloCellGeometry > caloCell, unsigned int detId, PFLayer::Layer layer, float energy, uint32_t flags=0) | |
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 | setFlags (uint32_t flags) |
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_ = nullptr |
cell geometry More... | |
int | depth_ = 0 |
depth More... | |
unsigned int | detId_ = 0 |
cell detid More... | |
float | energy_ = 0 |
rechit energy More... | |
uint32_t | flags_ = 0 |
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.
|
inline |
|
default |
copy
|
default |
|
default |
destructor
void reco::PFRecHit::addNeighbour | ( | short | x, |
short | y, | ||
short | z, | ||
unsigned int | ref | ||
) |
Definition at line 5 of file PFRecHit.cc.
References funct::abs(), cms::cuda::assert(), neighbourInfos_, neighbours4_, neighbours8_, and neighbours_.
|
inlineprivate |
Definition at line 139 of file PFRecHit.h.
References dqmiodumpmetadata::n, and neighbours_.
Referenced by neighbours(), neighbours4(), and neighbours8().
|
inline |
calo cell
Definition at line 89 of file PFRecHit.h.
References caloCell_.
Referenced by getCornersREP(), getCornersXYZ(), position(), and positionREP().
|
inline |
Definition at line 75 of file PFRecHit.h.
References neighbourInfos_, neighbours4_, neighbours8_, and neighbours_.
|
inline |
depth for segemntation
Definition at line 105 of file PFRecHit.h.
References depth_.
Referenced by Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), and setDepth().
|
inline |
rechit detId
Definition at line 93 of file PFRecHit.h.
References detId_.
Referenced by PFAnalysis::associateClusterToSimCluster(), PFECALHashNavigator::associateNeighbours(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), RBXAndHPDCleaner::clean(), ECALPFSeedCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), and PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed().
|
inline |
rechit energy
Definition at line 99 of file PFRecHit.h.
References energy_.
Referenced by PFAnalysis::associateClusterToSimCluster(), RBXAndHPDCleaner::clean(), ECALPFSeedCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), Jet.Jet::rawEnergy(), and setEnergy().
|
inline |
|
inline |
Definition at line 124 of file PFRecHit.h.
References caloCell(), and CaloCellGeometry::getCornersREP().
|
inline |
rechit corners
Definition at line 122 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_.
|
inline |
|
inline |
rechit layer
Definition at line 96 of file PFRecHit.h.
References layer_.
Referenced by Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
|
inline |
|
inline |
|
inline |
Definition at line 81 of file PFRecHit.h.
References buildNeighbours(), and neighbours4_.
Referenced by RBXAndHPDCleaner::clean(), and SpikeAndDoubleSpikeCleaner::clean().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
rechit cell centre x, y, z
Definition at line 117 of file PFRecHit.h.
References PV3DBase< T, PVType, FrameType >::basicVector(), caloCell(), and CaloCellGeometry::getPosition().
Referenced by KDTreeLinkerPSEcal::buildTree(), Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), pt2(), and LinkByRecHit::testECALAndPSByRecHit().
|
inline |
Definition at line 119 of file PFRecHit.h.
References caloCell(), and CaloCellGeometry::repPos().
Referenced by SpikeAndDoubleSpikeCleaner::clean().
|
inline |
rechit momentum transverse to the beam, squared.
Definition at line 108 of file PFRecHit.h.
References energy_, Basic3DVector< T >::mag2(), Basic3DVector< T >::perp2(), and position().
|
inline |
|
inline |
Definition at line 69 of file PFRecHit.h.
References energy(), and energy_.
Referenced by PFHFRecHitCreator::importRecHits().
|
inline |
|
inline |
Definition at line 73 of file PFRecHit.h.
Referenced by PFHBHERecHitCreator::importRecHits(), PFHcalRecHitCreator< Digi, Geometry, Layer, Detector >::importRecHits(), and PFHFRecHitCreator::importRecHits().
|
inline |
timing for cleaned hits
Definition at line 102 of file PFRecHit.h.
References time_.
Referenced by Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), and setTime().
|
private |
cell geometry
Definition at line 142 of file PFRecHit.h.
Referenced by caloCell(), and hasCaloCell().
|
private |
|
private |
|
private |
rechit energy
Definition at line 151 of file PFRecHit.h.
Referenced by energy(), operator<(), operator<=(), operator>(), operator>=(), pt2(), and setEnergy().
|
private |
Definition at line 168 of file PFRecHit.h.
Referenced by flags(), and setFlags().
|
private |
|
private |
Definition at line 161 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), getNeighbour(), and neighbourInfos().
|
private |
Definition at line 164 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), and neighbours4().
|
private |
Definition at line 165 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), and neighbours8().
|
private |
indices to existing neighbours (1 common side)
Definition at line 160 of file PFRecHit.h.
Referenced by addNeighbour(), buildNeighbours(), clearNeighbours(), getNeighbour(), and neighbours().
|
private |