1 | // $Id: EOpticsResponse.hh 1754 2005-04-18 22:48:34Z thea $ |
---|
2 | // Author: ale 2005/01/19 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EOpticsResponse * |
---|
8 | * Package: <packagename> * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | #ifndef __EOPTICSRESPONSE_HH__ |
---|
14 | #define __EOPTICSRESPONSE_HH__ |
---|
15 | |
---|
16 | #include <TObject.h> |
---|
17 | |
---|
18 | class TFile; |
---|
19 | class TTree; |
---|
20 | class EORSample; |
---|
21 | class EORHeader; |
---|
22 | class TH1F; |
---|
23 | class TH2F; |
---|
24 | class TClonesArray; |
---|
25 | |
---|
26 | //////////////////////////////////////////////////////////////////////////////// |
---|
27 | // // |
---|
28 | // EOpticsResponse // |
---|
29 | // // |
---|
30 | // <brief class description> // |
---|
31 | // // |
---|
32 | //////////////////////////////////////////////////////////////////////////////// |
---|
33 | |
---|
34 | class EOpticsResponse : public TObject { |
---|
35 | public: |
---|
36 | EOpticsResponse( const char* filename ); |
---|
37 | virtual ~EOpticsResponse(); |
---|
38 | |
---|
39 | // Getters |
---|
40 | EORHeader* GetHeader() { return fHeader; } |
---|
41 | EORSample* GetSample() { return fSample; } |
---|
42 | TTree* GetTree() { return fTree; } |
---|
43 | Bool_t GetEntry(Float_t th, Float_t lam); // read entry with given Theta and Lambda |
---|
44 | // Makers |
---|
45 | TH2F* MakePsfHist(Float_t, Float_t, TH1F*); // returnes a mixture of Psf distributions for the entry spectrum |
---|
46 | TH2F* MakePsfHist(Float_t, Float_t, Float_t);// returnes a mixture of Psf distributions for the entry spectrum |
---|
47 | |
---|
48 | |
---|
49 | void Clear( Option_t* =""); |
---|
50 | private: |
---|
51 | |
---|
52 | TFile *fFile; |
---|
53 | TTree *fTree; |
---|
54 | |
---|
55 | EORSample *fSample; |
---|
56 | EORHeader *fHeader; |
---|
57 | |
---|
58 | TH2F* fPsf; // Psf distribution for the given spectrum |
---|
59 | TClonesArray* fPoints; // temp container |
---|
60 | |
---|
61 | ClassDef(EOpticsResponse,0) |
---|
62 | }; |
---|
63 | |
---|
64 | #endif /* __EOPTICSRESPONSE_HH__ */ |
---|
65 | |
---|