Removing the assign operator (Yves)
[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
10eb3d17 19class AliMUONPainterDataSourceItem;
0145e89a 20class AliMUONVTrackerDataMaker;
8741815f 21class TGCheckButton;
0145e89a 22class TGComboBox;
8741815f 23class TGGroupFrame;
24class TGNumberEntry;
25class TGTextEntry;
26class TObjArray;
0145e89a 27
28class AliMUONPainterDataSourceFrame : public TGCompositeFrame
29{
30public:
31 AliMUONPainterDataSourceFrame(const TGWindow* p, UInt_t w, UInt_t h);
32 virtual ~AliMUONPainterDataSourceFrame();
33
8741815f 34 void CalibrateButtonClicked();
35
0145e89a 36 void CreateOCDBDataSource();
37
1286237e 38 void CreateACFDataSource();
39
0145e89a 40 void CreateRawDataSource();
41
49419555 42 void DataMakerWasRegistered(AliMUONVTrackerDataMaker* reader);
0145e89a 43
49419555 44 void DataMakerWasUnregistered(AliMUONVTrackerDataMaker* reader);
0145e89a 45
10eb3d17 46 void HistogramButtonClicked();
47
0145e89a 48 void OpenFileDialog();
49
1286237e 50 void OpenFileDialogACF();
51
0145e89a 52 void OpenRecentSource();
10eb3d17 53
54 void StartRunning(AliMUONPainterDataSourceItem* item);
55
56 void StopRunning(AliMUONPainterDataSourceItem* item);
57
0145e89a 58private:
59 /// Not implemented
60 AliMUONPainterDataSourceFrame(const AliMUONPainterDataSourceFrame& rhs);
61 /// Not implemented
62 AliMUONPainterDataSourceFrame& operator=(const AliMUONPainterDataSourceFrame& rhs);
63
64 void AddRecentSource(const char* name);
65
66 Bool_t CreateRawDataSource(const TString& uri);
67
68 void CreateOCDBDataSource(const TString& uri);
69
70 void CreateOCDBDataSource(const TString& cdbPath, Int_t runNumber, const TString& type);
71
1286237e 72 void CreateACFDataSource(const TString& uri);
73
74 void CreateACFDataSource(const TString& acfPath, const TString& type);
75
0145e89a 76private:
77
78 TGGroupFrame* fRecentSourceSelector; ///< to select recently used sources
8741815f 79
0145e89a 80 TGGroupFrame* fRawSelector; ///< to select a new raw data source
8741815f 81 TGCompositeFrame* fRawSelector2; ///< idem
82 TGCompositeFrame* fRawSelector21; ///< idem
83 TGCompositeFrame* fRawSelector22; ///< idem
84 TGCompositeFrame* fRawSelector23; ///< idem
10eb3d17 85 TGCheckButton* fCalibrateNoGain; ///< to trig calibration of raw data (only 0 suppression)
86 TGCheckButton* fCalibrateGainConstantCapa; ///< to trig calibration of raw data (0-supp and gain w/ constant capacitance)
87 TGCheckButton* fCalibrateGain; ///< to trig calibration of raw data (full blown calibration)
8741815f 88 TGCheckButton* fHistogramButton; ///< to trig histogramming of raw data
10eb3d17 89 TGNumberEntry* fHistoMin; ///< xmin of histo to make
90 TGNumberEntry* fHistoMax; ///< xmax of histo to make
8741815f 91 TGTextEntry* fRawOCDBPath; ///< OCDB path for raw data calibration
92
0145e89a 93 TGGroupFrame* fOCDBSelector; ///< to select a new OCDB data source
94 TGGroupFrame* fDataReaders; ///< to display currently active data sources
95 TGTextEntry* fFilePath; ///< raw data file path text entry widget
0145e89a 96 TGTextEntry* fOCDBPath; ///< OCDB path text entry widget
97 TGNumberEntry* fRunSelector; ///< OCDB run number entry widget
98 TGComboBox* fOCDBTypes; ///< OCDB type combo box entry widget
99 TGComboBox* fRecentSources; ///< recent sources combo box
100 TObjArray* fItems; ///< list of data readers we handle
101
1286237e 102 TGGroupFrame* fACFSelector; ///< to select ACF (ASCII calibration files)
103 TGTextEntry* fACFPath; ///< path to ASCII calibration file
104 TGComboBox* fACFTypes; ///< types of ASCII calibration files
105
0145e89a 106 static const char* fgkNumberOfDataSourcesKey; ///< key used to store the # of data sources in the resource file
107 static const char* fgkDataSourceURIKey; ///< key usde to store the data source URIs in the resource file
108
1286237e 109 ClassDef(AliMUONPainterDataSourceFrame,3) // Data source selection frame
0145e89a 110};
111
112#endif