7 #ifndef GAR_RECONSTRUCTIONDATAPRODUCTS_Cluster_h 8 #define GAR_RECONSTRUCTIONDATAPRODUCTS_Cluster_h 12 #include "CLHEP/Vector/ThreeVector.h" 40 float fShape[6] = {0, 0, 0, 0, 0, 0};
46 std::vector<gar::rec::CaloHit*>
fHits{};
80 const float*
Shape()
const;
82 const std::vector<gar::rec::Track*>&
Tracks()
const;
float fTimeDiffFirstLast
time difference between the first and last layer of the cluster in ns
void setParticleID(int pid)
void setShape(const float *shape)
bool operator!=(const Cluster &rhs) const
float fPosition[3]
position of the cluster in cm
double time_diff(rusage const &a, rusage const &b)
float TimeDiffFirstLast() const
void setEigenVectors(const float *eigenvectors)
void setEnergyError(float energy_error)
int fParticleId
particle id flag
friend std::ostream & operator<<(std::ostream &o, gar::rec::Cluster const &h)
std::vector< gar::rec::CaloHit * > fHits
vector of hit contribution
void setEnergy(float energy)
void addTrack(gar::rec::Track *trk)
float fShape[6]
cluster shape parameters (Ellipsoid r1, r2, r3, vol, width)
float fEnergy
energy of the ecal cluster in GeV
void setPosition(const float *position)
const std::vector< gar::rec::CaloHit * > & CalorimeterHits() const
float fTheta
intrasic direction of the cluster theta
gar::rec::IDNumber getIDNumber() const
std::vector< gar::rec::Track * > fTracks
vector of tracks associated to the cluster
std::vector< float > fWeights
vector of energy contribution of the hits
const float * EigenVectors() const
float fTime
time of the ecal cluster in ns
gar::rec::IDNumber fIDnumero
static gar::rec::IDNumber const FirstNumber
Detector simulation of raw signals on wires.
float fEnergyError
energy of the ecal cluster in GeV
const float * Position() const
void addHit(gar::rec::CaloHit *hit, float contribution)
General GArSoft Utilities.
void setITheta(float theta)
const std::vector< gar::rec::Track * > & Tracks() const
float fPhi
intrasic direction of the cluster phi
const float * Shape() const
const std::vector< float > & HitContributions() const
bool operator==(const Cluster &rhs) const
float EnergyError() const
float fEigenVector[9]
EigenVectors of the cluster corresponding to the 3 main axis sorted in ascending order (main principa...
void setTime(float time, float time_diff)