CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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,
19  const FSimVertexType::VertexType vertexType
20  ):
21  vertex_(vertex),
22  id_(id),
23  motherId_(motherId),
24  nCharged_(nCharged),
25  daughterIds_(daughterIds),
26  vertexType_(vertexType),
27  isRecoVertex_(false),
28  recoVertexId_(-1)
29 {}
30 
31 
33  vertex_(other.vertex_),
34  id_(other.id_),
35  motherId_(other.motherId_),
36  nCharged_(other.nCharged_),
37  daughterIds_(other.daughterIds_),
38  vertexType_(other.vertexType_),
39  isRecoVertex_(other.isRecoVertex()),
40  recoVertexId_(other.recoVertexId())
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 FSimVertexType::VertexType vertexType() const
unsigned int nChargedDaughters() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
const int recoVertexId() const
A FSimVertexType hold the information on the vertex origine.
const SimVertex vertex() const
tuple out
Definition: dbtoconf.py:99
unsigned int nCharged(const GenJet &jet)
A FSimDisplacedVertex extends the FSimVertex with VertexType information.
volatile std::atomic< bool > shutdown_flag false
unsigned int nDaughters() const