Changeset 18449


Ignore:
Timestamp:
03/08/16 13:27:31 (9 years ago)
Author:
ftemme
Message:
Added an additional mirrortag, so that the information which mirror was hit is not lost later in the process
Location:
trunk/Mars
Files:
3 edited

Legend:

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

    r10060 r18449  
    6363    : fPosX(0), fPosY(0), fCosU(0), fCosV(0), fTime(0), fWavelength(0),
    6464    /*fNumPhotons(1),*/ fProductionHeight(0), fPrimary(MMcEvtBasic::kUNDEFINED),
    65     fTag(-1), fWeight(1)
     65      fTag(-1), fWeight(1), fMirrorTag(-1)
    6666{
    6767   // fName  = name  ? name  : "MPhotonData";
  • trunk/Mars/msim/MPhotonData.h

    r9941 r18449  
    4343
    4444    Int_t   fTag;    //! A tag for external use
     45    Int_t   fMirrorTag;    // Tag for the mirror ID of the mirror which was hit by this photon
    4546    Float_t fWeight; //! A weight for external use
    4647
     
    108109    Int_t GetTag() const { return fTag; }
    109110
     111    void SetMirrorTag(Int_t mirrorTag) { fMirrorTag=mirrorTag; }
     112    Int_t GetMirrorTag() const { return fMirrorTag; }
     113
    110114    // TObject
    111115    //void Clear(Option_t * = NULL);
  • trunk/Mars/msimreflector/MSimReflector.cc

    r10090 r18449  
    532532        dat->SetDirection(w);
    533533
     534        // FTemme: As dat.fTag is later changed from mirror ID to pixel ID, here
     535        // also dat.fMirrorTag is set to num:
     536        dat->SetMirrorTag(num);
     537
    534538        (*fMirror3)[cnt[3]++] = *dat;
    535539        //*static_cast<MPhotonData*>(cpy3.UncheckedAt(cnt[3]++)) = *dat;
Note: See TracChangeset for help on using the changeset viewer.