Changeset 2039 in Sophya


Ignore:
Timestamp:
May 31, 2002, 5:44:55 PM (23 years ago)
Author:
ansari
Message:

Ameliorations mineures (ProcSampleCount()) ds Map2TOI - Reza 31/5/2002

Location:
trunk/ArchTOIPipe
Files:
3 edited

Legend:

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

    r1809 r2039  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: map2toi.cc,v 1.10 2001-12-03 20:38:02 cmv Exp $
     5// $Id: map2toi.cc,v 1.11 2002-05-31 15:44:54 ansari Exp $
    66
    77#include "toimanager.h"
     
    1414////////////////////////////////////////////////////////////////////////
    1515Map2TOI::Map2TOI(SphereHEALPix<r_8>& sph)
    16 : mSph(sph)
     16: mSph(sph), totnscount(0)
    1717{
    1818 SetBad();
  • trunk/ArchTOIPipe/ProcWSophya/map2toi.h

    r1809 r2039  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: map2toi.h,v 1.7 2001-12-03 20:38:02 cmv Exp $
     7// $Id: map2toi.h,v 1.8 2002-05-31 15:44:55 ansari Exp $
    88
    99#ifndef MAP2TOI_H
     
    6262  // Print
    6363  void Print(::ostream & os);
     64  inline int_8  ProcessedSampleCount() const { return totnscount; }
    6465
    6566protected:
     
    6869  unsigned long long mBadFlag;
    6970  double mActualYear;
     71
     72  int_8 totnscount;   // Nombre total d'echantillon processe
    7073};
    7174
  • trunk/ArchTOIPipe/TestPipes/tstmap2toi.cc

    r1810 r2039  
    2424 cout<<"tstmap2toi [-h] [-p lp] [-s samplemin,samplemax] [-w data_window_size]"<<endl
    2525     <<"           [-a label_coord1In] [-d label_coord2In] [-b label_bolomuv]"<<endl
    26      <<"           [-i c,h] [-m c,h]"<<endl
     26     <<"           [-i c,h] [-m c,h] [-C] "<<endl
    2727     <<"           fitsin_point fitsphere fitsout"<<endl
    2828     <<" -p lp : print level (def=0)"<<endl
     
    3737     <<" -e equi : equinoxe en annee (def=2000.)"<<endl
    3838     <<" -I : sampleNum are implicit in fits files (def=no)"<<endl
     39     <<" -C : Copy ccordIn to output  fits file (def=no)"<<endl
    3940     <<" fitsin_point : fits file for pointing"<<endl
    4041     <<" fitsphere : fits file for input Healpix sphere"<<endl
     
    5556long sdeb,sfin;
    5657bool snimplicit = false;
     58bool fgcopycoord = false;
    5759int c;
    5860while((c = getopt(narg,arg,"hIp:s:w:a:d:b:i:m:e:")) != -1) {
     
    9395  case 'I' :
    9496    snimplicit = true;
     97    break;
     98  case 'C' :
     99    fgcopycoord = true;
    95100    break;
    96101  case 'h' :
     
    162167 m2toi.addInput("Coord1In",toicoord1in);
    163168
     169 if (fgcopycoord) {
    164170#ifdef TOISEQBUFFERED
    165171 TOISeqBuffered * toicoord1out = new TOISeqBuffered("toi_coord1_out",width);
     
    169175 m2toi.addOutput("Coord1Out",toicoord1out);
    170176 wfits.addInput(label_coord1,toicoord1out);
     177 }
    171178
    172179#ifdef TOISEQBUFFERED
     
    178185 rfits.addOutput(label_coord2,toicoord2in);
    179186 m2toi.addInput("Coord2In",toicoord2in);
    180 
     187 
     188 if (fgcopycoord) {
    181189#ifdef TOISEQBUFFERED
    182190 TOISeqBuffered * toicoord2out = new TOISeqBuffered("toi_coord2_out",width);
     
    186194 m2toi.addOutput("Coord2Out",toicoord2out);
    187195 wfits.addInput(label_coord2,toicoord2out);
     196 }
    188197
    189198#ifdef TOISEQBUFFERED
     
    214223
    215224 //  Affichage de l'avancement des TOIProcessors
    216  //ProcSampleCounter<FITSTOIReader>  stats(rfits);
    217  //stats.InfoMessage() = "tstmap2toi/Info";
    218  //stats.PrintStats();
     225 ProcSampleCounter<Map2TOI>  stats(m2toi);
     226 stats.InfoMessage() = "tstmap2toi/Info";
     227 stats.PrintStats();
    219228
    220229 mgr->joinAll();
Note: See TracChangeset for help on using the changeset viewer.