Fork me on GitHub

source: svn/trunk/Utilities/Hector/include/H_CircularAperture.h@ 1080

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

new Hector version

File size: 1.8 KB
Line 
1#ifndef _H_CircularAperture_
2#define _H_CircularAperture_
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 * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
22/// \file H_CircularAperture.h
23/// \brief Defines the circular aperture of beamline elements.
24
25// local #includes
26#include "H_EllipticAperture.h"
27
28
29/// Circular apertures
30class H_CircularAperture: public H_EllipticAperture {
31
32 public:
33 /// Constructors and destructor
34 //@{
35 H_CircularAperture():H_EllipticAperture(CIRCULAR,0,0,0,0) {};
36 H_CircularAperture(const float r, const float posx, const float posy) : H_EllipticAperture(CIRCULAR,r,r,posx,posy) {};
37 /// @param r is the radius of the circular shape
38 /// @param posx, posy are the (x,y) coordinates of the center of the circle
39 ~H_CircularAperture() {};
40 H_CircularAperture* clone() const;
41 //@}
42 friend std::ostream& operator<< (std::ostream& os, const H_CircularAperture& ap);
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.