protected Trajectory<TransferMapState> calculateTrajectory(final AcceleratorSeq sequence) throws Exception { _sequence = sequence; final PVLoggerSnapshot snapshot = _snapshot; final Scenario scenario = getScenario(snapshot.getDataSource()); scenario.run(); final Trajectory<TransferMapState> trajectory = scenario.getTrajectory(); _trajectory = trajectory; return trajectory; }
/** get a string representation */ public String toString() { return "snapshot: " + _snapshot.getID() + ", x_vs: " + _beamPosition[0] + ", y_vs: " + _beamPosition[1]; }
public double getAverageBeamPosition(final PVLoggerSnapshot snapshot, final BPM bpm) { return snapshot.getYAvg(bpm); }