MarlinKinfitProcessors  0.2.0
ZH5CFit.h
1 #ifndef ZH5CFit_h
2 #define ZH5CFit_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 ZH5CFit : public Processor {
34 
35  public:
36 
37  virtual Processor* newProcessor() { return new ZH5CFit ; }
38 
39 
40  ZH5CFit() ;
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  double _errene, _errtheta, _errphi;
76 
77  double b, ISRPzMaxB;
78 
79 
80  float prob, bestprob, bestnit, bestmassZ, bestmassH, beststartmassZ, beststartmassH, bestphotonenergy, startmassZ, startmassH, variable;
81  float momentum[3], energy;
82 
83  int _nRun, _nEvt, nit;
84 
85  int bestperm, errorflag;
86 
87 
88  //output
89  // TTree *outTree;
90 
91 } ;
92 
93 #endif
94 
95 
96 
float _ecm
Input parameter: center of mass energy.
Definition: ZH5CFit.h:72
std::string _jetcolName
Input collection name.
Definition: ZH5CFit.h:69
An example processor for a kinematic fit.
Definition: ZH5CFit.h:33