Changed default OCDB from 2009 to 2010
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerDataCompareDialog.h
CommitLineData
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
19class AliMUONVTrackerData;
20class TGButtonGroup;
21class TGComboBox;
22class TGCompositeFrame;
23class TGTextEntry;
24
25class AliMUONTrackerDataCompareDialog : public TGTransientFrame
26{
27public:
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
34private:
35
99f1b909 36 /// not defined
49419555 37 AliMUONTrackerDataCompareDialog(const AliMUONTrackerDataCompareDialog& rhs);
99f1b909 38 /// not defined
49419555 39 AliMUONTrackerDataCompareDialog& operator=(const AliMUONTrackerDataCompareDialog& rhs);
40
41 void CompareData(const char* d1name, const char* d2name, Int_t difftype) const;
42
43 AliMUONVTrackerData* CompareData(const AliMUONVTrackerData& d1,
44 const AliMUONVTrackerData& d2,
45 const char* outname,
46 Double_t (*difffunction)(Double_t,Double_t)) const;
47
48private:
49
50 TGCompositeFrame* fF1; ///< frame for data source 1 selection
51 TGComboBox* fData1; ///< to select first data
52 TGCompositeFrame* fF2; ///< frame for data source 2 selection
53 TGComboBox* fData2; ///< to select second data
54 TGCompositeFrame* fF3; ///< frame for difference type selection
55 TGComboBox* fDiffType; ///< to select the kind of difference to make
56 TGCompositeFrame* fF4; ///< frame for output basename selection
57 TGTextEntry* fBasename; ///< basename of resulting (diff-ed) data
58 TGCompositeFrame* fButtonFrame; ///< to hold OK and Cancel buttons
59 TGTextButton* fOK; ///< ok button
60 TGTextButton* fCancel; ///< cancel button
61
99f1b909 62 static const Int_t fgkDifference; ///< D1-D2
63 static const Int_t fgkAbsoluteDifference; ///< |D1-D2|
64 static const Int_t fgkRelativeDifference; ///< (D1-D2)/D1
65 static const Int_t fgkAbsoluteRelativeDifference; ///< | (D1-D2) | / | D1 |
66 static const Int_t fgkAll; ///< All four differences at once
49419555 67
68 ClassDef(AliMUONTrackerDataCompareDialog,1) // Dialog to select two data sources to compare
69};
70
71#endif