Changeset 1714 in Sophya for trunk


Ignore:
Timestamp:
Oct 20, 2001, 9:01:05 PM (24 years ago)
Author:
cmv
Message:

modifs mineures cmv 20/10/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/tstdemopipe.cc

    r1699 r1714  
    346346void crefits(void)
    347347{
    348  const int nro = 500000;
    349  const int sn1 = 100001;
    350  const int sn2 = 100001+100;
     348 const long nro = 500000;
     349 const long sn1 = 1000001;
     350 const long sn2 = 1000001+100;
    351351 FitsABTWriter fw1("!demo1.fits",BINARY_TBL);
    352352    fw1.SetExtName("MON_EXTENSION1");
     
    356356    fw1.AddCol("boloMuV_20",NULL,"double",TDOUBLE);
    357357    //fw1.AddCol("fg_boloMuV_20",NULL,"UInt_8Flag",TLONG);
    358     for(int i=0;i<nro;i++) {
    359       fw1.Write(0,i,sn1+i);
     358    for(long i=0;i<nro;i++) {
     359      fw1.Write(0,i,(double) sn1+i);
    360360      fw1.Write(1,i,10.+NorRand());
    361361      fw1.Write(2,i,((frand01()<0.5) ? 1: 0)); // 1 pt/10 flaggue
     
    369369    fw2.AddCol("boloMuV_30",NULL,"double",TDOUBLE);
    370370    fw2.AddCol("fg_boloMuV_30",NULL,"UInt_8Flag",TLONG);
    371     for(int i=0;i<nro;i++) {
    372       fw2.Write(0,i,sn2+i);
     371    for(long i=0;i<nro;i++) {
     372      fw2.Write(0,i,(double) sn2+i);
    373373      fw2.Write(1,i,30.+NorRand());
    374374      fw2.Write(2,i,((frand01()<0.5) ? 4: 0));
Note: See TracChangeset for help on using the changeset viewer.