source: JEM-EUSO/esaf_cc_at_lal/packages/common/root/include/EOpticsResponse.hh @ 114

Last change on this file since 114 was 114, checked in by moretto, 11 years ago

actual version of ESAF at CCin2p3

File size: 2.5 KB
Line 
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
18class TFile;
19class TTree;
20class EORSample;
21class EORHeader;
22class TH1F;
23class TH2F; 
24class TClonesArray;
25
26////////////////////////////////////////////////////////////////////////////////
27//                                                                            //
28// EOpticsResponse                                                            //
29//                                                                            // 
30// <brief class description>                                                  // 
31//                                                                            // 
32////////////////////////////////////////////////////////////////////////////////
33
34class EOpticsResponse : public TObject {
35public:
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* ="");
50private:
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
Note: See TracBrowser for help on using the repository browser.