Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AnaMvtxTelescopeHits.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file AnaMvtxTelescopeHits.h
1 
9 #ifndef __AnaMvtxTelescopeHits_H__
10 #define __AnaMvtxTelescopeHits_H__
11 
12 // --- need to check all these includes...
13 #include <fun4all/SubsysReco.h>
14 // #include <GenFit/GFRaveVertex.h>
15 // #include <GenFit/Track.h>
16 #include <string>
17 #include <vector>
18 #include <map>
19 
20 #include "TMath.h"
21 
22 class SvtxTrack;
23 class SvtxTrackMap;
24 class SvtxVertexMap;
25 class SvtxVertex;
26 class PHCompositeNode;
28 class SvtxClusterMap;
29 class SvtxCluster;
30 class SvtxEvalStack;
31 class JetMap;
32 
33 class TFile;
34 class TTree;
35 class TH1D;
36 class TH2D;
37 
38 
39 typedef std::vector<SvtxCluster*> ClusVec;
40 typedef std::vector<ClusVec> TrkVec;
41 typedef std::multimap<unsigned int, SvtxCluster*> LyrClusMap;
42 
43 
45 
46 public:
47 
48  AnaMvtxTelescopeHits(const std::string &name = "AnaMvtxTelescopeHits",
49  const std::string &ofName = "out.root");
50 
51  int Init(PHCompositeNode*);
54  int End(PHCompositeNode*);
55 
56 private:
57 
58  //-- Functions
59  int GetNodes(PHCompositeNode *);
60 
61  // PHGenFit::Track* MakeGenFitTrack(PHCompositeNode *,
62  // const SvtxTrack* intrack,
63  // const SvtxVertex* vertex);
64 
65  // int GetTrackCandidates(LyrClusMap* clusmap, TrkVec* trkvec);
66 
67  // void LinkClusters(ClusVec* trk, unsigned int next_lyr, LyrClusMap* clusmap, TrkVec* trkvec);
68 
69  // ClusVec ChooseBestTrk(TrkVec* trkcnd);
70 
71  // double FitTrk(ClusVec* trk);
72 
73  double CalcSlope(double x0, double y0, double x1, double y1);
74  double CalcIntecept(double x0, double y0, double m);
75  double CalcProjection(double x, double m, double b);
76  //-- Nodes
77  SvtxClusterMap* _clustermap;
78 
79  //-- Flags
80 
81 
82  //-- Output
84  TFile *_f;
85 
86  TH1D* hlayer;
87  TH1D* hsize_phi[4];
88  TH1D* hsize_z[4];
89  TH2D* hphiz[4];
90  TH1D* hdphi[4];
91  TH1D* hdz[4];
92 
93 
94  //-- internal variables
95  int _ievent;
96 
97 
98 };
99 
100 #endif // __AnaMvtxTelescopeHits_H__