Main Page
Namespaces
Classes
Package Documentation
FastSimDataFormats
NuclearInteractions
src
FSimDisplacedVertex.cc
Go to the documentation of this file.
1
#include "
FastSimDataFormats/NuclearInteractions/interface/FSimDisplacedVertex.h
"
2
3
FSimDisplacedVertex::FSimDisplacedVertex
()
4
: id_(-1),
5
motherId_(-1),
6
nCharged_(0),
7
vertexType_(
FSimVertexType
::
ANY
),
8
isRecoVertex_(
false
),
9
recoVertexId_(-1)
10
11
{}
12
13
FSimDisplacedVertex::FSimDisplacedVertex
(
const
SimVertex
&
vertex
,
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
28
FSimDisplacedVertex::FSimDisplacedVertex
(
const
FSimDisplacedVertex
&
other
)
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
}
SimVertex
Definition:
SimVertex.h:5
FSimDisplacedVertex::daughterIds
const std::vector< int > & daughterIds() const
Definition:
FSimDisplacedVertex.h:57
FSimDisplacedVertex::vertexType
const FSimVertexType::VertexType vertexType() const
Definition:
FSimDisplacedVertex.h:60
FSimDisplacedVertex::FSimDisplacedVertex
FSimDisplacedVertex()
Definition:
FSimDisplacedVertex.cc:3
FSimDisplacedVertex::vertexType_
FSimVertexType::VertexType vertexType_
Vertex Type.
Definition:
FSimDisplacedVertex.h:98
FSimDisplacedVertex::motherId_
int motherId_
id of mother particle. -1 if no mother
Definition:
FSimDisplacedVertex.h:89
funct::false
false
Definition:
Factorize.h:34
FSimDisplacedVertex::nChargedDaughters
unsigned int nChargedDaughters() const
Definition:
FSimDisplacedVertex.h:54
FSimDisplacedVertex::isRecoVertex
const bool isRecoVertex() const
Definition:
FSimDisplacedVertex.h:63
FSimDisplacedVertex::isRecoVertex_
bool isRecoVertex_
Flag to indicate if a reconstructed DisplacedVertex was found and associated.
Definition:
FSimDisplacedVertex.h:101
FSimDisplacedVertex::motherId
int motherId() const
Definition:
FSimDisplacedVertex.h:48
cscdqm::ANY
Definition:
CSCDQM_DCSBase.h:35
FSimVertexType::VertexType
VertexType
Definition:
FSimVertexType.h:22
FSimDisplacedVertex::recoVertexId
const int recoVertexId() const
Definition:
FSimDisplacedVertex.h:66
trackingPlots.other
other
Definition:
trackingPlots.py:1455
FSimVertexType
A FSimVertexType hold the information on the vertex origine.
Definition:
FSimVertexType.h:18
FSimDisplacedVertex::recoVertexId_
int recoVertexId_
Definition:
FSimDisplacedVertex.h:106
FSimDisplacedVertex::vertex
const SimVertex vertex() const
Definition:
FSimDisplacedVertex.h:42
HLT_2018_cff.nCharged
nCharged
Definition:
HLT_2018_cff.py:31780
FSimDisplacedVertex::operator<<
friend std::ostream & operator<<(std::ostream &out, const FSimDisplacedVertex &co)
Definition:
FSimDisplacedVertex.cc:38
FSimDisplacedVertex::daughterIds_
std::vector< int > daughterIds_
Vector of daughter ids in the track collection.
Definition:
FSimDisplacedVertex.h:95
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
FSimDisplacedVertex::id
int id() const
Definition:
FSimDisplacedVertex.h:45
FSimDisplacedVertex::vertex_
SimVertex vertex_
Sim Vertex.
Definition:
FSimDisplacedVertex.h:82
FSimDisplacedVertex.h
FSimDisplacedVertex::nCharged_
unsigned int nCharged_
Number of charged daughters.
Definition:
FSimDisplacedVertex.h:92
FSimDisplacedVertex
A FSimDisplacedVertex extends the FSimVertex with VertexType information.
Definition:
FSimDisplacedVertex.h:27
FSimDisplacedVertex::nDaughters
unsigned int nDaughters() const
Definition:
FSimDisplacedVertex.h:51
FSimDisplacedVertex::id_
int id_
Definition:
FSimDisplacedVertex.h:86
Generated for CMSSW Reference Manual by
1.8.11