2#ifndef TRIGSCINT_EVENT_TRIGSCINTCLUSTER_H_
3#define TRIGSCINT_EVENT_TRIGSCINTCLUSTER_H_
12#include "TrigScint/Event/TrigScintHit.h"
41 void clear(Option_t *option =
"");
67 void setPE(
float PE) { pe_ = PE; }
79 void setIDs(std::vector<unsigned int> &hitIDs) { hit_ids_ = hitIDs; }
117 double getPE()
const {
return pe_; }
132 const std::vector<unsigned int> &
getHitIDs()
const {
return hit_ids_; }
143 std::vector<unsigned int> hit_ids_;
159 double centroid_{-1};
162 double centroid_x_{0};
165 double centroid_y_{0};
168 double centroid_z_{0};
172 float beam_efrac_{0.};
Class providing string constants for the event model.
Class that stores full reconstructed (linearized) readout QIE sample from the TS.
Stores cluster information from the trigger scintillator pads.
int getNHits() const
Get the number of hits constituting the cluster.
int getSeed() const
Get cluster seed channel nb.
double getPE() const
Get cluster total photoelectron count.
ClassDef(TrigScintCluster, 3)
The ROOT class definition.
void setIDs(std::vector< unsigned int > &hitIDs)
The channel numbers of hits forming the cluster.
virtual ~TrigScintCluster()
Class destructor.
void setNHits(int nHits)
The number of hits forming the cluster.
TrigScintCluster()=default
Class constructor.
void setCentroidXYZ(double x, double y, double z)
The cluster centroid in x,y,z.
void setEnergy(double energy)
Set the cluster energy.
void setCentroid(double centroid)
double getCentroidZ() const
Get cluster centroid in z [mm] (not implmented)
float getTime() const
Get time of hit.
const std::vector< unsigned int > & getHitIDs() const
Get vector of channel IDs of hits forming the cluster.
double getEnergy() const
Get cluster total energy deposition.
friend std::ostream & operator<<(std::ostream &o, const TrigScintCluster &d)
Print a description of this object.
double getCentroidX() const
Get cluster centroid in x [mm] (not implmented)
void clear(Option_t *option="")
Reset the TrigScintCluster object.
void setPE(float PE)
Set the cluster photoelectron count (PE)
void setBeamEfrac(float e)
Set beam energy fraction of hit.
void setTime(float t)
Set time of hit.
double getCentroidY() const
Get cluster centroid in y [mm] (not implmented)
float getBeamEfrac() const
Get beam energy fraction of hit.
double getCentroid() const
Get the cluster centroid in units of channel nb.
void addHit(uint idx, const ldmx::TrigScintHit *hit)
Take in the hits that make up the cluster.