source:
svn/trunk/external/Hector/H_RectangularDipole.cc@
1394
Last change on this file since 1394 was 1365, checked in by , 11 years ago | |
---|---|
|
|
File size: 828 bytes |
Rev | Line | |
---|---|---|
[1365] | 1 | /* |
2 | ---- Hector the simulator ---- | |
3 | A fast simulator of particles through generic beamlines. | |
4 | J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be | |
[1360] | 5 | |
[1365] | 6 | http://www.fynu.ucl.ac.be/hector.html |
7 | ||
8 | Centre de Physique des Particules et de Phénoménologie (CP3) | |
9 | Université Catholique de Louvain (UCL) | |
10 | */ | |
11 | ||
[1360] | 12 | /// \file H_RectangularDipole.cc |
13 | /// \brief Classes aiming at simulating LHC beam rectangular dipoles | |
14 | ||
15 | #include "H_RectangularDipole.h" | |
16 | #include "H_TransportMatrices.h" | |
17 | ||
[1365] | 18 | void H_RectangularDipole::setMatrix(const float eloss, const float p_mass, const float p_charge) const { |
19 | if (fk !=0 ) *element_mat = rdipmat(element_length,fk,eloss,p_mass,p_charge); | |
[1360] | 20 | else { |
[1365] | 21 | *element_mat = driftmat(element_length); |
22 | if(VERBOSE) cout<<"\t WARNING : k0= 0, drift-like dipole (" << name << ") !" << endl; | |
[1360] | 23 | } |
24 | return ; | |
25 | } |
Note:
See TracBrowser
for help on using the repository browser.