GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4FitterOutput.h
Go to the documentation of this file.
1 // $Id: TGo4FitterOutput.h 478 2009-10-29 12:26:09Z linev $
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 für 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 = 0);
39 
43  virtual ~TGo4FitterOutput();
44 
48  void Set(const char* Command, const char* Options = 0) { fxCommand = Command; fxOptions = Options; }
49 
53  void SetPad(TVirtualPad* iPad) { fxPad = iPad; }
54 
58  TVirtualPad* GetPad() { return fxPad; }
59 
63  Bool_t NeedPad() { return (fxCommand=="Draw") && ((fxOptions.Length()==0) || (fxOptions[0]!='#')); }
64 
68  const char* GetCommand() { return fxCommand.Data(); }
69 
73  const char* GetOptions() { return fxOptions.Data(); }
74 
78  void SetCommand(const char* Command) { fxCommand = Command; }
79 
83  void SetOptions(const char* Options) { fxOptions = Options; }
84 
88  virtual void DoAction(TGo4FitterAbstract* Fitter);
89 
93  virtual void Print(Option_t* option) const;
94  private:
95 
99  TString fxCommand;
100 
104  TString fxOptions;
105 
109  TVirtualPad* fxPad;
110 
111  ClassDef(TGo4FitterOutput,1)
112 };
113 
114 #endif // TGO4FITTEROUTPUT_H
virtual void DoAction(TGo4FitterAbstract *Fitter)
void Set(const char *Command, const char *Options=0)
void SetOptions(const char *Options)
virtual void Print(Option_t *option) const
const char * GetOptions()
virtual ~TGo4FitterOutput()
TVirtualPad * fxPad
const char * GetCommand()
void SetPad(TVirtualPad *iPad)
void SetCommand(const char *Command)
TVirtualPad * GetPad()