Fork me on GitHub

source: svn/trunk/external/Hector/H_VerticalKicker.cc@ 1372

Last change on this file since 1372 was 1365, checked in by Pavel Demin, 11 years ago

switch to a more stable Hector version

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision Date
File size: 815 bytes
RevLine 
[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_VerticalKicker.cc
13/// \brief Classes aiming at simulating vertical kickers in the beamline
14
15// fk [rad] for kickers !!!!
16
17// local #includes
18#include "H_VerticalKicker.h"
19#include "H_TransportMatrices.h"
20
[1365]21void H_VerticalKicker::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
[1360]22 extern int kickers_on;
23 if(kickers_on) {
[1365]24 *element_mat = vkickmat(element_length,fk,eloss,p_mass,p_charge);
[1360]25 } else{
[1365]26 *element_mat = driftmat(element_length);
[1360]27 }
28 return ;
29}
Note: See TracBrowser for help on using the repository browser.