// ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL // Eric Aubourg // Christophe Magneville // Reza Ansari // $Id: map2toi.cc,v 1.12 2002-05-31 15:49:00 ansari Exp $ #include "toimanager.h" #include "pexceptions.h" #include "ctimer.h" #include "map2toi.h" // La valeur "Pi" doit etre celle de smathconst.h a cause du test sur theta #include "smathconst.h" //////////////////////////////////////////////////////////////////////// Map2TOI::Map2TOI(SphereHEALPix& sph) : mSph(sph), totnscount(0) { SetBad(); SetEquinox(); SetCoorIn(); SetCoorMap(); } Map2TOI::~Map2TOI() { } //////////////////////////////////////////////////////////////////////// void Map2TOI::Print(::ostream & os) { os<<"Map2TOI::Print -- Sphere NLat = "<sne) { cout<<"Map2TOI::run() - Bad sample interval"<=2*Pi || theta<0. || theta>Pi) {BadCoorRange++; flg = mBadFlag; } if(!flg) { bolo = mSph(theta,phi); mSnFilled++; } if(connected_Coord1Out) putData(0,k,coord1,flg); if(connected_Coord2Out) putData(1,k,coord2,flg); putData(2,k,bolo,flg); totnscount++; } cout<<"TOI2Map::run: Samples Read "<