Last change
on this file since 724 was 711, checked in by tbretz, 24 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | ////////////////////////////////////////////////////////////////////////
|
---|
2 | //
|
---|
3 | // MFillHStarMap
|
---|
4 | //
|
---|
5 | // This task fills a star map (a 2D histogram, MHStarMap)
|
---|
6 | // from the calculated hillas parameter (MHillas).
|
---|
7 | // The algorithm for this can be found in MHStarMap::Fill
|
---|
8 | //
|
---|
9 | ////////////////////////////////////////////////////////////////////////
|
---|
10 | #include "MFillHStarMap.h"
|
---|
11 |
|
---|
12 | #include "MLog.h"
|
---|
13 | #include "MLogManip.h"
|
---|
14 | #include "MHStarMap.h"
|
---|
15 | #include "MHillas.h"
|
---|
16 | #include "MParList.h"
|
---|
17 |
|
---|
18 | ClassImp(MFillHStarMap)
|
---|
19 |
|
---|
20 | MFillHStarMap::MFillHStarMap (const char *name, const char *title)
|
---|
21 | {
|
---|
22 | *fName = name ? name : "MFillHStarMap";
|
---|
23 | *fTitle = title ? title : "Task to fill a StarMap";
|
---|
24 | }
|
---|
25 |
|
---|
26 | Bool_t MFillHStarMap::PreProcess (MParList *pList)
|
---|
27 | {
|
---|
28 | fEvt = (MHillas*)pList->FindObject("MHillas");
|
---|
29 | if (!fEvt)
|
---|
30 | {
|
---|
31 | *fLog << dbginf << "MHillas not found... aborting." << endl;
|
---|
32 | return kFALSE ;
|
---|
33 | }
|
---|
34 |
|
---|
35 | fHistos = (MHStarMap*)pList->FindCreateObj("MHStarMap");
|
---|
36 | if (!fHistos)
|
---|
37 | return kFALSE;
|
---|
38 |
|
---|
39 | return kTRUE ;
|
---|
40 | }
|
---|
41 |
|
---|
42 | Bool_t MFillHStarMap::Process()
|
---|
43 | {
|
---|
44 | fHistos->Fill(fEvt);
|
---|
45 |
|
---|
46 | return kTRUE;
|
---|
47 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.