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 
28  {
29  assert(fPrimVertices.size() > 0);
30  return fPrimVertices[0];
31  };
33  {
34  assert(i < fNParticles);
35  return fParticles[i];
36  };
37 
38  private:
41 
42  void FindPrimaryClusters();
43 
44  vector<KFParticle> fParticles; // input particles
45  int fNParticles; // number of input particles
46 
47  struct KFParticleCluster {
48  vector<short int> fCluster;
49  float fP[3];
50  float fC[6];
51  };
52 
53  vector<KFParticleCluster> fClusters;
54  vector<KFVertex> fPrimVertices; // created primary vertex(-es) (currently only one primary vertex in possible
55 }; // class KFPTopoReconstructor
56 
57 #endif // KFPTopoReconstructor_H
KFParticle & GetPrimVertex()
Accessors.
void Init(vector< KFPTrack > &tracks, int nParticles)
unsigned int i
Definition: P4_F32vec4.h:21
KFParticle & GetParticle(int i)