LDMX Software
|
Stores cluster information from the trigger scintillator pads. More...
#include <TrigScintCluster.h>
Public Member Functions | |
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 |
Private Member Functions | |
ClassDef (TrigScintCluster, 1) | |
The ROOT class definition. | |
Private Attributes | |
std::vector< unsigned int > | hitIDs_ |
double | energy_ {0} |
int | nHits_ {0} |
float | PE_ {0} |
int | seed_ {-1} |
double | centroid_ {-1} |
double | centroidX_ {0} |
double | centroidY_ {0} |
double | centroidZ_ {0} |
float | beamEfrac_ {0.} |
float | time_ {0.} |
Stores cluster information from the trigger scintillator pads.
Adds on the ECal cluster functionality
Definition at line 21 of file TrigScintCluster.h.
void ldmx::TrigScintCluster::addHit | ( | uint | idx, |
const ldmx::TrigScintHit * | hit | ||
) |
Take in the hits that make up the cluster.
idx | The digi hit's entry number in the event's digi collection. |
hit | The digi hit |
|
inline |
Get beam energy fraction of hit.
Definition at line 108 of file TrigScintCluster.h.
|
inline |
Get the cluster centroid in units of channel nb.
Definition at line 135 of file TrigScintCluster.h.
|
inline |
Get cluster centroid in x [mm] (not implmented)
Definition at line 123 of file TrigScintCluster.h.
|
inline |
Get cluster centroid in y [mm] (not implmented)
Definition at line 126 of file TrigScintCluster.h.
|
inline |
Get cluster centroid in z [mm] (not implmented)
Definition at line 129 of file TrigScintCluster.h.
|
inline |
Get cluster total energy deposition.
Definition at line 114 of file TrigScintCluster.h.
|
inline |
Get vector of channel IDs of hits forming the cluster.
Definition at line 132 of file TrigScintCluster.h.
|
inline |
Get the number of hits constituting the cluster.
Definition at line 120 of file TrigScintCluster.h.
|
inline |
Get cluster total photoelectron count.
Definition at line 117 of file TrigScintCluster.h.
|
inline |
Get cluster seed channel nb.
Definition at line 111 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterAnalyzer::analyze().
|
inline |
|
inline |
Definition at line 137 of file TrigScintCluster.h.
|
inline |
Set beam energy fraction of hit.
Definition at line 105 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().
|
inline |
centroid | The channel ID centroid |
Definition at line 96 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().
|
inline |
The cluster centroid in x,y,z.
Definition at line 87 of file TrigScintCluster.h.
Referenced by trigscint::TrigScintClusterProducer::produce().
|
inline |
Set the cluster energy.
energy | The cluster energy deposition (in units given by hit) |
Definition at line 61 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().
|
inline |
The channel numbers of hits forming the cluster.
hitIDs | vector of channel numbers of hits forming the cluster |
Definition at line 79 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().
|
inline |
The number of hits forming the cluster.
nHits | Number of hits forming the cluster |
Definition at line 73 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().
|
inline |
Set the cluster photoelectron count (PE)
PE | The cluster photoelectron count |
Definition at line 67 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().
|
inline |
idx | The digi collection index of the hit seeding the cluster |
Definition at line 55 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().
|
inline |
Set time of hit.
Definition at line 99 of file TrigScintCluster.h.
Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().
|
private |
Definition at line 172 of file TrigScintCluster.h.
|
private |
Definition at line 159 of file TrigScintCluster.h.
|
private |
Definition at line 162 of file TrigScintCluster.h.
|
private |
Definition at line 165 of file TrigScintCluster.h.
|
private |
Definition at line 168 of file TrigScintCluster.h.
|
private |
Definition at line 146 of file TrigScintCluster.h.
|
private |
Definition at line 143 of file TrigScintCluster.h.
|
private |
Definition at line 149 of file TrigScintCluster.h.
|
private |
Definition at line 152 of file TrigScintCluster.h.
|
private |
Definition at line 155 of file TrigScintCluster.h.
|
private |
Definition at line 176 of file TrigScintCluster.h.