33 fDaughterList(new TObjArray(5)),
44 center(r.getCenterPosition()),
45 volumeType(r.getVolumeType()),
47 copyNode(r.getCopyNode()),
48 rootVolume(r.getRootVolume()),
53 fDaughterList(new TObjArray(*(r.GetListOfDaughters()))),
54 fTruncName(r.getTruncName())
121 Int_t l=fName.Length();
125 sscanf(s.Data(),
"%i",&
n);
129 Ssiz_t l=fName.Last(
'#');
133 sscanf(s.Data(),
"%i",&
n);
161 cout<<
"//----------------------------------------------------------\n";
163 cout<<
"//----------------------------------------------------------\n";
166 cout<<((
const char*)fName)<<
'\n';
168 else { cout<<
"-- unknown mother --\n"; }
171 else { cout<<
"-- unknown shape --\n"; }
173 else { cout<<
"-- unknown medium --\n"; }
175 else { cout<<
"-- no points --\n"; }
179 cout<<
"//----------------------------------------------------------\n";
185 fout<<fName.Data()<<
'\n';
188 Error(
"write",
"Unknown mother for %s\n",fName.Data());
194 Error(
"write",
"Unknown shape for %s\n",fName.Data());
199 Error(
"write",
"Unknown medium for %s\n",fName.Data());
204 Error(
"write",
"No points for %s\n",fName.Data());
211 fout<<
v(0)<<
" "<<
v(1)<<
" "<<
v(2)<<
'\n';
213 for(Int_t i=0; i<9; i++) { fout<<r(i)<<
" "; }
215 fout<<
"//----------------------------------------------------------\n";
222 TList* tree=
new TList();
227 if (lmother) { tree->Add(lmother); }
248 Error(
"calcLabTransform()",
"Mother volume of %s not found!",GetName());
255 Error(
"calcLabTransform()",
256 "Lab Transformation of mother volume of %s not found!",GetName());
275 Error(
"calcLabTransform()",
"Mother volume of %s not found!",GetName());
282 Error(
"calcLabTransform()",
283 "Lab Transformation of mother volume of %s not found!",GetName());
300 Error(
"calcModuleTransform",
"Mother volume of %s not found!",node->GetName());
307 else {
return kTRUE; }
319 Error(
"calcModuleTransform",
"Mother volume %s not found!",node->GetName());
324 else {
return kTRUE; }
331 Int_t diff[]= {0,0,0,0,0,0};
339 TString med=
medium->GetName();
340 if (med.CompareTo(rn.
getMedium()->GetName())!=0) {
354 for (Int_t i=0; i<np; i++) {
357 if (fabs(
v1(0)-
v2(0))>=0.001||fabs(
v1(1)-
v2(1))>=0.001||fabs(
v1(1)-
v2(1))>=0.001) {
369 if (fabs(
v1(0)-
v2(0))>=0.001||fabs(
v1(1)-
v2(1))>=0.001||fabs(
v1(1)-
v2(1))>=0.001) {
375 for (Int_t i=0; i<9; i++) {
376 if (fabs(
r1(i)-
r2(i))>=1.
e-7) {
383 for (Int_t i=0; i<6; i++) { cout<<
" "<<diff[i]<<
" "; }
385 }
else { cout<<
" same\n"; }