source: JEM-EUSO/esaf_cc_at_lal/packages/common/root/include/EFee.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.4 KB
Line 
1// $Id: EFee.hh 1913 2005-06-03 12:39:50Z thea $
2// Author: M.Pallavicini May, 23 2004
3
4/*****************************************************************************
5 * ESAF: Euso Simulation and Analysis Framework                              *
6 *                                                                           *
7 *  Id: EFee                                                                 *
8 *  Package: SimuEvent                                                       *
9 *  Coordinator: Alessandro.Thea                                             *
10 *                                                                           *
11 *****************************************************************************/
12
13#ifndef __EFEE_HH__
14#define __EFEE_HH__
15
16#include "TObject.h"
17#include "EFillable.hh"
18
19////////////////////////////////////////////////////////////////////////////////
20//                                                                            //
21// EFee                                                                       //
22//                                                                            //
23// Digital Front End electronics infos                                        //
24// For each GTU, the number of detected photons per each channel is written   //
25// Data is available for both DFEE and full AFEE                              //
26//                                                                            //
27////////////////////////////////////////////////////////////////////////////////
28
29class EFee : public TObject {
30public:
31    EFee();
32    // ctor
33   
34    EFee(const EFee&);
35    // copy ctor
36   
37    virtual ~EFee();
38    // dtor
39   
40    virtual void Copy( TObject& ) const ;
41    // copy to new object
42
43    // getters
44    inline Int_t   GetGtu() {return fGtu;}                      // gtu identifier
45    inline Int_t   GetFEId() {return fFEId;}                    // front end identifier
46    inline Int_t   GetChUId() {return fChUId;}                  // unique channel number
47    inline Int_t   GetNumSignals() {return fNumSignals;}        // number of signal hits
48    inline Int_t   GetNumHits() {return fNumHits;}              // number of detected hits
49    inline Bool_t  HasTriggered() {return fHasTriggered;}   
50    inline Float_t GetChCharge() {return fChCharge;}           // channel charge
51
52    inline void SetGtu( Int_t gtu ) { fGtu = gtu; }         // gtu identifier
53    inline void SetFEId( Int_t id ) { fFEId = id;}          // front end identifier
54    inline void SetChUId( Int_t id ) { fChUId = id;}        // unique channel number
55    inline void SetNumSignals( Int_t n ) {fNumSignals = n;} // number of signal hits
56    inline void SetNumHits( Int_t n ) { fNumHits = n;}      // number of detected hits
57    inline void SetHasTriggered( Bool_t trgrd ) { fHasTriggered = trgrd; }
58    inline void SetChCharge( Float_t c ) { fChCharge = c ;} // channel charge
59
60    ClassDef(EFee,1)
61       
62private:
63    Int_t fGtu;               // gtu identifier
64    Int_t fFEId;              // front end identifier
65    Int_t fChUId;             // channel unique identifier number
66    Int_t fNumHits;           // number of detected hits
67    Int_t fNumSignals;        // number of pure signal hits
68    Bool_t fHasTriggered;     // true if it was above digital counter threshold
69    Float_t fChCharge;        // channel charge
70
71    friend class EEvent;
72    SetEVisitable()
73};
74
75#endif  /* __EFEE_HH_ */
76
Note: See TracBrowser for help on using the repository browser.