Changeset 18449 for trunk/Mars/msim


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/msim
Files:
2 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);
Note: See TracChangeset for help on using the changeset viewer.