Changeset 10167


Ignore:
Timestamp:
02/21/11 15:08:41 (14 years ago)
Author:
tbretz
Message:
Treat kArtificial in addition to kNightSky.
Location:
trunk/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msim/MHPhotonEvent.cc

    r9944 r10167  
    348348        const MPhotonData &ph = (*evt)[idx];
    349349
    350         if (ph.GetPrimary()==MMcEvtBasic::kNightSky)
     350        if (ph.GetPrimary()==MMcEvtBasic::kNightSky || ph.GetPrimary()==MMcEvtBasic::kArtificial)
    351351            continue;
    352352
  • trunk/Mars/msim/MPhotonEvent.cc

    r10060 r10167  
    402402    Int_t rc = 0;
    403403    for (int i=0; i<n; i++)
    404         if ((*this)[i].GetPrimary()!=MMcEvtBasic::kNightSky)
     404        if ((*this)[i].GetPrimary()!=MMcEvtBasic::kNightSky && (*this)[i].GetPrimary()!=MMcEvtBasic::kArtificial)
    405405            rc++;
    406406
  • trunk/Mars/msimcamera/MSimCamera.cc

    r9625 r10167  
    279279        // FIMXE: How stable is the gain?
    280280
    281         if (ph.GetPrimary()!=MMcEvt::kNightSky)
     281        if (ph.GetPrimary()!=MMcEvt::kNightSky && ph.GetPrimary()!=MMcEvt::kArtificial)
    282282            tot += ph.GetWeight();
    283283
  • trunk/Mars/msimcamera/MSimSignalCam.cc

    r9347 r10167  
    150150
    151151        // Reject photons from the night sky
    152         if (ph.GetPrimary()==MMcEvtBasic::kNightSky)
     152        if (ph.GetPrimary()==MMcEvtBasic::kNightSky || ph.GetPrimary()==MMcEvtBasic::kArtificial)
    153153            continue;
    154154
Note: See TracChangeset for help on using the changeset viewer.