Go to the documentation of this file.
3 #ifndef EICD_ReconstructedParticle_H
4 #define EICD_ReconstructedParticle_H
13 #include "podio/ObjectID.h"
35 ReconstructedParticle(
eic::Index ID,
eic::VectorXYZ p,
eic::VectorXYZ v,
float time, std::int32_t
pid, std::int16_t
status, std::int16_t
charge,
eic::Weight weight,
eic::Direction direction,
float momentum,
float energy,
float mass);
67 const float&
time()
const;
70 const std::int32_t&
pid()
const;
73 const std::int16_t&
status()
const;
76 const std::int16_t&
charge()
const;
88 const float&
energy()
const;
91 const float&
mass()
const;
111 void time(
float value);
114 void pid(std::int32_t value);
117 void status(std::int16_t value);
120 void charge(std::int16_t value);
139 void mass(
float value);
165 std::ostream&
operator<<(std::ostream& o,
const ConstReconstructedParticle& value);
std::ostream & operator<<(std::ostream &o, const ConstBasicParticle &value)
Definition: BasicParticle.cc:102
const podio::ObjectID getObjectID() const
Definition: ReconstructedParticle.cc:104
const std::int16_t & charge() const
Access the Particle charge (or sign)
Definition: ReconstructedParticle.cc:65
bool operator<(const ReconstructedParticle &other) const
Definition: ReconstructedParticle.h:155
const float & momentum() const
Access the particle 3-momentum magnitude [GeV].
Definition: ReconstructedParticle.cc:68
ReconstructedParticle & operator=(const ReconstructedParticle &other)
copy-assignment operator
Definition: ReconstructedParticle.cc:40
Definition: BasicParticle.cc:13
const eic::VectorXYZ & p() const
Access the momentum vector [GeV].
Definition: ReconstructedParticle.cc:60
Definition: ReconstructedParticleCollection.h:29
const eic::Direction & direction() const
Access the Direction (theta/phi of this particle [mrad])
Definition: ReconstructedParticle.cc:67
const eic::Index & ID() const
Access the Unique particle index.
Definition: ReconstructedParticle.cc:59
const std::int32_t & pid() const
Access the PID of reconstructed particle.
Definition: ReconstructedParticle.cc:63
~ReconstructedParticle()
destructor
Definition: ReconstructedParticle.cc:54
const float & time() const
Access the Time in [ns].
Definition: ReconstructedParticle.cc:62
bool operator==(const ReconstructedParticle &other) const
Definition: ReconstructedParticle.h:151
ReconstructedParticle clone() const
support cloning (deep-copy)
Definition: ReconstructedParticle.cc:50
void unlink()
disconnect from ReconstructedParticleObj instance
Definition: ReconstructedParticle.h:149
const eic::VectorXYZ & v() const
Access the vertex [mm].
Definition: ReconstructedParticle.cc:61
unsigned int id() const
Definition: ReconstructedParticle.h:157
Definition: ReconstructedParticle.h:25
const float & energy() const
Access the Particle energy, consistent with PID assigment [GeV].
Definition: ReconstructedParticle.cc:69
ReconstructedParticle()
default constructor
Definition: ReconstructedParticle.cc:16
Definition: ReconstructedParticleCollection.h:76
Definition: ReconstructedParticleConst.h:23
Definition: ReconstructedParticleObj.h:18
const eic::Weight & weight() const
Access the Particle weight, e.g. from PID algorithm [0-1].
Definition: ReconstructedParticle.cc:66
const float & mass() const
Access the The mass of the particle in [GeV].
Definition: ReconstructedParticle.cc:70
bool isAvailable() const
check whether the object is actually available
Definition: ReconstructedParticle.cc:97
Definition: Direction.h:13
friend class ConstReconstructedParticle
Definition: ReconstructedParticle.h:29
const std::int16_t & status() const
Access the Status code.
Definition: ReconstructedParticle.cc:64
Definition: VectorXYZ.h:13