Fork me on GitHub

Changeset 1365 in svn for trunk/external/Hector/H_Marker.h


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_Marker.h

    r1360 r1365  
    22#define _H_Marker_
    33
    4   /* * * * * * * * * * * * * * * * * * * * * * * * * * * *
    5  *                                                         *
    6 *                   --<--<--  A fast simulator --<--<--     *
    7 *                 / --<--<--     of particle   --<--<--     *
    8 *  ----HECTOR----<                                          *
    9 *                 \ -->-->-- transport through -->-->--     *
    10 *                   -->-->-- generic beamlines -->-->--     *
    11 *                                                           *
    12 * JINST 2:P09005 (2007)                                     *
    13 *      X Rouby, J de Favereau, K Piotrzkowski (CP3)         *
    14 *       http://www.fynu.ucl.ac.be/hector.html               *
    15 *                                                           *
    16 * Center for Cosmology, Particle Physics and Phenomenology  *
    17 *              Universite catholique de Louvain             *
    18 *                 Louvain-la-Neuve, Belgium                 *
    19  *                                                         *
    20    * * * * * * * * * * * * * * * * * * * * * * * * * * * */
     4/*
     5---- Hector the simulator ----
     6   A fast simulator of particles through generic beamlines.
     7   J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be
     8
     9        http://www.fynu.ucl.ac.be/hector.html
     10
     11   Centre de Physique des Particules et de Phénoménologie (CP3)
     12   Université Catholique de Louvain (UCL)
     13*/
    2114
    2215/// \file H_Marker.h
     
    2417
    2518// local includes
    26 #include "H_Drift.h"
     19#include "H_OpticalElement.h"
    2720
    2821/// \brief Class defining a marker in the beamline (e.g. for interaction point)
    29 class H_Marker : public H_Drift {
     22class H_Marker : public H_OpticalElement {
    3023
    3124        public:
    3225        /// Constructors and destructor
    3326        //@{
    34                 H_Marker():H_Drift() { type = MARKER; init();}
    35                 H_Marker(const double s):H_Drift(s,0.) { type =MARKER; init();}
    36                 H_Marker(const string& nameE, const double s):H_Drift(nameE,s,0.) { type=MARKER; init();}
    37                 ~H_Marker() { };
     27                H_Marker():H_OpticalElement(MARKER,0.,0.,0.) {init();}
     28                H_Marker(const double s):H_OpticalElement(MARKER,s,0.,0.){init();}
     29                H_Marker(const string nameE, const double s):H_OpticalElement(nameE,MARKER,s,0.,0.){init();}
     30                ~H_Marker() { return; };
    3831        //@}
    39                 H_Marker* clone() const ;
     32                virtual void printProperties() const;
    4033                void init();
    4134
    4235        private:
    4336                virtual void setTypeString() {typestring = MARKERNAME;};
    44                 virtual void setMatrix(const float , const float, const float) ;
    45         friend std::ostream& operator<< (std::ostream& os, const H_Marker& el);
     37                virtual void setMatrix(const float , const float, const float) const ;
    4638};
    4739
Note: See TracChangeset for help on using the changeset viewer.