~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/Recon/SciFi/SciFiTools.cc

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
  return stations_hit;
152
152
} // ~num_stations_with_unused_spnts(...)
153
153
 
 
154
void print_spacepoint_xyz(const std::vector<MAUS::SciFiSpacePoint*> &spnts) {
 
155
  for ( size_t i = 0; i < spnts.size(); ++i ) {
 
156
    MAUS::ThreeVector pos = spnts[i]->get_position();
 
157
    std::cout << "( " << pos.x() << ", " << pos.y() << ", " << pos.z() << ")  ";
 
158
  }
 
159
  std::cout << std::endl;
 
160
} // print_spacepoint_xyz(...)
 
161
 
154
162
void sort_by_station(const std::vector<MAUS::SciFiSpacePoint*> &spnts,
155
163
                     MAUS::SpacePoint2dPArray &spnts_by_station) {
156
164
  for ( int st_num = 0; st_num < static_cast<int>(spnts_by_station.size()); ++st_num ) {