]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | #ifndef REVE_VSDSelector_H |
2 | #define REVE_VSDSelector_H | |
3 | ||
4 | #include "RGBrowser.h" | |
5 | #include <Reve/VSD.h> | |
6 | ||
7 | #include <TGTextEntry.h> | |
32e219c2 | 8 | #include <TGButton.h> |
5a5a1232 | 9 | |
10 | namespace Reve { | |
11 | ||
a8600b56 | 12 | class RenderElement; |
265ecb21 | 13 | class TrackRnrStyle; |
14 | class TrackList; | |
15 | ||
a8600b56 | 16 | class VSDSelector : public VSD |
265ecb21 | 17 | { |
18 | VSDSelector(const VSDSelector&); // Not implemented | |
19 | VSDSelector& operator=(const VSDSelector&); // Not implemented | |
20 | ||
265ecb21 | 21 | protected: |
22 | TGTextEntry* mParticleSelection; | |
a8600b56 | 23 | TGCheckButton* fRecursiveSelect; |
24 | ||
265ecb21 | 25 | TGTextEntry* mHitSelection; |
26 | TGTextEntry* mClusterSelection; | |
27 | TGTextEntry* mRecSelection; | |
28 | ||
29 | public: | |
a8600b56 | 30 | |
31 | VSDSelector(TGCompositeFrame *tFrame); | |
265ecb21 | 32 | |
33 | virtual void LoadVSD(const Text_t* vsd_file_name, | |
34 | const Text_t* dir_name="Event0"); | |
35 | ||
36 | void SelectParticles (const Text_t* selection=0); | |
a8600b56 | 37 | void ImportDaughtersRec(RenderElement* parent, TrackList* cont, |
38 | Int_t first, Int_t last); | |
39 | ||
265ecb21 | 40 | void SelectHits(); |
41 | void SelectClusters(); | |
42 | void SelectRecTracks(); | |
43 | ||
44 | void SetRecursiveSelection(Bool_t rec){fRecursiveSelect->SetOn(rec,1);} | |
45 | // printf("SetRecursiveSelection is %d on %d \n", rec?1:0,fRecursiveSelect->IsOn()?1:0);} | |
46 | Bool_t GetRecursiveSelection(){return fRecursiveSelect->IsOn();} | |
47 | ClassDef(VSDSelector, 1); | |
48 | }; | |
5a5a1232 | 49 | |
50 | } | |
51 | ||
52 | #endif |