19 setObjectName(
"Go4MacroDialog");
21 QObject::connect(MacroListBox, SIGNAL(currentTextChanged(
const QString &)),
this, SLOT(
setCommand(
const QString &)));
27 if(selection.contains(
"Add"))
29 fxCommand=
"addhistos(\"\",\"\",1,kTRUE);";
30 SyntaxLabel->setText(
"Bool_t addhistos(const char* histo1, const char* histo2, Double_t factor, Bool_t draw)");
31 setToolTip(
"Add histograms: result=histo1 + factor * histo2. \n If draw==true, display in new viewpanel, otherwise just update existing displays");
33 else if (selection.contains(
"Divide"))
35 fxCommand=
"divhistos(\"\",\"\",kTRUE, kTRUE);";
36 SyntaxLabel->setText(
"Bool_t divhistos(const char* histo1, const char* histo2, Bool_t draw, Bool_t floatresult)");
37 setToolTip(
"Divide histograms: result=histo1 by histo2.\n If draw==true, display in new viewpanel, otherwise just update existing displays. \n If floatresult==true, result histogram will be TH1F, otherwise same type as original histograms");
39 else if (selection.contains(
"Rebin"))
42 SyntaxLabel->setText(
"Bool_t rebin(const char* histo, int ngroupX, int ngroupY, Bool_t draw)");
43 setToolTip(
"Rebin histogram histo by merging ngroup neighboured channels together. \n If draw=true, display in new viewpanel, otherwise just update existing displays ");
45 else if (selection.contains(
"Projection X"))
47 fxCommand=
"projectionX(\"\",\"\",-1,-1,kTRUE);";
48 SyntaxLabel->setText(
"Bool_t projectionX(const char* histo, const char* polycon, Int_t firstybin, Int_t lastybin, Bool_t draw)");
49 setToolTip(
" Do projection to X axis for 2d histogram histo.\n Optional polygon condition.\n Parameters firstybin, lastybin for y range. \n If draw==true, display in new viewpanel, otherwise just update existing displays ");
51 else if (selection.contains(
"Projection Y"))
53 fxCommand=
"projectionY(\"\",\"\",-1,-1,kTRUE);";
54 SyntaxLabel->setText(
"Bool_t projectionY(const char* histo, const char* polycon, Int_t firstxbin, Int_t lastxbin, Bool_t draw)");
55 setToolTip(
" Do projection to Y axis for 2d histogram histo. \n Optional polygon condition.\n Parameters firstxbin, lastxbin for x range. \n If draw==true, display in new viewpanel, otherwise just update existing displays ");
57 else if (selection.contains(
"Correlate"))
60 SyntaxLabel->setText(
"Bool_t corrhistos(const char* histo1, const char* histo2, Bool_t draw)");
61 setToolTip(
" Correlate bin contents of two histograms in a graph.\n If draw==true, display in new viewpanel, otherwise just update existing displays ");
63 else if (selection.contains(
"Histogram of"))
66 SyntaxLabel->setText(
"Bool_t hishisto(const char* histo, Int_t bins, Bool_t draw)");
67 setToolTip(
" Create histogram and fill with contents of histogram histo. \n If draw==true, display in new viewpanel, otherwise just update existing displays ");
69 else if (selection.contains(
"Profile X"))
72 SyntaxLabel->setText(
"Bool_t profileX(const char* histo, Int_t firstybin, Int_t lastybin, Bool_t draw)");
73 setToolTip(
" Do profile to X axis for 2d histogram histo. \n Parameters firstybin, lastybin for y range. \n If draw==true, display in new viewpanel, otherwise just update existing displays ");
75 else if (selection.contains(
"Profile Y"))
78 SyntaxLabel->setText(
"Bool_t profileY(const char* histo, Int_t firstxbin, Int_t lastxbin, Bool_t draw)");
79 setToolTip(
" Do profile to Y axis for 2d histogram histo. \n Parameters firstxbin, lastxbin for x range. \n If draw==true, display in new viewpanel, otherwise just update existing displays ");
81 else if (selection.contains(
"Scale X"))
84 SyntaxLabel->setText(
"Bool_t scalex(const char* histo, Double_t a1, Double_t a0, Bool_t draw)");
85 setToolTip(
" Scale x axis of histogram histo by linear function. \n Parameters: x'= a1*x + a0. \n If draw==true, display in new viewpanel, otherwise just update existing displays ");
87 else if (selection.contains(
"Fourier"))
90 SyntaxLabel->setText(
"Bool_t fft(const char* histo, Option_t opt, Bool_t draw)");
91 setToolTip(
" Do fast fourier transform of 1d histogram. \n Parameters: option string of TVirtualFFT::FFT() \n If draw==true, display in new viewpanel, otherwise just update existing displays ");
TGo4MacroDialog(QWidget *parent=0)
const QString & getCommand()
virtual void setCommand(const QString &selection)