Changeset 852 for trunk/MagicSoft/Mars/mmontecarlo/MCollAreaTrigger.cc
- Timestamp:
- 06/20/01 10:41:23 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmontecarlo/MCollAreaTrigger.cc
r749 r852 17 17 ! 18 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de) 19 ! Author(s):Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)19 ! Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de) 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 26 26 #include "MCollAreaTrigger.h" 27 27 28 #include "MParList.h" 29 28 30 #include "MLog.h" 29 31 #include "MLogManip.h" 30 #include "MParList.h"31 32 32 #include "MCollArea.h" 33 #include "MMcEvt.hxx" 33 #include "MMcEvt.hxx" 34 34 #include "MMcTrig.hxx" 35 36 #include "MHMcCollectionArea.h" 35 37 36 38 ClassImp(MCollAreaTrigger) … … 38 40 MCollAreaTrigger::MCollAreaTrigger (const char *name, const char *title) 39 41 { 40 *fName = name ? name : "MCollAreaTrigger";41 *fTitle = title ? title : "Task to calc the collection area ";42 *fName = name ? name : "MCollAreaTrigger"; 43 *fTitle = title ? title : "Task to calc the collection area "; 42 44 } 43 44 45 45 46 Bool_t MCollAreaTrigger::PreProcess (MParList *pList) 46 47 { 47 // connect the raw data with this task 48 49 fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt") ; 50 if (!fMcEvt) { 51 *fLog << dbginf << "MMcEvt not found... exit." << endl; 52 return kFALSE; 53 } 48 // connect the raw data with this task 54 49 55 fMcTrig = (MMcTrig*)pList->FindObject("MMcTrig") ; 56 if (!fMcTrig) { 57 *fLog << dbginf << "MMcTrig not found... exit." << endl; 58 return kFALSE; 59 } 50 fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt"); 51 if (!fMcEvt) 52 { 53 *fLog << dbginf << "MMcEvt not found... exit." << endl; 54 return kFALSE; 55 } 60 56 61 fCollArea = (MCollArea*)pList->FindCreateObj("MCollArea") ; 62 if (!fCollArea) 63 return kFALSE; 57 fMcTrig = (MMcTrig*)pList->FindObject("MMcTrig"); 58 if (!fMcTrig) 59 { 60 *fLog << dbginf << "MMcTrig not found... exit." << endl; 61 return kFALSE; 62 } 64 63 65 return kTRUE ; 64 fCollArea = (MHMcCollectionArea*)pList->FindCreateObj("MHMcCollectionArea"); 65 if (!fCollArea) 66 return kFALSE; 66 67 67 } 68 68 return kTRUE; 69 } 69 70 70 71 Bool_t MCollAreaTrigger::Process () … … 75 76 fCollArea->FillAll(energy, impact); 76 77 77 78 78 if (fMcTrig->GetFirstLevel() <= 0) 79 79 return kTRUE; … … 81 81 fCollArea->FillSel(energy, impact); 82 82 83 return kTRUE 83 return kTRUE; 84 84 } 85 85 86 86 Bool_t MCollAreaTrigger::PostProcess () 87 87 { 88 // 89 // do the calculation of the effectiv area 90 // 88 // 89 // do the calculation of the effectiv area 90 // 91 fCollArea->CalcEfficiency(); 91 92 92 fCollArea->CalcEfficiency() ; 93 94 return kTRUE ; 93 return kTRUE; 95 94 }
Note:
See TracChangeset
for help on using the changeset viewer.