Ignore:
Timestamp:
03/21/03 09:32:12 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r1848 r1849  
    337337    // float   frms_pedsig_phot[iMAXNUMPIX];      // standard deviation of the calibrated signals from the pedestal run */
    338338    fPedest->InitSize(iMAXNUMPIX);
     339
     340    fPedRMS.Set(iMAXNUMPIX);
     341
    339342    *fLog << "PedestalRMS : ";
    340343    for (Int_t i=0; i<iMAXNUMPIX; i++)
     
    342345        (*fPedest)[i].SetMeanRms(outpars.frms_pedsig_phot[i]);
    343346        *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];
    348348    }
    349349    *fLog << endl;
     
    383383     *         be treated further. */
    384384
    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;
    394388
    395389    // Next statement commented out because bmontecarlo was set wrongly
     
    399393                 outpars.imcparticle != 0          );
    400394
    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 ";
    402403    *fLog << (fIsMcFile ? "Monte Carlo" : "Real Data");
    403404    *fLog << " file." << endl;
     
    579580
    580581    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;
    591591        return kTRUE;
    592       }
    593 
    594 
    595 
     592    }
    596593}
    597594
     
    807804
    808805    for (Int_t i=0; i<iMAXNUMPIX; i++)
    809     {
    810         (*fPedest)[i].SetMeanRms(savePedRMS[i]);
    811     }
    812 
     806        (*fPedest)[i].SetMeanRms(fPedRMS[i]);
    813807
    814808    //  int   isecs_since_midday; // seconds passed since midday before sunset (JD of run start)
     
    932926        // an event
    933927        //
    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])
    941929            return kTRUE;
    942930
     
    945933        // must be an event
    946934        //
    947 
    948935        switch (ReadRunFooter())
    949936        {
     
    984971            return kFALSE;
    985972        }
    986 
    987         goto TONI;
    988 
    989         return kTRUE;
    990973    }
    991974}
Note: See TracChangeset for help on using the changeset viewer.