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