Ignore:
Timestamp:
Dec 1, 2001, 2:34:08 PM (24 years ago)
Author:
aubourg
Message:

gph424

File:
1 edited

Legend:

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

    r1805 r1806  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2map.cc,v 1.21 2001-11-30 21:08:36 aubourg Exp $
     5// $Id: toi2map.cc,v 1.22 2001-12-01 13:34:08 aubourg Exp $
    66
    77#include "machdefs.h"
     
    1212
    1313////////////////////////////////////////////////////////////////////////
    14 TOI2GMap::TOI2GMap(PixelMap<r_8>* map,PixelMap<r_8>* wmap)
     14TOI2Map::TOI2Map(PixelMap<r_8>* map,PixelMap<r_8>* wmap)
    1515  : mMap(map), mWMap(map), mWMapInternal(false)
    1616{
     
    2525
    2626 if(mMap->NbPixels()<1) {
    27   cout<<"TOI2GMap::TOI2GMap() Bad number of pixels in sphere mMap "
     27  cout<<"TOI2Map::TOI2Map() Bad number of pixels in sphere mMap "
    2828      <<mMap->NbPixels()<<endl;
    29   throw ParmError("TOI2GMap::TOI2GMap() - Bad number of pixels in sphere");
     29  throw ParmError("TOI2Map::TOI2Map() - Bad number of pixels in sphere");
    3030 }
    3131 mMap->SetPixels(0.);
     
    4040     mWMap = new SphereHEALPix<r_8>(nlat);
    4141   } else {
    42      cout << "TOI2GMap::TOI2GMap() cannot handle map of type " << typmap << endl;
    43      throw ParmError("TOI2GMap::TOI2GMap() - bad type of map");
     42     cout << "TOI2Map::TOI2Map() cannot handle map of type " << typmap << endl;
     43     throw ParmError("TOI2Map::TOI2Map() - bad type of map");
    4444   }
    4545   mWMapInternal = true;
     
    4747   mWMapInternal = false;
    4848   if(nlat != mWMap->SizeIndex()) {
    49      cout << "TOI2GMap::TOI2GMap() Bad size for sphere mWMap, does not "
     49     cout << "TOI2Map::TOI2Map() Bad size for sphere mWMap, does not "
    5050          << "correspond to mMap : " << mMap->SizeIndex() << ", " << mWMap->SizeIndex() << endl;
    51      throw ParmError("TOI2GMap::TOI2GMap() - Different sizes for map and wmap");
     51     throw ParmError("TOI2Map::TOI2Map() - Different sizes for map and wmap");
    5252   }
    5353 }
    5454 if(mWMap->NbPixels()<1) {
    55    cout<<"TOI2GMap::TOI2GMap() Bad number of pixels in sphere mWMap "
     55   cout<<"TOI2Map::TOI2Map() Bad number of pixels in sphere mWMap "
    5656       <<mWMap->NbPixels()<<endl;
    57    throw ParmError("TOI2GMap::TOI2GMap() - Bad number of pixels in sphere");
     57   throw ParmError("TOI2Map::TOI2Map() - Bad number of pixels in sphere");
    5858 }
    5959 mWMap->SetPixels(0);
    6060}
    6161
    62 TOI2GMap::~TOI2GMap()
     62TOI2Map::~TOI2Map()
    6363{
    6464 if(mWMap && mWMapInternal) delete mWMap;
     
    6666
    6767////////////////////////////////////////////////////////////////////////
    68 void TOI2GMap::Print(::ostream & os)
    69 {
    70   os<<"TOI2GMap::Print -- Map type " << mMap->TypeOfMap() << " SizeIndex = "<<mMap->SizeIndex()<<endl
     68void TOI2Map::Print(::ostream & os)
     69{
     70  os<<"TOI2Map::Print -- Map type " << mMap->TypeOfMap() << " SizeIndex = "<<mMap->SizeIndex()<<endl
    7171
    7272    <<"   - Equinoxe="<<mActualYear<<endl
     
    9090
    9191////////////////////////////////////////////////////////////////////////
    92 void TOI2GMap::init() {
    93   cout << "TOI2GMap::init" << endl;
     92void TOI2Map::init() {
     93  cout << "TOI2Map::init" << endl;
    9494  declareInput("Coord1In");     // input index 0
    9595  declareInput("Coord2In");     // input index 1
     
    9999////////////////////////////////////////////////////////////////////////
    100100// define SANS_BUFFER
    101 void TOI2GMap::run()
     101void TOI2Map::run()
    102102{
    103103long snb = getMinIn();
     
    105105
    106106if(snb>sne) {
    107   cout<<"TOI2GMap::run() - Bad sample interval"<<snb<<" , "<<sne<<endl;
    108   throw ParmError("TOI2GMap::run() - Bad sample interval");
     107  cout<<"TOI2Map::run() - Bad sample interval"<<snb<<" , "<<sne<<endl;
     108  throw ParmError("TOI2Map::run() - Bad sample interval");
    109109}
    110110if(!checkInputTOIIndex(0) || !checkInputTOIIndex(1) || !checkInputTOIIndex(2)) {
    111   cout<<"TOI2GMap::run() - Input TOI (Coord1In or Coord2In or BoloIn) not connected! "<<endl;
    112   throw ParmError("TOI2GMap::run() Output TOI (Coord1In or Coord2In or BoloIn) not connected!");
     111  cout<<"TOI2Map::run() - Input TOI (Coord1In or Coord2In or BoloIn) not connected! "<<endl;
     112  throw ParmError("TOI2Map::run() Output TOI (Coord1In or Coord2In or BoloIn) not connected!");
    113113}
    114114if( !(mTypCoorIn&TypCoordEq || mTypCoorIn&TypCoordGal) ) {
    115   cout<<"TOI2GMap::run() - Input Coordinates not Eq or Gal! "<<endl;
    116   throw ParmError("TOI2GMap::run() - Input Coordinates not Eq or Gal!");
     115  cout<<"TOI2Map::run() - Input Coordinates not Eq or Gal! "<<endl;
     116  throw ParmError("TOI2Map::run() - Input Coordinates not Eq or Gal!");
    117117}
    118118if( !(mTypCoorOut&TypCoordEq || mTypCoorOut&TypCoordGal) ) {
    119   cout<<"TOI2GMap::run() - Output Coordinates not Eq or Gal! "<<endl;
    120   throw ParmError("TOI2GMap::run() - Output Coordinates not Eq or Gal!");
     119  cout<<"TOI2Map::run() - Output Coordinates not Eq or Gal! "<<endl;
     120  throw ParmError("TOI2Map::run() - Output Coordinates not Eq or Gal!");
    121121}
    122122
     
    130130double mjd = MJDfrYear(mActualYear);
    131131
    132 cout<<"TOI2GMap::run() from "<<snb<<" to "<<sne;
     132cout<<"TOI2Map::run() from "<<snb<<" to "<<sne;
    133133#ifndef SANS_BUFFER
    134134int bufsz = 100;
     
    207207}
    208208
    209  cout<<"TOI2GMap::run(): Fin de boucle sur les sampleNum"<<endl;
     209 cout<<"TOI2Map::run(): Fin de boucle sur les sampleNum"<<endl;
    210210
    211211// Remplissage des spheres
     
    220220 }
    221221
    222  cout<<"TOI2GMap::run(): mNpixTot="<<mMap->NbPixels()
     222 cout<<"TOI2Map::run(): mNpixTot="<<mMap->NbPixels()
    223223     <<"  mNpixFill="<<mNpixFill
    224224     <<"  mNSnFill="<<mNSnFill<<endl
     
    235235//---------------------------------------------------------
    236236} catch (PException & exc) {
    237   cout<<"TOI2GMap: Catched Exception "<<(string)typeid(exc).name()
     237  cout<<"TOI2Map: Catched Exception "<<(string)typeid(exc).name()
    238238      <<"\n .... Msg= "<<exc.Msg()<<endl;
    239239}
Note: See TracChangeset for help on using the changeset viewer.