29 #include "TObjArray.h"
47 sets(new TObjArray()),
50 masterNodes(new TList()),
112 Error(
"This Methode is not used any more ",
"Use addGeoModule to add detectors: %s",file);
186 TString setName(name);
189 Int_t l=setName.Last(
'/')+1;
190 setName=setName(l,setName.Length()-l);
202 for(Int_t i=0; i<
nSets; i++) {
203 PSetName=
sets->At(i)->GetName();
204 if (PSetName.Contains(setName.Data())) {
206 cout <<
"FairGeoInterface::findSet" <<pSet->GetName() <<endl;
222 if (input) { rc=input->
read(pSet,
media); }
294 for(Int_t i=0; i<
nSets&&rc; i++) {
297 cout<<
"Read "<<pSet->GetName()<<endl;
310 for(Int_t i=0; i<
nSets&&rc; i++) {
325 for(Int_t i=0; i<
nSets&&rc; i++) {
328 cout<<
"Create "<<pSet->GetName()<<endl;
338 }
else { Error(
"createAll()",
"No Builder"); }
356 for(Int_t i=0; i<
nSets&&rc; i++) {
359 cout<<
"Read and create "<<pSet->GetName()<<endl;
372 }
else { Error(
"createAll()",
"No Builder"); }
383 if (s.EndsWith(
".dat")||s.EndsWith(
".geo")||s.EndsWith(
".setup")) {
387 }
else if (s.EndsWith(
"_gdb")) { currentIo=
oraInput; }
389 if (currentIo && currentIo->
isOpen()) {
return currentIo; }
397 if (strcmp(
output->IsA()->GetName(),
"FairGeoAsciiIo")==0) {
403 newtime=localtime(&t);
404 if (newtime->tm_mday<10) { sprintf(buf,
"_0%i",newtime->tm_mday); }
405 else { sprintf(buf,
"_%i",newtime->tm_mday); }
407 if (newtime->tm_mon<9) { sprintf(buf,
"0%i",newtime->tm_mon+1); }
408 else { sprintf(buf,
"%i",newtime->tm_mon+1); }
410 Int_t
y=newtime->tm_year-100;
411 if (y<10) { sprintf(buf,
"0%i",y); }
412 else { sprintf(buf,
"%i",y); }
414 if (newtime->tm_hour<10) { sprintf(buf,
"0%i",newtime->tm_hour); }
415 else { sprintf(buf,
"%i",newtime->tm_hour); }
417 if (newtime->tm_min<10) { sprintf(buf,
"0%i",newtime->tm_min); }
418 else { sprintf(buf,
"%i",newtime->tm_min); }
420 if (newtime->tm_sec<10) { sprintf(buf,
"0%i",newtime->tm_sec); }
421 else { sprintf(buf,
"%i",newtime->tm_sec); }
422 fName=fName+buf+
".geo";
424 cout<<
"Output file for "<<name<<
": "
428 }
else { Error(
"connectOutput",
"No output open"); }
443 cout<<
"********************************************************************\n";
444 cout<<
"List of detector parts:\n";
446 for(Int_t i=0; i<
nSets; i++) {
448 if (pSet) { cout<<
" "<<pSet->GetName()<<
":\t"<<pSet->
getGeomFile()<<
'\n'; }
450 cout<<
"********************************************************************\n";