Changeset 2047 in Sophya for trunk/ArchTOIPipe/TestPipes


Ignore:
Timestamp:
Jun 10, 2002, 10:03:24 AM (23 years ago)
Author:
ansari
Message:

Ajout programme toistat.cc - TOI 2 StatNTuple(Mean-sigma) - Reza 10/6/2002

Location:
trunk/ArchTOIPipe/TestPipes
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/SMakefile

    r2019 r2047  
    3232endif
    3333ifeq ($(MACHEROS),Linux)
    34 LIBS := $(LIBS) -ldl -lf2c
     34LIBS := $(LIBS) -ldl
    3535endif
    3636
     
    6767        ../cleantstpipes.csh
    6868
    69 all :  mesovh mesovh2 tsttoi2map simtst simofftst aksj02 tstmap2toi
     69all :  mesovh mesovh2 tsttoi2map simtst simofftst aksj02 tstmap2toi toistat
  • trunk/ArchTOIPipe/TestPipes/aksj02.cc

    r2036 r2047  
    4242         << "         [-dbg] [-wtoi sz] [-wclean wsz,nbw] [-range min,max] \n"
    4343         << "         [-soff wsz,nptfit,degpol] [-soffnt PPFName] \n"
    44          << "         [-bgalcut bmin,bmax] [-bgal toiname] [-bgalfile pointFitsName] \n"
    4544         << "         [-soff2 wsz,nptfit,degpol] [-soff2nt PPFName] \n"
    46          << "         [-bgal2cut bmin,bmax] \n"
     45         << "         [-bgal toiname] [-bgalfile pointFitsName] [-bgalnf N]\n"
     46         << "         [-bgal toiname] [-bgalfile pointFitsName] \n"
     47         << "         [-bgalcut bmin,bmax]  [-bgal2cut bmin,bmax] \n"
    4748         << "         [-gfilt wsz,sigma] \n"
    4849         << "         [-nooutflg] [-wrtms] [-wrtifo] [-prstat] [-useseqbuff] \n"
     
    6162         << "   -bgal toiname: Galactic latitude toiname \n"
    6263         << "   -bgalfile pointFitsName: Pointing FITS file name (for gal. latitude) \n"
     64         << "   -bgalnf n: Number of bgalfiles pointFitsName%d.fits \n"
    6365         << "   -soff2 wsz,nptfit,degpol : set SimpleOffsetEstimator_2 parameters\n"
    6466         << "   -soff2nt PPFName : Writes out SimpleOffsetEstimator_2 NTuple \n"
     
    106108
    107109  // cleaner parameters
    108   double clean_wsz = 256;
    109   double clean_nbw = 5;
     110  int clean_wsz = 256;
     111  int clean_nbw = 5;
    110112
    111113  // SimpleOffsetEstimator parameters
     
    139141  double bmax2 = 10.;
    140142  bool bgal2cut = false;
     143  int bgalNbFiles = 0;
    141144
    142145  // File names
     
    222225      ia++;
    223226    }
     227    else if (strcmp(arg[ia],"-bgalnf") == 0) {
     228      if (ia == narg-1) Usage(true);
     229      bgalNbFiles = atoi(arg[ia+1]);
     230      ia++;
     231    }
    224232    else if (strcmp(arg[ia],"-bgal") == 0) {
    225233      if (ia == narg-1) Usage(true);
     
    307315    FITSTOIReader* rbgal = NULL;
    308316    if (bgalfile) {  // if Galactic cut
    309       cout << "> Creating bgal FITSTOIReader object - InFile=" << pointfile
     317      string pointfileI = pointfile;
     318      MuTyV numf=0;
     319      if(bgalNbFiles > 0) {
     320        pointfileI += (string)numf + ".fits";
     321      }
     322      cout << "> Creating bgal FITSTOIReader object - InFile=" << pointfileI
    310323           << " bgaltoiname= " << bgaltoi << endl;
    311       rbgal = new FITSTOIReader(pointfile);
     324      rbgal = new FITSTOIReader(pointfileI);
     325      if(bgalNbFiles > 0)
     326        for(int kff=1; kff<bgalNbFiles; kff++) {
     327          numf=kff;
     328          pointfileI = pointfile;
     329          pointfileI += (string)numf + ".fits";
     330          cout << " bgal FITSTOIReader.addFile( " << pointfileI << " )" << endl;
     331          rbgal->addFile( pointfileI );
     332        }
     333     
    312334    }
    313335   
Note: See TracChangeset for help on using the changeset viewer.