Changeset 18569 for trunk/Mars/mcorsika
- Timestamp:
- 09/03/16 20:40:27 (8 years ago)
- Location:
- trunk/Mars/mcorsika
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcorsika/MCorsikaEvtHeader.cc
r15365 r18569 44 44 #include <fstream> 45 45 46 #include "fits.h" 47 46 48 #include <TMath.h> 47 49 … … 196 198 return fInFormat->Eof() ? kERROR : kTRUE; 197 199 } 200 201 Bool_t MCorsikaEvtHeader::SetupFits(fits &fin) 202 { 203 if (!fin.SetRefAddress("MCorsikaEvtHeader.fEvtNumber", fEvtNumber )) return kFALSE; 204 if (!fin.SetRefAddress("MCorsikaEvtHeader.fNumReuse", fNumReuse )) return kFALSE; 205 if (!fin.SetRefAddress("MCorsikaEvtHeader.fTotalEnergy", fTotalEnergy )) return kFALSE; 206 if (!fin.SetRefAddress("MCorsikaEvtHeader.fStartAltitude", fStartAltitude )) return kFALSE; 207 if (!fin.SetRefAddress("MCorsikaEvtHeader.fFirstTargetNum", fFirstTargetNum )) return kFALSE; 208 if (!fin.SetRefAddress( "CorsikaEvtHeader.fFirstInteractionHeight", fFirstInteractionHeight )) return kFALSE; 209 if (!fin.SetRefAddress("MCorsikaEvtHeader.fMomentumX", fMomentumX )) return kFALSE; 210 if (!fin.SetRefAddress("MCorsikaEvtHeader.fMomentumY", fMomentumY )) return kFALSE; 211 if (!fin.SetRefAddress("MCorsikaEvtHeader.fMomentumZ", fMomentumZ )) return kFALSE; 212 if (!fin.SetRefAddress("MCorsikaEvtHeader.fZd", fZd )) return kFALSE; 213 if (!fin.SetRefAddress("MCorsikaEvtHeader.fAz", fAz )) return kFALSE; 214 if (!fin.SetRefAddress("MCorsikaEvtHeader.fX", fX )) return kFALSE; 215 if (!fin.SetRefAddress("MCorsikaEvtHeader.fY", fY )) return kFALSE; 216 if (!fin.SetRefAddress("MCorsikaEvtHeader.fWeightedNumPhotons", fWeightedNumPhotons )) return kFALSE; 217 218 return kTRUE; 219 } -
trunk/Mars/mcorsika/MCorsikaEvtHeader.h
r10060 r18569 83 83 Int_t ReadEvtEnd(MCorsikaFormat *informat); // read in event end block 84 84 85 Bool_t SetupFits(fits &fin); 86 85 87 ClassDef(MCorsikaEvtHeader, 3) // Parameter Conatiner for raw EVENT HEADER 86 88 };
Note:
See TracChangeset
for help on using the changeset viewer.