// $Id: EOpticsResponse.hh,v 1.3 2005/04/18 22:48:33 thea Exp $ // Author: ale 2005/01/19 /***************************************************************************** * ESAF: Euso Simulation and Analysis Framework * * * * Id: EOpticsResponse * * Package: * * Coordinator: * * * *****************************************************************************/ #ifndef __EOPTICSRESPONSE_HH__ #define __EOPTICSRESPONSE_HH__ #include class TFile; class TTree; class EORSample; class EORHeader; class TH1F; class TH2F; class TClonesArray; //////////////////////////////////////////////////////////////////////////////// // // // EOpticsResponse // // // // // // // //////////////////////////////////////////////////////////////////////////////// class EOpticsResponse : public TObject { public: EOpticsResponse( const char* filename ); virtual ~EOpticsResponse(); // Getters EORHeader* GetHeader() { return fHeader; } EORSample* GetSample() { return fSample; } TTree* GetTree() { return fTree; } Bool_t GetEntry(Float_t th, Float_t lam); // read entry with given Theta and Lambda // Makers TH2F* MakePsfHist(Float_t, Float_t, TH1F*); // returnes a mixture of Psf distributions for the entry spectrum TH2F* MakePsfHist(Float_t, Float_t, Float_t);// returnes a mixture of Psf distributions for the entry spectrum void Clear( Option_t* =""); private: TFile *fFile; TTree *fTree; EORSample *fSample; EORHeader *fHeader; TH2F* fPsf; // Psf distribution for the given spectrum TClonesArray* fPoints; // temp container ClassDef(EOpticsResponse,0) }; #endif /* __EOPTICSRESPONSE_HH__ */