Skip to content

Commit

Permalink
Update StEvent structs for StFttPoint StFttCluster and update StFttFa…
Browse files Browse the repository at this point in the history
…stSimMaker (#698)

1. Updates StEvent containers for Ftt data (clusters and points) to
include idTruth (mirror FST and FCS)
2. Update StFttFastSimMaker to copy Ftt GEANT hits to StFttCollection as
StFttPoints

The Fast sim just copies GEANT hits from front modules and writes them
into the StFttCollection as StFttPoints (skips the entire reco chain).
The "slow" sim (still WIP) will write clusters and therefore idTruth is
needed there.
Removed old code based on square modules (RnD geometry) and different
strip layout. This also simplifies the Fwd tracking because it no longer
needs to read directly from GEANT
  • Loading branch information
jdbrice authored Aug 14, 2024
1 parent f0d3492 commit d993d8e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 486 deletions.
5 changes: 4 additions & 1 deletion StRoot/StEvent/StFttCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class StFttCluster : public StObject {
float sumAdc() const;
float x() const; // Mean x ("center of gravity") in local grid coordinate (1st moment).
float sigma() const; // Maximum 2nd moment (along major axis).
UShort_t idTruth() const { return mIdTruth; } // Get the truth ID

void setId(int cluid);
void setPlane(UChar_t plane);
Expand All @@ -37,6 +38,7 @@ class StFttCluster : public StObject {
void setSumAdc(int theSumAdc);
void setX(float x0);
void setSigma(float sigma);
void setIdTruth(UShort_t id) { mIdTruth = id; }

StPtrVecFttRawHit& rawHits();
const StPtrVecFttRawHit& rawHits() const;
Expand All @@ -62,8 +64,9 @@ class StFttCluster : public StObject {
StPtrVecFttRawHit mRawHits; // Tower hits of the current cluster
StPtrVecFttCluster mNeighbors; // Neighbor clusters
StPtrVecFttPoint mPoints; // Fitted points (photons) in the cluster
UShort_t mIdTruth=0; // Truth ID

ClassDef(StFttCluster, 2)
ClassDef(StFttCluster, 3)
};

std::ostream& operator << ( std::ostream&, const StFttCluster& clu ); // Printing operator
Expand Down
6 changes: 4 additions & 2 deletions StRoot/StEvent/StFttPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ class StFttPoint : public StObject {
int nClusters() const; // Number of points in the parent cluster.
StFttCluster* cluster( size_t i); // Parent cluster of the photon.
const StThreeVectorD& xyz() const; // XYZ position in global STAR coordinate
UShort_t idTruth() const { return mIdTruth; } // Get the truth ID

void setPlane(UChar_t plane);
void setQuadrant(UChar_t quad);
void setX(float x);
void setY(float y);
void addCluster(StFttCluster* cluster, UChar_t dir);
void setXYZ(const StThreeVectorD& p3);

void setIdTruth(UShort_t id) { mIdTruth = id; }

void print(int option=0);

Expand All @@ -49,8 +50,9 @@ class StFttPoint : public StObject {
Float_t mY=0.0; // y-position in local coordinate
StFttCluster *mClusters[4];
StThreeVectorD mXYZ; // Photon position in STAR coordinate
UShort_t mIdTruth=0; // Truth ID

ClassDef(StFttPoint, 1)
ClassDef(StFttPoint, 2)
};

inline UChar_t StFttPoint::plane() const { return mPlane; }
Expand Down
Loading

0 comments on commit d993d8e

Please sign in to comment.