Changeset 3c40083 in git for external/Hector/H_HorizontalKicker.cc
- Timestamp:
- Apr 16, 2014, 3:56:14 PM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 64a4950
- Parents:
- f6b9fec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/Hector/H_HorizontalKicker.cc
rf6b9fec r3c40083 1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * 2 * * 3 * --<--<-- A fast simulator --<--<-- * 4 * / --<--<-- of particle --<--<-- * 5 * ----HECTOR----< * 6 * \ -->-->-- transport through -->-->-- * 7 * -->-->-- generic beamlines -->-->-- * 8 * * 9 * JINST 2:P09005 (2007) * 10 * X Rouby, J de Favereau, K Piotrzkowski (CP3) * 11 * http://www.fynu.ucl.ac.be/hector.html * 12 * * 13 * Center for Cosmology, Particle Physics and Phenomenology * 14 * Universite catholique de Louvain * 15 * Louvain-la-Neuve, Belgium * 16 * * 17 * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 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 */ 18 11 19 12 /// \file H_HorizontalKicker.cc … … 28 21 int kickers_on = 0; 29 22 30 void H_HorizontalKicker::setMatrix(const float eloss, const float p_mass, const float p_charge) {23 void H_HorizontalKicker::setMatrix(const float eloss, const float p_mass, const float p_charge) const { 31 24 extern int kickers_on; 32 25 if(kickers_on) { 33 element_mat = hkickmat(element_length,fk,eloss,p_mass,p_charge);26 *element_mat = hkickmat(element_length,fk,eloss,p_mass,p_charge); 34 27 } else { 35 element_mat = driftmat(element_length);28 *element_mat = driftmat(element_length); 36 29 } 37 30 return ; 38 31 } 39 40 H_HorizontalKicker* H_HorizontalKicker::clone() const {41 H_HorizontalKicker* temp_kick = new H_HorizontalKicker(name,fs,fk,element_length);42 temp_kick->setAperture(element_aperture);43 temp_kick->setX(xpos);44 temp_kick->setY(ypos);45 temp_kick->setTX(txpos);46 temp_kick->setTY(typos);47 temp_kick->setBetaX(betax);48 temp_kick->setBetaY(betay);49 return temp_kick;50 }51
Note:
See TracChangeset
for help on using the changeset viewer.