Changeset 1714 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Oct 20, 2001, 9:01:05 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tstdemopipe.cc
r1699 r1714 346 346 void crefits(void) 347 347 { 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; 351 351 FitsABTWriter fw1("!demo1.fits",BINARY_TBL); 352 352 fw1.SetExtName("MON_EXTENSION1"); … … 356 356 fw1.AddCol("boloMuV_20",NULL,"double",TDOUBLE); 357 357 //fw1.AddCol("fg_boloMuV_20",NULL,"UInt_8Flag",TLONG); 358 for( inti=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); 360 360 fw1.Write(1,i,10.+NorRand()); 361 361 fw1.Write(2,i,((frand01()<0.5) ? 1: 0)); // 1 pt/10 flaggue … … 369 369 fw2.AddCol("boloMuV_30",NULL,"double",TDOUBLE); 370 370 fw2.AddCol("fg_boloMuV_30",NULL,"UInt_8Flag",TLONG); 371 for( inti=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); 373 373 fw2.Write(1,i,30.+NorRand()); 374 374 fw2.Write(2,i,((frand01()<0.5) ? 4: 0));
Note:
See TracChangeset
for help on using the changeset viewer.