Fork me on GitHub

source: svn/trunk/Utilities/Hector/include/H_RectangularAperture.h@ 492

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

new Hector version

File size: 1.9 KB
Line 
1#ifndef _H_RectangularAperture_
2#define _H_RectangularAperture_
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_RectangularAperture.h
23/// \brief Defines the rectangular aperture of beamline elements.
24
25// local #includes
26#include "H_Aperture.h"
27
28/// Rectangular apertures
29class H_RectangularAperture : public H_Aperture {
30
31 public:
32 /// Constructors and destructor
33 //@{
34 H_RectangularAperture():H_Aperture(RECTANGULAR,0,0,0,0,0,0) {}
35 H_RectangularAperture(const float,const float,const float,const float);
36 ~H_RectangularAperture() {};
37 H_RectangularAperture* 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_RectangularAperture& ap);
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.