Changeset 9336 for trunk/MagicSoft/Mars/mcorsika
- Timestamp:
- 02/15/09 13:24:59 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mcorsika
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcorsika/MCorsikaEvtHeader.cc
r9308 r9336 121 121 // Pointing along particle direction 122 122 // (x=east, y=north, z=upwards) 123 fMomentumX = -f[7];124 fMomentumY = 123 fMomentumX = f[7]; 124 fMomentumY = -f[6]; 125 125 fMomentumZ = -f[8]; 126 126 … … 136 136 } 137 137 138 //fX = f[97]; 139 //fY = f[117]; 140 141 fX = f[117]; 142 fY = -f[97]; 138 fX = f[117]; //fX = f[97]; 139 fY = -f[97]; //fY = f[117]; 143 140 144 141 fin.seekg(1088-273*4, ios::cur); -
trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.cc
r9312 r9336 34 34 // + UInt_t fParticleID 35 35 // + Float_t fImpactMax 36 // + Float_t fMagneticFieldX 37 // + Float_t fMagneticFieldZ 38 // + Float_t fMagneticFieldAz 36 39 // 37 40 //////////////////////////////////////////////////////////////////////////// … … 86 89 fRunStart.SetCorsikaTime(f[1]); 87 90 88 fProgramVersion = f[2]; //FIXME: INT???91 fProgramVersion = f[2]; 89 92 fNumObsLevel = TMath::Nint(f[3]); 90 93 … … 149 152 fParticleID = TMath::Nint(g[1]); 150 153 151 fImpactMax = g[86]; 154 // MAGNETIC FIELD: x/z-component of earth magnetic field in muT 155 fMagneticFieldX = g[69]; // x-component ( BX) 156 fMagneticFieldZ = -g[70]; // z-component (-BZ) 157 fMagneticFieldAz = g[91]; // Azimuth angle of magnetic north expressed in telescope coordinates 152 158 153 159 fZdMin = g[79]; // lower edge of theta in ° … … 157 163 // FIXME: Correct for direction of magnetic field! 158 164 165 // Number of cherenkov detectors in x 166 // Number of cherenkov detectors in y 167 // Grid spacing x 168 // Grid spacing y 169 170 // g[93] angle between array x-direction and magnetic north 171 172 173 fImpactMax = g[86]; 174 159 175 fWavelengthMin = g[95]; // Cherenkov bandwidth lower end in nm 160 176 fWavelengthMax = g[96]; // Cherenkov bandwidth upper end in nm … … 222 238 { 223 239 *fLog << all << endl; 224 *fLog << "Run Number: " << fRunNumber << " (" << fRunStart.GetStringFmt("%d.%m.%Y") << ", V" << fProgramVersion << ")" << endl;225 *fLog << "Particle ID: " << MMcEvt::GetParticleName(fParticleID) << endl;240 *fLog << "Run Number: " << fRunNumber << " (" << fRunStart.GetStringFmt("%d.%m.%Y") << ", V" << fProgramVersion << ")" << endl; 241 *fLog << "Particle ID: " << MMcEvt::GetParticleName(fParticleID) << endl; 226 242 if (fNumEvents>0) 227 *fLog << "Num Events: " << fNumEvents << endl;228 *fLog << "Obs Level: ";243 *fLog << "Num Events: " << fNumEvents << endl; 244 *fLog << "Obs Level: "; 229 245 for (Byte_t i=0; i<fNumObsLevel; i++) 230 246 *fLog << " " << fObsLevel[i]/100. << "m"; 231 247 *fLog << endl; 232 *fLog << "Spectrum: Slope=" << fSlopeSpectrum << " (" << fEnergyMin << "GeV-" << fEnergyMax << "GeV)" << endl; 248 249 *fLog << "MagneticField: X/Z=(" << fMagneticFieldX << "/"; 250 *fLog << fMagneticFieldZ << ") Az=" << fMagneticFieldAz*TMath::RadToDeg() << "deg" << endl; 251 252 *fLog << "Spectrum: Slope=" << fSlopeSpectrum << " (" << fEnergyMin << "GeV-" << fEnergyMax << "GeV)" << endl; 233 253 234 254 if (fViewConeOuterAngle>0) 235 *fLog << "ViewCone: " << fViewConeInnerAngle << "deg-" << fViewConeOuterAngle << "deg" << endl;255 *fLog << "ViewCone: " << fViewConeInnerAngle << "deg-" << fViewConeOuterAngle << "deg" << endl; 236 256 237 257 if (fZdMax>=0) 238 258 { 239 *fLog << "Zd/Az: " << fZdMin << "deg";259 *fLog << "Zd/Az: " << fZdMin << "deg"; 240 260 if (fZdMin==fZdMax) 241 261 *fLog << " (fixed)"; -
trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.h
r9332 r9336 16 16 17 17 private: 18 UInt_t fRunNumber;// Run number19 UInt_t fParticleID;// Particle ID (see MMcEvtBasic or CORSIKA manual)20 UInt_t fNumEvents;// Number of events21 MTime fRunStart;// Date of begin (yymmdd)22 Float_t fProgramVersion;// Version of program18 UInt_t fRunNumber; // Run number 19 UInt_t fParticleID; // Particle ID (see MMcEvtBasic or CORSIKA manual) 20 UInt_t fNumEvents; // Number of events 21 MTime fRunStart; // Date of begin (yymmdd) 22 Float_t fProgramVersion; // Version of program 23 23 24 Byte_t fNumObsLevel;// Number of observation levels25 Float_t fObsLevel[10];// Observation levels [cm]24 Byte_t fNumObsLevel; // Number of observation levels 25 Float_t fObsLevel[10]; // Observation levels [cm] 26 26 27 Float_t fImpactMax;// [cm] Maximum simulated impact27 Float_t fImpactMax; // [cm] Maximum simulated impact 28 28 29 Float_t fSlopeSpectrum;// Slope of energy spectrum30 Float_t fEnergyMin;// Lower limit of energy range31 Float_t fEnergyMax;// Upper limit of energy range29 Float_t fSlopeSpectrum; // Slope of energy spectrum 30 Float_t fEnergyMin; // Lower limit of energy range 31 Float_t fEnergyMax; // Upper limit of energy range 32 32 33 Float_t fZdMin; // [rad] Zenith distance 34 Float_t fZdMax; // [rad] Zenith distance 35 Float_t fAzMin; // [rad] Azimuth (north=0; east=90) 36 Float_t fAzMax; // [rad] Azimuth (north=0; east=90) (north denotes the magnet north which is defined to be in the geografic north!) 33 Float_t fZdMin; // [rad] Zenith distance 34 Float_t fZdMax; // [rad] Zenith distance 35 Float_t fAzMin; // [rad] Azimuth (north=0; east=90) 36 Float_t fAzMax; // [rad] Azimuth (north=0; east=90) (north denotes the magnet north which is defined to be in the geografic north!) 37 38 Float_t fMagneticFieldX; // [muT] x-component of earth magnetic field (ceres coordinate system) 39 Float_t fMagneticFieldZ; // [muT] z-component of earth magnetic field (ceres coordinate system) 40 Float_t fMagneticFieldAz; // [rad] Azimuth angle of magnetic north expressed in telescope coordinates 37 41 38 42 Float_t fWavelengthMin; // [nm] Wavelength bandwidth lo edge … … 50 54 UInt_t GetNumEvents() const { return fNumEvents; } 51 55 52 UInt_t GetFormatVersion() const { return (UInt_t)fProgramVersion; } 56 const MTime &GetRunStart() const { return fRunStart; } 57 58 Float_t GetProgramVersion() const { return fProgramVersion; } 53 59 54 60 Float_t GetZdMin() const { return fZdMin; } … … 67 73 Float_t GetImpactMax() const { return fImpactMax; } 68 74 75 Float_t GetMagneticFieldX() const { return fMagneticFieldX; } 76 Float_t GetMagneticFieldZ() const { return fMagneticFieldZ; } 77 Float_t GetMagneticFieldAz() const { return fMagneticFieldAz; } 78 69 79 Float_t GetViewConeOuterAngle() const { return fViewConeOuterAngle; } 70 80 Bool_t HasViewCone() const { return fViewConeOuterAngle>0; }
Note:
See TracChangeset
for help on using the changeset viewer.