Changeset 1611 for trunk/MagicSoft/Mars/mmontecarlo
- Timestamp:
- 11/14/02 17:01:32 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc
r1330 r1611 69 69 } 70 70 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 78 71 fCollArea = (MHMcCollectionArea*)pList->FindCreateObj("MHMcCollectionArea"); 79 72 if (!fCollArea) … … 115 108 *fLog << inf << "Only triggered events avail: " << (fAllEvtsTriggered?"yes":"no") << endl; 116 109 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 117 120 return kTRUE; 118 121 } 119 122 120 123 Bool_t MMcCollectionAreaCalc::Process() 121 { 124 { 122 125 const Float_t energy = fMcEvt->GetEnergy(); 123 126 const Float_t impact = fMcEvt->GetImpact()/100.; … … 126 129 fCollArea->FillAll(energy, impact); 127 130 128 if ( fMcTrig->GetFirstLevel() <= 0)131 if (!fAllEvtsTriggered && fMcTrig->GetFirstLevel() <= 0) 129 132 return kTRUE; 130 133
Note:
See TracChangeset
for help on using the changeset viewer.