Changeset 1611


Ignore:
Timestamp:
11/14/02 17:01:32 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1605 r1611  
    1313   * mgeom/MGeomPMT.cc, mgeom/MGeomMirror.cc:
    1414     - removed redefinition of a default argument
     15
     16   * mhist/MHMcIntRate.cc, mhist/MHMcCollectionArea.[h,cc]:
     17     - changed the error calculation according to a suggestion from Raquel
     18
     19   * mmontecarlo/MMcCollectionAreaCalc.cc:
     20     - for collection area: MMcTrig isn't needed if all showers are
     21       triggered showers
     22
     23   * mmc/MMcConfigRunHeader.cc:
     24     - made function definition identical to function declaration
     25
     26   * macros/star.C:
     27     - removed anti source for the moment
     28
     29   * macros/multidimdist2.C:
     30     - added
     31
     32   * macros/comprob.C, macros/multidimdist.C:
     33     - changed to use MHillasSrc instead of HillasSource
     34
     35   * mhist/MHHadronness.cc:
     36     - changed the output of Print a bit
    1537
    1638
  • trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc

    r1330 r1611  
    6969    }
    7070
    71     fMcTrig = (MMcTrig*)pList->FindObject(fObjName);
    72     if (!fMcTrig)
    73     {
    74         *fLog << err << dbginf << fObjName << " [MMcTrig] not found... exit." << endl;
    75         return kFALSE;
    76     }
    77 
    7871    fCollArea = (MHMcCollectionArea*)pList->FindCreateObj("MHMcCollectionArea");
    7972    if (!fCollArea)
     
    115108    *fLog << inf << "Only triggered events avail: " << (fAllEvtsTriggered?"yes":"no") << endl;
    116109
     110    if (fAllEvtsTriggered)
     111        return kTRUE;
     112
     113    fMcTrig = (MMcTrig*)plist->FindObject(fObjName);
     114    if (!fMcTrig)
     115    {
     116        *fLog << err << dbginf << fObjName << " [MMcTrig] not found... exit." << endl;
     117        return kFALSE;
     118    }
     119
    117120    return kTRUE;
    118121}
    119122
    120123Bool_t MMcCollectionAreaCalc::Process()
    121 { 
     124{
    122125    const Float_t energy = fMcEvt->GetEnergy();
    123126    const Float_t impact = fMcEvt->GetImpact()/100.;
     
    126129        fCollArea->FillAll(energy, impact);
    127130
    128     if (fMcTrig->GetFirstLevel() <= 0)
     131    if (!fAllEvtsTriggered && fMcTrig->GetFirstLevel() <= 0)
    129132        return kTRUE;
    130133
Note: See TracChangeset for help on using the changeset viewer.