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,
18  const FSimVertexType::VertexType vertexType)
19  : vertex_(vertex),
20  id_(id),
21  motherId_(motherId),
22  nCharged_(nCharged),
23  daughterIds_(daughterIds),
24  vertexType_(vertexType),
25  isRecoVertex_(false),
26  recoVertexId_(-1) {}
27 
29  : vertex_(other.vertex_),
30  id_(other.id_),
31  motherId_(other.motherId_),
32  nCharged_(other.nCharged_),
33  daughterIds_(other.daughterIds_),
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 }
__host__ __device__ VT * co
Definition: prefixScan.h:47
std::ostream & operator<<(std::ostream &out, const FSimDisplacedVertex &co)
A FSimVertexType hold the information on the vertex origine.
A FSimDisplacedVertex extends the FSimVertex with VertexType information.