source:
svn/trunk/external/Hector/H_CircularAperture.cc
Last change on this file was 1365, checked in by , 10 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[1365] | 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 | |
[1360] | 5 | |
[1365] | 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 | */ | |
11 | ||
[1360] | 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" | |
23 | using namespace std; | |
24 | ||
[1365] | 25 | /// Circular apertures |
26 | H_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; | |
[1360] | 30 | } |
31 | ||
[1365] | 32 | void H_CircularAperture::printProperties() const { |
33 | cout << "Aperture shape:" << getTypeString() << ", aperture radius : " << x1 << endl; | |
34 | cout << " \t Center : " << fx << "," << fy << endl; | |
35 | return; | |
[1360] | 36 | } |
Note:
See TracBrowser
for help on using the repository browser.