Пример #1
0
 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;
 }
Пример #2
0
 /** get a string representation */
 public String toString() {
   return "snapshot:  "
       + _snapshot.getID()
       + ", x_vs:  "
       + _beamPosition[0]
       + ", y_vs:  "
       + _beamPosition[1];
 }
Пример #3
0
 public double getAverageBeamPosition(final PVLoggerSnapshot snapshot, final BPM bpm) {
   return snapshot.getYAvg(bpm);
 }