35 for(
int i=0;i<3;i++) {
fPosition[i] = position[i]; }
50 for(
int i=0;i<9;i++) {
fEigenVector[i] = eigenvectors[i]; }
55 for(
int i=0;i<6;i++) {
fShape[i] = shape[i]; }
65 fHits.push_back( hit ) ;
86 <<
"\n\tMain EigenVector = ("
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)
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)
static IDNumberGen * create(IDNumber iniValue=std::numeric_limits< IDNumber >::max())
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)
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)
float fPhi
intrasic direction of the cluster phi
bool operator==(const Cluster &rhs) 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)