CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
29 
30 
31  public:
32 
35  unsigned id, int motherId, unsigned nCharged,
36  const std::vector<int>& daughterIds,
38  );
39 
41 
42 
43 
44  virtual ~FSimDisplacedVertex() {}
45 
47  const SimVertex vertex() const { return vertex_; }
48 
50  int id() const { return id_; }
51 
53  int motherId() const { return motherId_; }
54 
56  unsigned int nDaughters() const { return daughterIds_.size();}
57 
59  unsigned int nChargedDaughters() const { return nCharged_;}
60 
62  const std::vector<int>& daughterIds() const {return daughterIds_;}
63 
66 
68  const bool isRecoVertex() const {return isRecoVertex_;}
69 
71  const int recoVertexId() const {return recoVertexId_;}
72 
75  isRecoVertex_ = true;
77  }
78 
81  isRecoVertex_ = false;
82  recoVertexId_ = -1;
83  }
84 
85 
86  private:
87 
88 
91 
94  int id_;
95 
97  int motherId_;
98 
100  unsigned int nCharged_;
101 
103  std::vector<int> daughterIds_;
104 
107 
110 
115 
116  friend std::ostream& operator<<( std::ostream& out, const FSimDisplacedVertex& co );
117 
118 };
119 
120 #endif
121 
122 
123 
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
tuple out
Definition: dbtoconf.py:99
friend std::ostream & operator<<(std::ostream &out, const FSimDisplacedVertex &co)
std::vector< int > daughterIds_
Vector of daughter ids in the track collection.
unsigned int nCharged(const GenJet &jet)
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.