Last change
on this file since 702 was 695, checked in by tbretz, 24 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | /////////////////////////////////////////////////////////////////////////////
|
---|
2 | // //
|
---|
3 | // MHillas Calc //
|
---|
4 | // //
|
---|
5 | /////////////////////////////////////////////////////////////////////////////
|
---|
6 |
|
---|
7 | #include "MHillasCalc.h"
|
---|
8 |
|
---|
9 | #include "MParList.h"
|
---|
10 |
|
---|
11 | #include "MHillas.h"
|
---|
12 |
|
---|
13 | #include "MLog.h"
|
---|
14 | #include "MLogManip.h"
|
---|
15 |
|
---|
16 | ClassImp(MHillasCalc)
|
---|
17 |
|
---|
18 | MHillasCalc::MHillasCalc(const char *name, const char *title)
|
---|
19 | {
|
---|
20 | *fName = name ? name : "MHillasCalc";
|
---|
21 | *fTitle = title ? title : "Task to calculate Hillas parameters";
|
---|
22 | }
|
---|
23 |
|
---|
24 | Bool_t MHillasCalc::PreProcess( MParList *pList )
|
---|
25 | {
|
---|
26 | fCerPhotEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt");
|
---|
27 | if (!fCerPhotEvt)
|
---|
28 | {
|
---|
29 | *fLog << dbginf << "MCerPhotEvt not found... aborting." << endl;
|
---|
30 | return kFALSE;
|
---|
31 | }
|
---|
32 |
|
---|
33 | fGeomCam = (MGeomCam*)pList->FindObject("MGeomCam");
|
---|
34 | if (!fGeomCam)
|
---|
35 | {
|
---|
36 | *fLog << dbginf << "MGeomCam (Camera Geometry) missing in Parameter List... aborting." << endl;
|
---|
37 | return kFALSE;
|
---|
38 | }
|
---|
39 |
|
---|
40 | fHillas = (MHillas*)pList->FindCreateObj("MHillas");
|
---|
41 | if (!fHillas)
|
---|
42 | return kFALSE;
|
---|
43 |
|
---|
44 | return kTRUE;
|
---|
45 | }
|
---|
46 |
|
---|
47 | Bool_t MHillasCalc::Process()
|
---|
48 | {
|
---|
49 | fHillas->Calc(*fGeomCam, *fCerPhotEvt);
|
---|
50 |
|
---|
51 | return kTRUE;
|
---|
52 | }
|
---|
53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.