Changeset 401 in Sophya


Ignore:
Timestamp:
Sep 2, 1999, 4:19:55 PM (26 years ago)
Author:
ansari
Message:

sst

Location:
trunk/Poubelle/archTOI.old
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/ssthandler.cc

    r400 r401  
    1414#include "ssthandler.h"
    1515#include "pisteetoile.h"
     16
     17ofstream SSTHandler::sstchass("SSTChassLogFile");
     18bool     SSTHandler::sstchassinit=false;
    1619
    1720// diodpermut[i] = channel de la diode i
     
    2528
    2629SSTHandler::SSTHandler()
    27 :sstchass("SSTChassLogFile")
    2830{
    2931  diodeHistLength = nb_per_block*2+10;
     
    4547
    4648SSTHandler::SSTHandler(SSTHandler const& x)
    47 :sstchass("SSTChassLogFile")
    4849{
    4950  diodeHistLength = x.diodeHistLength;
     
    273274        for(int i=0; i<NbPhotDiodBarette; i++) PisteBar[i]=new PisteEtoile(i);
    274275        StarHistoryMap.clear();
    275         sstchass<<LastStar.printHeader()<<endl;
     276        if (!sstchassinit) {
     277          sstchass<<LastStar.printHeader()<<endl;
     278          sstchassinit = true;
     279        }
    276280       
    277281#ifdef SST_DEBUG       
  • trunk/Poubelle/archTOI.old/ssthandler.h

    r394 r401  
    107107  int noStarDet;
    108108  int FirstSplNb(block_type_sst* blk); // Calcule l'index du premier echantillon du block analysé
    109   ofstream sstchass;
     109  static ofstream sstchass;
     110  static bool     sstchassinit;
    110111 
    111112  void findStarConstruct();
  • trunk/Poubelle/archTOI.old/toiiter.cc

    r400 r401  
    4848  directory = x.directory;
    4949  files = x.files;
    50   //  curFile = x.curFile; // $CHECK$ DANGER !!
    51   curFile = files.find(*(x.curFile));
     50  if (x.initDone && x.curFile != x.files.end()) curFile = files.find(*(x.curFile));
    5251  isOnBoardRecorder = x.isOnBoardRecorder;
    5352  imes = x.imes;
    5453  tStart = x.tStart;
    5554  tEnd = x.tEnd;
    56   //tBlock0 = x.tBlock0;
    57   //perEch = x.perEch;
    5855  trigMask = x.trigMask;
    5956  infos = x.infos;   
  • trunk/Poubelle/archTOI.old/toiiter.h

    r400 r401  
    2323  sstDiode,   // signal brut SST, indice = diode, 0-45
    2424  sstChannel, // signal brut SST, indice = canal, 0-47
    25   sstStarCnt, // nombre d'etoiles detectees durant ce sample
     25  sstStarCnt, // nombre d''etoiles detectees durant ce sample
    2626  sstStarZ,   // numero de diode d''une eventuelle etoile,   i=etoile 0..n
    2727  sstStarF,   // flux d''une eventuelle etoile,             <0 si moins de i+1 etoiles
     
    123123   // Gestion de l''interpolation, par delegation a un autre iterateur
    124124   TOIIter* rawIter; // iterateur sans interpolation, qui avance avec retard
    125                      // en bufferisant les valeurs. S'il existe, on lui delegue
     125                     // en bufferisant les valeurs. S''il existe, on lui delegue
    126126                     // toutes les operations agissant sur le fichier.
    127127   TOIInterpolator* interp; // interpolateurs pour stocker les valeurs
Note: See TracChangeset for help on using the changeset viewer.