10 #include "StIstConsts.h"
11 #include "StIstCluster.h"
12 #include "St_base/StMessMgr.h"
16 float meanRow,
float meanColumn,
float totCharge,
float totChargeErr,
20 mMeanColumn(meanColumn),
21 mTotCharge(totCharge),
22 mTotChargeErr(totChargeErr),
26 mClusteringType(clusteringType),
27 mMaxTimeBin(3), mNRawHits(1), mNRawHitsRPhi(1),
28 mNRawHitsZ(1), mRawHitVec()
32 StIstCluster::~StIstCluster()
38 vector<StIstRawHit *> &StIstCluster::getRawHitVec() {
return mRawHitVec; };
39 const vector<StIstRawHit *> &StIstCluster::getRawHitVec()
const {
return mRawHitVec; };
40 int StIstCluster::getKey()
const {
return mKey; };
43 float StIstCluster::getMeanRow()
const {
return mMeanRow; };
44 float StIstCluster::getMeanColumn()
const {
return mMeanColumn; };
45 float StIstCluster::getTotCharge()
const {
return mTotCharge; };
46 float StIstCluster::getTotChargeErr()
const {
return mTotChargeErr; };
47 unsigned char StIstCluster::getMaxTimeBin()
const {
return mMaxTimeBin; };
48 unsigned char StIstCluster::getClusteringType()
const {
return mClusteringType;};
49 unsigned char StIstCluster::getNRawHits()
const {
return mNRawHits; };
50 unsigned char StIstCluster::getNRawHitsRPhi()
const {
return mNRawHitsRPhi; };
51 unsigned char StIstCluster::getNRawHitsZ()
const {
return mNRawHitsZ; };
52 unsigned short StIstCluster::getIdTruth()
const {
return mIdTruth; };
55 void StIstCluster::setLadder(
int ladder)
60 void StIstCluster::setSensor(
int sensor)
65 void StIstCluster::setMeanRow(
float meanRow)
70 void StIstCluster::setMeanColumn(
float meanColumn)
75 void StIstCluster::setTotCharge(
float totCharge)
80 void StIstCluster::setTotChargeErr(
float totChargeErr)
85 void StIstCluster::setMaxTimeBin(
int tb)
90 void StIstCluster::setClusteringType(
int clusteringType)
95 void StIstCluster::setNRawHits(
int nRawHits)
100 void StIstCluster::setNRawHitsRPhi(
int nRawHitsRPhi)
105 void StIstCluster::setNRawHitsZ(
int nRawHitsZ)
110 void StIstCluster::setIdTruth(
unsigned short idTruth)
116 void StIstCluster::Print(Option_t *opt)
const
118 LOG_DEBUG <<
" totCharge=" << getTotCharge() <<
" totChargeErr=" << getTotChargeErr()
119 <<
" meanColumn=" << getMeanColumn() <<
" meanRow= " << getMeanRow()
121 <<
" clusterSize=" << (short) getNRawHits()
122 <<
" clusterSize(Z)=" << (short) getNRawHitsZ()
123 <<
" clusterSize(R-Phi)=" << (short) getNRawHitsRPhi() << endm;
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