Stores cluster information from the ECal.
More...
#include <CaloCluster.h>
|
|
| CaloCluster ()=default |
| | Class constructor.
|
| |
| virtual | ~CaloCluster () |
| | Class destructor.
|
| |
| void | clear () |
| | Reset the CaloCluster object.
|
| |
| void | addHits (const std::vector< const ldmx::CalorimeterHit * > hitsVec) |
| | Take in the hits that make up the cluster.
|
| |
| void | setEnergy (double energy) |
| | Sets total energy for the cluster.
|
| |
| void | setNHits (int nHits) |
| | Sets total number of hits in the cluster.
|
| |
| void | setIDs (std::vector< unsigned int > &hitIDs) |
| | Sets a sorted vector for the IDs of the hits_ that make up the cluster.
|
| |
| void | setHitValsX (std::vector< float > &x_) |
| |
| void | setHitValsY (std::vector< float > &x_) |
| |
| void | setHitValsZ (std::vector< float > &x_) |
| |
| void | setHitValsE (std::vector< float > &x_) |
| |
| void | setCentroidXYZ (double centroid_x, double centroid_y, double centroid_z) |
| | Sets the three coordinates of the cluster centroid.
|
| |
| void | setLayer (int layer) |
| |
| void | setRMSXYZ (double rms_x, double rms_y, double rms_z) |
| |
| void | setDXDZ (double dxdz) |
| |
| void | setDYDZ (double dydz) |
| |
| void | setEDXDZ (double err_dxdz) |
| |
| void | setEDYDZ (double err_dydz) |
| |
| double | getEnergy () const |
| |
| int | getNHits () const |
| |
| double | getCentroidX () const |
| | centroid x-location
|
| |
| double | getCentroidY () const |
| | centroid y-location
|
| |
| double | getCentroidZ () const |
| | centroid z-location
|
| |
| int | getLayer () const |
| | layer of the cluster centroid
|
| |
| double | getRMSX () const |
| | rms in x
|
| |
| double | getRMSY () const |
| | rms in y
|
| |
| double | getRMSZ () const |
| | rms in z
|
| |
| double | getDXDZ () const |
| | Delta in x-z plane.
|
| |
| double | getDYDZ () const |
| | Delta in y-z plane.
|
| |
| double | getEDXDZ () const |
| | Delta unc on unc in x-z plane.
|
| |
| double | getEDYDZ () const |
| | Delta unc on unc in y-z plane.
|
| |
| const std::vector< unsigned int > & | getHitIDs () const |
| |
| const std::vector< float > & | getHitX () const |
| |
| const std::vector< float > & | getHitY () const |
| |
| const std::vector< float > & | getHitZ () const |
| |
| const std::vector< float > & | getHitE () const |
| |
| bool | operator< (const CaloCluster &rhs) const |
| |
Stores cluster information from the ECal.
Definition at line 26 of file CaloCluster.h.
◆ ~CaloCluster()
| ldmx::CaloCluster::~CaloCluster |
( |
| ) |
|
|
virtual |
Class destructor.
Definition at line 7 of file CaloCluster.cxx.
void clear()
Reset the CaloCluster object.
References clear().
◆ addHits()
Take in the hits that make up the cluster.
- Parameters
-
| hit | The digi hit's entry number in the events digi collection. |
Definition at line 31 of file CaloCluster.cxx.
31 {
32 std::vector<unsigned int> vec_ids;
33 for (unsigned int i_hit = 0; i_hit < hitsVec.size(); i_hit++) {
34 vec_ids.push_back(hitsVec[i_hit]->getID());
35 }
37}
void setIDs(std::vector< unsigned int > &hitIDs)
Sets a sorted vector for the IDs of the hits_ that make up the cluster.
References setIDs().
◆ clear()
| void ldmx::CaloCluster::clear |
( |
| ) |
|
◆ getCentroidX()
| double ldmx::CaloCluster::getCentroidX |
( |
| ) |
const |
|
inline |
◆ getCentroidY()
| double ldmx::CaloCluster::getCentroidY |
( |
| ) |
const |
|
inline |
◆ getCentroidZ()
| double ldmx::CaloCluster::getCentroidZ |
( |
| ) |
const |
|
inline |
◆ getDXDZ()
| double ldmx::CaloCluster::getDXDZ |
( |
| ) |
const |
|
inline |
◆ getDYDZ()
| double ldmx::CaloCluster::getDYDZ |
( |
| ) |
const |
|
inline |
◆ getEDXDZ()
| double ldmx::CaloCluster::getEDXDZ |
( |
| ) |
const |
|
inline |
◆ getEDYDZ()
| double ldmx::CaloCluster::getEDYDZ |
( |
| ) |
const |
|
inline |
◆ getEnergy()
| double ldmx::CaloCluster::getEnergy |
( |
| ) |
const |
|
inline |
◆ getHitE()
| const std::vector< float > & ldmx::CaloCluster::getHitE |
( |
| ) |
const |
|
inline |
◆ getHitIDs()
| const std::vector< unsigned int > & ldmx::CaloCluster::getHitIDs |
( |
| ) |
const |
|
inline |
◆ getHitX()
| const std::vector< float > & ldmx::CaloCluster::getHitX |
( |
| ) |
const |
|
inline |
◆ getHitY()
| const std::vector< float > & ldmx::CaloCluster::getHitY |
( |
| ) |
const |
|
inline |
◆ getHitZ()
| const std::vector< float > & ldmx::CaloCluster::getHitZ |
( |
| ) |
const |
|
inline |
◆ getLayer()
| int ldmx::CaloCluster::getLayer |
( |
| ) |
const |
|
inline |
◆ getNHits()
| int ldmx::CaloCluster::getNHits |
( |
| ) |
const |
|
inline |
◆ getRMSX()
| double ldmx::CaloCluster::getRMSX |
( |
| ) |
const |
|
inline |
◆ getRMSY()
| double ldmx::CaloCluster::getRMSY |
( |
| ) |
const |
|
inline |
◆ getRMSZ()
| double ldmx::CaloCluster::getRMSZ |
( |
| ) |
const |
|
inline |
◆ operator<()
| bool ldmx::CaloCluster::operator< |
( |
const CaloCluster & | rhs | ) |
const |
|
inline |
Definition at line 147 of file CaloCluster.h.
147 {
148 return this->getEnergy() < rhs.getEnergy();
149 }
◆ setCentroidXYZ()
| void ldmx::CaloCluster::setCentroidXYZ |
( |
double | centroid_x, |
|
|
double | centroid_y, |
|
|
double | centroid_z ) |
|
inline |
◆ setDXDZ()
| void ldmx::CaloCluster::setDXDZ |
( |
double | dxdz | ) |
|
|
inline |
◆ setDYDZ()
| void ldmx::CaloCluster::setDYDZ |
( |
double | dydz | ) |
|
|
inline |
◆ setEDXDZ()
| void ldmx::CaloCluster::setEDXDZ |
( |
double | err_dxdz | ) |
|
|
inline |
◆ setEDYDZ()
| void ldmx::CaloCluster::setEDYDZ |
( |
double | err_dydz | ) |
|
|
inline |
◆ setEnergy()
| void ldmx::CaloCluster::setEnergy |
( |
double | energy | ) |
|
|
inline |
◆ setHitValsE()
| void ldmx::CaloCluster::setHitValsE |
( |
std::vector< float > & | x_ | ) |
|
|
inline |
◆ setHitValsX()
| void ldmx::CaloCluster::setHitValsX |
( |
std::vector< float > & | x_ | ) |
|
|
inline |
◆ setHitValsY()
| void ldmx::CaloCluster::setHitValsY |
( |
std::vector< float > & | x_ | ) |
|
|
inline |
◆ setHitValsZ()
| void ldmx::CaloCluster::setHitValsZ |
( |
std::vector< float > & | x_ | ) |
|
|
inline |
◆ setIDs()
| void ldmx::CaloCluster::setIDs |
( |
std::vector< unsigned int > & | hitIDs | ) |
|
|
inline |
◆ setLayer()
| void ldmx::CaloCluster::setLayer |
( |
int | layer | ) |
|
|
inline |
◆ setNHits()
| void ldmx::CaloCluster::setNHits |
( |
int | nHits | ) |
|
|
inline |
◆ setRMSXYZ()
| void ldmx::CaloCluster::setRMSXYZ |
( |
double | rms_x, |
|
|
double | rms_y, |
|
|
double | rms_z ) |
|
inline |
Definition at line 93 of file CaloCluster.h.
93 {
94 rms_x_ = rms_x;
95 rms_y_ = rms_y;
96 rms_z_ = rms_z;
97 }
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | o, |
|
|
const CaloCluster & | d ) |
|
friend |
Print a description of this object.
Definition at line 9 of file CaloCluster.cxx.
9 {
10 return o << "CaloCluster { " << "Energy: " << c.energy_ << ", "
11 << "Number of hits_: " << c.n_hits_ << " }";
12}
◆ centroid_x_
| double ldmx::CaloCluster::centroid_x_ {0} |
|
protected |
◆ centroid_y_
| double ldmx::CaloCluster::centroid_y_ {0} |
|
protected |
◆ centroid_z_
| double ldmx::CaloCluster::centroid_z_ {0} |
|
protected |
◆ dxdz_
| double ldmx::CaloCluster::dxdz_ {0} |
|
protected |
◆ dydz_
| double ldmx::CaloCluster::dydz_ {0} |
|
protected |
◆ energy_
| double ldmx::CaloCluster::energy_ {0} |
|
protected |
◆ err_dxdz_
| double ldmx::CaloCluster::err_dxdz_ {0} |
|
protected |
◆ err_dydz_
| double ldmx::CaloCluster::err_dydz_ {0} |
|
protected |
◆ hit_e_
| std::vector<float> ldmx::CaloCluster::hit_e_ |
|
protected |
◆ hit_ids_
| std::vector<unsigned int> ldmx::CaloCluster::hit_ids_ |
|
protected |
◆ hit_x_
| std::vector<float> ldmx::CaloCluster::hit_x_ |
|
protected |
◆ hit_y_
| std::vector<float> ldmx::CaloCluster::hit_y_ |
|
protected |
◆ hit_z_
| std::vector<float> ldmx::CaloCluster::hit_z_ |
|
protected |
◆ layer_
| int ldmx::CaloCluster::layer_ {-1} |
|
protected |
◆ n_hits_
| int ldmx::CaloCluster::n_hits_ {0} |
|
protected |
◆ rms_x_
| double ldmx::CaloCluster::rms_x_ {0} |
|
protected |
◆ rms_y_
| double ldmx::CaloCluster::rms_y_ {0} |
|
protected |
◆ rms_z_
| double ldmx::CaloCluster::rms_z_ {0} |
|
protected |
The documentation for this class was generated from the following files: