1 #ifndef ParticleFlowReco_PFRecHit_h 2 #define ParticleFlowReco_PFRecHit_h 12 #include "Math/GenVector/PositionVector3D.h" 46 unsigned int size()
const {
return e -
b; }
71 void addNeighbour(
short x,
short y,
short z,
unsigned int);
72 unsigned int getNeighbour(
short x,
short y,
short z)
const;
142 std::shared_ptr<const CaloCellGeometry>
caloCell_ =
nullptr;
EZArrayFL< GlobalPoint > CornersVec
float energy_
rechit energy
BaseClass::BasicVectorType BasicVectorType
std::vector< unsigned short > neighbourInfos_
RepCorners const & getCornersREP() const
RhoEtaPhi const & repPos() const
T perp2() const
Squared magnitude of transverse component.
std::vector< unsigned int > neighbours_
indices to existing neighbours (1 common side)
unsigned int neighbours4_
Neighbours neighbours4() const
PFRecHit & operator=(const PFRecHit &other)=default
double pt2() const
rechit momentum transverse to the beam, squared.
void addNeighbour(short x, short y, short z, unsigned int)
PFLayer::Layer layer() const
rechit layer
unsigned int detId_
cell detid
PFLayer::Layer layer_
rechit layer
float time() const
timing for cleaned hits
std::shared_ptr< const CaloCellGeometry > caloCell_
cell geometry
PositionType const & position() const
rechit cell centre x, y, z
unsigned int neighbours8_
unsigned detId() const
rechit detId
CornersVec const & getCornersXYZ() const
rechit corners
unsigned int const * Pointer
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
bool operator>=(const PFRecHit &rhs) const
comparison >= operator
bool operator>(const PFRecHit &rhs) const
comparison > operator
void setFlags(uint32_t flags)
std::array< RhoEtaPhi, k_cornerSize > RepCorners
bool operator<=(const PFRecHit &rhs) const
comparison <= operator
RhoEtaPhi const & positionREP() const
void setTime(double time)
const BasicVectorType & basicVector() const
PFRecHit(std::shared_ptr< const CaloCellGeometry > caloCell, unsigned int detId, PFLayer::Layer layer, float energy, uint32_t flags=0)
bool operator<(const PFRecHit &rhs) const
comparison < operator
CaloCellGeometry::RepCorners RepCorners
RepCorners const & getCornersREP() const
RepCorners REPPointVector
std::ostream & operator<<(std::ostream &out, const reco::PFRecHit &hit)
unsigned int getNeighbour(short x, short y, short z) const
virtual const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
Neighbours buildNeighbours(unsigned int n) const
float energy() const
rechit energy
~PFRecHit()=default
destructor
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
void setEnergy(float energy)
Neighbours neighbours() const
Neighbours neighbours8() const
CornersVec const & getCorners() const
Returns the corner points of this cell's volume.
unsigned int size() const
int depth() const
depth for segemntation
Neighbours(Pointer ib, unsigned int n)
const std::vector< unsigned short > & neighbourInfos()
PFRecHit()
default constructor. Sets energy and position to zero
CaloCellGeometry const & caloCell() const
calo cell