// // TrackFinder.hpp // TrackReconstruction // // Created by Baranyai David on 2018. 06. 07.. // #ifndef TrackFinder_hpp #define TrackFinder_hpp #include #include #include #include #include #include struct Hit { unsigned int ch_id; unsigned int fine_ts; unsigned int coarse_ts; unsigned long ts; unsigned int width; unsigned int which_chamber; std::string direction; }; class TrackFinder { public: TrackFinder(); ~TrackFinder(); bool FindTrack(); void GetTrack(std::vector&); private: void SortFile(); std::ifstream file; std::string line; int interval = 2000; unsigned int iterator = 0; bool istrackavailable = false; Hit h; std::vector hits; std::vector track; }; std::ostream& operator << (std::ostream&, const Hit&); #endif /* TrackFinder_hpp */