FairRoot/PandaRoot
KFPTopoReconstructor.h
Go to the documentation of this file.
1 #ifndef KFPTopoReconstructor_H
2 #define KFPTopoReconstructor_H
3 
4 /*
5  * Class for Event Topology Reconstructing
6  */
7 
8 #include "KFVertex.h"
9 #include "assert.h"
10 
11 #include "KFPTrack.h"
12 #include <vector>
13 using std::vector;
14 
15 class KFParticle;
16 
18  public:
21 
22  void Init(vector<KFPTrack> &tracks, int nParticles); // init array of particles
23 
24  void ReconstructPrimVertex(); // find primary vertex
25 
27  KFParticle &GetPrimVertex() { assert( fPrimVertices.size() > 0 ); return fPrimVertices[0]; };
28  KFParticle &GetParticle(int i){ assert( i < fNParticles ); return fParticles[i]; };
29 
30  private:
33 
34  void FindPrimaryClusters();
35 
36  vector<KFParticle> fParticles; // input particles
37  int fNParticles; // number of input particles
38 
40  vector<short int> fCluster;
41  float fP[3];
42  float fC[6];
43  };
44 
45  vector< KFParticleCluster > fClusters;
46  vector<KFVertex> fPrimVertices; // created primary vertex(-es) (currently only one primary vertex in possible
47 }; // class KFPTopoReconstructor
48 
49 
50 #endif // KFPTopoReconstructor_H
51 
KFPTopoReconstructor & operator=(KFPTopoReconstructor &)
KFParticle & GetPrimVertex()
Accessors.
void Init(vector< KFPTrack > &tracks, int nParticles)
Int_t i
Definition: run_full.C:25
vector< KFParticleCluster > fClusters
vector< KFVertex > fPrimVertices
KFParticle & GetParticle(int i)
vector< KFParticle > fParticles