Fork me on GitHub

Ignore:
Timestamp:
Apr 16, 2014, 3:56:14 PM (10 years ago)
Author:
Pavel Demin
Message:

switch to a more stable Hector version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external/Hector/H_VerticalKicker.cc

    r1360 r1365  
    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*/
    1811
    1912/// \file H_VerticalKicker.cc
     
    2619#include "H_TransportMatrices.h"
    2720
    28 void H_VerticalKicker::setMatrix(const float eloss, const float p_mass, const float p_charge) {
     21void H_VerticalKicker::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
    2922        extern int kickers_on;
    3023        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);
    3225        } else{
    33                 element_mat = driftmat(element_length);
     26                *element_mat = driftmat(element_length);
    3427        }
    3528        return ;
    3629}
    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.