54 return static_cast<FairGeoMedium*
>(media->FindObject(mediumName));
66 cout <<
"********************************************************************\n";
67 cout <<
"List of media:\n";
68 TListIter iter(media);
70 while ((medium = static_cast<FairGeoMedium*>(iter.Next()))) {
71 cout <<
" " << medium->GetName() <<
"\n";
78 if (!author.IsNull()) {
79 cout <<
"//Author: " << author <<
'\n';
81 if (!description.IsNull()) {
82 cout <<
"//Description: " << description <<
'\n';
84 cout <<
"//----------------------------------------------------------\n";
85 TListIter iter(media);
88 while ((medium = static_cast<FairGeoMedium*>(iter.Next()))) {
94 if (i != media->GetSize()) {
96 cout <<
"//----------------------------------------------\n";
98 cout <<
"//----------------------------------------------\n";
99 while ((medium = static_cast<FairGeoMedium*>(iter.Next()))) {
110 LOG(info) <<
"FairGeoMedia: Read media ";
111 const Int_t maxBuf = 256;
116 if (buf[0] ==
'\0' || buf[0] ==
'/') {
117 fin.getline(buf, maxBuf);
118 }
else if (fin.eof()) {
121 TString eleName(buf);
122 if (eleName.CompareTo(
"AUTONULL") != 0) {
124 medium->
read(fin, autoflag);
136 if (!author.IsNull()) {
137 fout <<
"//Author: " << author <<
'\n';
139 if (!description.IsNull()) {
140 fout <<
"//Description: " << description <<
'\n';
142 fout <<
"//----------------------------------------------------------\n";
143 TListIter iter(media);
146 while ((medium = static_cast<FairGeoMedium*>(iter.Next()))) {
152 if (i != media->GetSize()) {
154 fout <<
"//----------------------------------------------\n";
155 fout <<
"AUTONULL\n";
156 fout <<
"//----------------------------------------------\n";
157 while ((medium = static_cast<FairGeoMedium*>(iter.Next()))) {
void write(std::fstream &)
ClassImp(FairEventBuilder)
void read(std::fstream &, Int_t autoflag)