Stores cluster information from the trigger scintillator pads.
More...
#include <TrigScintCluster.h>
|
| TrigScintCluster ()=default |
| Class constructor.
|
|
virtual | ~TrigScintCluster () |
| Class destructor.
|
|
void | Print (Option_t *option="") const |
| Print a description of this object.
|
|
void | Clear (Option_t *option="") |
| Reset the TrigScintCluster object.
|
|
void | addHit (uint idx, const ldmx::TrigScintHit *hit) |
| Take in the hits that make up the cluster.
|
|
void | setSeed (int idx) |
|
void | setEnergy (double energy) |
| Set the cluster energy.
|
|
void | setPE (float PE) |
| Set the cluster photoelectron count (PE)
|
|
void | setNHits (int nHits) |
| The number of hits forming the cluster.
|
|
void | setIDs (std::vector< unsigned int > &hitIDs) |
| The channel numbers of hits forming the cluster.
|
|
void | setCentroidXYZ (double x, double y, double z) |
| The cluster centroid in x,y,z.
|
|
void | setCentroid (double centroid) |
|
void | setTime (float t) |
| Set time of hit.
|
|
float | getTime () const |
| Get time of hit.
|
|
void | setBeamEfrac (float e) |
| Set beam energy fraction of hit.
|
|
float | getBeamEfrac () const |
| Get beam energy fraction of hit.
|
|
int | getSeed () const |
| Get cluster seed channel nb.
|
|
double | getEnergy () const |
| Get cluster total energy deposition.
|
|
double | getPE () const |
| Get cluster total photoelectron count.
|
|
int | getNHits () const |
| Get the number of hits constituting the cluster.
|
|
double | getCentroidX () const |
| Get cluster centroid in x [mm] (not implmented)
|
|
double | getCentroidY () const |
| Get cluster centroid in y [mm] (not implmented)
|
|
double | getCentroidZ () const |
| Get cluster centroid in z [mm] (not implmented)
|
|
const std::vector< unsigned int > & | getHitIDs () const |
| Get vector of channel IDs of hits forming the cluster.
|
|
double | getCentroid () const |
| Get the cluster centroid in units of channel nb.
|
|
bool | operator< (const TrigScintCluster &rhs) const |
|
Stores cluster information from the trigger scintillator pads.
Adds on the ECal cluster functionality
Definition at line 21 of file TrigScintCluster.h.
◆ addHit()
Take in the hits that make up the cluster.
- Parameters
-
idx | The digi hit's entry number in the event's digi collection. |
hit | The digi hit |
◆ getBeamEfrac()
float ldmx::TrigScintCluster::getBeamEfrac |
( |
| ) |
const |
|
inline |
Get beam energy fraction of hit.
Definition at line 108 of file TrigScintCluster.h.
108{ return beamEfrac_; }
◆ getCentroid()
double ldmx::TrigScintCluster::getCentroid |
( |
| ) |
const |
|
inline |
◆ getCentroidX()
double ldmx::TrigScintCluster::getCentroidX |
( |
| ) |
const |
|
inline |
Get cluster centroid in x [mm] (not implmented)
Definition at line 123 of file TrigScintCluster.h.
123{ return centroidX_; }
◆ getCentroidY()
double ldmx::TrigScintCluster::getCentroidY |
( |
| ) |
const |
|
inline |
Get cluster centroid in y [mm] (not implmented)
Definition at line 126 of file TrigScintCluster.h.
126{ return centroidY_; }
◆ getCentroidZ()
double ldmx::TrigScintCluster::getCentroidZ |
( |
| ) |
const |
|
inline |
Get cluster centroid in z [mm] (not implmented)
Definition at line 129 of file TrigScintCluster.h.
129{ return centroidZ_; }
◆ getEnergy()
double ldmx::TrigScintCluster::getEnergy |
( |
| ) |
const |
|
inline |
◆ getHitIDs()
const std::vector< unsigned int > & ldmx::TrigScintCluster::getHitIDs |
( |
| ) |
const |
|
inline |
Get vector of channel IDs of hits forming the cluster.
Definition at line 132 of file TrigScintCluster.h.
◆ getNHits()
int ldmx::TrigScintCluster::getNHits |
( |
| ) |
const |
|
inline |
◆ getPE()
double ldmx::TrigScintCluster::getPE |
( |
| ) |
const |
|
inline |
◆ getSeed()
int ldmx::TrigScintCluster::getSeed |
( |
| ) |
const |
|
inline |
◆ getTime()
float ldmx::TrigScintCluster::getTime |
( |
| ) |
const |
|
inline |
◆ operator<()
Definition at line 137 of file TrigScintCluster.h.
137 {
138 return this->
getEnergy() < rhs.getEnergy();
139 }
double getEnergy() const
Get cluster total energy deposition.
◆ setBeamEfrac()
void ldmx::TrigScintCluster::setBeamEfrac |
( |
float | e | ) |
|
|
inline |
◆ setCentroid()
void ldmx::TrigScintCluster::setCentroid |
( |
double | centroid | ) |
|
|
inline |
◆ setCentroidXYZ()
void ldmx::TrigScintCluster::setCentroidXYZ |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) |
|
inline |
◆ setEnergy()
void ldmx::TrigScintCluster::setEnergy |
( |
double | energy | ) |
|
|
inline |
◆ setIDs()
void ldmx::TrigScintCluster::setIDs |
( |
std::vector< unsigned int > & | hitIDs | ) |
|
|
inline |
◆ setNHits()
void ldmx::TrigScintCluster::setNHits |
( |
int | nHits | ) |
|
|
inline |
◆ setPE()
void ldmx::TrigScintCluster::setPE |
( |
float | PE | ) |
|
|
inline |
◆ setSeed()
void ldmx::TrigScintCluster::setSeed |
( |
int | idx | ) |
|
|
inline |
◆ setTime()
void ldmx::TrigScintCluster::setTime |
( |
float | t | ) |
|
|
inline |
◆ beamEfrac_
float ldmx::TrigScintCluster::beamEfrac_ {0.} |
|
private |
◆ centroid_
double ldmx::TrigScintCluster::centroid_ {-1} |
|
private |
◆ centroidX_
double ldmx::TrigScintCluster::centroidX_ {0} |
|
private |
◆ centroidY_
double ldmx::TrigScintCluster::centroidY_ {0} |
|
private |
◆ centroidZ_
double ldmx::TrigScintCluster::centroidZ_ {0} |
|
private |
◆ energy_
double ldmx::TrigScintCluster::energy_ {0} |
|
private |
◆ hitIDs_
std::vector<unsigned int> ldmx::TrigScintCluster::hitIDs_ |
|
private |
◆ nHits_
int ldmx::TrigScintCluster::nHits_ {0} |
|
private |
◆ PE_
float ldmx::TrigScintCluster::PE_ {0} |
|
private |
◆ seed_
int ldmx::TrigScintCluster::seed_ {-1} |
|
private |
◆ time_
float ldmx::TrigScintCluster::time_ {0.} |
|
private |
The documentation for this class was generated from the following file: