MarlinKinfitProcessors  0.4.2
TopTester.h
1 #ifndef TopTester_h
2 #define TopTester_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 #include <TFile.h>
8 #include <TTree.h>
9 #include "TopEventILC.h"
10 
11 using namespace lcio ;
12 using namespace marlin ;
13 
14 
33 class TopTester : public Processor {
34 
35  public:
36 
37  virtual Processor* newProcessor() { return new TopTester ; }
38 
39  TopTester(const TopTester&) = delete ;
40  TopTester& operator=(const TopTester&) = delete ;
41 
42  TopTester() ;
43 
47  virtual void init() ;
48 
51  virtual void processRunHeader( LCRunHeader* run ) ;
52 
55  virtual void processEvent( LCEvent * evt ) ;
56 
57 
58  virtual void check( LCEvent * evt ) ;
59 
60 
63  virtual void end() ;
64 
65  protected:
66 
69  float _ecm{};
70  bool _softmasses{}, _semileptonic{}, _traceall{}, _leptonasjet{};
71  int _ifitter{}, _ievttrace{}, _ntoy{};
72 
73  float prob{}, topmass{}, startmassW1{}, startmassW2{};
74  float momentum[3]{}, energy{};
75 
76  int _nRun{}, _nEvt{}, nit{};
77 
78  TopEventILC* topevent{};
79 
80 
81  //output
82  // TTree *outTree;
83 
84 } ;
85 
86 #endif
87 
88 
89 
Test processor using TopEventILC Toy MC.
Definition: TopTester.h:33