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_CircularAperture.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_CircularAperture.cc
     
    3023using namespace std;
    3124
    32 H_CircularAperture* H_CircularAperture::clone() const {
    33         return new H_CircularAperture(x1,fx,fy);
     25/// Circular apertures
     26H_CircularAperture::H_CircularAperture(const float r, const float posx, const float posy) :H_EllipticAperture(r,r,posx,posy) {
     27        /// @param r is the radius of the circular shape
     28        /// @param posx, posy are the (x,y) coordinates of the center of the circle
     29        type= CIRCULAR;
    3430}
    3531
    36 std::ostream& operator<< (std::ostream& os, const H_CircularAperture& ap) {
    37         os     << "Aperture shape:" << ap.aptypestring << ", aperture radius : " << ap.x1 << endl;
    38         os     << " \t Center : " << ap.fx << "," << ap.fy << endl;
    39         return os;
     32void H_CircularAperture::printProperties() const {
     33        cout << "Aperture shape:" << getTypeString() << ", aperture radius : " << x1 << endl;
     34        cout << " \t Center : " << fx << "," << fy << endl;
     35        return;
    4036}
Note: See TracChangeset for help on using the changeset viewer.