Changeset 164 for MEMPHYS/HEAD


Ignore:
Timestamp:
Jun 16, 2006, 10:25:24 AM (18 years ago)
Author:
barrand
Message:
 
File:
1 edited

Legend:

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

    r163 r164  
    6060    int pId = tuple->getInt(0);
    6161    int parent = tuple->getInt(1);
    62     int timeStart = tuple->getInt(2);
    63 
    64     double dx,dy,dz;
     62    float timeStart = tuple->getFloat(2);
     63
     64    double dx = 0;
     65    double dy = 0;
     66    double dz = 0;
    6567    if(!getXYZ(*tuple,3,dx,dy,dz)) return false;
    6668
     
    6971    double ETot = tuple->getDouble(6);
    7072
    71     double px,py,pz;
    72     if(!getXYZ(*tuple,7,dx,dy,dz)) return false;
    73     double start_x,start_y,start_z;
    74     if(!getXYZ(*tuple,8,dx,dy,dz)) return false;
    75     double stop_x,stop_y,stop_z;
    76     if(!getXYZ(*tuple,9,dx,dy,dz)) return false;
    77 
    78     int startVol = tuple->getDouble(10);
    79     int stopVol = tuple->getDouble(11);
     73    double px = 0;
     74    double py = 0;
     75    double pz = 0;
     76    if(!getXYZ(*tuple,7,px,py,pz)) return false;
     77
     78    double start_x = 0;
     79    double start_y = 0;
     80    double start_z = 0;
     81    if(!getXYZ(*tuple,8,start_x,start_y,start_z)) return false;
     82
     83    double stop_x = 0;
     84    double stop_y = 0;
     85    double stop_z = 0;
     86    if(!getXYZ(*tuple,9,stop_x,stop_y,stop_z)) return false;
     87
     88    int startVol = tuple->getInt(10);
     89    int stopVol = tuple->getInt(11);
    8090
    8191    std::cout << "----> Tk{"<<irow<<"}: "
Note: See TracChangeset for help on using the changeset viewer.