3 #include "StIstClusterMaker.h"
6 #include "StIstUtil/StIstCollection.h"
7 #include "StIstUtil/StIstRawHit.h"
8 #include "StIstUtil/StIstRawHitCollection.h"
9 #include "StIstUtil/StIstCluster.h"
10 #include "StIstUtil/StIstClusterCollection.h"
11 #include "StIstUtil/StIstConsts.h"
12 #include "StIstClusterMaker/StIstIClusterAlgo.h"
13 #include "StIstClusterMaker/StIstScanClusterAlgo.h"
15 StIstClusterMaker::StIstClusterMaker(
const char *name ) :
StMaker(name), mIstCollectionPtr(0), mClusterAlgoPtr(0), mTimeBin(UCHAR_MAX), mSplitCluster(true)
20 StIstClusterMaker::~StIstClusterMaker()
23 delete mClusterAlgoPtr;
28 if ( mIstCollectionPtr ) {
30 mIstCollectionPtr->getRawHitCollection(i)->Clear(
"" );
31 mIstCollectionPtr->getClusterCollection(i)->Clear(
"" );
49 LOG_WARN <<
"Make() - istRawHitAndCluster dataset not found. No IST clusters will be built" << endm;
55 if (!mIstCollectionPtr) {
56 LOG_WARN <<
"Make() - StIstCollection not found. No IST clusters will be built" << endm;
60 mClusterAlgoPtr->setUsedTimeBin(
mTimeBin);
67 LOG_DEBUG <<
"End of StIstClusterMaker::Make()" << endm
68 <<
"Total raw hits: " << mIstCollectionPtr->getNumRawHits()
69 <<
", total clusters: " << mIstCollectionPtr->getNumClusters() << endm;
71 for (
unsigned char iLadder = 0; iLadder <
kIstNumLadders; iLadder++)
73 LOG_DEBUG <<
"Content: iLadder=" << (short) iLadder + 1
74 <<
" # of : raw hits=" << mIstCollectionPtr->getNumRawHits(iLadder)
75 <<
" clusters=" << mIstCollectionPtr->getNumClusters( iLadder) << endm;
79 size_t nTimeBins = mIstCollectionPtr->getNumTimeBins();
80 rawHitPtr->Print(nTimeBins);
93 mClusterAlgoPtr = algo;
96 Int_t StIstClusterMaker::Init()
98 if ( !mClusterAlgoPtr ) {
99 LOG_INFO <<
"IST clustering algorithm: Scanning algorithm" << endm;
void doClustering(StIstCollection &stIstCollection)
Bool_t mSplitCluster
Flag to split clusters.
const int kIstNumLadders
24 IST Ladders
UChar_t mTimeBin
Time bin to be used.
virtual TObject * GetObject() const
The depricated method (left here for the sake of the backward compatibility)
void Clear(Option_t *opts="")
User defined functions.