source: branches/Corsika7405Compatibility/mdebug/MDebugOut.cc@ 18752

Last change on this file since 18752 was 18179, checked in by dbaack, 10 years ago
File size: 1.4 KB
Line 
1/*
2 * MTraceOut.cpp
3 *
4 * Created on: 07.05.2015
5 * Author: dominik
6 */
7
8#include "MDebugOut.h"
9
10#include "MLog.h"
11#include "MLogManip.h"
12
13#include "MParList.h"
14
15#include "MMcEvt.hxx"
16
17#include "MRawRunHeader.h"
18
19#include "MCorsikaRunHeader.h"
20#include "MCorsikaEvtHeader.h"
21
22#include "MMcRunHeader.hxx"
23#include "MMcCorsikaRunHeader.h"
24
25#include "MPhotonEvent.h"
26#include "MPhotonData.h
27
28ClassImp(MDebugOut);
29
30MDebugOut::MDebugOut() {
31 // TODO Auto-generated constructor stub
32
33}
34
35// MTask
36Int_t MDebugOut::PreProcess(MParList *plist)
37{
38 fEvtHeader = (MCorsikaEvtHeader*) plist->FindObject("MCorsikaEvtHeader");
39 if (!fEvtHeader)
40 {
41 *fLog << err << "MCorsikaEvtHeader not found... aborting." << std::endl;
42 return kFALSE;
43 }
44
45 fRunHeader = (MCorsikaRunHeader*) plist->FindObject("MCorsikaRunHeader");
46 if (!fRunHeader)
47 {
48 *fLog << err << "MCorsikaRunHeader not found... aborting." << std::endl;
49 return kFALSE;
50 }
51
52 fEvt = (MPhotonEvent*) plist->FindObject("MPhotonEvent");
53 if (!fEvt)
54 {
55 *fLog << err << "MPhotonEvent not found... aborting." << endl;
56 return kFALSE;
57 }
58
59 fStat = (MPhotonStatistics*) plist->FindObject("MPhotonStatistics");
60 if (!fStat)
61 {
62 *fLog << err << "MPhotonStatistics not found... aborting." << endl;
63 return kFALSE;
64 }
65
66
67 return kTRUE;
68}
69
70Bool_t MDebugOut::ReInit(MParList *pList)
71{
72 return kTRUE;
73}
74
75Int_t MDebugOut::Process()
76{
77 std::cout << "";
78 return kTRUE;
79}
Note: See TracBrowser for help on using the repository browser.