OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
TrackCmd.h
Go to the documentation of this file.
1 #ifndef OPAL_TrackCmd_HH
2 #define OPAL_TrackCmd_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: TrackCmd.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: TrackCmd
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:46 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "AbstractObjects/Action.h"
22 
23 
24 // Class TrackCmd
25 // ------------------------------------------------------------------------
27 
28 class TrackCmd: public Action {
29 
30 public:
31 
33  TrackCmd();
34 
35  virtual ~TrackCmd();
36 
38  virtual TrackCmd *clone(const std::string &name);
39 
41  virtual void execute();
42 
44  std::vector<double> getDT() const;
45 
46  double getDTSCINIT() const;
47 
48  double getDTAU() const;
49 
51  double getT0() const;
52 
54  std::vector<unsigned long long> getMAXSTEPS() const;
55 
58  int getSTEPSPERTURN() const;
59 
61  double getZSTART() const;
62 
64  std::vector<double> getZSTOP() const;
65 
67  int getTIMEINTEGRATOR() const;
68 
69 private:
70 
71  // Not implemented.
72  TrackCmd(const TrackCmd &);
73  void operator=(const TrackCmd &);
74 
75  // Clone constructor.
76  TrackCmd(const std::string &name, TrackCmd *parent);
77 };
78 
79 #endif // OPAL_TrackCmd_HH
double getDTAU() const
Definition: TrackCmd.cpp:117
The base class for all OPAL actions.
Definition: Action.h:30
std::vector< double > getZSTOP() const
location at which the simulation stops
Definition: TrackCmd.cpp:130
TrackCmd()
Exemplar constructor.
Definition: TrackCmd.cpp:56
int getTIMEINTEGRATOR() const
return the name of time integrator
Definition: TrackCmd.cpp:161
void operator=(const TrackCmd &)
double getDTSCINIT() const
Definition: TrackCmd.cpp:113
virtual ~TrackCmd()
Definition: TrackCmd.cpp:97
The TRACK command.
Definition: TrackCmd.h:28
std::vector< double > getDT() const
Return the timestep in seconds.
Definition: TrackCmd.cpp:105
virtual void execute()
Execute the command.
Definition: TrackCmd.cpp:178
int getSTEPSPERTURN() const
Definition: TrackCmd.cpp:156
double getT0() const
Return the elapsed time (sec) of the bunch.
Definition: TrackCmd.cpp:121
const std::string name
double getZSTART() const
location at which the simulation starts
Definition: TrackCmd.cpp:125
std::vector< unsigned long long > getMAXSTEPS() const
Return the maximum timsteps we integrate the system.
Definition: TrackCmd.cpp:138
virtual TrackCmd * clone(const std::string &name)
Make clone.
Definition: TrackCmd.cpp:101