1 | // $Id: EDetStatus.hh 2262 2005-10-24 10:42:29Z pesce $ |
---|
2 | // Author: Roberto Pesce 2005/09/27 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EDetStatus * |
---|
8 | * Package: <packagename> * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | #ifndef __EDETSTATUS_HH__ |
---|
14 | #define __EDETSTATUS_HH__ |
---|
15 | |
---|
16 | #include "TObject.h" |
---|
17 | #include "TArrayI.h" |
---|
18 | #include "Etypes.hh" |
---|
19 | #include "EFillable.hh" |
---|
20 | |
---|
21 | //////////////////////////////////////////////////////////////////////////////// |
---|
22 | // // |
---|
23 | // EDetStatus // |
---|
24 | // // |
---|
25 | // <brief class description> // |
---|
26 | // // |
---|
27 | //////////////////////////////////////////////////////////////////////////////// |
---|
28 | |
---|
29 | class EDetStatus : public TObject { |
---|
30 | public: |
---|
31 | EDetStatus(); |
---|
32 | // ctor |
---|
33 | |
---|
34 | EDetStatus(const EDetStatus&); |
---|
35 | // copy ctor |
---|
36 | |
---|
37 | virtual ~EDetStatus(); |
---|
38 | // dtor |
---|
39 | |
---|
40 | virtual void Clear( Option_t* = "" ); |
---|
41 | // clear method |
---|
42 | |
---|
43 | virtual void Copy( TObject& ) const; |
---|
44 | // copy method |
---|
45 | |
---|
46 | |
---|
47 | // getters |
---|
48 | inline Int_t GetNumActivePixels() const { return fNumActivePixels; } |
---|
49 | inline Int_t GetNumSignals() const { return fNumSignals; } |
---|
50 | inline Int_t GetNumBkg() const { return fNumBkg; } |
---|
51 | inline Int_t GetNumHits() const { return fNumHits; } |
---|
52 | inline Int_t GetNumGtu() const { return fNumGtu;} |
---|
53 | inline Int_t GetNumPhotons() const { return fNumPhotons; } |
---|
54 | Int_t GetMaxHits( Int_t ) const; |
---|
55 | Int_t GetMaxBkg( Int_t ) const; |
---|
56 | Int_t GetMaxSignals( Int_t ) const; |
---|
57 | inline Int_t GetPhotonHistory( EDetectorSystem s ) const { return fPhotonHistory.At(s); } |
---|
58 | |
---|
59 | // setters |
---|
60 | inline void SetNumActivePixels( Int_t val ) { fNumActivePixels = val; } |
---|
61 | inline void SetNumSignals( Int_t val ) { fNumSignals = val; } |
---|
62 | inline void SetNumBkg( Int_t val ) { fNumBkg = val; } |
---|
63 | inline void SetNumHits( Int_t val ) { fNumHits = val; } |
---|
64 | inline void SetNumGtu( Int_t val ) { fNumGtu = val; } |
---|
65 | inline void SetNumPhotons( Int_t val ) { fNumPhotons=val; } |
---|
66 | inline void SetMaxHits( Int_t size, const Int_t *arr ) { fMaxHits.Set(size,arr); } |
---|
67 | inline void SetMaxSignals( Int_t size, const Int_t *arr ) { fMaxSignals.Set(size,arr); } |
---|
68 | inline void SetMaxBkg( Int_t size, const Int_t *arr ) { fMaxBkg.Set(size,arr); } |
---|
69 | |
---|
70 | private: |
---|
71 | Int_t fNumActivePixels; // pixels hitted by signal (active pixels) |
---|
72 | Int_t fNumSignals; // total num of signal hits |
---|
73 | Int_t fNumBkg; // total num of background hits (in active pixels) |
---|
74 | Int_t fNumHits; // total num of total hits (in active pixels) |
---|
75 | Int_t fNumGtu; // total num of gtus (with at least a signal) |
---|
76 | Int_t fNumPhotons; // total num of photons |
---|
77 | |
---|
78 | TArrayI fPhotonHistory; // summary of photon history |
---|
79 | TArrayI fMaxHits; // array of max total hits in a pixel (for each gtu) |
---|
80 | TArrayI fMaxBkg; // array of max background hits in a pixel (for each gtu) |
---|
81 | TArrayI fMaxSignals; // array of max signal hits in a pixel (for each gtu) |
---|
82 | |
---|
83 | SetEVisitable() |
---|
84 | |
---|
85 | ClassDef(EDetStatus,1) |
---|
86 | }; |
---|
87 | |
---|
88 | #endif /* __EDETSTATUS_HH__ */ |
---|
89 | |
---|