MarlinKinfitProcessors  0.4.2
WW5CFit.h
1 #ifndef WW5CFit_h
2 #define WW5CFit_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 WW5CFit : public Processor {
34 
35  public:
36 
37  virtual Processor* newProcessor() { return new WW5CFit ; }
38 
39  WW5CFit(const WW5CFit&) = delete ;
40  WW5CFit& operator=(const WW5CFit&) = delete ;
41 
42  WW5CFit() ;
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  double JetEnergyResolution(double E);
66 
67  protected:
68 
71  std::string _jetcolName{}, _name{},_OutputCollection{} ;
74  float _ecm{}, _isrpzmax{};
75  int _fitISR{}, _ifitter{}, _ievttrace{};
76  bool _traceall{};
77 
78  double b{}, ISRPzMaxB{};
79 
80 
81  float prob{}, bestprob{}, bestnit{}, bestmass1{}, bestmass2{}, beststartmass1{}, beststartmass2{}, bestphotonenergy{}, startmass1{}, startmass2{}, variable{};
82  float momentum[3]{}, energy{};
83 
84  int _nRun{}, _nEvt{}, nit{};
85 
86  int bestperm{}, errorflag{};
87 
88  TopEventILC* topevent{};
89 
90 
91  //output
92  // TTree *outTree;
93 
94 } ;
95 
96 #endif
97 
An example processor for a kinematic fit.
Definition: WW5CFit.h:33