8 #include "TopologyMap.hh"
12 for (Track::iterator i = track->begin(); i != track->end(); ++i) {
14 float z = hit->position().z();
15 if (-200 <= z && z < -150) ++mFarEast;
16 else if ( -50 <= z && z < 0) ++mNearEast;
17 else if ( 0 <= z && z < 50) ++mNearWest;
18 else if ( 150 <= z && z <= 200) ++mFarWest;
22 ostream& operator<<(ostream& os,
const TopologyMap& topoMap)
24 return os << topoMap. farEast() <<
'\t'
27 << topoMap. farWest();
Number of hits in diffent zones of the TPC for a given track.
TopologyMap(Track *track=0)
Constructor creates the topology map.
int nearEast() const
Number of hits in near east of TPC (-50 <= z < 0 cm)
int nearWest() const
Number of hits in near west of TPC (0 <= z < 50 cm)