[5b822e5] | 1 | #ifndef _H_RectEllipticAperture_
|
---|
| 2 | #define _H_RectEllipticAperture_
|
---|
| 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_RectEllipticAperture.h
|
---|
| 23 | /// \brief Defines the Rect-Elliptic aperture of beamline elements.
|
---|
| 24 |
|
---|
| 25 | // local #includes
|
---|
| 26 | #include "H_Aperture.h"
|
---|
| 27 |
|
---|
| 28 | /// Rect-ellipse apertures
|
---|
| 29 | class H_RectEllipticAperture: public H_Aperture {
|
---|
| 30 |
|
---|
| 31 | public:
|
---|
| 32 | /// Constructors and Destructor
|
---|
| 33 | //@{
|
---|
| 34 | H_RectEllipticAperture():H_Aperture(RECTELLIPSE,0,0,0,0,0,0) {}
|
---|
| 35 | H_RectEllipticAperture(const float,const float,const float,const float, const float, const float);
|
---|
| 36 | ~H_RectEllipticAperture() {};
|
---|
| 37 | H_RectEllipticAperture* clone() const;
|
---|
| 38 | //@}
|
---|
| 39 | /// Checks whether the point is inside the aperture or not
|
---|
| 40 | virtual bool isInside(const float, const float) const;
|
---|
| 41 | /// Draws the aperture shape.
|
---|
| 42 | virtual void draw(const float scale=1) const;
|
---|
| 43 | friend std::ostream& operator<< (std::ostream& os, const H_RectEllipticAperture& ap);
|
---|
| 44 | };
|
---|
| 45 |
|
---|
| 46 | #endif
|
---|