All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
QuarkJetPairing.h
Go to the documentation of this file.
1 #ifndef QuarkJetPairing_h
2 #define QuarkJetPairing_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 
8 #include <EVENT/LCCollection.h>
9 #include <EVENT/ReconstructedParticle.h>
10 #include <EVENT/MCParticle.h>
11 
12 #include "IMPL/LCCollectionVec.h"
13 
14 using namespace lcio ;
15 using namespace marlin ;
16 
17 /** Processor for marlin to find the smallest deviation between reconstructed jets and jet initialized quarks. Here on basis of WW->4f hadronic decays at 500 GeV from the DBD database
18  * The processor looks for the smallest sum of angle (scalar product) between quarks and jets and declare it as the best permutation. Additional a theta cut is implemented to fullfill detector constraints
19  *
20  * @author B.Hermberg, DESY
21  */
22 
23 class QuarkJetPairing : public Processor {
24  public:
25  virtual Processor* newProcessor() { return (new QuarkJetPairing) ; }
26  QuarkJetPairing() ;
27  virtual void init() ;
28  virtual void processRunHeader( LCRunHeader* run ) ;
29  virtual void processEvent( LCEvent * evt ) ;
30  virtual void check( LCEvent * evt ) ;
31  virtual void end() ;
32 
33  protected:
34  std::string _inputJetCollection{};
35  std::string _inputMCPCollection{};
36 
37  int ipair{};
38  int iperm{};
39  int index[4]{};
40 
41 
42  int jet_array[4]{};
43  int quark_array[4]{};
44 
45  enum{nJETS=4};
46  enum{NPERM=6};
47 
48  int permutation[nJETS]{};
49 
50 
51  float jet_ptot[4]{};
52  float jet_px[4]{};
53  float jet_py[4]{};
54  float jet_pz[4]{};
55  float jet_ene[4]{};
56 
57  float quark_ptot[4]{};
58  float quark_px[4]{};
59  float quark_py[4]{};
60  float quark_pz[4]{};
61  float quark_ene[4]{};
62 
63  float phi_jet_quark[4][4]{};
64  float momentum[3]{}, jetenergy{};
65  int _nRun{};
66  int _nEvt{};
67 
68 } ;
69 
70 #endif
virtual Processor * newProcessor()
Processor for marlin to find the smallest deviation between reconstructed jets and jet initialized qu...