Changeset 8674 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 08/18/07 12:04:44 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc
r8673 r8674 183 183 MH::SetBinning(&fHistAll, &binst, &binse); 184 184 185 fMcAreaRadius = -1; 185 fMcAreaRadius = -1; 186 fCorsikaVersion = 0; 186 187 187 188 return kTRUE; … … 205 206 206 207 if (fCorsikaVersion!=0 && fCorsikaVersion!=runheader->GetCorsikaVersion()) 207 *fLog << warn << "Warning - Read files have different Corsika versions..." << endl; 208 { 209 *fLog << warn; 210 *fLog << "Warning - Read files have different Corsika versions..." << endl; 211 *fLog << " Last file=" << fCorsikaVersion << " New file=" << runheader->GetCorsikaVersion() << endl; 212 } 208 213 fCorsikaVersion = runheader->GetCorsikaVersion(); 209 214 … … 285 290 // GetCollectionAreaAbs(), fMcAreaRadius); 286 291 const TString txt = Form("r_{max}=%.0fm --> A_{max}=%.0fm^{2}", 287 GetCollectionAreaAbs(), fMcAreaRadius);292 fMcAreaRadius, GetCollectionAreaAbs()); 288 293 289 294 TLatex text(0.31, 0.95, txt); -
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r8047 r8674 254 254 // are equal only fNorm is returned. 255 255 // 256 // The normalization constant is returned as %.16 f256 // The normalization constant is returned as %.16e 257 257 // 258 258 // Example: 0.3712780019*(pow(MMcEvt.fEnergy,-2.270))/(pow(MMcEvt.fEnergy,-2.600)) … … 261 261 { 262 262 if (GetFormulaSpecOld()==GetFormulaSpecNew()) 263 return Form("%.16 f", fNorm);263 return Form("%.16e", fNorm); 264 264 265 265 const Double_t iold = fNormEnergy<0 ? GetSpecOldIntegral() : CalcSpecOld(fNormEnergy); … … 268 268 const Double_t norm = fNorm*iold/inew; 269 269 270 return Form("%.16 f*(%s)/(%s)", norm, GetFormulaSpecNew().Data(), GetFormulaSpecOld().Data());270 return Form("%.16e*(%s)/(%s)", norm, GetFormulaSpecNew().Data(), GetFormulaSpecOld().Data()); 271 271 } 272 272 … … 447 447 if (fWeightsZd) 448 448 { 449 /* 450 const Int_t i = fWeightsZd->GetXaxis()->FindFixBin(fPointing->GetZd()); 451 452 Double_t tmin = fWeightsZd->GetXaxis()->GetBinLowEdge(i) *TMath::DegToRad(); 453 Double_t tmax = fWeightsZd->GetXaxis()->GetBinLowEdge(i+1)*TMath::DegToRad(); 454 Double_t wdth = fWeightsZd->GetXaxis()->GetBinWidth(i) *TMath::DegToRad(); 455 456 Double_t cont = fWeightsZd->GetBinContent(i); 457 458 Double_t integ = cos(tmin)-cos(tmax); 459 460 w = sin(tmax)*cont/integ*wdth; 461 */ 462 449 463 const Int_t i = fWeightsZd->GetXaxis()->FindFixBin(fPointing->GetZd()); 450 464 w = fWeightsZd->GetBinContent(i);
Note:
See TracChangeset
for help on using the changeset viewer.