Ignore:
Timestamp:
01/19/03 14:52:29 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc

    r1646 r1715  
    130130Bool_t MMcCollectionAreaCalc::Process()
    131131{
    132 //    *fLog << all << fMcEvt << " " << (int)fAllEvtsTriggered << " " << fCollArea << endl;
    133     const Float_t energy = fMcEvt->GetEnergy();
    134     const Float_t impact = fMcEvt->GetImpact()/100.;
     132    const Double_t energy = fMcEvt->GetEnergy();
     133    const Double_t impact = fMcEvt->GetImpact()/100.;
     134
     135    //
     136    // This happens for camera files created with Camera 0.5
     137    //
     138    if (TMath::IsNaN(impact))
     139    {
     140        *fLog << err << dbginf << "ERROR - Impact=NaN (Not a number)... abort." << endl;
     141        return kERROR;
     142    }
    135143
    136144    if (!fAllEvtsTriggered)
Note: See TracChangeset for help on using the changeset viewer.