Fork me on GitHub

source: svn/trunk/Utilities/Hector/src/H_CircularAperture.cc@ 90

Last change on this file since 90 was 3, checked in by Xavier Rouby, 16 years ago

first commit

File size: 1.2 KB
Line 
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*/
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
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;
30}
31
32H_CircularAperture* H_CircularAperture::clone() const {
33 return new H_CircularAperture(x1,fx,fy);
34}
35
36void H_CircularAperture::printProperties() const {
37 cout << "Aperture shape:" << getTypeString() << ", aperture radius : " << x1 << endl;
38 cout << " \t Center : " << fx << "," << fy << endl;
39 return;
40}
Note: See TracBrowser for help on using the repository browser.