TGo4FitterOutput.h

Go to the documentation of this file.
00001 // $Id: TGo4FitterOutput.h 478 2009-10-29 12:26:09Z linev $
00002 //-----------------------------------------------------------------------
00003 //       The GSI Online Offline Object Oriented (Go4) Project
00004 //         Experiment Data Processing at EE department, GSI
00005 //-----------------------------------------------------------------------
00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
00007 //                     Planckstr. 1, 64291 Darmstadt, Germany
00008 // Contact:            http://go4.gsi.de
00009 //-----------------------------------------------------------------------
00010 // This software can be used under the license agreements as stated
00011 // in Go4License.txt file which is part of the distribution.
00012 //-----------------------------------------------------------------------
00013 
00014 #ifndef TGO4FITTEROUTPUT_H
00015 #define TGO4FITTEROUTPUT_H
00016 
00017 #include "TGo4FitterAction.h"
00018 
00019 class TVirtualPad;
00020 
00027 class TGo4FitterOutput : public TGo4FitterAction {
00028    public:
00029 
00033       TGo4FitterOutput();
00034 
00038       TGo4FitterOutput(const char* Command, const char* Options = 0);
00039 
00043       virtual ~TGo4FitterOutput();
00044 
00048       void Set(const char* Command, const char* Options = 0) { fxCommand = Command; fxOptions = Options; }
00049 
00053       void SetPad(TVirtualPad* iPad) { fxPad = iPad; }
00054 
00058       TVirtualPad* GetPad() { return fxPad; }
00059 
00063       Bool_t NeedPad() { return (fxCommand=="Draw") && ((fxOptions.Length()==0) || (fxOptions[0]!='#')); }
00064 
00068       const char* GetCommand() { return fxCommand.Data(); }
00069 
00073       const char* GetOptions() { return fxOptions.Data(); }
00074 
00078       void SetCommand(const char* Command) { fxCommand = Command; }
00079 
00083       void SetOptions(const char* Options) { fxOptions = Options; }
00084 
00088       virtual void DoAction(TGo4FitterAbstract* Fitter);
00089 
00093       virtual void Print(Option_t* option) const;
00094     private:
00095 
00099       TString fxCommand;
00100 
00104       TString fxOptions;
00105 
00109       TVirtualPad* fxPad;                   
00110 
00111    ClassDef(TGo4FitterOutput,1)
00112 };
00113 
00114 #endif // TGO4FITTEROUTPUT_H

Generated on Thu Oct 28 15:54:13 2010 for Go4-Fitpackagev4.04-2 by  doxygen 1.5.1