Ignore:
Timestamp:
02/07/09 16:11:57 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msim/MPhotonEvent.cc

    r9243 r9301  
    213213}
    214214
     215Int_t MPhotonEvent::GetNumExternal() const
     216{
     217    Int_t n=0;
     218
     219    for (int i=0; i<GetNumPhotons(); i++)
     220        if ((*this)[i].GetPrimary()!=MMcEvtBasic::kNightSky)
     221            n++;
     222
     223    return n;
     224}
     225
    215226// --------------------------------------------------------------------------
    216227//
  • trunk/MagicSoft/Mars/msim/MPhotonEvent.h

    r9239 r9301  
    7878    // Getter/Setter
    7979    Int_t GetNumPhotons() const { return fData.GetEntriesFast(); }
     80    Int_t GetNumExternal() const;
    8081
    8182    TClonesArray &GetArray() { return fData; }
Note: See TracChangeset for help on using the changeset viewer.