Ignore:
Timestamp:
09/02/19 20:24:03 (5 years ago)
Author:
tbretz
Message:
Possibility to simulate a Cherenkov Spectrum.
Location:
trunk/Mars/msimreflector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msimreflector/MSimRays.cc

    r19590 r19599  
    7070MSimRays::MSimRays(const char* name, const char *title)
    7171    : fEvt(0), fReflector(0), fPointPos(0), fSource(0),
    72     fNumPhotons(1000), fHeight(-1),
     72    fNumPhotons(1000), fHeight(-1), fWavelengthMin(-1), fWavelengthMax(-1),
    7373    fNameReflector("MReflector"), fNamePointPos("MPointingPos"),
    7474    fNameSource("Source")
     
    209209        dat.SetDirection(w);
    210210
     211        if (fWavelengthMin>0 && fWavelengthMax>0)
     212            dat.SimWavelength(fWavelengthMin, fWavelengthMax);
     213
    211214        idx++;
    212215    }
  • trunk/Mars/msimreflector/MSimRays.h

    r19590 r19599  
    2525    Double_t fHeight;           //[km] Height of point source (<=0 means infinity)
    2626
     27    Double_t fWavelengthMin;
     28    Double_t fWavelengthMax;
     29
    2730    TString fNameReflector;
    2831    TString fNamePointPos;
     
    4649    void SetNumPhotons(UInt_t n)  { fNumPhotons=n; }
    4750
     51    void SetWavelengthRange(Double_t min, Double_t max) { fWavelengthMin = min; fWavelengthMax = max; }
     52
    4853    // MSimRays
    4954    ClassDef(MSimRays, 0) // Task to simulate a source for rays
Note: See TracChangeset for help on using the changeset viewer.