Changeset 9362 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 02/22/09 23:36:01 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc
r9359 r9362 211 211 void MHCollectionArea::GetImpactMax() 212 212 { 213 if (fHeader->GetImpactMax()<=fMcAreaRadius*100 )213 if (fHeader->GetImpactMax()<=fMcAreaRadius*100 || fHeader->GetImpactMax()<0) 214 214 return; 215 215 … … 454 454 Int_t MHCollectionArea::Fill(const MParContainer *par, const Stat_t weight) 455 455 { 456 // This is not perfect because it selects the maximum impact only 457 // from the selected events. Hoever, it will get overwritten 458 // in finalize anyway. 459 const Double_t impact = fMcEvt->GetImpact()*0.01; // cm->m 460 if (impact>fMcAreaRadius) 461 fMcAreaRadius = impact; 462 456 463 const Double_t energy = fMcEvt->GetEnergy(); 457 464 const Double_t theta = fMcEvt->GetTelescopeTheta()*TMath::RadToDeg(); -
trunk/MagicSoft/Mars/mhflux/MHThreshold.cc
r9301 r9362 97 97 return kFALSE; 98 98 } 99 /*100 MBinning binse;101 binse.SetEdges(fHEnergy, 'x');102 99 103 MBinning *bins = (MBinning*)pl->FindObject("BinningEnergyEst", "MBinning"); 104 if (bins) 105 binse.SetEdges(*bins); 100 ApplyBinning(*pl, "Threshold", &fHEnergy); 106 101 107 binse.Apply(fHEnergy);108 */109 102 return kTRUE; 110 103 }
Note:
See TracChangeset
for help on using the changeset viewer.