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

    r1360 r1365  
    11#ifndef _H_RomanPot_
    22#define _H_RomanPot_
    3 
    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    * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    213
    224/// \file H_RomanPot.h
    235/// \brief Roman pot class
    246
     7/*
     8---- Hector the simulator ----
     9   A fast simulator of particles through generic beamlines.
     10   J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be
     11
     12        http://www.fynu.ucl.ac.be/hector.html
     13
     14   Centre de Physique des Particules et de Phénoménologie (CP3)
     15   Université Catholique de Louvain (UCL)
     16*/
     17
    2518// local #includes
    26 #include "H_Drift.h"
     19#include "H_OpticalElement.h"
    2720
    2821#define RP_LENGTH 0.0001
    2922#define RP_HEIGHT 10000
    3023/// Roman pot as an optics element.
    31 class H_RomanPot : public H_Drift {
     24class H_RomanPot : public H_OpticalElement {
    3225
    3326        public:
    3427        ///     Constructors and destructor
    3528        //@{
    36                 H_RomanPot():H_Drift() {type = RP; init();}
    37                 H_RomanPot(const string&, const double, const double);
     29                H_RomanPot():H_OpticalElement(RP,0.,0.,RP_LENGTH) {init();}
     30                H_RomanPot(const string, const double, const double);
    3831                H_RomanPot(const double, const double);
    39                 ~H_RomanPot() {};
     32                ~H_RomanPot() { return; };
    4033        //@}
    41                 H_RomanPot* clone() const ;
     34                virtual void printProperties() const;
    4235                void init();
     36
    4337        private:
    4438                virtual void setTypeString() {typestring=RPNAME;};
    45                 virtual void setMatrix(const float, const float, const float) ;
    46         friend std::ostream& operator<< (std::ostream& os, const H_RomanPot& el);
     39                virtual void setMatrix(const float, const float, const float) const;
     40
    4741};
    4842
Note: See TracChangeset for help on using the changeset viewer.