Ignore:
Timestamp:
08/26/16 13:03:45 (8 years ago)
Author:
tbretz
Message:
The wavelength is now kept as a negative value so that it can be checked on the photon level if CEFFIC was turned on. It is however returned without sign for convenience. The loop to simulate the wavelength is only executed if the first photon has a zero wavelength -- it is assumed they are all consistent.
File:
1 edited

Legend:

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

    r18541 r18549  
    550550{
    551551    const UInt_t n = GetNumPhotons();
     552    if (n==0)
     553        return;
     554
     555    // Corsika has already produced and written the wavelength
     556    if (operator[](0).GetWavelength()>0)
     557        return;
    552558
    553559    for (UInt_t i=0; i<n; i++)
Note: See TracChangeset for help on using the changeset viewer.