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/MPhotonData.cc

    r18545 r18549  
    177177void MPhotonData::SimWavelength(Float_t wmin, Float_t wmax)
    178178{
    179     if (fWavelength>0)
    180         return;
    181 
    182179    const Double_t w = gRandom->Uniform(wmin, wmax);
    183180
     
    288285    fTime             =  f[4]/10.;              // a relative arival time [ns]
    289286    fProductionHeight =  pow(10, f[5]/1000.);   // altitude of emission a.s.l. [cm]
    290     fWavelength       =  TMath::Abs(f[7]);      // wavelength [nm]: 0 undetermined, <0 already in p.e.
     287    fWavelength       =  f[7];                  // wavelength [nm]: 0 undetermined, <0 already in p.e.
    291288
    292289    // Now reset all data members which are not in the stream
     
    370367//    gLog << "Num Photons:      " << fNumPhotons << " from " << MMcEvtBasic::GetParticleName(fPrimary) << endl;
    371368    gLog << "Origin:           " << MMcEvtBasic::GetParticleName(fPrimary) << endl;
    372     gLog << "Wavelength:       " << dec << fWavelength << "nm" << endl;
     369    gLog << "Wavelength:       " << fWavelength << "nm" << endl;
    373370    gLog << "Pos X/Y  Cos U/V: " << fPosX << "/" << fPosY << "   " << fCosU << "/" << fCosV << endl;
    374371    gLog << "Time/Prod.Height: " << fTime << "ns/" << fProductionHeight/100 << "m" << endl;
Note: See TracChangeset for help on using the changeset viewer.