2#ifndef TRIGSCINT_EVENT_TRIGSCINTCLUSTER_H_
3#define TRIGSCINT_EVENT_TRIGSCINTCLUSTER_H_
12#include "TrigScint/Event/TrigScintHit.h"
36 void Print(Option_t *option =
"")
const;
41 void Clear(Option_t *option =
"");
67 void setPE(
float PE) { PE_ = PE; }
79 void setIDs(std::vector<unsigned int> &hitIDs) { hitIDs_ = hitIDs; }
117 double getPE()
const {
return PE_; }
132 const std::vector<unsigned int> &
getHitIDs()
const {
return hitIDs_; }
143 std::vector<unsigned int> hitIDs_;
159 double centroid_{-1};
162 double centroidX_{0};
165 double centroidY_{0};
168 double centroidZ_{0};
172 float beamEfrac_{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.
virtual ~TrigScintCluster()
Class destructor.
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.
void setIDs(std::vector< unsigned int > &hitIDs)
The channel numbers of hits forming the cluster.
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 Print(Option_t *option="") const
Print a description of this object.
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.
double getCentroidX() const
Get cluster centroid in x [mm] (not implmented)
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)
void Clear(Option_t *option="")
Reset the TrigScintCluster object.
float getBeamEfrac() const
Get beam energy fraction of hit.
ClassDef(TrigScintCluster, 1)
The ROOT class definition.
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.