GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
TGo4Parameter Class Reference

#include <TGo4Parameter.h>

+ Inheritance diagram for TGo4Parameter:

Public Member Functions

 TGo4Parameter ()
 TGo4Parameter (const char *name, const char *title="This is a Go4 Parameter Object")
virtual ~TGo4Parameter ()
virtual Int_t PrintParameter (Text_t *buffer=0, Int_t buflen=0)
virtual void Print (Option_t *dummy="") const
virtual Bool_t UpdateFrom (TGo4Parameter *rhs)
Bool_t UpdateFromUrl (const char *rest_url_opt)
virtual Bool_t CustomUpdateFrom () const
virtual void Clear (Option_t *opt="")
void GetMemberValues (TObjArray *fItems)
Bool_t SetMemberValues (TObjArray *fItems)
virtual void SavePrimitive (std::ostream &fs, Option_t *opt="")
TGo4ParameterStatusCreateStatus ()
Bool_t SetStatus (TGo4ParameterStatus *status)

Protected Member Functions

void GetMemberValues (TObjArray *fItems, TClass *cl, char *ptr, unsigned long int cloffset)
Bool_t SetMemberValues (TObjArray *items, Int_t &itemsindx, TClass *cl, char *ptr, unsigned long int cloffset)
Int_t FindArrayLength (TObjArray *items, Int_t &itemsindx, TDataMember *member)

Detailed Description

Base class for all parameter aggregations, e.g. calibration data.

J. Adamczewski / S. Linev

Definition at line 30 of file TGo4Parameter.h.

Constructor & Destructor Documentation

TGo4Parameter::TGo4Parameter ( )

Definition at line 34 of file TGo4Parameter.cxx.

TGo4Parameter::TGo4Parameter ( const char *  name,
const char *  title = "This is a Go4 Parameter Object" 

Definition at line 39 of file TGo4Parameter.cxx.

References GO4TRACE.

TGo4Parameter::~TGo4Parameter ( )

Definition at line 92 of file TGo4Parameter.cxx.

References GO4TRACE.

Member Function Documentation

void TGo4Parameter::Clear ( Option_t *  opt = "")

Reimplemented in TGo4FitterEnvelope.

Definition at line 145 of file TGo4Parameter.cxx.

References GetMemberValues(), SetMemberValues(), and TGo4ParameterMember::SetToZero().

TGo4ParameterStatus * TGo4Parameter::CreateStatus ( )

Creates parameter status object. It should be destroyed by the user

Definition at line 467 of file TGo4Parameter.cxx.

virtual Bool_t TGo4Parameter::CustomUpdateFrom ( ) const

Specifies, if user implement UpdateFrom() method and it should be used when parameter updated from other. Otherwise, default method with help of ParameterStatus will be used

Definition at line 55 of file TGo4Parameter.h.

Referenced by TGo4ParameterStatus::UpdateParameterValues().

Int_t TGo4Parameter::FindArrayLength ( TObjArray *  items,
Int_t &  itemsindx,
TDataMember *  member 
void TGo4Parameter::GetMemberValues ( TObjArray *  fItems)
void TGo4Parameter::GetMemberValues ( TObjArray *  fItems,
TClass *  cl,
char *  ptr,
unsigned long int  cloffset 
void TGo4Parameter::Print ( Option_t *  dummy = "") const

Definition at line 45 of file TGo4Parameter.cxx.

References PrintParameter().

Int_t TGo4Parameter::PrintParameter ( Text_t *  buffer = 0,
Int_t  buflen = 0 
void TGo4Parameter::SavePrimitive ( std::ostream &  fs,
Option_t *  opt = "" 

Standard way to store parameter in form of macro, If

opt== "savemacro", parameter saved in form of macro, which can be rerun in analysis- see saveparam.C macro for example

Definition at line 412 of file TGo4Parameter.cxx.

References TGo4ParameterMember::GetFullName(), TGo4ParameterMember::GetIntValue(), GetMemberValues(), TGo4ParameterMember::GetStrValue(), TGo4ParameterMember::GetTypeId(), TGo4ParameterMember::kTArray_t, TGo4ParameterMember::kTGo4Fitter_t, and TGo4ParameterMember::kTString_t.

Bool_t TGo4Parameter::SetMemberValues ( TObjArray *  fItems)
Bool_t TGo4Parameter::SetMemberValues ( TObjArray *  items,
Int_t &  itemsindx,
TClass *  cl,
char *  ptr,
unsigned long int  cloffset 
Bool_t TGo4Parameter::SetStatus ( TGo4ParameterStatus status)

Set status object - apply member values to the parameter

Definition at line 472 of file TGo4Parameter.cxx.

References TGo4ParameterStatus::UpdateParameterValues().

Bool_t TGo4Parameter::UpdateFrom ( TGo4Parameter rhs)
Bool_t TGo4Parameter::UpdateFromUrl ( const char *  rest_url_opt)

Method used by HTTP server to update some fields, specified in URL syntax

Definition at line 115 of file TGo4Parameter.cxx.

References TGo4ParameterMember::GetFullName(), GetMemberValues(), TGo4Log::Info(), SetMemberValues(), TGo4ParameterMember::SetStrValue(), and UpdateFrom().

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