CMS 3D CMS Logo

FSimDisplacedVertex.cc
Go to the documentation of this file.
2 
3 
4 
6  id_(-1),
7  motherId_(-1),
8  nCharged_(0),
9  vertexType_(FSimVertexType::ANY),
10  isRecoVertex_(false),
11  recoVertexId_(-1)
12 
13 {}
14 
16  unsigned id, int motherId,
17  unsigned nCharged,
18  const std::vector<int>& daughterIds,
20  ):
21  vertex_(vertex),
22  id_(id),
23  motherId_(motherId),
24  nCharged_(nCharged),
25  daughterIds_(daughterIds),
26  vertexType_(vertexType),
28  recoVertexId_(-1)
29 {}
30 
31 
33  vertex_(other.vertex_),
34  id_(other.id_),
35  motherId_(other.motherId_),
36  nCharged_(other.nCharged_),
38  vertexType_(other.vertexType_),
39  isRecoVertex_(other.isRecoVertex()),
41 {}
42 
43 
44 std::ostream& operator<<(std::ostream& out,
45  const FSimDisplacedVertex& co) {
46 
47  return out << "id = " << co.id()
48  << " mother = " << co.motherId()
49  << " N daugh. = " << co.nDaughters()
50  << " N charged " << co.nChargedDaughters()
51  << " Type = " << co.vertexType()
52  << " recoVertexId = " << co.recoVertexId() << " "
53  << co.vertex();
54 
55 }
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