Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
add cluster info
Browse files Browse the repository at this point in the history
  • Loading branch information
therwig authored and tomeichlersmith committed Apr 17, 2024
1 parent ab765af commit 1e0f9dc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
34 changes: 34 additions & 0 deletions include/Ecal/Event/EcalCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ class EcalCluster {
centroidZ_ = z;
}

void setRMSXYZ(double x, double y, double z) {
rmsX_ = x;
rmsY_ = y;
rmsZ_ = z;
}
void setDXDZ(double x) { DXDZ_=x; }

void setDYDZ(double x) { DYDZ_=x; }

void setEDXDZ(double x) { errDXDZ_=x; }

void setEDYDZ(double x) { errDYDZ_=x; }

double getEnergy() const { return energy_; }

int getNHits() const { return nHits_; }
Expand All @@ -94,6 +107,20 @@ class EcalCluster {

double getCentroidZ() const { return centroidZ_; }

double getRMSX() const { return rmsX_; }

double getRMSY() const { return rmsY_; }

double getRMSZ() const { return rmsZ_; }

double getDXDZ() const { return DXDZ_; }

double getDYDZ() const { return DYDZ_; }

double getEDXDZ() const { return errDXDZ_; }

double getEDYDZ() const { return errDYDZ_; }

const std::vector<unsigned int>& getHitIDs() const { return hitIDs_; }

bool operator<(const EcalCluster& rhs) const {
Expand All @@ -107,6 +134,13 @@ class EcalCluster {
double centroidX_{0};
double centroidY_{0};
double centroidZ_{0};
double rmsX_{0};
double rmsY_{0};
double rmsZ_{0};
double DXDZ_{0};
double DYDZ_{0};
double errDXDZ_{0};
double errDYDZ_{0};

ClassDef(EcalCluster, 1);
};
Expand Down
7 changes: 7 additions & 0 deletions src/Ecal/Event/EcalCluster.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ ClassImp(ldmx::EcalCluster)
centroidX_ = 0;
centroidY_ = 0;
centroidZ_ = 0;
rmsX_ = 0;
rmsY_ = 0;
rmsZ_ = 0;
DXDZ_ = 0;
DYDZ_ = 0;
errDXDZ_ = 0;
errDYDZ_ = 0;
}

void EcalCluster::addHits(const std::vector<const EcalHit *> hitsVec) {
Expand Down

0 comments on commit 1e0f9dc

Please sign in to comment.