SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Transport.hh
1 // C++ includes
2 #include <iostream>
3 #include <ctime>
4 #include <cmath>
5 #include <map>
6 
7 // Additional includes
8 #include "Matrix.hh"
9 
20 class Transport {
21  public:
23  Transport();
24 
29  Transport(const size_t dim);
30 
32  Transport(const Transport& transport);
33 
35  Transport& operator=(const Transport& transport);
36 
38  ~Transport();
39 
44  void TransportParticle(Matrix<double>& particle);
45 
50  void TransportBunch(std::map<std::string, std::vector<double>>& beam);
51 
57  void AddDriftSpace(const double& L, const double& p);
58 
64  void AddSolenoid(const double& L, const double& K);
65 
71  void AddSolenoidNL(const double& L, const double& K);
72 
77  const Matrix<double>& TransferMatrix() const { return _M; }
78 
79  private:
80 
81  size_t _dim;
83  std::vector<Matrix<double>> _T;
84 };
const Matrix< double > & TransferMatrix() const
Gets the total transfer matrix resulting from the.
Definition: Transport.hh:77
void TransportBunch(std::map< std::string, std::vector< double >> &beam)
Performs the transport on a beam of particles.
Definition: Transport.cc:43
Performs the linear transport of a beam through beam line elements.
Definition: Transport.hh:20
size_t _dim
Dimension of the space.
Definition: Transport.hh:81
void AddSolenoid(const double &L, const double &K)
Adds a constant solenoid to the chain of transport.
Definition: Transport.cc:82
void TransportParticle(Matrix< double > &particle)
Performs the Transport on a particle.
Definition: Transport.cc:38
std::vector< Matrix< double > > _T
Second order transfer 3-tensor.
Definition: Transport.hh:83
Matrix< double > _M
Transfer matrix.
Definition: Transport.hh:82
Transport & operator=(const Transport &transport)
Equality operator.
Definition: Transport.cc:26
~Transport()
Destructor.
Definition: Transport.cc:36
void AddSolenoidNL(const double &L, const double &K)
Adds a constant non-linear solenoid to the chain of transport.
void AddDriftSpace(const double &L, const double &p)
Adds a drift space to the chain of transport.
Definition: Transport.cc:69
Transport()
Default constructor, initilizes everything to 0.
Definition: Transport.cc:3