1 #ifndef StFstCluster_hh
2 #define StFstCluster_hh
7 #include "StFstRawHit.h"
20 StFstCluster(
int key = -1,
int disk = -1,
int wedge = -1,
int sensor = -1,
int apv = -1,
21 float meanRStrip = -1,
float meanPhiStrip = -1,
float totCharge = 0,
22 float totChargeErr = 0,
int clusteringType = -1);
26 vector<StFstRawHit *> &getRawHitVec();
27 const vector<StFstRawHit *> &getRawHitVec()
const;
32 unsigned char getApv()
const;
33 float getMeanRStrip()
const;
34 float getMeanPhiStrip()
const;
35 float getTotCharge()
const;
36 float getTotChargeErr()
const;
37 unsigned char getMaxTimeBin()
const;
38 unsigned char getClusteringType()
const;
39 unsigned char getNRawHits()
const;
40 unsigned char getNRawHitsR()
const;
41 unsigned char getNRawHitsPhi()
const;
42 unsigned short getIdTruth()
const;
44 void setDisk(
int disk);
45 void setWedge(
int wedge);
46 void setSensor(
int sensor);
48 void setMeanRStrip(
float meanRStrip);
49 void setMeanPhiStrip(
float meanPhiStrip);
50 void setTotCharge(
float totCharge);
51 void setTotChargeErr(
float totChargeErr);
52 void setMaxTimeBin(
int tb);
53 void setClusteringType(
int clusteringType);
54 void setNRawHits(
int nRawHits);
55 void setNRawHitsR(
int nRawHitsR);
56 void setNRawHitsPhi(
int nRawHitsPhi);
57 void setIdTruth(
unsigned short idTruth);
59 virtual void Print(Option_t *opt =
"")
const;
UChar_t mApv
Apv id the cluster belongs to.
Int_t mKey
Cluster unique label.
UChar_t mDiskId
Disk id the cluster belongs to.
UShort_t mIdTruth
For embedding, 0 as background.
unsigned char getSensor() const
0-2
UChar_t mNRawHits
Cluster size.
StFstCluster(int key=-1, int disk=-1, int wedge=-1, int sensor=-1, int apv=-1, float meanRStrip=-1, float meanPhiStrip=-1, float totCharge=0, float totChargeErr=0, int clusteringType=-1)
UChar_t mNRawHitsPhi
Cluster size in Phi direction.
UChar_t mWedgeId
Wedge id the cluster belongs to.
UChar_t mMaxTimeBin
Max ADC time bin index.
Float_t mMeanPhiStrip
Cluster's mean phistrip.
unsigned char getDisk() const
1-3
unsigned char getApv() const
0-15
UChar_t mNRawHitsR
Cluster size in R direction.
Float_t mMeanRStrip
Cluster's mean rstrip.
UChar_t mClusteringType
Clustering algorithm type.
unsigned char getWedge() const
1-36
Float_t mTotChargeErr
rMS noise of the cluster
Float_t mTotCharge
Charge sum of the cluster.
std::vector< StFstRawHit * > mRawHitVec
Map container to save raw hits who contribute to the cluster.
UChar_t mSensorId
Sensor id the cluster belongs to.