Ignore:
Timestamp:
05/12/15 19:33:34 (10 years ago)
Author:
dbaack
Message:
Fixed bug with non cleared "PhotonEvent"
Location:
branches/Corsika7405Compatibility/msim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Corsika7405Compatibility/msim/MSimAtmosphere.cc

    r9429 r18180  
    786786Int_t MSimAtmosphere::Process()
    787787{
     788        std::cout << "MSimAtmo with " << fEvt->GetNumPhotons() << std::endl;
     789
    788790    // Get the number of photons in the list
    789791    const Int_t num = fEvt->GetNumPhotons();
     
    792794    //         * upgoing particles
    793795    //         * Can we take the full length until the camera into account?
     796
     797        bool tmpWeight = false;
     798        for (int i = 0; i < fEvt->GetNumPhotons(); i++) {
     799
     800                const MPhotonData &ph = (*fEvt)[i];
     801                if (ph.GetWeight() != 1)
     802                        tmpWeight = true;
     803        }
     804        if (tmpWeight)
     805                std::cout << "MSimAtmo Photon weight != 1 \a\a" << std::endl;
     806
    794807
    795808    // Counter for number of total and final events
     
    814827    // Now we shrink the array to the number of new entries.
    815828    fEvt->Shrink(cnt);
     829
    816830
    817831    return kTRUE;
  • branches/Corsika7405Compatibility/msim/MSimMMCS.cc

    r9937 r18180  
    191191Int_t MSimMMCS::Process()
    192192{
     193        std::cout << "MSimMMCS " << std::endl;
     194
    193195    fMcEvtBasic->SetEnergy(fEvtHeader->GetTotalEnergy());
    194196    fMcEvtBasic->SetImpact(fEvtHeader->GetImpact());
Note: See TracChangeset for help on using the changeset viewer.