//#define TOISEQBUFFERED #include #include "toi.h" #include "toiprocessor.h" #include "fitstoirdr.h" #include "fitstoiwtr.h" #include "toimanager.h" #ifdef TOISEQBUFFERED #include "toiseqbuff.h" #else #include "toisegment.h" #endif #include "sambainit.h" #include "map2toi.h" #include "fitsspherehealpix.h" #include "timing.h" #include void usage(void); void usage(void) { cout<<"tstmap2toi [-h] [-p lp] [-s samplemin,samplemax] [-w data_window_size]"<=sdeb) mgr->setRequestedSample(sdeb,sfin); else {cout<<"Bad sample interval "<=narg) {usage(); exit(2);} char * fitsin_point = arg[optind]; string const fitsphere = arg[optind+1]; char * fitsout = arg[optind+2]; cout<<">>>> tstmap2toi:"< sph; FitsInFile sfits(fitsphere); sfits >> sph; cout<<"SphereHEALPix: Type de map : "<>>> Using TOISeqBuffered"<>>> Using TOISegmented"<setDebugLevel(1); rfits.addOutput(label_coord1,toicoord1in); m2toi.addInput("Coord1In",toicoord1in); #ifdef TOISEQBUFFERED TOISeqBuffered * toicoord1out = new TOISeqBuffered("toi_coord1_out",width); #else TOISegmented * toicoord1out = new TOISegmented("toi_coord1_out",width); #endif m2toi.addOutput("Coord1Out",toicoord1out); wfits.addInput(label_coord1,toicoord1out); #ifdef TOISEQBUFFERED TOISeqBuffered * toicoord2in = new TOISeqBuffered("toi_coord2_in",width); #else TOISegmented * toicoord2in = new TOISegmented("toi_coord2_in",width); #endif // toicoord2in->setDebugLevel(1); rfits.addOutput(label_coord2,toicoord2in); m2toi.addInput("Coord2In",toicoord2in); #ifdef TOISEQBUFFERED TOISeqBuffered * toicoord2out = new TOISeqBuffered("toi_coord2_out",width); #else TOISegmented * toicoord2out = new TOISegmented("toi_coord2_out",width); #endif m2toi.addOutput("Coord2Out",toicoord2out); wfits.addInput(label_coord2,toicoord2out); #ifdef TOISEQBUFFERED TOISeqBuffered * toibolout = new TOISeqBuffered("toi_bolo_out",width); #else TOISegmented * toibolout = new TOISegmented("toi_bolo_out",width); #endif // toibolout->setDebugLevel(1); m2toi.addOutput("BoloOut",toibolout); wfits.addInput(label_bolomuv,toibolout); // Run cout<<"----- FITSReaderTOI::PrintStatus() : -----"<1) for(int jjjj=0;jjjj<5;jjjj++) { // cout<<*toicoord1in; // cout<<*toibolout; // sleep(2); //} // Affichage de l'avancement des TOIProcessors //ProcSampleCounter stats(rfits); //stats.InfoMessage() = "tstmap2toi/Info"; //stats.PrintStats(); mgr->joinAll(); PrtTim("End threads"); //-------------------------------------------------------------------- } catch (PThrowable & exc) { cout<<"\ntstmap2toi: Catched Exception \n"<<(string)typeid(exc).name() <<" - Msg= "<