Changeset 1849 for trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
- Timestamp:
- 03/21/03 09:32:12 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r1848 r1849 337 337 // float frms_pedsig_phot[iMAXNUMPIX]; // standard deviation of the calibrated signals from the pedestal run */ 338 338 fPedest->InitSize(iMAXNUMPIX); 339 340 fPedRMS.Set(iMAXNUMPIX); 341 339 342 *fLog << "PedestalRMS : "; 340 343 for (Int_t i=0; i<iMAXNUMPIX; i++) … … 342 345 (*fPedest)[i].SetMeanRms(outpars.frms_pedsig_phot[i]); 343 346 *fLog << outpars.frms_pedsig_phot[i] << " "; 344 345 //$$$$$$$$$$$$$$$$$$$$$$$$$ 346 savePedRMS[i] = outpars.frms_pedsig_phot[i]; 347 //$$$$$$$$$$$$$$$$$$$$$$$$$ 347 fPedRMS[i] = outpars.frms_pedsig_phot[i]; 348 348 } 349 349 *fLog << endl; … … 383 383 * be treated further. */ 384 384 385 *fLog << "outpars.bmontecarlo = " << outpars.bmontecarlo << endl; 386 *fLog << "outpars.imcparticle = " << outpars.imcparticle << endl; 387 *fLog << "outpars.dsourcera_hours = " << outpars.dsourcera_hours << endl; 388 *fLog << "outpars.dsourcedec_deg = " << outpars.dsourcedec_deg << endl; 389 390 //*fLog << "File is a "; 391 //*fLog << (outpars.bmontecarlo ? "Monte Carlo" : "Real Data"); 392 //*fLog << " file." << endl; 393 385 *fLog << "Particle Id #" << outpars.imcparticle << endl; 386 *fLog << "Right Ascension: " << outpars.dsourcera_hours << "h" << endl; 387 *fLog << "Declination: " << outpars.dsourcedec_deg << "deg" << endl; 394 388 395 389 // Next statement commented out because bmontecarlo was set wrongly … … 399 393 outpars.imcparticle != 0 ); 400 394 401 *fLog << "File is a "; 395 if (fIsMcFile != (outpars.bmontecarlo==TRUE)) 396 { 397 *fLog << "File tells you that it is a "; 398 *fLog << (outpars.bmontecarlo ? "Monte Carlo" : "Real Data"); 399 *fLog << " file." << endl; 400 } 401 402 *fLog << "File detected as a "; 402 403 *fLog << (fIsMcFile ? "Monte Carlo" : "Real Data"); 403 404 *fLog << " file." << endl; … … 579 580 580 581 switch (ReadRunHeader()) 581 { 582 case kFALSE: 583 *fLog << warn << "Unable to read first run header... skipping file." << endl; 584 return kFALSE; 585 case -1: 586 *fLog << warn << "ReInit of Tasklist didn't succeed." << endl; 587 return kFALSE; 588 default: 589 *fLog << "OpenNextFile : after ReadRunHeader, FnumEventsInRun = " 590 << fNumEventsInRun << endl; 582 { 583 case kFALSE: 584 *fLog << warn << "Unable to read first run header... skipping file." << endl; 585 return kFALSE; 586 case -1: 587 *fLog << warn << "ReInit of Tasklist didn't succeed." << endl; 588 return kFALSE; 589 default: 590 *fLog << "After opening next file: Number of Events #" << fNumEventsInRun << endl; 591 591 return kTRUE; 592 } 593 594 595 592 } 596 593 } 597 594 … … 807 804 808 805 for (Int_t i=0; i<iMAXNUMPIX; i++) 809 { 810 (*fPedest)[i].SetMeanRms(savePedRMS[i]); 811 } 812 806 (*fPedest)[i].SetMeanRms(fPedRMS[i]); 813 807 814 808 // int isecs_since_midday; // seconds passed since midday before sunset (JD of run start) … … 932 926 // an event 933 927 // 934 935 // "goto TONI" was introduced in order to check for a footer record 936 // after reading a run header; this is necessary for runs with 937 // zero events after the filter 938 TONI: 939 940 if (fIn->peek()!=cEND_EVENTS_TEMPLATE[0]) 928 if (fIn->peek()!=cEND_EVENTS_TEMPLATE[0]) 941 929 return kTRUE; 942 930 … … 945 933 // must be an event 946 934 // 947 948 935 switch (ReadRunFooter()) 949 936 { … … 984 971 return kFALSE; 985 972 } 986 987 goto TONI;988 989 return kTRUE;990 973 } 991 974 }
Note:
See TracChangeset
for help on using the changeset viewer.