50 void TransportBunch(std::map<std::string, std::vector<double>>& beam);
83 std::vector<Matrix<double>>
_T;
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