Last change
on this file since 5eda6767 was 3c40083, checked in by pavel <pavel@…>, 10 years ago |
switch to a more stable Hector version
|
-
Property mode
set to
100644
|
File size:
841 bytes
|
Rev | Line | |
---|
[3c40083] | 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
|
---|
| 5 |
|
---|
| 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 | */
|
---|
[5b822e5] | 11 |
|
---|
| 12 | /// \file H_HorizontalKicker.cc
|
---|
| 13 | /// \brief Classes aiming at simulating horizontal kickers in beamline
|
---|
| 14 |
|
---|
| 15 | // fk [rad] for kickers !!!!
|
---|
| 16 |
|
---|
| 17 | // local #includes
|
---|
| 18 | #include "H_HorizontalKicker.h"
|
---|
| 19 | #include "H_TransportMatrices.h"
|
---|
| 20 |
|
---|
| 21 | int kickers_on = 0;
|
---|
| 22 |
|
---|
[3c40083] | 23 | void H_HorizontalKicker::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
|
---|
[5b822e5] | 24 | extern int kickers_on;
|
---|
| 25 | if(kickers_on) {
|
---|
[3c40083] | 26 | *element_mat = hkickmat(element_length,fk,eloss,p_mass,p_charge);
|
---|
[5b822e5] | 27 | } else {
|
---|
[3c40083] | 28 | *element_mat = driftmat(element_length);
|
---|
[5b822e5] | 29 | }
|
---|
| 30 | return ;
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.