LDMX Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ldmx::TrigScintCluster Class Reference

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.}
 

Detailed Description

Stores cluster information from the trigger scintillator pads.

Adds on the ECal cluster functionality

Definition at line 21 of file TrigScintCluster.h.

Member Function Documentation

◆ addHit()

void ldmx::TrigScintCluster::addHit ( uint  idx,
const ldmx::TrigScintHit hit 
)

Take in the hits that make up the cluster.

Parameters
idxThe digi hit's entry number in the event's digi collection.
hitThe 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

Get the cluster centroid in units of channel nb.

Definition at line 135 of file TrigScintCluster.h.

135{ return centroid_; }

◆ 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

Get cluster total energy deposition.

Definition at line 114 of file TrigScintCluster.h.

114{ return energy_; }

◆ 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.

132{ return hitIDs_; }

◆ getNHits()

int ldmx::TrigScintCluster::getNHits ( ) const
inline

Get the number of hits constituting the cluster.

Definition at line 120 of file TrigScintCluster.h.

120{ return nHits_; }

◆ getPE()

double ldmx::TrigScintCluster::getPE ( ) const
inline

Get cluster total photoelectron count.

Definition at line 117 of file TrigScintCluster.h.

117{ return PE_; }

◆ getSeed()

int ldmx::TrigScintCluster::getSeed ( ) const
inline

Get cluster seed channel nb.

Definition at line 111 of file TrigScintCluster.h.

111{ return seed_; }

Referenced by trigscint::TestBeamClusterAnalyzer::analyze().

◆ getTime()

float ldmx::TrigScintCluster::getTime ( ) const
inline

Get time of hit.

Definition at line 102 of file TrigScintCluster.h.

102{ return time_; }

◆ operator<()

bool ldmx::TrigScintCluster::operator< ( const TrigScintCluster rhs) const
inline

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

Set beam energy fraction of hit.

Definition at line 105 of file TrigScintCluster.h.

105{ beamEfrac_ = e; }

Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().

◆ setCentroid()

void ldmx::TrigScintCluster::setCentroid ( double  centroid)
inline
Parameters
centroidThe channel ID centroid

Definition at line 96 of file TrigScintCluster.h.

96{ centroid_ = centroid; }

Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().

◆ setCentroidXYZ()

void ldmx::TrigScintCluster::setCentroidXYZ ( double  x,
double  y,
double  z 
)
inline

The cluster centroid in x,y,z.

Parameters
xCluster x coordinate
yCluster y coordinate
zCluster z coordinate (not implemented)

Definition at line 87 of file TrigScintCluster.h.

87 {
88 centroidX_ = x;
89 centroidY_ = y;
90 centroidZ_ = z;
91 }

Referenced by trigscint::TrigScintClusterProducer::produce().

◆ setEnergy()

void ldmx::TrigScintCluster::setEnergy ( double  energy)
inline

Set the cluster energy.

Parameters
energyThe cluster energy deposition (in units given by hit)

Definition at line 61 of file TrigScintCluster.h.

61{ energy_ = energy; }

Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().

◆ setIDs()

void ldmx::TrigScintCluster::setIDs ( std::vector< unsigned int > &  hitIDs)
inline

The channel numbers of hits forming the cluster.

Parameters
hitIDsvector of channel numbers of hits forming the cluster

Definition at line 79 of file TrigScintCluster.h.

79{ hitIDs_ = hitIDs; }

Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().

◆ setNHits()

void ldmx::TrigScintCluster::setNHits ( int  nHits)
inline

The number of hits forming the cluster.

Parameters
nHitsNumber of hits forming the cluster

Definition at line 73 of file TrigScintCluster.h.

73{ nHits_ = nHits; }

Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().

◆ setPE()

void ldmx::TrigScintCluster::setPE ( float  PE)
inline

Set the cluster photoelectron count (PE)

Parameters
PEThe cluster photoelectron count

Definition at line 67 of file TrigScintCluster.h.

67{ PE_ = PE; }

Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().

◆ setSeed()

void ldmx::TrigScintCluster::setSeed ( int  idx)
inline
Parameters
idxThe digi collection index of the hit seeding the cluster

Definition at line 55 of file TrigScintCluster.h.

55{ seed_ = idx; }

Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().

◆ setTime()

void ldmx::TrigScintCluster::setTime ( float  t)
inline

Set time of hit.

Definition at line 99 of file TrigScintCluster.h.

99{ time_ = t; }

Referenced by trigscint::TestBeamClusterProducer::produce(), and trigscint::TrigScintClusterProducer::produce().

Member Data Documentation

◆ beamEfrac_

float ldmx::TrigScintCluster::beamEfrac_ {0.}
private

Definition at line 172 of file TrigScintCluster.h.

172{0.};

◆ centroid_

double ldmx::TrigScintCluster::centroid_ {-1}
private

Definition at line 159 of file TrigScintCluster.h.

159{-1};

◆ centroidX_

double ldmx::TrigScintCluster::centroidX_ {0}
private

Definition at line 162 of file TrigScintCluster.h.

162{0};

◆ centroidY_

double ldmx::TrigScintCluster::centroidY_ {0}
private

Definition at line 165 of file TrigScintCluster.h.

165{0};

◆ centroidZ_

double ldmx::TrigScintCluster::centroidZ_ {0}
private

Definition at line 168 of file TrigScintCluster.h.

168{0};

◆ energy_

double ldmx::TrigScintCluster::energy_ {0}
private

Definition at line 146 of file TrigScintCluster.h.

146{0};

◆ hitIDs_

std::vector<unsigned int> ldmx::TrigScintCluster::hitIDs_
private

Definition at line 143 of file TrigScintCluster.h.

◆ nHits_

int ldmx::TrigScintCluster::nHits_ {0}
private

Definition at line 149 of file TrigScintCluster.h.

149{0};

◆ PE_

float ldmx::TrigScintCluster::PE_ {0}
private

Definition at line 152 of file TrigScintCluster.h.

152{0};

◆ seed_

int ldmx::TrigScintCluster::seed_ {-1}
private

Definition at line 155 of file TrigScintCluster.h.

155{-1};

◆ time_

float ldmx::TrigScintCluster::time_ {0.}
private

Definition at line 176 of file TrigScintCluster.h.

176{0.};

The documentation for this class was generated from the following file: