12 #include "St_base/StMessMgr.h"
14 #include "StContainers.h"
15 #include "StGmtStrip.h"
16 #include "StGmtStripCollection.h"
34 void StGmtStripCollection::removeFlagged(){
38 std::vector< StGmtStrip* > copy;
43 StSPtrVecGmtStripIterator srcIter;
44 StSPtrVecGmtStripIterator lastCopied=
mStripVec.begin()-1;
48 if( (*srcIter) && (*srcIter)->getGeoId() >= 0 ) {
49 copy.push_back(
new StGmtStrip( *(*srcIter) ) );
56 std::vector< StGmtStrip* >::iterator copyIter;
57 for( copyIter = copy.begin(); copyIter != copy.end(); ++copyIter ) {
76 return h1->
isY() < h2->
isY();
80 void StGmtStripCollection::Clear( Option_t *opt ){
97 StGmtStrip* StGmtStripCollection::getStrip( Int_t Id ) {
108 StGmtStrip* StGmtStripCollection::getSortedStrip( Int_t Id ) {
112 LOG_ERROR <<
"StGmtStripCollection::getSortedStrip no such Id: " << Id << endm;
119 void StGmtStripCollection::sortByGeoId(){
124 void StGmtStripCollection::sortByLayer(){
129 void StGmtStripCollection::partialSortByCoord(){
134 void StGmtStripCollection::sortByCoord(){
static bool hitCoordLessThan(const StGmtStrip *h1, const StGmtStrip *h2)
Function used for sorting strips by coordinate number.
Int_t getCoordNum() const
Coordinate (0-127)
~StGmtStripCollection()
Destructor.
static bool hitGeoIdLessThan(const StGmtStrip *h1, const StGmtStrip *h2)
Function used for sorting strips by geoId.
Int_t isY() const
Is it a pad?
StPtrVecGmtStrip mStripElecIdVec
StGmtStripCollection(short module=0)
Constructer.
static bool hitLayerLessThan(const StGmtStrip *h1, const StGmtStrip *h2)
Function used for sorting strips by X then Y.
Int_t getGeoId() const
Detector ID (8 modules * 2 APV * 128 channels)
StPtrVecGmtStrip mStripGeoIdVec
StSPtrVecGmtStrip mStripVec
Vector with strips.
Holds data for the strip in GMT.