Changeset 416 in Sophya for trunk/Poubelle/archTOI.old


Ignore:
Timestamp:
Sep 23, 1999, 11:08:43 AM (26 years ago)
Author:
ansari
Message:

nouvelles toi

Location:
trunk/Poubelle/archTOI.old
Files:
1 added
11 edited

Legend:

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

    r415 r416  
    886886}
    887887
     888long ArcheopsFile::getRawBoloCN(int ibolo, int imesure) {   
     889  // Si pas bloc comprime -> 0
     890  if (lastBoloComp() == NULL) return 0;
     891  if (numero_block(lastBoloComp()) != numero_block(lastBolo())) return 0;
     892  block_type_reglage* reglage = lastReglage();
     893  if (!reglage) return 0;
     894
     895  int nb_coups= reglage->reglage.horloge.nb_mesures/2 - reglage->reglage.horloge.temp_mort;
     896  unsigned int4* data = lastBoloComp()->data_bolo[ibolo];
     897  // Les deux premieres valeurs sont codees directement...
     898  if (imesure<2) return 0;
     899  int iExp = (imesure-2)/4 + 1;
     900  int expo = data[iExp] & 0xf;
     901  int noise = 1 << expo;
     902  return (noise << 1)/nb_coups;
     903}
     904
     905
     906
    888907def_gains
    889908
     
    899918  //return ((1e5*y)/(65536.*gain_ampli(reglage->reglage.bolo[ibolo])));
    900919}
     920
     921double ArcheopsFile::getMuVBoloCN(int ibolo, int imesure) { // microvolts, sur valeur unique
     922  double y = getRawBoloCN(ibolo, imesure);
     923  block_type_reglage* reglage = lastReglage();
     924  block_type_param*   param = lastParam();
     925  if (!reglage) return 0;
     926  if (!param) return 0;
     927  return bol_micro_volt(y,(double)param->param.bolo[ibolo].bolo_gain*gain_ampli(reglage->reglage.bolo[ibolo]));
     928}
     929
    901930
    902931double ArcheopsFile::getMuVBolo2(int ibolo, int imesure) { // microvolts, filtre
     
    10011030 
    10021031  // Attention, on ne transmet pas les canaux 0 et 4....
     1032  if (ichannel == 0 || ichannel == 4) return 0;
    10031033  int i = ichannel - 1;
    10041034  if (i >= 4) i--;
  • trunk/Poubelle/archTOI.old/archeopsfile.h

    r413 r416  
    131131  int getBoloCompBlockNum();
    132132  long getRawBolo(int ibolo, int imesure);   // donnee brute, avec seulement soustraction offset
     133  long getRawBoloCN(int ibolo, int imesure);  // bruit de compression, sur donnee brute
     134  double getMuVBoloCN(int ibolo, int imesure);  // bruit de compression, en microVolts
    133135  double getMuVBolo(int ibolo, int imesure); // microvolts, filtre avec filtre carre
    134136  double getMuVBolo2(int ibolo, int imesure); // microvolts, filtre +sioux
  • trunk/Poubelle/archTOI.old/archtoi.cc

    r408 r416  
    1212#include "archtoi.h"
    1313#include "archparam.h"
     14#include "archvers.h"
    1415
    1516using namespace std;
  • trunk/Poubelle/archTOI.old/archtoi.h

    r407 r416  
    6767};
    6868
    69 #define ARCHTOI_VERS "1.1"
    70 #define ARCHTOI_TAG  "notag"
    71 
    7269#endif
  • trunk/Poubelle/archTOI.old/auxinterpgps.cc

    r363 r416  
    44#include "auxinterpgps.h"
    55#include "fitsio.h"
    6 #include "archtoi.h"
     6#include "archvers.h"
    77
    88AuxInterpGPS::AuxInterpGPS() {
  • trunk/Poubelle/archTOI.old/ssthandler.cc

    r405 r416  
    1515#include "pisteetoile.h"
    1616
     17#ifdef SST_DUMPLOG
    1718ofstream SSTHandler::sstchass("SSTChassLogFile");
    1819bool     SSTHandler::sstchassinit=false;
     20#endif
    1921
    2022// diodpermut[i] = channel de la diode i
     
    255257                LastBlockStarVec.push_back((*StarHistReIter).second);
    256258       
    257 //#ifdef SST_DEBUG
     259#ifdef SST_DUMPLOG
    258260        if(NbStarInBlock>0) {
    259261                       
     
    265267        }
    266268               
    267 //#endif
     269#endif
    268270
    269271        return NbStarInBlock;
     
    274276        for(int i=0; i<NbPhotDiodBarette; i++) PisteBar[i]=new PisteEtoile(i);
    275277        StarHistoryMap.clear();
     278#ifdef SST_DUMPLOG
    276279        if (!sstchassinit) {
    277280          sstchass<<LastStar.printHeader()<<endl;
    278281          sstchassinit = true;
    279282        }
     283#endif
    280284       
    281285#ifdef SST_DEBUG       
  • trunk/Poubelle/archTOI.old/ssthandler.h

    r412 r416  
    2424
    2525//#define SST_DEBUG
     26//#define SST_DUMPLOG
    2627#define NbChanDump (10)
    2728#define NbPhotDiodBarette (46)
  • trunk/Poubelle/archTOI.old/toiiter.cc

    r413 r416  
    215215      case boloRaw:
    216216      case boloRawCN:
     217      case boloTensCN:
    217218        trigMask |= block_bolo_mask;
    218219        break;
     
    444445     if (imes==0 && file->llastBolo()==NULL) return false;
    445446     return file->lastBolo() != NULL;
     447   case boloTensCN:
    446448   case boloRaw:
    447449     return file->lastBolo() != NULL;
     
    533535   case boloRaw:
    534536     return file->getRawBolo(index, imes);
     537   case boloRawCN:
     538     return file->getRawBoloCN(index, imes);
     539   case boloTensCN:
     540     return file->getMuVBoloCN(index, imes);
    535541   case boloGainAmpli:
    536542     return file->getGainAmpli(index);
     
    613619       return file->blockNum() == file->getBoloBlockNum();
    614620     case boloRaw:
     621     case boloRawCN:
     622     case boloTensCN:
    615623       return file->blockNum() == file->getBoloBlockNum();
    616624     case boloGainAmpli:
  • trunk/Poubelle/archTOI.old/toiiter.h

    r410 r416  
    2626  boloDACI,      // courant (microAmps)
    2727  boloRawCN,     // compression noise on bolo raw
     28  boloTensCN,    // compression noise on bolo (microVolts), no filter
    2829  boloTens2T,    // total, microVolts, avec consigne DAC
    2930  boloRes,       // Resistance, ohms
  • trunk/Poubelle/archTOI.old/toisvr.cc

    r414 r416  
    88
    99TOISvr::TOISvr()
    10 {}
     10{
     11  defaultInclude();
     12}
    1113
    1214// To avoid special copy constructor handling, we will not
     
    109111    else tsttoi(boloTens2T)
    110112    else tsttoi(boloRawCN)
     113    else tsttoi(boloTensCN)
    111114    else tsttoi(dilDAC)
    112115    else tsttoi(dilSwitch)
     
    215218  return true;
    216219}
     220
     221void TOISvr::defaultInclude() {
     222  processRequest("#REQVERSION V_230999");
     223  processRequest("#MJD0 1376.8358818");
     224  processRequest("#PERECH 0.005836818076");
     225  processRequest("#COMMENT ***WARNING***");
     226  processRequest("#COMMENT ***SOME TOI'S ARE PRELIMINARY***");
     227  processRequest("#COMMENT gyroSpeed is not calibrated");
     228  processRequest("#COMMENT azimut/alpha/delta use galaxy crossings");
     229  processRequest("#COMMENT and assume no pendulation");
     230 
     231}
  • trunk/Poubelle/archTOI.old/toisvr.h

    r407 r416  
    4242  virtual bool processOption(string keyw, string args);
    4343 
     44  void defaultInclude();
     45 
    4446protected:
    4547  TOIIter iter;
Note: See TracChangeset for help on using the changeset viewer.