Changeset 19947 for trunk/Mars


Ignore:
Timestamp:
04/23/20 17:48:20 (5 years ago)
Author:
tbretz
Message:
Added fRunNumber to MMcEvt for convenience, accordingly increased version number, pipe MCorsikaRunHeader::fRunNumber to MMcEvt.
Location:
trunk/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mmc/MMcEvt.cxx

    r18571 r19947  
    5656//  - moved fTheta to MmcEvtBasic
    5757//
     58// Version 8:
     59//  - added fRunNumber
     60//
    5861/////////////////////////////////////////////////////////////////////////////
    5962#include "MMcEvt.hxx"
     
    102105               UInt_t   uiPelS,    UInt_t   uiPelC,    Float_t  elec,
    103106               Float_t  muon,      Float_t  other,     Float_t  fadc_jitter,
    104                Int_t    reuse)
     107               Int_t    reuse) : fRunNumber(0)
    105108{
    106109    fName  = "MMcEvt";
  • trunk/Mars/mmc/MMcEvt.hxx

    r18556 r19947  
    1010{
    1111private:
     12    UInt_t  fRunNumber;          // [fits: name=RunNum   ; unit=uint32]
    1213    UInt_t  fEvtNumber;          // [fits: name=EventNum ; unit=uint32]
    1314    Float_t fThick0;             // [g/cm2]
     
    102103    void SetCoreY(Float_t CoreY) { fCoreY=CoreY; }                //Set Core y pos
    103104
     105    void SetRunNumber(UInt_t n) { fRunNumber=n; }
    104106    void SetEvtNumber(UInt_t n) { fEvtNumber=n; }
    105107    void SetEventReuse(UInt_t n) { fEventReuse=n; }
     
    120122    void Clear(Option_t *opt=NULL);
    121123
    122     ClassDef(MMcEvt, 7)  //Stores Montecarlo Information of one event (eg. the energy)
     124    ClassDef(MMcEvt, 8)  //Stores Montecarlo Information of one event (eg. the energy)
    123125};
    124126
  • trunk/Mars/msim/MSimMMCS.cc

    r9937 r19947  
    210210
    211211
     212    fMcEvt->SetRunNumber(fRunHeader->GetRunNumber());
    212213    fMcEvt->SetEvtNumber(fEvtHeader->GetEvtNumber());
    213214    fMcEvt->SetEventReuse(fEvtHeader->GetNumReuse());
Note: See TracChangeset for help on using the changeset viewer.