1 #include "StEvent/StFttCollection.h"
2 #include "StEvent/StFttCluster.h"
4 #include "StMuDSTMaker/COMMON/StMuFttCluster.h"
5 #include "StMuDSTMaker/COMMON/StMuFttRawHit.h"
6 #include "StMuDSTMaker/COMMON/StMuFttPoint.h"
8 #include "StMuDSTMaker/COMMON/StMuFttUtil.h"
9 #include "StMuDSTMaker/COMMON/StMuFttCollection.h"
10 #include "StMuDSTMaker/COMMON/StMuDst.h"
11 #include "StMuDSTMaker/COMMON/StMuEvent.h"
12 #include "StEvent/StEvent.h"
13 #include "St_base/StMessMgr.h"
14 #include "StEvent/StEventTypes.h"
15 #include "StEvent/StTriggerData.h"
16 #include "StEvent/StContainers.h"
21 #include "TCollection.h"
22 #include "TRefArray.h"
31 StMuFttUtil::~StMuFttUtil()
37 LOG_DEBUG <<
"StMuFttUtil::getMuFtt" << endm;
38 if(!fttcol)
return NULL;
40 fillMuFtt(muFtt,fttcol);
46 if(!muFtt)
return NULL;
55 LOG_INFO <<
"fillMuFtt" << endm;
59 fillMuFttRawHits(muFtt, fttcol);
60 fillMuFttPoints(muFtt, fttcol);
61 fillMuFttClusters(muFtt, fttcol);
65 rebuildRelationships( fttcol, muFtt );
72 fillFttRawHits(fttcol, muFtt);
77 LOG_INFO <<
"fillMuFttRawHits" << endm;
78 const StSPtrVecFttRawHit& vecHit = fttcol->rawHits();
79 for(
unsigned int i=0; i<fttcol->numberOfRawHits(); i++){
82 muFttHit->set( vecHit[i] );
84 mMapHits[ fttcol->rawHits()[i] ] = muFttHit;
97 LOG_INFO <<
"fillMuFttClusters" << endm;
98 const StSPtrVecFttCluster& vecClu = fttcol->clusters();
99 for(
unsigned int i=0; i<fttcol->numberOfClusters(); i++){
102 muFttCluster->set( vecClu[i] );
104 mMapClusters[ fttcol->clusters()[i] ] = muFttCluster;
110 LOG_INFO <<
"fillMuFttPoints" << endm;
111 const StSPtrVecFttPoint& vecPoint = fttcol->points();
112 for(
unsigned int i=0; i<fttcol->numberOfPoints(); i++){
115 muFttPoint->set( vecPoint[i] );
117 mMapPoints[ fttcol->points()[i] ] = muFttPoint;
124 TIter next(muFtt->getRawHitArray());
126 while ((muHit = static_cast<StMuFttRawHit*>(next()))) {
130 muHit->sector(), muHit->rdo(), muHit->feb(),
131 muHit->vmm(), muHit->channel(), muHit->adc(),
132 muHit->bcid(), muHit->tb(), muHit->dbcid() );