source: trunk/MagicSoft/Mars/mhist/MFillHHillas.cc@ 711

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