source: JEM-EUSO/esaf_cc_at_lal/packages/common/root/include/EORSample.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: 3.2 KB
Line 
1// $Id: EORSample.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: EORSample                                                            *
8 *  Package: <packagename>                                                   *
9 *  Coordinator: <coordinator>                                               *
10 *                                                                           *
11 *****************************************************************************/
12
13#ifndef __EORSAMPLE_HH__
14#define __EORSAMPLE_HH__
15
16#include <TObject.h>
17#include <TVector3.h>
18
19class TH2F;
20
21////////////////////////////////////////////////////////////////////////////////
22//                                                                            //
23// EORSample                                                                  //
24//                                                                            // 
25// <brief class description>                                                  // 
26//                                                                            // 
27////////////////////////////////////////////////////////////////////////////////
28
29class EORSample : public TObject {
30public:
31    EORSample();
32    virtual ~EORSample();
33
34    virtual void   Clear( Option_t* = "");
35
36    // Setters
37    inline void    SetThetaIndex(Int_t n)        { fThetaIndex = n;}
38    inline void    SetLambdaIndex(Int_t n)       { fLambdaIndex = n;}   
39    inline void    SetTheta(Float_t theta)       { fTheta = theta;}
40    inline void    SetLambda(Float_t lambda)     { fLambda = lambda;}
41    inline void    SetTotalEfficacy(Float_t eff) { fTotalEfficacy = eff;}
42    inline void    SetTriggEfficacy(Float_t eff) { fTriggEfficacy = eff;}
43    inline void    SetCentroid( const TVector3& v ) { fCentroid = v; }
44           void    SetPsfHist(TH2F*);
45     // Getters
46    inline TH2F*   GetPsfHist() const { return fPsfHist;}
47    inline Int_t   GetThetaIndex() const { return fThetaIndex;}
48    inline Int_t   GetLambdaIndex() const { return fLambdaIndex;}
49    inline Float_t GetTheta() const { return fTheta;}
50    inline Float_t GetLambda() const { return fLambda;}
51    inline Float_t GetTotalEfficacy() const { return fTotalEfficacy;}
52    inline Float_t GetTriggEfficacy() const { return fTriggEfficacy;}
53    inline const TVector3& GetCentroid() const { return fCentroid; }
54    // Makers
55    TH2F*          MakePsfHistRotated(Float_t ph);
56   
57private:
58
59    Int_t    fThetaIndex;      // Theta index for faster access
60    Int_t    fLambdaIndex;     // Lambda index for faster access
61    Float_t  fTheta;           // Incident Theta angle in rad
62    Float_t  fLambda;          // Light wavelength in nm
63    Float_t  fTotalEfficacy;   // Optics Global Efficacy
64    Float_t  fTriggEfficacy;   // Optics Triggering Efficacy
65    TVector3 fCentroid;        // position of the centroid on the fs
66
67    TH2F*    fPsfHist;         // XY distribution of efficacy
68
69    ClassDef(EORSample,1)
70};
71
72#endif  /* __ORSAMPLE_HH__ */
73
Note: See TracBrowser for help on using the repository browser.