GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FitterOutput Class Reference

Output action. More...

#include <TGo4FitterOutput.h>

+ Inheritance diagram for TGo4FitterOutput:

Public Member Functions

 TGo4FitterOutput ()
 Default constructor.
 
 TGo4FitterOutput (const char *Command, const char *Options=nullptr)
 Creates TGo4FitterOutput action with provided command name and options (if required).
 
virtual ~TGo4FitterOutput ()
 Destroys TGo4FitterOutput object.
 
void DoAction (TGo4FitterAbstract *Fitter) override
 Execute proper output of fitter, Print() or Draw(), with specified options.
 
const char * GetCommand () const
 Returns command name.
 
const char * GetOptions () const
 Returns command options.
 
TVirtualPad * GetPad () const
 Returns assigned pad.
 
Bool_t NeedPad () const
 Return kTRUE, if pad required for output.
 
void Print (Option_t *option="") const override
 Print information on standard output.
 
void Set (const char *Command, const char *Options=nullptr)
 Set command name and options (if required).
 
void SetCommand (const char *Command)
 Sets command name.
 
void SetOptions (const char *Options)
 Sets command options.
 
void SetPad (TVirtualPad *iPad)
 Sets pad, which can be used for command output.
 
- Public Member Functions inherited from TGo4FitterAction
 TGo4FitterAction ()
 Default constructor.
 
 TGo4FitterAction (const char *Name, const char *Title, TNamed *Owner=nullptr)
 Creates TGo4FitterAction object with given name and title.
 
virtual ~TGo4FitterAction ()
 
virtual Bool_t CanChangeFitter () const
 
virtual Bool_t NeedBuffers () const
 
- Public Member Functions inherited from TGo4FitNamed
 TGo4FitNamed ()
 Default constructor.
 
 TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=nullptr)
 Creates TGo4FitNamed object and set name and title.
 
virtual ~TGo4FitNamed ()
 Destroy TGo4FitNamed object.
 
const char * GetFullName ()
 Returns full name of object.
 
TNamed * GetOwner ()
 Return owner of object.
 
const char * GetOwnerFullName ()
 Return full name of owner.
 
void Print (Option_t *option="") const override
 
void SetOwner (TNamed *iOwner)
 Sets owner of object.
 

Private Attributes

TString fxCommand
 Command name.
 
TString fxOptions
 Command options.
 
TVirtualPad * fxPad {nullptr}
 TPad, which can be used for output.
 

Detailed Description

Output action.

To add some output to actions, TGo4FitterOutput action class should be used. In constructor output command and options (if required) should be specified. Also AddOuputAction() routine of fitter can be used. Now following commands are available: "Print". Possible options are: "*"- print all internal objects, "**" - print also objects in slots, "Pars" - print parameters values, "Ampls" - only amplitude parameters, "Results" - result values. "Draw". Draw of the fitter data and model objects. As option name of data object and its components should be sets up. For instance, "data1,Gauss1,Gauss2". If first character will be "#", Draw command creates new canvas for output.

Definition at line 29 of file TGo4FitterOutput.h.

Constructor & Destructor Documentation

◆ TGo4FitterOutput() [1/2]

TGo4FitterOutput::TGo4FitterOutput ( )

Default constructor.

Definition at line 22 of file TGo4FitterOutput.cxx.

References TGo4FitterAction::TGo4FitterAction(), fxCommand, fxOptions, and fxPad.

◆ TGo4FitterOutput() [2/2]

TGo4FitterOutput::TGo4FitterOutput ( const char * Command,
const char * Options = nullptr )

Creates TGo4FitterOutput action with provided command name and options (if required).

Definition at line 26 of file TGo4FitterOutput.cxx.

References TGo4FitterAction::TGo4FitterAction(), fxCommand, fxOptions, and fxPad.

◆ ~TGo4FitterOutput()

TGo4FitterOutput::~TGo4FitterOutput ( )
virtual

Destroys TGo4FitterOutput object.

Definition at line 31 of file TGo4FitterOutput.cxx.

Member Function Documentation

◆ DoAction()

void TGo4FitterOutput::DoAction ( TGo4FitterAbstract * Fitter)
overridevirtual

Execute proper output of fitter, Print() or Draw(), with specified options.

Implements TGo4FitterAction.

Definition at line 34 of file TGo4FitterOutput.cxx.

References fxCommand, fxOptions, fxPad, and TGo4FitterAbstract::Print().

◆ GetCommand()

const char * TGo4FitterOutput::GetCommand ( ) const
inline

Returns command name.

Definition at line 70 of file TGo4FitterOutput.h.

References fxCommand.

◆ GetOptions()

const char * TGo4FitterOutput::GetOptions ( ) const
inline

Returns command options.

Definition at line 75 of file TGo4FitterOutput.h.

References fxOptions.

◆ GetPad()

TVirtualPad * TGo4FitterOutput::GetPad ( ) const
inline

Returns assigned pad.

Definition at line 60 of file TGo4FitterOutput.h.

References fxPad.

◆ NeedPad()

Bool_t TGo4FitterOutput::NeedPad ( ) const
inline

Return kTRUE, if pad required for output.

Definition at line 65 of file TGo4FitterOutput.h.

References fxCommand, and fxOptions.

Referenced by TGo4FitterAbstract::NeedPadsNumber(), and TGo4FitterAbstract::SetPad().

◆ Print()

void TGo4FitterOutput::Print ( Option_t * option = "") const
override

Print information on standard output.

Definition at line 48 of file TGo4FitterOutput.cxx.

References fxCommand, fxOptions, and TGo4FitNamed::Print().

◆ Set()

void TGo4FitterOutput::Set ( const char * Command,
const char * Options = nullptr )
inline

Set command name and options (if required).

Definition at line 50 of file TGo4FitterOutput.h.

References fxCommand, and fxOptions.

◆ SetCommand()

void TGo4FitterOutput::SetCommand ( const char * Command)
inline

Sets command name.

Definition at line 80 of file TGo4FitterOutput.h.

References fxCommand.

Referenced by QFitOutputActionWidget::CommandCombo_activated().

◆ SetOptions()

void TGo4FitterOutput::SetOptions ( const char * Options)
inline

Sets command options.

Definition at line 85 of file TGo4FitterOutput.h.

References fxOptions.

Referenced by QFitOutputActionWidget::OptionsEdit_textChanged().

◆ SetPad()

void TGo4FitterOutput::SetPad ( TVirtualPad * iPad)
inline

Sets pad, which can be used for command output.

Definition at line 55 of file TGo4FitterOutput.h.

References fxPad.

Referenced by TGo4FitterAbstract::SetPad().

Field Documentation

◆ fxCommand

TString TGo4FitterOutput::fxCommand
private

Command name.

Definition at line 99 of file TGo4FitterOutput.h.

Referenced by TGo4FitterOutput(), TGo4FitterOutput(), DoAction(), GetCommand(), NeedPad(), Print(), Set(), and SetCommand().

◆ fxOptions

TString TGo4FitterOutput::fxOptions
private

Command options.

Definition at line 102 of file TGo4FitterOutput.h.

Referenced by TGo4FitterOutput(), TGo4FitterOutput(), DoAction(), GetOptions(), NeedPad(), Print(), Set(), and SetOptions().

◆ fxPad

TVirtualPad* TGo4FitterOutput::fxPad {nullptr}
private

TPad, which can be used for output.

Definition at line 105 of file TGo4FitterOutput.h.

Referenced by TGo4FitterOutput(), TGo4FitterOutput(), DoAction(), GetPad(), and SetPad().


The documentation for this class was generated from the following files: