ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 9d03c3b was 3c40083, checked in by pavel <pavel@…>, 11 years ago |
switch to a more stable Hector version
|
-
Property mode
set to
100644
|
File size:
957 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_HorizontalQuadrupole.cc
|
---|
[3c40083] | 13 | /// \brief Classes aiming at simulating horizontal kickers in beamline
|
---|
[5b822e5] | 14 |
|
---|
| 15 | // local #includes
|
---|
| 16 | #include "H_HorizontalQuadrupole.h"
|
---|
| 17 |
|
---|
[3c40083] | 18 | void H_HorizontalQuadrupole::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
|
---|
| 19 | if (fk>0) { if(VERBOSE) cout<<"\t ERROR : k1 should be < 0 for H_HorizontalQuadrupole (" << name << ")!"<<endl; }
|
---|
| 20 | if (fk !=0 ) *element_mat = hquadmat(element_length,fk,eloss, p_mass, p_charge);
|
---|
[5b822e5] | 21 | else {
|
---|
[3c40083] | 22 | *element_mat = driftmat(element_length);
|
---|
| 23 | if(VERBOSE) cout<<"\t WARNING : k1= 0 ; drift-like quadrupole (" << name << ") !" << endl;
|
---|
[5b822e5] | 24 | }
|
---|
| 25 | return ;
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.