CMS 3D CMS Logo

FSimDisplacedVertex.cc
Go to the documentation of this file.
2 
4  : id_(-1),
5  motherId_(-1),
6  nCharged_(0),
7  vertexType_(FSimVertexType::ANY),
8  isRecoVertex_(false),
9  recoVertexId_(-1)
10 
11 {}
12 
14  unsigned id,
15  int motherId,
16  unsigned nCharged,
17  const std::vector<int>& daughterIds,
19  : vertex_(vertex),
20  id_(id),
21  motherId_(motherId),
22  nCharged_(nCharged),
23  daughterIds_(daughterIds),
24  vertexType_(vertexType),
26  recoVertexId_(-1) {}
27 
29  : vertex_(other.vertex_),
30  id_(other.id_),
31  motherId_(other.motherId_),
32  nCharged_(other.nCharged_),
34  vertexType_(other.vertexType_),
35  isRecoVertex_(other.isRecoVertex()),
36  recoVertexId_(other.recoVertexId()) {}
37 
38 std::ostream& operator<<(std::ostream& out, const FSimDisplacedVertex& co) {
39  return out << "id = " << co.id() << " mother = " << co.motherId() << " N daugh. = " << co.nDaughters()
40  << " N charged " << co.nChargedDaughters() << " Type = " << co.vertexType()
41  << " recoVertexId = " << co.recoVertexId() << " " << co.vertex();
42 }
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.
const int recoVertexId() const
A FSimVertexType hold the information on the vertex origine.
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