Changeset 310
- Timestamp:
- Apr 17, 2007, 8:51:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MEMPHYS/HEAD/applications/MEMPHYS_geom.cxx
r302 r310 39 39 bool process_pmtInfos( 40 40 AIDA::ITuple& aParent 41 ,FILE* aFile 41 42 ) 42 43 ////////////////////////////////////////////////////////////////////////////// … … 67 68 << " dx,dy,dz " << dx << " " << dy << " " << dz 68 69 << std::endl; 70 71 fprintf(aFile,"%g %g %g %g %g %g\n",x,y,z,dx,dy,dz); 69 72 70 73 irow++; … … 138 141 << std::endl; 139 142 143 FILE* file = fopen("MEMPHYS_geom.ascii","wb"); 144 140 145 int irow = 0; 141 146 tuple->start(); 142 147 while(tuple->next() && (irow<nentries)) { 143 148 144 if(!process_pmtInfos(*tuple )) return 1;149 if(!process_pmtInfos(*tuple,file)) return 1; 145 150 146 151 irow++; 147 152 } 153 154 ::fclose(file); 148 155 149 156 delete tree;
Note: See TracChangeset
for help on using the changeset viewer.