3 #ifndef StIstCluster_hh
4 #define StIstCluster_hh
9 #include "StIstRawHit.h"
22 StIstCluster(
int key = -1,
int ladder = -1,
int sensor = -1,
23 float meanRow = -1,
float meanColumn = -1,
float totCharge = 0,
24 float totChargeErr = 0,
int clusteringType = -1);
28 vector<StIstRawHit *> &getRawHitVec();
29 const vector<StIstRawHit *> &getRawHitVec()
const;
33 float getMeanRow()
const;
34 float getMeanColumn()
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 getNRawHitsRPhi()
const;
41 unsigned char getNRawHitsZ()
const;
42 unsigned short getIdTruth()
const;
44 void setLadder(
int ladder);
45 void setSensor(
int sensor);
46 void setMeanRow(
float meanRow);
47 void setMeanColumn(
float meanColumn);
48 void setTotCharge(
float totCharge);
49 void setTotChargeErr(
float totChargeErr);
50 void setMaxTimeBin(
int tb);
51 void setClusteringType(
int clusteringType);
52 void setNRawHits(
int nRawHits);
53 void setNRawHitsRPhi(
int nRawHitsRPhi);
54 void setNRawHitsZ(
int nRawHitsZ);
55 void setIdTruth(
unsigned short idTruth);
57 virtual void Print(Option_t *opt =
"")
const;
UChar_t mNRawHitsRPhi
Cluster size in r-phi direction.
unsigned char getSensor() const
1-6
UChar_t mMaxTimeBin
Max ADC time bin index.
UChar_t mClusteringType
Clustering algorithm type.
Int_t mKey
Cluster unique label.
Float_t mTotCharge
Charge sum of the cluster.
StIstCluster(int key=-1, int ladder=-1, int sensor=-1, float meanRow=-1, float meanColumn=-1, float totCharge=0, float totChargeErr=0, int clusteringType=-1)
Float_t mMeanRow
Cluster's mean row.
Float_t mMeanColumn
Cluster's mean column.
UChar_t mSensorId
Sensor id the cluster belongs to.
UChar_t mNRawHitsZ
Cluster size in beam direction.
Float_t mTotChargeErr
rMS noise of the cluster
UChar_t mLadderId
Ladder id the cluster belongs to.
UChar_t mNRawHits
Cluster size.
std::vector< StIstRawHit * > mRawHitVec
Map container to save raw hits who contribute to the cluster.
UShort_t mIdTruth
For embedding, 0 as background.
unsigned char getLadder() const
1-24