]>
Commit | Line | Data |
---|---|---|
f76c9e9b | 1 | // @(#)root/eve:$Id$ |
2 | // Author: Matevz Tadel 2007 | |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * | |
6 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
7 | * full copyright notice. * | |
8 | **************************************************************************/ | |
9 | ||
10 | #ifndef AliEveTrackCounter_H | |
11 | #define AliEveTrackCounter_H | |
12 | ||
13 | #include "TEveElement.h" | |
14 | #include "TList.h" | |
15 | ||
0e33c639 | 16 | class AliEveTrack; |
3a20f984 | 17 | class AliEveTracklet; |
f76c9e9b | 18 | class TEveTrackList; |
19 | ||
20 | //______________________________________________________________________________ | |
21 | // Short description of AliEveTrackCounter | |
22 | // | |
23 | ||
24 | class AliEveTrackCounter : public TEveElement, public TNamed | |
25 | { | |
26 | friend class AliEveTrackCounterEditor; | |
27 | ||
28 | public: | |
29 | enum EClickAction_e { kCA_PrintTrackInfo, kCA_ToggleTrack }; | |
30 | ||
31 | AliEveTrackCounter(const Text_t* name="AliEveTrackCounter", const Text_t* title=""); | |
32 | virtual ~AliEveTrackCounter(); | |
33 | ||
34 | Int_t GetEventId() const { return fEventId; } | |
35 | void SetEventId(Int_t id) { fEventId = id; } | |
36 | ||
37 | void Reset(); | |
38 | ||
39 | void RegisterTracks(TEveTrackList* tlist, Bool_t goodTracks); | |
3a20f984 | 40 | void RegisterTracklets(TEveTrackList* tlist, Bool_t goodTracks); |
f76c9e9b | 41 | |
0e33c639 | 42 | void DoTrackAction(AliEveTrack* track); |
3a20f984 | 43 | void DoTrackletAction(AliEveTracklet* track); |
f76c9e9b | 44 | |
45 | Int_t GetClickAction() const { return fClickAction; } | |
46 | void SetClickAction(Int_t a) { fClickAction = a; } | |
47 | ||
48 | void OutputEventTracks(FILE* out=0); | |
49 | ||
50 | static AliEveTrackCounter* fgInstance; | |
51 | ||
52 | protected: | |
53 | Int_t fBadLineStyle; // TEveLine-style used for secondary/bad tracks. | |
54 | Int_t fClickAction; // Action to take when a track is ctrl-clicked. | |
55 | ||
56 | Int_t fEventId; // Current event-id. | |
57 | ||
58 | Int_t fAllTracks; // Counter of all tracks. | |
59 | Int_t fGoodTracks; // Counter of good tracks. | |
3a20f984 | 60 | Int_t fAllTracklets; // Counter of all tracklets. |
61 | Int_t fGoodTracklets; // Counter of good tracklets. | |
f76c9e9b | 62 | |
3a20f984 | 63 | TList fTrackLists; // List of track-lists registered for management. |
64 | TList fTrackletLists; // List of tracklet-lists registered for management. | |
f76c9e9b | 65 | |
66 | private: | |
67 | AliEveTrackCounter(const AliEveTrackCounter&); // Not implemented | |
68 | AliEveTrackCounter& operator=(const AliEveTrackCounter&); // Not implemented | |
69 | ||
70 | ClassDef(AliEveTrackCounter, 0); // Class for selection of good/primary tracks with basic processing functionality. | |
71 | }; | |
72 | ||
73 | #endif |