Ignore:
Timestamp:
11/14/02 17:01:32 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.