GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4Parameter.h>
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="") |
TGo4ParameterStatus * | CreateStatus () |
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) |
Base class for all parameter aggregations, e.g. calibration data.
Definition at line 30 of file TGo4Parameter.h.
TGo4Parameter::TGo4Parameter | ( | ) |
Definition at line 35 of file TGo4Parameter.cxx.
TGo4Parameter::TGo4Parameter | ( | const char * | name, |
const char * | title = "This is a Go4 Parameter Object" |
||
) |
Definition at line 40 of file TGo4Parameter.cxx.
References GO4TRACE.
|
virtual |
Definition at line 93 of file TGo4Parameter.cxx.
References GO4TRACE.
|
virtual |
Reimplemented in TGo4FitterEnvelope.
Definition at line 146 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 468 of file TGo4Parameter.cxx.
|
inlinevirtual |
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().
|
protected |
Definition at line 296 of file TGo4Parameter.cxx.
References TGo4ParameterMember::GetIntValue(), TGo4ParameterMember::GetTypeId(), and TGo4ParameterMember::kTArray_t.
Referenced by SetMemberValues().
void TGo4Parameter::GetMemberValues | ( | TObjArray * | fItems | ) |
Definition at line 164 of file TGo4Parameter.cxx.
Referenced by Clear(), GetMemberValues(), PrintParameter(), TGo4ParaEdit::RefreshWidget(), SavePrimitive(), TGo4ParameterStatus::TGo4ParameterStatus(), UpdateFrom(), and UpdateFromUrl().
|
protected |
Definition at line 179 of file TGo4Parameter.cxx.
References GetMemberValues(), TGo4ParameterMember::kTArray_t, TGo4ParameterMember::kTGo4Fitter_t, TGo4ParameterMember::kTString_t, TGo4ParameterMember::SetArrayIndexes(), TGo4ParameterMember::SetIntValue(), TGo4ParameterMember::SetMemberId(), TGo4ParameterMember::SetType(), TGo4ParameterMember::SetValue(), and TGo4ParameterMember::SetVisible().
|
virtual |
Definition at line 46 of file TGo4Parameter.cxx.
References PrintParameter().
|
virtual |
Basic method to printout information on stdout; to be overridden by specific subclass
Reimplemented in TGo4MbsSourceParameter, TGo4EventSourceParameter, TGo4EventProcessorParameter, TGo4EventStoreParameter, TGo4MbsFileParameter, TGo4TreeStoreParameter, TGo4UserSourceParameter, TGo4UserStoreParameter, TXXXCalibPar, TGo4FitterEnvelope, TGo4FileStoreParameter, TGo4BackStoreParameter, TYYYParameter, and TMeshParameter.
Definition at line 53 of file TGo4Parameter.cxx.
References GetMemberValues(), GO4TRACE, and TGo4ParameterMember::PrintMember().
Referenced by Print(), TGo4FitterEnvelope::PrintParameter(), and TXXXProc::TXXXProc().
|
virtual |
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 413 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 | ) |
Definition at line 169 of file TGo4Parameter.cxx.
Referenced by Clear(), TGo4ParameterStatus::CreateParameter(), TGo4ParaEdit::saveFile(), SetMemberValues(), UpdateFrom(), UpdateFromUrl(), and TGo4ParameterStatus::UpdateParameterValues().
|
protected |
Definition at line 307 of file TGo4Parameter.cxx.
References TGo4ParameterMember::CheckArrayIndexes(), FindArrayLength(), TGo4ParameterMember::GetTypeId(), TGo4ParameterMember::GetTypeName(), TGo4ParameterMember::GetValue(), TGo4ParameterMember::kTGo4Fitter_t, TGo4ParameterMember::kTString_t, and SetMemberValues().
Bool_t TGo4Parameter::SetStatus | ( | TGo4ParameterStatus * | status | ) |
Set status object - apply member values to the parameter
Definition at line 473 of file TGo4Parameter.cxx.
References TGo4ParameterStatus::UpdateParameterValues().
|
virtual |
Update contents of parameter class with external object. to be implemented in subclass
Reimplemented in TGo4MbsSourceParameter, TGo4EventSourceParameter, TGo4EventProcessorParameter, TGo4EventStoreParameter, TGo4MbsFileParameter, TGo4TreeStoreParameter, TGo4UserStoreParameter, TGo4FileStoreParameter, TXXXCalibPar, TGo4FitterEnvelope, TGo4EventCalibration, TGo4BackStoreParameter, TYYYParameter, and TMeshParameter.
Definition at line 98 of file TGo4Parameter.cxx.
References GetMemberValues(), and SetMemberValues().
Referenced by TGo4AnalysisObjectManager::SetParameter(), UpdateFromUrl(), and TGo4ParameterStatus::UpdateParameterValues().
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 116 of file TGo4Parameter.cxx.
References TGo4ParameterMember::GetFullName(), GetMemberValues(), TGo4Log::Info(), SetMemberValues(), TGo4ParameterMember::SetStrValue(), and UpdateFrom().