2 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * See cxx source for full Copyright notice */
6 /***********************************************************************
7 This editor appears in the Reve window when v0 are visualize.
8 It allows to select the v0 as a function of some useful parameters.
10 Ludovic Gaudichet (gaudichet@to.infn.it)
11 ************************************************************************/
14 #ifndef REVE_V0Editors_H
15 #define REVE_V0Editors_H
17 #include <TGedFrame.h>
22 class TRootEmbeddedCanvas;
24 class TGCompositeFrame;
30 class RGDoubleValuator;
34 class V0ListEditor : public TGedFrame
36 V0ListEditor(const V0ListEditor&); // Not implemented
37 V0ListEditor& operator=(const V0ListEditor&); // Not implemented
40 V0List* fMList; // fModel dynamic-casted to V0ListEditor
42 TGCheckButton* fRnrV0sDaugh;
43 TGCheckButton* fRnrV0vtx;
44 TGCheckButton* fRnrV0path;
50 static const Int_t fgkNRange = 13;
51 RGDoubleValuator *fRange[fgkNRange];
53 static const Int_t fgkNCanvas = 14;
54 TRootEmbeddedCanvas *fCanvasA[fgkNCanvas];
55 TRootEmbeddedCanvas *fCanvasB[fgkNCanvas];
57 TGCompositeFrame* AddTab(TGTab *tab, Int_t i, Int_t can, char *name);
58 TGCompositeFrame** CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t can);
60 void UpdateAll(Int_t iCanA);
63 void AddValuator(TGCompositeFrame* frame, char *name,
64 Float_t min, Float_t max, Int_t pres, char *func,
69 V0ListEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
70 UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
73 virtual void SetModel(TObject* obj);
74 void DoRnrDaughters();
78 void UpdateSelectedTab();
79 void AdjustHist(Int_t iHist);
84 void MassAntiLamRange();
85 void ESDv0IndexRange();
86 void CosPointingRange();
87 void DaughterDcaRange();
97 ClassDef(V0ListEditor, 1); // Editor for V0List
98 }; // endclass V0ListEditor
100 } // end namespace Reve