Fork me on GitHub

source: svn/trunk/Utilities/Hector/include/H_EllipticAperture.h@ 610

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

new Hector version

File size: 1.9 KB
Line 
1#ifndef _H_EllipticAperture_
2#define _H_EllipticAperture_
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_EllipticAperture.h
23/// \brief Defines the elliptic aperture of beamline elements.
24
25// local #includes
26#include "H_Aperture.h"
27
28/// Elliptic apertures
29class H_EllipticAperture: public H_Aperture {
30
31 public:
32 /// Constructors and destructors
33 //@{
34 H_EllipticAperture():H_Aperture(ELLIPTIC,0,0,0,0,0,0) {}
35 H_EllipticAperture(const int, const float, const float, const float, const float);
36 H_EllipticAperture(const float, const float, const float, const float);
37 ~H_EllipticAperture() {};
38 virtual H_EllipticAperture* clone() const;
39 //@}
40 /// Checks whether the point is inside the aperture or not
41 virtual bool isInside(const float, const float) const;
42 /// Draws the aperture shape.
43 virtual void draw(const float scale=1) const;
44 friend std::ostream& operator<< (std::ostream& os, const H_EllipticAperture& ap);
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.