2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
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 **************************************************************************/
10 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
11 * See cxx source for full Copyright notice */
14 /***********************************************************************
15 This editor appears in the TEveUtil window when v0 are visualize.
16 It allows to select the v0 as a function of some useful parameters.
18 Ludovic Gaudichet (gaudichet@to.infn.it)
19 ************************************************************************/
21 #ifndef ALIEVE_V0Editors_H
22 #define ALIEVE_V0Editors_H
24 #include <TGedFrame.h>
29 class TRootEmbeddedCanvas;
31 class TGCompositeFrame;
37 class TEveGDoubleValuator;
42 class V0ListEditor : public TGedFrame
44 V0ListEditor(const V0ListEditor&); // Not implemented
45 V0ListEditor& operator=(const V0ListEditor&); // Not implemented
48 V0List* fMList; // fModel dynamic-casted to V0ListEditor
50 TGCheckButton* fRnrV0sDaugh;
51 TGCheckButton* fRnrV0vtx;
52 TGCheckButton* fRnrV0path;
58 static const Int_t fgkNRange = 13;
59 TEveGDoubleValuator *fRange[fgkNRange];
61 static const Int_t fgkNCanvas = 14;
62 TRootEmbeddedCanvas *fCanvasA[fgkNCanvas];
63 TRootEmbeddedCanvas *fCanvasB[fgkNCanvas];
65 TGCompositeFrame* AddTab(TGTab *tab, Int_t i, Int_t can, char *name);
66 TGCompositeFrame** CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t can);
68 void UpdateAll(Int_t iCanA);
71 void AddValuator(TGCompositeFrame* frame, char *name,
72 Float_t min, Float_t max, Int_t pres, char *func,
77 V0ListEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
78 UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
81 virtual void SetModel(TObject* obj);
82 void DoRnrDaughters();
86 void UpdateSelectedTab();
87 void AdjustHist(Int_t iHist);
92 void MassAntiLamRange();
93 void ESDv0IndexRange();
94 void CosPointingRange();
95 void DaughterDcaRange();
104 ClassDef(V0ListEditor, 1); // Editor for V0List
105 }; // endclass V0ListEditor