19 #include "Riostream.h"
21 #include "TDataType.h"
96 buf.Form(
"%s[%d]",GetName(),
fIndex1);
133 #if ROOT_VERSION_CODE >= ROOT_VERSION(4,3,2)
138 case kDouble32_t:
fValue =
"0";
break;
148 case kUInt_t:
fValue.Form(
"%u", *((UInt_t*)addr));
break;
149 case kInt_t:
fValue.Form(
"%d", *((Int_t*)addr));
break;
150 case kULong_t:
fValue.Form(
"%lu", *((ULong_t*)addr));
break;
151 case kLong_t:
fValue.Form(
"%ld", *((Long_t*)addr));
break;
152 case kULong64_t:
fValue.Form(
"%llu", *((ULong64_t*)addr));
break;
153 case kLong64_t:
fValue.Form(
"%lld", *((Long64_t*)addr));
break;
154 case kUShort_t:
fValue.Form(
"%hu", *((UShort_t*)addr));
break;
155 case kShort_t:
fValue.Form(
"%hd", *((Short_t*)addr));
break;
156 case kUChar_t:
fValue.Form(
"%u", *((UChar_t*)addr));
break;
157 case kChar_t:
fValue.Form(
"%d", *((Char_t*)addr));
break;
158 #if ROOT_VERSION_CODE >= ROOT_VERSION(4,3,2)
159 case kBool_t:
fValue.Form(
"%d", *((Bool_t*)addr));
break;
161 case kFloat_t:
fValue.Form(
"%.7g", *((Float_t*)addr));
break;
162 case kDouble_t:
fValue.Form(
"%.16g", *((Double_t*)addr));
break;
163 case kDouble32_t:
fValue.Form(
"%.16g", *((Double32_t*)addr));
break;
166 TObject** f = (TObject**) addr;
176 const char* value =
fValue.Data();
178 case kUInt_t: *((UInt_t*)addr) = atoi(value);
break;
179 case kInt_t: *((Int_t*)addr) = atoi(value);
break;
180 case kULong_t: *((ULong_t*)addr) = atoi(value);
break;
181 case kLong_t: *((Long_t*)addr) = atoi(value);
break;
182 case kULong64_t: *((ULong64_t*)addr) = atoi(value);
break;
183 case kLong64_t: *((Long64_t*)addr) = atoi(value);
break;
184 case kUShort_t: *((UShort_t*)addr) = atoi(value);
break;
185 case kShort_t: *((Short_t*)addr) = atoi(value);
break;
186 case kUChar_t: *((UChar_t*)addr) = atoi(value);
break;
187 case kChar_t: *((Char_t*)addr) = atoi(value);
break;
188 #if ROOT_VERSION_CODE >= ROOT_VERSION(4,3,2)
189 case kBool_t: *((Bool_t*)addr) = atoi(value);
break;
191 case kFloat_t: *((Float_t*)addr) = atof(value);
break;
192 case kDouble_t: *((Double_t*)addr) = atof(value);
break;
193 case kDouble32_t: *((Double32_t*)addr) = atof(value);
break;
194 case kTString_t: *((TString*)addr) = value;
break;
196 TObject** f = (TObject**)addr;
206 if ((buffer!=0) && (buflen<=0))
return 0;
212 if (
fIndex2<0) name += TString::Format(
"%s[%d]", GetName(),
fIndex1);
else
213 name += TString::Format(
"%s[%d][%d]", GetName(),
fIndex1,
fIndex2);
218 #if ROOT_VERSION_CODE >= ROOT_VERSION(4,3,2)
219 if (
fTypeId==kBool_t) name += ((
fValue==
"0") ?
"kFALSE" :
"kTRUE");
else
223 if ((GetTitle() != 0) && (strlen(GetTitle())>0)) { name +=
" // "; name += GetTitle(); }
228 TROOT::IndentLevel();
231 size = name.Length();
232 if(size>buflen) size = buflen;
233 strncpy(buffer, name.Data(), size);
virtual void Clear(Option_t *opt="")
const char * GetFullName(TString &buf)
void SetObject(TObject *obj, Bool_t owner)
Int_t PrintMember(Text_t *buffer=0, Int_t buflen=0) const
Bool_t CheckArrayIndexes(Int_t ndim, Int_t indx1, Int_t indx2)
void SetValue(char *addr)
virtual ~TGo4ParameterMember()
virtual void Print(Option_t *dummy="") const
void GetValue(char *addr)
void SetArrayIndexes(Int_t ndim=0, Int_t indx1=-1, Int_t indx2=-1)