#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) |
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="") |
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 29 of file TGo4Parameter.h.
TGo4Parameter::TGo4Parameter | ( | ) |
Definition at line 33 of file TGo4Parameter.cxx.
TGo4Parameter::TGo4Parameter | ( | const char * | name, | |
const char * | title = "This is a Go4 Parameter Object" | |||
) |
Definition at line 38 of file TGo4Parameter.cxx.
References GO4TRACE.
TGo4Parameter::~TGo4Parameter | ( | ) | [virtual] |
Definition at line 92 of file TGo4Parameter.cxx.
References GO4TRACE.
void TGo4Parameter::Clear | ( | Option_t * | opt = "" |
) | [virtual] |
Reimplemented in TGo4FitterEnvelope.
Definition at line 115 of file TGo4Parameter.cxx.
References GetMemberValues(), SetMemberValues(), and TGo4ParameterMember::SetToZero().
virtual Bool_t TGo4Parameter::CustomUpdateFrom | ( | ) | const [inline, virtual] |
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 51 of file TGo4Parameter.h.
Referenced by TGo4ParameterStatus::UpdateParameterValues().
Int_t TGo4Parameter::FindArrayLength | ( | TObjArray * | items, | |
Int_t & | itemsindx, | |||
TDataMember * | member | |||
) | [protected] |
Definition at line 265 of file TGo4Parameter.cxx.
References TGo4ParameterMember::GetIntValue(), and TGo4ParameterMember::GetTypeId().
Referenced by SetMemberValues().
void TGo4Parameter::GetMemberValues | ( | TObjArray * | fItems, | |
TClass * | cl, | |||
char * | ptr, | |||
unsigned long int | cloffset | |||
) | [protected] |
Definition at line 148 of file TGo4Parameter.cxx.
References GetMemberValues(), TGo4ParameterMember::kTArray_t, TGo4ParameterMember::SetArrayIndexes(), TGo4ParameterMember::SetIntValue(), TGo4ParameterMember::SetMemberId(), TGo4ParameterMember::SetType(), TGo4ParameterMember::SetValue(), and TGo4ParameterMember::SetVisible().
void TGo4Parameter::GetMemberValues | ( | TObjArray * | fItems | ) |
Definition at line 133 of file TGo4Parameter.cxx.
Referenced by Clear(), GetMemberValues(), PrintParameter(), TGo4ParaEdit::RefreshWidget(), SavePrimitive(), TGo4ParameterStatus::TGo4ParameterStatus(), and UpdateFrom().
void TGo4Parameter::Print | ( | Option_t * | dummy = "" |
) | const [virtual] |
Definition at line 45 of file TGo4Parameter.cxx.
References PrintParameter().
Int_t TGo4Parameter::PrintParameter | ( | Text_t * | buffer = 0 , |
|
Int_t | buflen = 0 | |||
) | [virtual] |
Basic method to printout information on stdout; to be overridden by specific subclass
Reimplemented in TGo4EventProcessorParameter, TGo4EventSourceParameter, TGo4EventStoreParameter, TGo4BackStoreParameter, TGo4FileStoreParameter, TGo4MbsFileParameter, TGo4MbsSourceParameter, TGo4TreeStoreParameter, TGo4UserSourceParameter, TGo4UserStoreParameter, TXXXCalibPar, TMeshParameter, TYYYParameter, and TGo4FitterEnvelope.
Definition at line 52 of file TGo4Parameter.cxx.
References GetMemberValues(), GO4TRACE, and TGo4ParameterMember::PrintMember().
Referenced by Print(), and TXXXProc::TXXXProc().
void TGo4Parameter::SavePrimitive | ( | std::ostream & | fs, | |
Option_t * | opt = "" | |||
) | [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 382 of file TGo4Parameter.cxx.
References TGo4ParameterMember::GetFullName(), TGo4ParameterMember::GetIntValue(), GetMemberValues(), TGo4ParameterMember::GetStrValue(), TGo4ParameterMember::GetTypeId(), TGo4ParameterMember::kTArray_t, TGo4ParameterMember::kTGo4Fitter_t, and TGo4ParameterMember::kTString_t.
Referenced by save1param().
Bool_t TGo4Parameter::SetMemberValues | ( | TObjArray * | fItems | ) |
Definition at line 138 of file TGo4Parameter.cxx.
Referenced by Clear(), TGo4ParameterStatus::CreateParameter(), TGo4ParaEdit::saveFile(), SetMemberValues(), UpdateFrom(), and TGo4ParameterStatus::UpdateParameterValues().
Bool_t TGo4Parameter::SetMemberValues | ( | TObjArray * | items, | |
Int_t & | itemsindx, | |||
TClass * | cl, | |||
char * | ptr, | |||
unsigned long int | cloffset | |||
) | [protected] |
Definition at line 276 of file TGo4Parameter.cxx.
References TGo4ParameterMember::CheckArrayIndexes(), FindArrayLength(), TGo4ParameterMember::GetTypeId(), TGo4ParameterMember::GetTypeName(), TGo4ParameterMember::GetValue(), and SetMemberValues().
Bool_t TGo4Parameter::UpdateFrom | ( | TGo4Parameter * | rhs | ) | [virtual] |
Update contents of parameter class with external object. to be implemented in subclass
Reimplemented in TGo4EventCalibration, TGo4EventProcessorParameter, TGo4EventSourceParameter, TGo4EventStoreParameter, TGo4BackStoreParameter, TGo4FileStoreParameter, TGo4MbsFileParameter, TGo4MbsSourceParameter, TGo4TreeStoreParameter, TGo4UserStoreParameter, TXXXCalibPar, TMeshParameter, TYYYParameter, and TGo4FitterEnvelope.
Definition at line 97 of file TGo4Parameter.cxx.
References GetMemberValues(), and SetMemberValues().
Referenced by TGo4AnalysisObjectManager::SetParameter(), and TGo4ParameterStatus::UpdateParameterValues().