Fork me on GitHub

source: git/external/Hector/H_CircularAperture.cc@ 3b3071a

3.4.3pre11
Last change on this file since 3b3071a was 3c40083, checked in by pavel <pavel@…>, 11 years ago

switch to a more stable Hector version

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[3c40083]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*/
[5b822e5]11
12/// \file H_CircularAperture.cc
13/// \brief Defines the circular aperture of beamline elements.
14
15// C++ #includes
16#include <iostream>
17
18// C #includes
19#include <cmath> // needed for fabs and log
20
21// local #includes
22#include "H_CircularAperture.h"
23using namespace std;
24
[3c40083]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;
[5b822e5]30}
31
[3c40083]32void H_CircularAperture::printProperties() const {
33 cout << "Aperture shape:" << getTypeString() << ", aperture radius : " << x1 << endl;
34 cout << " \t Center : " << fx << "," << fy << endl;
35 return;
[5b822e5]36}
Note: See TracBrowser for help on using the repository browser.