PROFASI
Version 1.5
|
PROFASI (multi-segment) trajectories. More...
#include <Trajectory.hh>
This class provides an STL list like interface to a PROFASI trajectory. Each element of this fictitious list is a TrajSnapshot. The list can be browsed using a TrajIterator from "begin()" to "end()". There is also a "find()" function to locate a snapshot with a particular MC time.
Internally, this class is a collection of TrajSeg objects representing different segments of a run. It parses a "traj" file to decide what segments make up the trajectory, and the cycle limits assigned to each segment. Typical use:
prf_traj::Trajectory traj; traj.parse("somedirectory/traj"); if (traj.init()) { for (prf_traj::Trajectory::iterator it=traj.begin(); it!=traj.end();++it) { prf::cout<<"Time = "<<it->MC_time() <<", energy = "<<it->energy()<<"\n"; //Or do something else with the snapshot represented by //(*it) } }