8 #include "StFstConsts.h"
9 #include "StFstCluster.h"
10 #include "St_base/StMessMgr.h"
14 float meanRStrip,
float meanPhiStrip,
float totCharge,
float totChargeErr,
17 mMeanRStrip(meanRStrip),
18 mMeanPhiStrip(meanPhiStrip),
19 mTotCharge(totCharge),
20 mTotChargeErr(totChargeErr),
26 mClusteringType(clusteringType),
27 mMaxTimeBin(1), mNRawHits(1), mNRawHitsR(1),
28 mNRawHitsPhi(1), mRawHitVec()
32 StFstCluster::~StFstCluster()
38 vector<StFstRawHit *> &StFstCluster::getRawHitVec() {
return mRawHitVec; };
39 const vector<StFstRawHit *> &StFstCluster::getRawHitVec()
const {
return mRawHitVec; };
40 int StFstCluster::getKey()
const {
return mKey; };
45 float StFstCluster::getMeanRStrip()
const {
return mMeanRStrip; };
46 float StFstCluster::getMeanPhiStrip()
const {
return mMeanPhiStrip; };
47 float StFstCluster::getTotCharge()
const {
return mTotCharge; };
48 float StFstCluster::getTotChargeErr()
const {
return mTotChargeErr; };
49 unsigned char StFstCluster::getMaxTimeBin()
const {
return mMaxTimeBin; };
50 unsigned char StFstCluster::getClusteringType()
const {
return mClusteringType; };
51 unsigned char StFstCluster::getNRawHits()
const {
return mNRawHits; };
52 unsigned char StFstCluster::getNRawHitsR()
const {
return mNRawHitsR; };
53 unsigned char StFstCluster::getNRawHitsPhi()
const {
return mNRawHitsPhi; };
54 unsigned short StFstCluster::getIdTruth()
const {
return mIdTruth; };
57 void StFstCluster::setDisk(
int disk)
62 void StFstCluster::setWedge(
int wedge)
67 void StFstCluster::setSensor(
int sensor)
72 void StFstCluster::setApv(
int apv)
77 void StFstCluster::setMeanRStrip(
float meanRStrip)
82 void StFstCluster::setMeanPhiStrip(
float meanPhiStrip)
87 void StFstCluster::setTotCharge(
float totCharge)
92 void StFstCluster::setTotChargeErr(
float totChargeErr)
97 void StFstCluster::setMaxTimeBin(
int tb)
102 void StFstCluster::setClusteringType(
int clusteringType)
107 void StFstCluster::setNRawHits(
int nRawHits)
112 void StFstCluster::setNRawHitsR(
int nRawHitsR)
117 void StFstCluster::setNRawHitsPhi(
int nRawHitsPhi)
122 void StFstCluster::setIdTruth(
unsigned short idTruth)
128 void StFstCluster::Print(Option_t *opt)
const
130 LOG_DEBUG <<
" totCharge=" << getTotCharge() <<
" totChargeErr=" << getTotChargeErr()
131 <<
" meanPhiStrip=" << getMeanPhiStrip() <<
" meanRStrip= " << getMeanRStrip()
133 <<
" clusterSize=" << (short) getNRawHits()
134 <<
" clusterSizeR=" << (short) getNRawHitsR()
135 <<
" clusterSizePhi=" << (short) getNRawHitsPhi() << endm;
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.