Changeset 310


Ignore:
Timestamp:
Apr 17, 2007, 8:51:02 AM (17 years ago)
Author:
barrand
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MEMPHYS/HEAD/applications/MEMPHYS_geom.cxx

    r302 r310  
    3939bool process_pmtInfos(
    4040 AIDA::ITuple& aParent
     41,FILE* aFile
    4142)
    4243//////////////////////////////////////////////////////////////////////////////
     
    6768              << " dx,dy,dz " << dx << " " << dy << " " << dz
    6869              << std::endl;
     70
     71    fprintf(aFile,"%g %g %g %g %g %g\n",x,y,z,dx,dy,dz);
    6972   
    7073    irow++;
     
    138141            << std::endl;
    139142
     143  FILE* file = fopen("MEMPHYS_geom.ascii","wb");
     144
    140145  int irow = 0;
    141146  tuple->start();
    142147  while(tuple->next() && (irow<nentries)) {
    143148
    144     if(!process_pmtInfos(*tuple)) return 1;
     149    if(!process_pmtInfos(*tuple,file)) return 1;
    145150
    146151    irow++;
    147152  }
     153
     154  ::fclose(file);
    148155
    149156  delete tree;
Note: See TracChangeset for help on using the changeset viewer.