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_Kicker.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_Kicker.cc
     
    3427}
    3528
    36 std::ostream& operator<< (std::ostream& os, const H_Kicker& el) {
    37         os << el.typestring << el.name <<"\t at s = "<< el.fs <<"\t length = "<< el.element_length;
    38         os<<"\t k0 = "<< el.fk <<endl;
    39         if(el.element_aperture->getType()!=NONE) {
    40                 os << *(el.element_aperture) << endl;
     29void H_Kicker::printProperties() const {
     30        cout << typestring;
     31        cout << name;
     32        cout<<"\t at s = "<< fs;
     33        cout<<"\t length = "<< element_length;
     34        cout<<"\t k0 = "<<fk;
     35        cout<<endl;
     36        if(element_aperture->getType()!=NONE) {
     37                cout <<"\t aperture type = " << element_aperture->getTypeString();
     38                element_aperture->printProperties();
    4139        }
    4240
    43         if(el.element_length<0 && VERBOSE) os<<"<H_Kicker> ERROR : Interpenetration of elements !"<<endl;
    44         else if(el.element_length==0 && VERBOSE) os<<"<H_Kicker> WARNING : 0-length "<< el.name << " !" << endl;
    45   return os;
     41        if(element_length<0)  { if(VERBOSE) cout<<"\t ERROR : Interpenetration of elements !"<<endl; }
     42        if(element_length==0) { if(VERBOSE) cout<<"\t WARNING : 0-length "<< name << " !" << endl; }
    4643}
Note: See TracChangeset for help on using the changeset viewer.