23 #ifndef _ST_FGT_STRIP_COLLECTION_H_
24 #define _ST_FGT_STRIP_COLLECTION_H_
27 #include "StContainers.h"
28 #include "StFgtStrip.h"
45 StSPtrVecFgtStrip& getStripVec();
46 const StSPtrVecFgtStrip& getStripVec()
const;
55 size_t getNumStrips()
const;
58 short getDisc()
const;
59 void setDisc(
short disc );
62 void Clear( Option_t *opt =
"" );
77 StSPtrVecFgtStrip mStripVec;
81 StPtrVecFgtStrip mStripElecIdVec;
90 inline StFgtStripCollection::StFgtStripCollection(
short disc ) :
StObject(), mDisc( disc ) {
91 mStripElecIdVec.resize( kFgtNumElecIds );
92 for (
unsigned int i=0; i<mStripElecIdVec.size(); i++)
93 mStripElecIdVec[i] = static_cast< StFgtStrip* >(0);
96 inline StSPtrVecFgtStrip& StFgtStripCollection::getStripVec() {
100 inline const StSPtrVecFgtStrip& StFgtStripCollection::getStripVec()
const{
105 inline void StFgtStripCollection::sortByGeoId(){
106 std::sort( mStripVec.begin(), mStripVec.end(), &StFgtStripCollection::hitGeoIdLessThan );
110 inline size_t StFgtStripCollection::getNumStrips()
const {
111 return mStripVec.size();
114 inline void StFgtStripCollection::setDisc(
short discId ) {
118 inline short StFgtStripCollection::getDisc()
const {