added ZeroSuppressionComponent to build
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterDataSourceFrame.h
CommitLineData
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
19class TObjArray;
20class TGGroupFrame;
21class AliMUONVTrackerDataMaker;
22class TGTextEntry;
23class TGNumberEntry;
24class TGComboBox;
25
26class AliMUONPainterDataSourceFrame : public TGCompositeFrame
27{
28public:
29 AliMUONPainterDataSourceFrame(const TGWindow* p, UInt_t w, UInt_t h);
30 virtual ~AliMUONPainterDataSourceFrame();
31
32 void CreateOCDBDataSource();
33
34 void CreateRawDataSource();
35
36 void DataReaderWasRegistered(AliMUONVTrackerDataMaker* reader);
37
38 void DataReaderWasUnregistered(AliMUONVTrackerDataMaker* reader);
39
40 void OpenFileDialog();
41
42 void OpenRecentSource();
43
44private:
45 /// Not implemented
46 AliMUONPainterDataSourceFrame(const AliMUONPainterDataSourceFrame& rhs);
47 /// Not implemented
48 AliMUONPainterDataSourceFrame& operator=(const AliMUONPainterDataSourceFrame& rhs);
49
50 void AddRecentSource(const char* name);
51
52 Bool_t CreateRawDataSource(const TString& uri);
53
54 void CreateOCDBDataSource(const TString& uri);
55
56 void CreateOCDBDataSource(const TString& cdbPath, Int_t runNumber, const TString& type);
57
58private:
59
60 TGGroupFrame* fRecentSourceSelector; ///< to select recently used sources
61 TGGroupFrame* fRawSelector; ///< to select a new raw data source
62 TGGroupFrame* fOCDBSelector; ///< to select a new OCDB data source
63 TGGroupFrame* fDataReaders; ///< to display currently active data sources
64 TGTextEntry* fFilePath; ///< raw data file path text entry widget
65 TGTextEntry* fRawOCDBPath; ///< OCDB path for raw data calibration
66 TGTextEntry* fOCDBPath; ///< OCDB path text entry widget
67 TGNumberEntry* fRunSelector; ///< OCDB run number entry widget
68 TGComboBox* fOCDBTypes; ///< OCDB type combo box entry widget
69 TGComboBox* fRecentSources; ///< recent sources combo box
70 TObjArray* fItems; ///< list of data readers we handle
71
72 static const char* fgkNumberOfDataSourcesKey; ///< key used to store the # of data sources in the resource file
73 static const char* fgkDataSourceURIKey; ///< key usde to store the data source URIs in the resource file
74
75 ClassDef(AliMUONPainterDataSourceFrame,1) // Data source selection frame
76};
77
78#endif