Changeset 9352 for trunk/MagicSoft
- Timestamp:
- 02/19/09 20:09:42 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9351 r9352 67 67 - clean isolated pixels away before calculating image parameters 68 68 - don't clean calibration runs 69 - correct displayed az ba magnetic field 70 71 * readcorsika.cc: 72 - implemented -ff option 73 74 * mcorsika/MCorsikaRunHeader.cc: 75 - improved Print output 76 77 * mimage/MImgCleanStd.cc: 78 - fixed the checks for the cleaning parameters there 79 where some wrong conditions 80 81 * msim/MSimMMCS.cc: 82 - fixed typo in a comment 69 83 70 84 -
trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.cc
r9348 r9352 261 261 262 262 *fLog << "MagneticField: X/Z=(" << fMagneticFieldX << "/"; 263 *fLog << fMagneticFieldZ << ") Az=" << fMagneticFieldAz*TMath::RadToDeg() << "deg" << endl;263 *fLog << fMagneticFieldZ << ")" << UTF8::kMu << "T Az=" << fMagneticFieldAz*TMath::RadToDeg() << "deg (magnetic North w.r.t. North)" << endl; 264 264 265 265 *fLog << "Spectrum: Slope=" << fSlopeSpectrum << " (" << fEnergyMin << "GeV-" << fEnergyMax << "GeV)" << endl; … … 267 267 268 268 if (fViewConeOuterAngle>0) 269 *fLog << "ViewCone: " << fViewConeInnerAngle << "deg-" << fViewConeOuterAngle << "deg"<< endl;269 *fLog << "ViewCone: " << fViewConeInnerAngle << UTF8::kDeg << "-" << fViewConeOuterAngle << UTF8::kDeg << endl; 270 270 271 271 if (fZdMax>=0) 272 272 { 273 *fLog << "Zd/Az: " << fZdMin << "deg";273 *fLog << "Zd/Az: " << fZdMin << UTF8::kDeg; 274 274 if (fZdMin==fZdMax) 275 275 *fLog << " (fixed)"; 276 276 else 277 *fLog << "-" << fZdMax << "deg";278 *fLog << " / " << fAzMin << "deg";277 *fLog << "-" << fZdMax << UTF8::kDeg; 278 *fLog << " / " << fAzMin << UTF8::kDeg; 279 279 if (fAzMin==fAzMax) 280 280 *fLog << " (fixed)"; 281 281 else 282 *fLog << "-" << fAzMax << "deg"; 283 *fLog << endl; 284 } 285 286 *fLog << "Atm.Coeff A: "; 287 for (int i=0; i<5; i++) 288 *fLog << " " << fAtmosphericCoeffA[i]; 289 *fLog << endl; 290 *fLog << "Atm.Coeff B: "; 291 for (int i=0; i<5; i++) 292 *fLog << " " << fAtmosphericCoeffB[i]; 293 *fLog << endl; 294 *fLog << "Atm.Coeff C: "; 295 for (int i=0; i<5; i++) 296 *fLog << " " << fAtmosphericCoeffC[i]; 297 *fLog << endl; 282 *fLog << "-" << fAzMax << UTF8::kDeg; 283 *fLog << " w.r.t. magnetic North." << endl; 284 } 298 285 299 286 *fLog << "Options used: "; … … 315 302 *fLog << " SLANT"; 316 303 *fLog << endl; 317 } 318 304 305 *fLog << "Atm.Coeff A: "; 306 for (int i=0; i<5; i++) 307 *fLog << " " << fAtmosphericCoeffA[i]; 308 *fLog << endl; 309 *fLog << "Atm.Coeff B: "; 310 for (int i=0; i<5; i++) 311 *fLog << " " << fAtmosphericCoeffB[i]; 312 *fLog << endl; 313 *fLog << "Atm.Coeff C: "; 314 for (int i=0; i<5; i++) 315 *fLog << " " << fAtmosphericCoeffC[i]; 316 *fLog << endl; 317 318 } 319 -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r8646 r9352 775 775 } 776 776 777 if (fKeepIsolatedPixels && f TimeLvl2<fCleanLvl1)777 if (fKeepIsolatedPixels && fCleanLvl0<fCleanLvl1) 778 778 { 779 779 *fLog << warn << "WARNING - fKeepIsolatedPixels set but CleanLvl0 (" << fTimeLvl2 << ") < fCleanLvl1 (" << fCleanLvl1 << ")... resetting fTimeLvl2." << endl; 780 780 fTimeLvl2 = fCleanLvl1; 781 781 } 782 if (!fKeepIsolatedPixels && f TimeLvl2>fCleanLvl1)782 if (!fKeepIsolatedPixels && fCleanLvl0>fCleanLvl1) 783 783 { 784 784 *fLog << warn << "WARNING - fKeepIsolatedPixels not set but CleanLvl0 (" << fTimeLvl2 << ") > fCleanLvl1 (" << fCleanLvl1 << ")... setting fKeepIsolatedCorePixels." << endl; -
trunk/MagicSoft/Mars/mjobs/MJSimulation.cc
r9351 r9352 194 194 hist.InitTitle("FirstInteractionHeight;h [km]"); 195 195 196 hist.AddHist(" MCorsikaEvtHeader.fAz*TMath::RadToDeg()", "MCorsikaEvtHeader.fZd*TMath::RadToDeg()");196 hist.AddHist("(MCorsikaEvtHeader.fAz+MCorsikaRunHeader.fMagneticFieldAz)*TMath::RadToDeg()", "MCorsikaEvtHeader.fZd*TMath::RadToDeg()"); 197 197 hist.InitName("SkyOrigin;Az;Zd"); 198 198 hist.InitTitle("Sky Origin;Az [deg];Zd [deg]"); -
trunk/MagicSoft/Mars/msim/MSimMMCS.cc
r9336 r9352 177 177 static_cast<MMcEvtBasic&>(*fMcEvt) = *fMcEvtBasic; 178 178 179 // Convert from corsika fra nme to telescope frame, taking179 // Convert from corsika frame to telescope frame, taking 180 180 // the magnetic field into account: tel = corsika+offset 181 181 fMcEvt->SetTheta(fEvtHeader->GetZd()); -
trunk/MagicSoft/Mars/readcorsika.cc
r9228 r9352 40 40 gLog << " readcorsika [-h] [-?] [-vn] [-dec] [-a0] inputfile[.raw]" << endl << endl; 41 41 gLog << " input file: Magic DAQ binary file." << endl; 42 gLog << " -ff Force reading of file even if problems occur" << endl; 42 43 gLog.Usage(); 43 44 // gLog << " -f: force reading of runheader" << endl; … … 70 71 const Int_t kCompLvl = arg.GetIntAndRemove("--comp=", 1); 71 72 const Bool_t kForce = arg.HasOnlyAndRemove("-f"); 73 const Bool_t kForceRd = arg.HasOnlyAndRemove("-ff"); 72 74 73 75 // … … 145 147 // 146 148 MCorsikaRead read(kNamein); 149 read.SetForceMode(kForceRd); 147 150 tasks.AddToList(&read); 148 151
Note:
See TracChangeset
for help on using the changeset viewer.