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 bool isRecoVertex() const
FSimVertexType::VertexType vertexType_
Vertex Type.
int motherId_
id of mother particle. -1 if no mother
bool isRecoVertex_
Flag to indicate if a reconstructed DisplacedVertex was found and associated.
__host__ __device__ VT * co
Definition: prefixScan.h:47
void removeRecoVertex()
Remove the associated reconstructed DispacedVertex.
unsigned int nChargedDaughters() const
unsigned int nDaughters() const
const std::vector< int > & daughterIds() 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.
const FSimVertexType::VertexType vertexType() const
unsigned int nCharged_
Number of charged daughters.
const int recoVertexId() const
const SimVertex vertex() const
A FSimDisplacedVertex extends the FSimVertex with VertexType information.
void setRecoVertex(int recoVertexId)
Set the associated reconstructed DispacedVertex.