Changeset 1611 for trunk/MagicSoft
- Timestamp:
- 11/14/02 17:01:32 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1605 r1611 13 13 * mgeom/MGeomPMT.cc, mgeom/MGeomMirror.cc: 14 14 - 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 15 37 16 38 -
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.