Ignore:
Timestamp:
11/29/10 14:24:23 (14 years ago)
Author:
rohlfs
Message:
two new command line arguments of readcorsika: -A=arrayNo and -T=telescopeNo. New design of program flow in MCorsikaRead: It is now determined by the order of the data blocks in the input file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcorsika/MCorsikaEvtHeader.h

    r9943 r10060  
    2121    UInt_t   fEvtNumber;              // Event number
    2222    UInt_t   fNumReuse;               // Counter of the reuse of the same shower
     23    UInt_t   fTotReuse;               //! number of reuse of the same shower     
    2324//    UInt_t   fParticleID;             // Particle ID (see MMcEvtBasic or CORSIKA manual)
    2425    Float_t  fTotalEnergy;            // [GeV]
     
    5152    UInt_t GetEvtNumber() const { return fEvtNumber; }
    5253    UInt_t GetNumReuse() const { return fNumReuse; }
     54    UInt_t GetTotReuse() const { return fTotReuse; }
    5355//    UInt_t GetParticleID() const { return fParticleID; }
    5456
     
    6769    Double_t GetImpact() const;
    6870
     71    void GetArrayOffset(Int_t arrayIdx, Float_t & xArrOff, Float_t & yArrOff)
     72                     {xArrOff = fTempY[arrayIdx]; yArrOff=-fTempX[arrayIdx]; }
     73    void SetTelescopeOffset(Int_t arrayIdx, Float_t xTelOff, Float_t yTelOff)
     74                     {fNumReuse = arrayIdx; fX = xTelOff; fY = yTelOff;}
     75
    6976    void IncNumReuse() { fNumReuse++; }
    70     void ResetNumReuse() { fNumReuse=(UInt_t)-1; }
     77    void ResetNumReuse() { fNumReuse=0; }
    7178
    7279    void InitXY() { fX=fTempY[fNumReuse]; fY=-fTempX[fNumReuse]; }
    7380    void AddXY(Float_t x, Float_t y) { fX+=x; fY+=y; }
    7481
    75     Int_t ReadEvt(MCorsikaFormat *informat);    // read in event header block
     82    Int_t ReadEvt(Float_t * f);                 // read in event header block
    7683    Int_t ReadEvtEnd(MCorsikaFormat *informat); // read in event end block
    7784
Note: See TracChangeset for help on using the changeset viewer.