Changeset 3c40083 in git for external/Hector/H_VerticalKicker.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_VerticalKicker.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_VerticalKicker.cc … … 26 19 #include "H_TransportMatrices.h" 27 20 28 void H_VerticalKicker::setMatrix(const float eloss, const float p_mass, const float p_charge) {21 void H_VerticalKicker::setMatrix(const float eloss, const float p_mass, const float p_charge) const { 29 22 extern int kickers_on; 30 23 if(kickers_on) { 31 element_mat = vkickmat(element_length,fk,eloss,p_mass,p_charge);24 *element_mat = vkickmat(element_length,fk,eloss,p_mass,p_charge); 32 25 } else{ 33 element_mat = driftmat(element_length);26 *element_mat = driftmat(element_length); 34 27 } 35 28 return ; 36 29 } 37 38 H_VerticalKicker* H_VerticalKicker::clone() const {39 H_VerticalKicker* temp_kick = new H_VerticalKicker(name,fs,fk,element_length);40 temp_kick->setAperture(element_aperture);41 temp_kick->setX(xpos);42 temp_kick->setY(ypos);43 temp_kick->setTX(txpos);44 temp_kick->setTY(typos);45 temp_kick->setBetaX(betax);46 temp_kick->setBetaY(betay);47 return temp_kick;48 }49 50
Note:
See TracChangeset
for help on using the changeset viewer.