Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LeptoquarksReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file LeptoquarksReco.h
1 #ifndef __LeptoquarksReco_H__
2 #define __LeptoquarksReco_H__
3 
4 #include "PidCandidate.h"
5 
6 /* Fun4All includes */
7 #include <fun4all/SubsysReco.h>
8 #include <calobase/RawTowerDefs.h>
9 
10 /* STL includes */
11 #include <math.h>
12 #include <map>
13 
14 /*HepMC include */
17 #include <HepMC/GenEvent.h>
18 class TNtuple;
19 class TTree;
20 class TFile;
21 
22 class PHCompositeNode;
23 class CaloRawTowerEval;
24 class RawTowerContainer;
26 class JetMap;
27 class SvtxTrackMap;
28 class SvtxVertexMap;
29 class SvtxEvalStack;
30 class PHHepMCGenEventMap;
31 
33 
34 typedef std::map<float, PidCandidate*> type_map_tcan;
35 typedef std::map< RawTowerDefs::CalorimeterId , std::pair< RawTowerContainer*, RawTowerGeomContainer* > > type_map_cdata;
36 
38 {
39 
40 public:
41 
43 
44  int
46  int
48  int
50 
51 
52  void
53  set_save_towers( bool savetower=true )
54  {
55  _save_towers = savetower;
56  }
57 
58 
59  void
60  set_save_tracks( bool savetracks=true )
61  {
62  _save_tracks = savetracks;
63  }
64 
65 
66  void
67  set_beam_energies( float beam_electron , float beam_proton )
68  {
69  _ebeam_E = fabs( beam_electron );
70  _pbeam_E = fabs( beam_proton );
71  }
72 
73  void
75  {
76  _jetcolname = newname;
77  }
78 
79 private:
80 
81  bool _verbose;
84 
85  int _ievent;
87 
89  TFile *_tfile;
90 
91  /* output tree and variables */
92  TTree* _t_event;
93  TNtuple* _ntp_tower;
94  TNtuple* _ntp_track;
95 
96  /* beam energies electron and proton */
97  float _ebeam_E;
98  float _pbeam_E;
99 
100  /* set minimum energy for tau jets to consider */
102 
105 
108  std::map< std::string, CaloRawTowerEval* > _map_towereval;
109 
112  std::map< PidCandidate::PROPERTY , std::vector< float > > _map_tau_candidate_branches;
113 
116  std::map< std::string , float > _map_event_branches;
117 
119 
121 
123 
125 
127 
129 
131  PidCandidate* FindMinDeltaRCandidate( type_map_tcan*, const float, const float );
132 
134  float CalculateDeltaR( float, float, float, float );
135 
137  void ResetBranchMap();
138 
140  enum CALOTYPE
141  {
148  };
149 
150 };
151 
152 #endif // __LeptoquarksReco_H__