CMS 3D CMS Logo

FSimDisplacedVertex.h
Go to the documentation of this file.
1 #ifndef FastSimDataFormats_NuclearInteractions_FSimDisplacedVertex_h
2 #define FastSimDataFormats_NuclearInteractions_FSimDisplacedVertex_h
3 
5 
7 
8 #include <iostream>
9 #include <vector>
10 
28 public:
31  unsigned id,
32  int motherId,
33  unsigned nCharged,
34  const std::vector<int>& daughterIds,
36 
38 
39  virtual ~FSimDisplacedVertex() {}
40 
42  const SimVertex vertex() const { return vertex_; }
43 
45  int id() const { return id_; }
46 
48  int motherId() const { return motherId_; }
49 
51  unsigned int nDaughters() const { return daughterIds_.size(); }
52 
54  unsigned int nChargedDaughters() const { return nCharged_; }
55 
57  const std::vector<int>& daughterIds() const { return daughterIds_; }
58 
61 
63  const bool isRecoVertex() const { return isRecoVertex_; }
64 
66  const int recoVertexId() const { return recoVertexId_; }
67 
70  isRecoVertex_ = true;
72  }
73 
76  isRecoVertex_ = false;
77  recoVertexId_ = -1;
78  }
79 
80 private:
83 
86  int id_;
87 
89  int motherId_;
90 
92  unsigned int nCharged_;
93 
95  std::vector<int> daughterIds_;
96 
99 
102 
107 
108  friend std::ostream& operator<<(std::ostream& out, const FSimDisplacedVertex& co);
109 };
110 
111 #endif
const std::vector< int > & daughterIds() const
const FSimVertexType::VertexType vertexType() const
FSimVertexType::VertexType vertexType_
Vertex Type.
int motherId_
id of mother particle. -1 if no mother
unsigned int nChargedDaughters() const
const bool isRecoVertex() const
bool isRecoVertex_
Flag to indicate if a reconstructed DisplacedVertex was found and associated.
void removeRecoVertex()
Remove the associated reconstructed DispacedVertex.
const int recoVertexId() const
const SimVertex vertex() const
friend std::ostream & operator<<(std::ostream &out, const FSimDisplacedVertex &co)
std::vector< int > daughterIds_
Vector of daughter ids in the track collection.
SimVertex vertex_
Sim Vertex.
unsigned int nCharged_
Number of charged daughters.
A FSimDisplacedVertex extends the FSimVertex with VertexType information.
unsigned int nDaughters() const
void setRecoVertex(int recoVertexId)
Set the associated reconstructed DispacedVertex.