]>
Commit | Line | Data |
---|---|---|
49419555 | 1 | #ifndef ALIMUONTRACKERDATACOMPAREDIALOG_H |
2 | #define ALIMUONTRACKERDATACOMPAREDIALOG_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | // $Id$ | |
8 | ||
9 | /// \ingroup graphics | |
10 | /// \class AliMUONTrackerDataCompareDialog | |
11 | /// \brief | |
12 | /// | |
13 | /// Author Laurent Aphecetche, Subatech | |
14 | ||
15 | #ifndef ROOT_TGFrame | |
16 | # include "TGFrame.h" | |
17 | #endif | |
18 | ||
19 | class AliMUONVTrackerData; | |
20 | class TGButtonGroup; | |
21 | class TGComboBox; | |
22 | class TGCompositeFrame; | |
23 | class TGTextEntry; | |
24 | ||
25 | class AliMUONTrackerDataCompareDialog : public TGTransientFrame | |
26 | { | |
27 | public: | |
28 | AliMUONTrackerDataCompareDialog(const TGWindow* p = 0, const TGWindow* main = 0, UInt_t w = 1, UInt_t h = 1); | |
29 | virtual ~AliMUONTrackerDataCompareDialog(); | |
30 | ||
31 | void DoOK(); | |
32 | void DoCancel(); | |
33 | ||
34 | private: | |
35 | ||
36 | AliMUONTrackerDataCompareDialog(const AliMUONTrackerDataCompareDialog& rhs); | |
37 | AliMUONTrackerDataCompareDialog& operator=(const AliMUONTrackerDataCompareDialog& rhs); | |
38 | ||
39 | void CompareData(const char* d1name, const char* d2name, Int_t difftype) const; | |
40 | ||
41 | AliMUONVTrackerData* CompareData(const AliMUONVTrackerData& d1, | |
42 | const AliMUONVTrackerData& d2, | |
43 | const char* outname, | |
44 | Double_t (*difffunction)(Double_t,Double_t)) const; | |
45 | ||
46 | private: | |
47 | ||
48 | TGCompositeFrame* fF1; ///< frame for data source 1 selection | |
49 | TGComboBox* fData1; ///< to select first data | |
50 | TGCompositeFrame* fF2; ///< frame for data source 2 selection | |
51 | TGComboBox* fData2; ///< to select second data | |
52 | TGCompositeFrame* fF3; ///< frame for difference type selection | |
53 | TGComboBox* fDiffType; ///< to select the kind of difference to make | |
54 | TGCompositeFrame* fF4; ///< frame for output basename selection | |
55 | TGTextEntry* fBasename; ///< basename of resulting (diff-ed) data | |
56 | TGCompositeFrame* fButtonFrame; ///< to hold OK and Cancel buttons | |
57 | TGTextButton* fOK; ///< ok button | |
58 | TGTextButton* fCancel; ///< cancel button | |
59 | ||
60 | static const Int_t fgkDifference; /// D1-D2 | |
61 | static const Int_t fgkAbsoluteDifference; /// |D1-D2| | |
62 | static const Int_t fgkRelativeDifference; /// (D1-D2)/D1 | |
63 | static const Int_t fgkAbsoluteRelativeDifference; /// | (D1-D2) | / | D1 | | |
64 | static const Int_t fgkAll; /// All four differences at once | |
65 | ||
66 | ClassDef(AliMUONTrackerDataCompareDialog,1) // Dialog to select two data sources to compare | |
67 | }; | |
68 | ||
69 | #endif |