Ignore:
Timestamp:
02/22/09 23:36:01 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc

    r9359 r9362  
    211211void MHCollectionArea::GetImpactMax()
    212212{
    213     if (fHeader->GetImpactMax()<=fMcAreaRadius*100)
     213    if (fHeader->GetImpactMax()<=fMcAreaRadius*100 || fHeader->GetImpactMax()<0)
    214214        return;
    215215
     
    454454Int_t MHCollectionArea::Fill(const MParContainer *par, const Stat_t weight)
    455455{
     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
    456463    const Double_t energy = fMcEvt->GetEnergy();
    457464    const Double_t theta  = fMcEvt->GetTelescopeTheta()*TMath::RadToDeg();
  • trunk/MagicSoft/Mars/mhflux/MHThreshold.cc

    r9301 r9362  
    9797        return kFALSE;
    9898    }
    99 /*
    100     MBinning binse;
    101     binse.SetEdges(fHEnergy, 'x');
    10299
    103     MBinning *bins = (MBinning*)pl->FindObject("BinningEnergyEst", "MBinning");
    104     if (bins)
    105         binse.SetEdges(*bins);
     100    ApplyBinning(*pl, "Threshold", &fHEnergy);
    106101
    107     binse.Apply(fHEnergy);
    108   */
    109102    return kTRUE;
    110103}
Note: See TracChangeset for help on using the changeset viewer.