Changeset 10060 for trunk/Mars/mcorsika/MCorsikaEvtHeader.h
- Timestamp:
- 11/29/10 14:24:23 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcorsika/MCorsikaEvtHeader.h
r9943 r10060 21 21 UInt_t fEvtNumber; // Event number 22 22 UInt_t fNumReuse; // Counter of the reuse of the same shower 23 UInt_t fTotReuse; //! number of reuse of the same shower 23 24 // UInt_t fParticleID; // Particle ID (see MMcEvtBasic or CORSIKA manual) 24 25 Float_t fTotalEnergy; // [GeV] … … 51 52 UInt_t GetEvtNumber() const { return fEvtNumber; } 52 53 UInt_t GetNumReuse() const { return fNumReuse; } 54 UInt_t GetTotReuse() const { return fTotReuse; } 53 55 // UInt_t GetParticleID() const { return fParticleID; } 54 56 … … 67 69 Double_t GetImpact() const; 68 70 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 69 76 void IncNumReuse() { fNumReuse++; } 70 void ResetNumReuse() { fNumReuse= (UInt_t)-1; }77 void ResetNumReuse() { fNumReuse=0; } 71 78 72 79 void InitXY() { fX=fTempY[fNumReuse]; fY=-fTempX[fNumReuse]; } 73 80 void AddXY(Float_t x, Float_t y) { fX+=x; fY+=y; } 74 81 75 Int_t ReadEvt( MCorsikaFormat *informat);// read in event header block82 Int_t ReadEvt(Float_t * f); // read in event header block 76 83 Int_t ReadEvtEnd(MCorsikaFormat *informat); // read in event end block 77 84
Note:
See TracChangeset
for help on using the changeset viewer.