Changeset 9308 for trunk/MagicSoft/Mars/mcorsika
- Timestamp:
- 02/09/09 11:30:54 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mcorsika
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcorsika/MCorsikaEvtHeader.cc
r9252 r9308 26 26 // 27 27 // MCorsikaEvtHeader 28 // 28 // 29 // Class Version 2: 30 // ---------------- 31 // - UInt_t fParticleID 32 // 33 // 29 34 ///////////////////////////////////////////////////////////////////////////// 30 35 #include "MCorsikaEvtHeader.h" … … 38 43 #include "MLogManip.h" 39 44 40 #include "MMcEvt.hxx"45 //#include "MMcEvt.hxx" 41 46 42 47 ClassImp(MCorsikaEvtHeader); … … 71 76 *fLog << all; 72 77 *fLog << "Event Number: " << dec << fEvtNumber << endl; 73 *fLog << "Particle ID: " << MMcEvt::GetParticleName(fParticleID) << endl;78 // *fLog << "Particle ID: " << MMcEvt::GetParticleName(fParticleID) << endl; 74 79 *fLog << "Energy: " << fTotalEnergy << "GeV" << endl; 75 80 *fLog << "Starting Altitude: " << fStartAltitude << "g/cm²" << endl; … … 102 107 103 108 fEvtNumber = TMath::Nint(f[0]); 104 fParticleID = TMath::Nint(f[1]);109 // fParticleID = TMath::Nint(f[1]); 105 110 106 111 fTotalEnergy = f[2]; -
trunk/MagicSoft/Mars/mcorsika/MCorsikaEvtHeader.h
r9292 r9308 18 18 private: 19 19 UInt_t fEvtNumber; // Event number 20 UInt_t fParticleID; // Particle ID (see MMcEvtBasic or CORSIKA manual)20 // UInt_t fParticleID; // Particle ID (see MMcEvtBasic or CORSIKA manual) 21 21 Float_t fTotalEnergy; // [GeV] 22 22 … … 44 44 45 45 UInt_t GetEvtNumber() const { return fEvtNumber; } 46 UInt_t GetParticleID() const { return fParticleID; }46 // UInt_t GetParticleID() const { return fParticleID; } 47 47 48 48 TVector3 GetMomentum() const { return TVector3(fMomentumX, fMomentumY, fMomentumZ); } -
trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.cc
r9229 r9308 30 30 // Root storage container for the RUN HEADER information 31 31 // 32 // Class Version 2: 33 // ---------------- 34 // + UInt_t fParticleID 35 // 32 36 //////////////////////////////////////////////////////////////////////////// 33 37 … … 39 43 #include "MLog.h" 40 44 #include "MLogManip.h" 45 46 #include "MMcEvt.hxx" 41 47 42 48 ClassImp(MCorsikaRunHeader); … … 81 87 fProgramVersion = f[2]; //FIXME: INT??? 82 88 fNumObsLevel = TMath::Nint(f[3]); 89 90 if (fNumObsLevel!=1) 91 { 92 *fLog << err << "ERROR - Currently only one observation level is allowed." << endl; 93 return kFALSE; 94 } 83 95 84 96 memset(fObsLevel, 0, 10*4); … … 127 139 fin.seekg(-274*4, ios::cur); 128 140 129 const Int_t n = TMath::Nint(g[96]); // Numb r i of uses of each cherenkov event141 const Int_t n = TMath::Nint(g[96]); // Number i of uses of each cherenkov event 130 142 if (n!=1) 131 143 { … … 133 145 return kFALSE; 134 146 } 147 148 fParticleID = TMath::Nint(g[1]); 135 149 136 150 //fImpactMax = g[86]; … … 208 222 *fLog << all << endl; 209 223 *fLog << "Run Number: " << fRunNumber << " (" << fRunStart.GetStringFmt("%d.%m.%Y") << ", V" << fProgramVersion << ")" << endl; 224 *fLog << "Particle ID: " << MMcEvt::GetParticleName(fParticleID) << endl; 210 225 if (fNumEvents>0) 211 226 *fLog << "Num Events: " << fNumEvents << endl; -
trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.h
r9212 r9308 17 17 private: 18 18 UInt_t fRunNumber; // Run number 19 UInt_t fParticleID; // Particle ID (see MMcEvtBasic or CORSIKA manual) 19 20 UInt_t fNumEvents; // Number of events 20 21 MTime fRunStart; // Date of begin (yymmdd) … … 22 23 23 24 Byte_t fNumObsLevel; // Number of observation levels 24 Float_t fObsLevel[10]; // [fNumObsLevel]Observation levels [cm]25 Float_t fObsLevel[10]; // Observation levels [cm] 25 26 26 27 Float_t fSlopeSpectrum; // Slope of energy spectrum … … 56 57 Float_t GetWavelengthMax() const { return fWavelengthMax; } 57 58 59 UInt_t GetParticleID() const { return fParticleID; } 60 58 61 //Float_t GetImpactMax() const { return fImpactMax; } 59 62 … … 68 71 Bool_t SeekEvtEnd(istream &fin); 69 72 70 ClassDef(MCorsikaRunHeader, 1) // storage container for general info73 ClassDef(MCorsikaRunHeader, 2) // storage container for general info 71 74 }; 72 75 #endif
Note:
See TracChangeset
for help on using the changeset viewer.