1 | // $Id$ |
---|
2 | // Author: fenu2 2009/10/27 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EPTTTrigger * |
---|
8 | * Package: <packagename> * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | #ifndef __EPTTTRIGGER_HH__ |
---|
14 | #define __EPTTTRIGGER_HH__ |
---|
15 | |
---|
16 | #include "EFillable.hh" |
---|
17 | #include "TObject.h" |
---|
18 | #include "TClonesArray.h" |
---|
19 | //#include <iostream.h> |
---|
20 | //////////////////////////////////////////////////////////////////////////////// |
---|
21 | // // |
---|
22 | // EPTTrigger // |
---|
23 | // // |
---|
24 | // <brief class description> // |
---|
25 | // // |
---|
26 | //////////////////////////////////////////////////////////////////////////////// |
---|
27 | class EPTTTriggerSegment; |
---|
28 | class EPTTTrigger:public TObject, public EFillable |
---|
29 | { |
---|
30 | public: |
---|
31 | EPTTTrigger (); |
---|
32 | virtual ~ EPTTTrigger (); |
---|
33 | EPTTTrigger (const EPTTTrigger &); |
---|
34 | Int_t fNumTrigg; |
---|
35 | TClonesArray *fPTTFlag; |
---|
36 | virtual void Copy (TObject &) const; |
---|
37 | |
---|
38 | //returns information about triggering macrocells |
---|
39 | //as parameter number of triggering macrocell within the event |
---|
40 | inline EPTTTriggerSegment *GetPTTTrack (Int_t i) |
---|
41 | { |
---|
42 | return (EPTTTriggerSegment *) fPTTFlag->At (i); |
---|
43 | } |
---|
44 | |
---|
45 | //returns how may macrocells are triggering within one event |
---|
46 | inline Int_t GetPTTTrackNum () |
---|
47 | { |
---|
48 | return fPTTFlag->GetEntries (); |
---|
49 | } |
---|
50 | |
---|
51 | virtual void Clear (Option_t * = ""); |
---|
52 | void ClearCopy (); |
---|
53 | private: |
---|
54 | Bool_t fCopy; |
---|
55 | static TClonesArray *fgPTTFlag; |
---|
56 | static EPTTTrigger *fgCurrent; |
---|
57 | SetEVisitable () |
---|
58 | ClassDef (EPTTTrigger, 1) |
---|
59 | |
---|
60 | }; |
---|
61 | |
---|
62 | #endif /* __EPTTTRIGGER_HH__ */ |
---|