GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
19class TVirtualPad;
20
30 public:
31
36
40 TGo4FitterOutput(const char *Command, const char *Options = nullptr);
41
45 virtual ~TGo4FitterOutput();
46
50 void Set(const char *Command, const char *Options = nullptr) { fxCommand = Command; fxOptions = Options; }
51
55 void SetPad(TVirtualPad *iPad) { fxPad = iPad; }
56
60 TVirtualPad *GetPad() const { return fxPad; }
61
65 Bool_t NeedPad() const { return (fxCommand == "Draw") && (fxOptions.IsNull() || (fxOptions[0] != '#')); }
66
70 const char *GetCommand() const { return fxCommand.Data(); }
71
75 const char *GetOptions() const { return fxOptions.Data(); }
76
80 void SetCommand(const char *Command) { fxCommand = Command; }
81
85 void SetOptions(const char *Options) { fxOptions = Options; }
86
90 void DoAction(TGo4FitterAbstract *Fitter) override;
91
95 void Print(Option_t *option = "") const override;
96 private:
97
99 TString fxCommand;
100
102 TString fxOptions;
103
105 TVirtualPad *fxPad{nullptr};
106
107 ClassDefOverride(TGo4FitterOutput,1)
108};
109
110#endif // TGO4FITTEROUTPUT_H
Abstract fitter class.
TGo4FitterAction()
Default constructor.
Output action.
void DoAction(TGo4FitterAbstract *Fitter) override
Execute proper output of fitter, Print() or Draw(), with specified options.
TGo4FitterOutput()
Default constructor.
Bool_t NeedPad() const
Return kTRUE, if pad required for output.
TString fxCommand
Command name.
void Set(const char *Command, const char *Options=nullptr)
Set command name and options (if required).
TVirtualPad * GetPad() const
Returns assigned pad.
virtual ~TGo4FitterOutput()
Destroys TGo4FitterOutput object.
const char * GetCommand() const
Returns command name.
void SetOptions(const char *Options)
Sets command options.
const char * GetOptions() const
Returns command options.
void SetPad(TVirtualPad *iPad)
Sets pad, which can be used for command output.
TVirtualPad * fxPad
TPad, which can be used for output.
void SetCommand(const char *Command)
Sets command name.
void Print(Option_t *option="") const override
Print information on standard output.
TString fxOptions
Command options.