GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4FitterOutput.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4FITTEROUTPUT_H
15 #define TGO4FITTEROUTPUT_H
16 
17 #include "TGo4FitterAction.h"
18 
19 class TVirtualPad;
20 
28  public:
29 
34 
38  TGo4FitterOutput(const char *Command, const char *Options = nullptr);
39 
43  virtual ~TGo4FitterOutput();
44 
48  void Set(const char *Command, const char *Options = nullptr) { fxCommand = Command; fxOptions = Options; }
49 
53  void SetPad(TVirtualPad *iPad) { fxPad = iPad; }
54 
58  TVirtualPad *GetPad() const { return fxPad; }
59 
63  Bool_t NeedPad() const { return (fxCommand == "Draw") && (fxOptions.IsNull() || (fxOptions[0] != '#')); }
64 
68  const char *GetCommand() const { return fxCommand.Data(); }
69 
73  const char *GetOptions() const { return fxOptions.Data(); }
74 
78  void SetCommand(const char *Command) { fxCommand = Command; }
79 
83  void SetOptions(const char *Options) { fxOptions = Options; }
84 
88  void DoAction(TGo4FitterAbstract *Fitter) override;
89 
93  void Print(Option_t *option = "") const override;
94  private:
95 
97  TString fxCommand;
98 
100  TString fxOptions;
101 
103  TVirtualPad *fxPad{nullptr};
104 
105  ClassDefOverride(TGo4FitterOutput,1)
106 };
107 
108 #endif // TGO4FITTEROUTPUT_H
TVirtualPad * GetPad() const
void SetOptions(const char *Options)
Bool_t NeedPad() const
const char * GetCommand() const
const char * GetOptions() const
virtual ~TGo4FitterOutput()
TVirtualPad * fxPad
void SetPad(TVirtualPad *iPad)
void SetCommand(const char *Command)
void Set(const char *Command, const char *Options=nullptr)
void DoAction(TGo4FitterAbstract *Fitter) override
void Print(Option_t *option="") const override