]>
Commit | Line | Data |
---|---|---|
0145e89a | 1 | #ifndef ALIMUONPAINTERDATASOURCEFRAME_H |
2 | #define ALIMUONPAINTERDATASOURCEFRAME_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 AliMUONPainterDataSourceFrame | |
11 | /// \brief Frame to select input data source(s) to be displayed | |
12 | /// | |
13 | // Author Laurent Aphecetche, Subatech | |
14 | ||
15 | #ifndef ROOT_TGFrame | |
16 | # include <TGFrame.h> | |
17 | #endif | |
18 | ||
0145e89a | 19 | class AliMUONVTrackerDataMaker; |
8741815f | 20 | class TGCheckButton; |
0145e89a | 21 | class TGComboBox; |
8741815f | 22 | class TGGroupFrame; |
23 | class TGNumberEntry; | |
24 | class TGTextEntry; | |
25 | class TObjArray; | |
0145e89a | 26 | |
27 | class AliMUONPainterDataSourceFrame : public TGCompositeFrame | |
28 | { | |
29 | public: | |
30 | AliMUONPainterDataSourceFrame(const TGWindow* p, UInt_t w, UInt_t h); | |
31 | virtual ~AliMUONPainterDataSourceFrame(); | |
32 | ||
8741815f | 33 | void CalibrateButtonClicked(); |
34 | ||
0145e89a | 35 | void CreateOCDBDataSource(); |
36 | ||
37 | void CreateRawDataSource(); | |
38 | ||
39 | void DataReaderWasRegistered(AliMUONVTrackerDataMaker* reader); | |
40 | ||
41 | void DataReaderWasUnregistered(AliMUONVTrackerDataMaker* reader); | |
42 | ||
43 | void OpenFileDialog(); | |
44 | ||
45 | void OpenRecentSource(); | |
46 | ||
47 | private: | |
48 | /// Not implemented | |
49 | AliMUONPainterDataSourceFrame(const AliMUONPainterDataSourceFrame& rhs); | |
50 | /// Not implemented | |
51 | AliMUONPainterDataSourceFrame& operator=(const AliMUONPainterDataSourceFrame& rhs); | |
52 | ||
53 | void AddRecentSource(const char* name); | |
54 | ||
55 | Bool_t CreateRawDataSource(const TString& uri); | |
56 | ||
57 | void CreateOCDBDataSource(const TString& uri); | |
58 | ||
59 | void CreateOCDBDataSource(const TString& cdbPath, Int_t runNumber, const TString& type); | |
60 | ||
61 | private: | |
62 | ||
63 | TGGroupFrame* fRecentSourceSelector; ///< to select recently used sources | |
8741815f | 64 | |
0145e89a | 65 | TGGroupFrame* fRawSelector; ///< to select a new raw data source |
8741815f | 66 | TGCompositeFrame* fRawSelector2; ///< idem |
67 | TGCompositeFrame* fRawSelector21; ///< idem | |
68 | TGCompositeFrame* fRawSelector22; ///< idem | |
69 | TGCompositeFrame* fRawSelector23; ///< idem | |
70 | TGCheckButton* fCalibrateButton; ///< to trig calibration of raw data | |
71 | TGCheckButton* fHistogramButton; ///< to trig histogramming of raw data | |
72 | TGTextEntry* fRawOCDBPath; ///< OCDB path for raw data calibration | |
73 | ||
0145e89a | 74 | TGGroupFrame* fOCDBSelector; ///< to select a new OCDB data source |
75 | TGGroupFrame* fDataReaders; ///< to display currently active data sources | |
76 | TGTextEntry* fFilePath; ///< raw data file path text entry widget | |
0145e89a | 77 | TGTextEntry* fOCDBPath; ///< OCDB path text entry widget |
78 | TGNumberEntry* fRunSelector; ///< OCDB run number entry widget | |
79 | TGComboBox* fOCDBTypes; ///< OCDB type combo box entry widget | |
80 | TGComboBox* fRecentSources; ///< recent sources combo box | |
81 | TObjArray* fItems; ///< list of data readers we handle | |
82 | ||
83 | static const char* fgkNumberOfDataSourcesKey; ///< key used to store the # of data sources in the resource file | |
84 | static const char* fgkDataSourceURIKey; ///< key usde to store the data source URIs in the resource file | |
85 | ||
8741815f | 86 | ClassDef(AliMUONPainterDataSourceFrame,2) // Data source selection frame |
0145e89a | 87 | }; |
88 | ||
89 | #endif |