Definition at line 16 of file IntermediateCluster.h.
◆ IntermediateCluster()
| ecal::IntermediateCluster::IntermediateCluster |
( |
const ldmx::EcalHit & | eh, |
|
|
int | layer = -1 ) |
◆ add() [1/3]
Definition at line 32 of file IntermediateCluster.cxx.
32 {
33 double new_e = wc.centroid().E() + centroid_.E();
34 centroid_.SetXYZT(
35 (centroid_.x() * centroid_.E() + wc.centroid().x() * wc.centroid().E()) /
36 new_e,
37 (centroid_.y() * centroid_.E() + wc.centroid().y() * wc.centroid().E()) /
38 new_e,
39 (centroid_.z() * centroid_.E() + wc.centroid().z() * wc.centroid().E()) /
40 new_e,
41 new_e);
42
43 for (const auto eh : wc.getHits()) {
44 hits_.push_back(eh);
45 }
46}
◆ add() [2/3]
Definition at line 13 of file IntermediateCluster.cxx.
13 {
14 hits_.push_back(&eh);
15
20
21 double new_e = hit_e + centroid_.E();
22 centroid_.SetXYZT((centroid_.x() * centroid_.E() + hit_e * hit_x) / new_e,
23 (centroid_.y() * centroid_.E() + hit_e * hit_y) / new_e,
24 (centroid_.z() * centroid_.E() + hit_e * hit_z) / new_e,
25 new_e);
26}
float getEnergy() const
Get the calorimetric energy of the hit, corrected for sampling factors [MeV].
float getYPos() const
Get the Y position of the hit [mm].
float getZPos() const
Get the Z position of the hit [mm].
float getXPos() const
Get the X position of the hit [mm].
◆ add() [3/3]
◆ centroid()
| const ROOT::Math::XYZTVector & ecal::IntermediateCluster::centroid |
( |
| ) |
const |
|
inline |
◆ clear()
| void ecal::IntermediateCluster::clear |
( |
| ) |
|
|
inline |
◆ empty()
| bool ecal::IntermediateCluster::empty |
( |
| ) |
const |
|
inline |
◆ getHits()
| std::vector< const ldmx::EcalHit * > ecal::IntermediateCluster::getHits |
( |
| ) |
const |
|
inline |
◆ getLayer()
| int ecal::IntermediateCluster::getLayer |
( |
| ) |
const |
◆ setLayer()
| void ecal::IntermediateCluster::setLayer |
( |
int | layer | ) |
|
◆ centroid_
| ROOT::Math::XYZTVector ecal::IntermediateCluster::centroid_ |
|
private |
◆ hits_
| std::vector<const ldmx::EcalHit*> ecal::IntermediateCluster::hits_ |
|
private |
◆ layer_
| int ecal::IntermediateCluster::layer_ |
|
private |
The documentation for this class was generated from the following files: