Changeset 2074 in Sophya for trunk/ArchTOIPipe/ProcWSophya


Ignore:
Timestamp:
Jun 18, 2002, 10:55:21 PM (23 years ago)
Author:
ansari
Message:

Ajout comptage nb d'echantillons utilises ds TOI2Map - Reza 18/6/2002

Location:
trunk/ArchTOIPipe/ProcWSophya
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/toi2map.cc

    r2058 r2074  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2map.cc,v 1.27 2002-06-18 12:21:08 ansari Exp $
     5// $Id: toi2map.cc,v 1.28 2002-06-18 20:55:21 ansari Exp $
    66
    77#include "machdefs.h"
     
    1515////////////////////////////////////////////////////////////////////////
    1616TOI2Map::TOI2Map(PixelMap<r_8>* map,PixelMap<r_8>* wmap)
    17   : mMap(map), mWMap(wmap), mWMapInternal(false), totnscount(0)
     17  : mMap(map), mWMap(wmap), mWMapInternal(false), totnscount(0), usednscount(0)
    1818{
    1919 SetEquinox();
     
    8484   <<" / Value Min("<<mTMin<<")="<<mValMin
    8585   <<" , Max("<<mTMax<<")="<<mValMax<<endl;
     86 os<<" TotalProcessedSamples="<<ProcessedSampleCount()
     87   <<" UsedSampleCount="<<UsedSampleCount()<<endl;
    8688}
    8789
     
    171173  if(mTMin && bolo<mValMin) continue;
    172174  if(mTMax && bolo>mValMax) continue;
     175  usednscount++;
    173176
    174177  // sphere phi   entre [0,2*Pi] en radians
     
    201204}
    202205
    203  cout<<"TOI2Map::run(): Fin de boucle sur les sampleNum"<<endl;
     206 cout<<"TOI2Map::run(): End of SN loop - TotalProcessedSamples="
     207     <<ProcessedSampleCount()<<" UsedSampleCount="<<UsedSampleCount()<<endl;
    204208
    205209// Remplissage des spheres
  • trunk/ArchTOIPipe/ProcWSophya/toi2map.h

    r2058 r2074  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toi2map.h,v 1.16 2002-06-18 12:21:09 ansari Exp $
     7// $Id: toi2map.h,v 1.17 2002-06-18 20:55:21 ansari Exp $
    88
    99#ifndef TOI2MAP_H
     
    7878  void Print(::ostream & os);
    7979  inline int_8  ProcessedSampleCount() const { return totnscount; }
     80  inline int_8  UsedSampleCount() const { return usednscount; }
    8081
    8182protected:
     
    9293  r_8 mValMin,mValMax;
    9394  int_8 totnscount;   // Nombre total d'echantillon processe
     95  int_8 usednscount;   // Nombre d'echantillons utilises ds la projection
    9496
    9597};
Note: See TracChangeset for help on using the changeset viewer.