1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: IdealFocalSurface.hh 1734 2005-04-15 18:54:42Z thea $ |
---|
3 | // A.Thea created Apr, 1 2003 |
---|
4 | |
---|
5 | #ifndef __IDEALFOCALSURFACE_HH_ |
---|
6 | #define __IDEALFOCALSURFACE_HH_ |
---|
7 | |
---|
8 | #include "euso.hh" |
---|
9 | #include "Photon.hh" |
---|
10 | #include "TVector3.h" |
---|
11 | #include "EsafConfigurable.hh" |
---|
12 | |
---|
13 | class IdealFocalSurface: public EsafConfigurable { |
---|
14 | protected: |
---|
15 | TVector3 fPos; |
---|
16 | Double_t fR, fDZup, fDZdown; |
---|
17 | |
---|
18 | Double_t NextInt( const TVector3 &pos, const TVector3 &dir); |
---|
19 | public: |
---|
20 | IdealFocalSurface(); |
---|
21 | virtual ~IdealFocalSurface(); |
---|
22 | |
---|
23 | inline Double_t GetR() { return fR; } |
---|
24 | const TVector3& GetPos() { return fPos; } |
---|
25 | virtual Bool_t HitPosition(Photon *p) = 0; |
---|
26 | |
---|
27 | virtual Double_t Profile( Double_t r) = 0; |
---|
28 | |
---|
29 | EsafConfigClass(Optics,IdealFocalSurface) |
---|
30 | |
---|
31 | ClassDef(IdealFocalSurface,0) |
---|
32 | }; |
---|
33 | |
---|
34 | class TestIdealFocalSurface: public IdealFocalSurface { |
---|
35 | public: |
---|
36 | TestIdealFocalSurface(); |
---|
37 | virtual ~TestIdealFocalSurface(); |
---|
38 | |
---|
39 | virtual Bool_t HitPosition(Photon *); |
---|
40 | |
---|
41 | virtual Double_t Profile( Double_t r) { return 0; } |
---|
42 | |
---|
43 | ClassDef(TestIdealFocalSurface,0) |
---|
44 | }; |
---|
45 | |
---|
46 | #endif /* __IDEALFOCALSURFACE_HH_ */ |
---|
47 | |
---|