22 #include "StContainers.h"
23 #include "StFgtStrip.h"
24 #include "StFgtStripCollection.h"
31 StFgtStripCollection::~StFgtStripCollection() {}
35 void StFgtStripCollection::removeFlagged(){
36 if( !mStripVec.empty() ){
38 std::vector< StFgtStrip* > copy;
39 copy.reserve( mStripVec.size() );
43 StSPtrVecFgtStripIterator srcIter;
47 for( srcIter = mStripVec.begin(); srcIter != mStripVec.end(); ++srcIter )
48 if( (*srcIter) && (*srcIter)->getClusterSeedType() != kFgtDeadStrip && (*srcIter)->getGeoId() >= 0 )
49 copy.push_back(
new StFgtStrip( *(*srcIter) ) );
51 if ( copy.size() != mStripVec.size() ){
55 std::vector< StFgtStrip* >::iterator copyIter;
56 for( copyIter = copy.begin(); copyIter != copy.end(); ++copyIter )
57 mStripVec.push_back( *copyIter );
63 return h1->getGeoId() < h2->getGeoId();
66 void StFgtStripCollection::Clear( Option_t *opt ){
75 for (
unsigned int i=0; i<mStripElecIdVec.size(); i++) mStripElecIdVec[i] = static_cast< StFgtStrip* >(0);
78 StFgtStrip* StFgtStripCollection::getStrip( Int_t elecId ){
79 StFgtStrip* &stripPtr = mStripElecIdVec[elecId];
82 mStripVec.push_back( stripPtr );