er  dev
ERLiCalibrator.cxx
1 #include "ERLiCalibrator.h"
2 
3 #include<iostream>
4 using namespace std;
5 
6 
7 #include "FairRootManager.h"
8 #include "FairRunAna.h"
9 #include "FairRuntimeDb.h"
10 
11 // ----------------------------------------------------------------------------
13  : FairTask("Convert Raw event to analyse event"),
14  fRawEvent(NULL),
15  fEvent(0)
16 {
17 }
18 // ----------------------------------------------------------------------------
19 
20 // ----------------------------------------------------------------------------
22  : FairTask("Convert Raw event to analyse event", verbose),
23  fRawEvent(NULL),
24  fEvent(0)
25 {
26 }
27 // ----------------------------------------------------------------------------
28 
29 // ----------------------------------------------------------------------------
31 {
32 }
33 // ----------------------------------------------------------------------------
34 
35 // ----------------------------------------------------------------------------
36 void ERLiCalibrator::SetParContainers()
37 {
38 }
39 // ----------------------------------------------------------------------------
40 
41 // ----------------------------------------------------------------------------
43 {
44  // Get input array
45  FairRootManager* ioman = FairRootManager::Instance();
46  if ( ! ioman ) Fatal("Init", "No FairRootManager");
47 
48  //Get input objects
49  fRawEvent = new TLiEvent();
50  fRawEvent = (TLiEvent*)ioman->GetObject("LiEvent.");
51  if (!fRawEvent)
52  Fatal("Init", "Can`t find branch in input file!");
53  return kSUCCESS;
54 }
55 // -------------------------------------------------------------------------
56 
57 // ----- Public method Exec --------------------------------------------
58 void ERLiCalibrator::Exec(Option_t* opt)
59 {
60  std::cout << std::endl;
61  std::cout << "####### EVENT " << fEvent++ << " #####" << std::endl;
62  std::cout << fRawEvent->beamTRIGGER << std::endl;
63 }
64 //----------------------------------------------------------------------------
65 
66 //----------------------------------------------------------------------------
68 {
69 }
70 // ----------------------------------------------------------------------------
71 
72 // ----------------------------------------------------------------------------
74 {
75 }
76 // ----------------------------------------------------------------------------
77 //-----------------------------------------------------------------------------
78 ClassImp(ERLiCalibrator)
virtual void Reset()
virtual InitStatus Init()
virtual void Finish()
virtual void Exec(Option_t *opt)