Changeset 1849
- Timestamp:
- 03/21/03 09:32:12 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 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 } -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h
r1809 r1849 1 1 #ifndef MARS_MCT1ReadPreProc 2 2 #define MARS_MCT1ReadPreProc 3 4 #ifndef ROOT_TArrayF 5 #include <TArrayF.h> 6 #endif 3 7 4 8 #ifndef MARS_MRead … … 36 40 MSrcPosCam *fSrcPos; // source position in the camera 37 41 MBlindPixels *fBlinds; // Array holding blind pixels 38 MRawRunHeader *fRawRunHeader; // raw run header 39 MTaskList *fTaskList; // task list 40 MParList *fParList; // parameter list 42 MRawRunHeader *fRawRunHeader; // raw run header 43 MParList *fParList; // parameter list 41 44 42 45 Bool_t fIsMcFile; // Flag whether current run is a MC run … … 48 51 UInt_t fNumFilterEvts; // number of events mentioned in the runs footers 49 52 50 Float_t savePedRMS[127];53 TArrayF fPedRMS; 51 54 52 55
Note:
See TracChangeset
for help on using the changeset viewer.