AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPainterDataSourceFrame.h
Go to the documentation of this file.
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 
13 // Author Laurent Aphecetche, Subatech
14 
15 #ifndef ROOT_TGFrame
16 # include <TGFrame.h>
17 #endif
18 
19 class AliMUONAttPainter;
21 class AliMUONPainterEnv;
25 class TGCheckButton;
26 class TGComboBox;
27 class TGGroupFrame;
28 class TGNumberEntry;
29 class TGTextEntry;
30 class TObjArray;
31 
32 class AliMUONPainterDataSourceFrame : public TGCompositeFrame
33 {
34 public:
35  AliMUONPainterDataSourceFrame(const TGWindow* p, UInt_t w, UInt_t h);
37 
38  void CalibrateButtonClicked();
39 
40  void CreateOCDBDataSource();
41 
42  void CreateACFDataSource();
43 
44  void CreateRawDataSource();
45 
47 
49 
51 
53 
54  void OpenFileDialog();
55 
56  void OpenFileDialogACF();
57 
58  void OpenRecentSource();
59 
60  void StartRunning();
61 
62  void StopRunning();
63 
65  Double_t pedMin=0, Double_t pedMax=500,
66  Double_t sigmaMin=0, Double_t sigmaMax=5);
67 
69  Int_t dim,
70  Double_t xmin, Double_t xmax,
71  const AliMUONAttPainter& att);
72 
73 private:
78 
79  void AddRecentSource(const char* name);
80 
81  Bool_t CreateRawDataSource(const TString& uri);
82 
83  void CreateOCDBDataSource(const TString& uri);
84 
85  void CreateOCDBDataSource(const TString& cdbPath, Int_t runNumber, const TString& type, const TString& ranges);
86 
87  void CreateACFDataSource(const TString& uri);
88 
89  void CreateACFDataSource(const TString& acfPath, const TString& type);
90 
91  void RegisterDataSource(AliMUONVTrackerDataMaker* reader, const char* dsName);
92 
94 
95 private:
96 
97  TGGroupFrame* fRecentSourceSelector;
98 
99  TGGroupFrame* fRawSelector;
100  TGCompositeFrame* fRawSelector2;
101  TGCompositeFrame* fRawSelector21;
102  TGCompositeFrame* fRawSelector22;
103  TGCompositeFrame* fRawSelector24;
104  TGCompositeFrame* fRawSelector23;
105  TGCheckButton* fCalibrateNoGain;
106  TGCheckButton* fHistogramButton;
107  TGNumberEntry* fHistoMin;
108  TGNumberEntry* fHistoMax;
109  TGCheckButton* fEventRangeButton;
110  TGNumberEntry* fEventMin;
111  TGNumberEntry* fEventMax;
112  TGTextEntry* fRawOCDBPath;
113 
114  TGGroupFrame* fOCDBSelector;
115  TGGroupFrame* fDataReaders;
116  TGTextEntry* fFilePath;
117  TGTextEntry* fOCDBPath;
118  TGNumberEntry* fRunSelector;
119  TGComboBox* fOCDBTypes;
120  TGComboBox* fRecentSources;
121  TGTextButton* fCreateRecentButton;
123 
124  TGGroupFrame* fACFSelector;
125  TGTextEntry* fACFPath;
126  TGComboBox* fACFTypes;
127 
128 
129  ClassDef(AliMUONPainterDataSourceFrame,7) // Data source selection frame
130 };
131 
132 #endif
TGGroupFrame * fRawSelector
to select a new raw data source
TGTextEntry * fRawOCDBPath
OCDB path for raw data calibration.
#define TObjArray
TGComboBox * fACFTypes
types of ASCII calibration files
TGGroupFrame * fRecentSourceSelector
to select recently used sources
Producer of some AliMUONVTrackerData.
TGGroupFrame * fOCDBSelector
to select a new OCDB data source
TGNumberEntry * fHistoMin
xmin of histo to make
TGNumberEntry * fRunSelector
OCDB run number entry widget.
TGNumberEntry * fEventMin
min event number to consider
Resource file handling.
A widget describing a single data source.
void RegisterDataSource(AliMUONVTrackerDataMaker *reader, const char *dsName)
TObjArray * fItems
list of data readers we handle
void DataMakerWasUnregistered(const AliMUONVTrackerDataMaker *reader)
TGGroupFrame * fDataReaders
to display currently active data sources
TGCheckButton * fEventRangeButton
to trig limitation of event range
AliMUONPainterDataSourceFrame & operator=(const AliMUONPainterDataSourceFrame &rhs)
Not implemented.
TGCheckButton * fCalibrateNoGain
to trig calibration of raw data (only 0 suppression)
static AliMUONPainterMatrix * CreateFullTracker(AliMUONVTrackerData *data, Int_t dim, Double_t xmin, Double_t xmax, const AliMUONAttPainter &att)
TGCheckButton * fHistogramButton
to trig histogramming of raw data
TGTextEntry * fFilePath
raw data file path text entry widget
TGNumberEntry * fHistoMax
xmax of histo to make
TGComboBox * fRecentSources
recent sources combo box
TGGroupFrame * fACFSelector
to select ACF (ASCII calibration files)
AliMUONPainterDataSourceFrame(const TGWindow *p, UInt_t w, UInt_t h)
TGTextButton * fCreateRecentButton
button to create a recent data source
TGComboBox * fOCDBTypes
OCDB type combo box entry widget.
Basic attributes shared by all painters.
TGTextEntry * fOCDBPath
OCDB path text entry widget.
TGNumberEntry * fEventMax
max event number to consider
static void CreatePedestalCanvases(AliMUONVTrackerData *data, Double_t pedMin=0, Double_t pedMax=500, Double_t sigmaMin=0, Double_t sigmaMax=5)
void DataMakerWasRegistered(AliMUONVTrackerDataMaker *reader)
TGTextEntry * fACFPath
path to ASCII calibration file
Base class for MUON data that can be presented at different levels in the hierarchy of the MUON syste...
A matrix of AliMUONVPainter.
Frame to select input data source(s) to be displayed.