MarlinKinfitProcessors  0.2.0
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 
40  WW5CFit() ;
41 
45  virtual void init() ;
46 
49  virtual void processRunHeader( LCRunHeader* run ) ;
50 
53  virtual void processEvent( LCEvent * evt ) ;
54 
55 
56  virtual void check( LCEvent * evt ) ;
57 
58 
61  virtual void end() ;
62 
63  double JetEnergyResolution(double E);
64 
65  protected:
66 
69  std::string _jetcolName, _name,_OutputCollection ;
72  float _ecm, _isrpzmax;
73  int _fitISR, _ifitter, _ievttrace;
74  bool _traceall;
75 
76  double b, ISRPzMaxB;
77 
78 
79  float prob, bestprob, bestnit, bestmass1, bestmass2, beststartmass1, beststartmass2, bestphotonenergy, startmass1, startmass2, variable;
80  float momentum[3], energy;
81 
82  int _nRun, _nEvt, nit;
83 
84  int bestperm, errorflag;
85 
86  TopEventILC* topevent;
87 
88 
89  //output
90  // TTree *outTree;
91 
92 } ;
93 
94 #endif
95 
96 
97 
An example processor for a kinematic fit.
Definition: WW5CFit.h:33
std::string _jetcolName
Input collection name.
Definition: WW5CFit.h:69
float _ecm
Input parameter: center of mass energy.
Definition: WW5CFit.h:72