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
4
5
FSimDisplacedVertex::FSimDisplacedVertex
() :
6
id_(-1),
7
motherId_(-1),
8
nCharged_(0),
9
vertexType_(
FSimVertexType
::
ANY
),
10
isRecoVertex_(
false
),
11
recoVertexId_(-1)
12
13
{}
14
15
FSimDisplacedVertex::FSimDisplacedVertex
(
const
SimVertex
&
vertex
,
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
32
FSimDisplacedVertex::FSimDisplacedVertex
(
const
FSimDisplacedVertex
&
other
) :
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
}
SimVertex
Definition:
SimVertex.h:5
FSimDisplacedVertex::daughterIds
const std::vector< int > & daughterIds() const
Definition:
FSimDisplacedVertex.h:62
FSimDisplacedVertex::vertexType
const FSimVertexType::VertexType vertexType() const
Definition:
FSimDisplacedVertex.h:65
FSimDisplacedVertex::FSimDisplacedVertex
FSimDisplacedVertex()
Definition:
FSimDisplacedVertex.cc:5
FSimDisplacedVertex::vertexType_
FSimVertexType::VertexType vertexType_
Vertex Type.
Definition:
FSimDisplacedVertex.h:106
hpstanc_transforms.nCharged
nCharged
Definition:
hpstanc_transforms.py:9
FSimDisplacedVertex::motherId_
int motherId_
id of mother particle. -1 if no mother
Definition:
FSimDisplacedVertex.h:97
funct::false
false
Definition:
Factorize.h:34
FSimDisplacedVertex::nChargedDaughters
unsigned int nChargedDaughters() const
Definition:
FSimDisplacedVertex.h:59
FSimDisplacedVertex::isRecoVertex
const bool isRecoVertex() const
Definition:
FSimDisplacedVertex.h:68
FSimDisplacedVertex::isRecoVertex_
bool isRecoVertex_
Flag to indicate if a reconstructed DisplacedVertex was found and associated.
Definition:
FSimDisplacedVertex.h:109
FSimDisplacedVertex::motherId
int motherId() const
Definition:
FSimDisplacedVertex.h:53
cscdqm::ANY
Definition:
CSCDQM_DCSBase.h:36
FSimVertexType::VertexType
VertexType
Definition:
FSimVertexType.h:25
FSimDisplacedVertex::recoVertexId
const int recoVertexId() const
Definition:
FSimDisplacedVertex.h:71
trackingPlots.other
other
Definition:
trackingPlots.py:1133
FSimVertexType
A FSimVertexType hold the information on the vertex origine.
Definition:
FSimVertexType.h:19
FSimDisplacedVertex::recoVertexId_
int recoVertexId_
Definition:
FSimDisplacedVertex.h:114
FSimDisplacedVertex::vertex
const SimVertex vertex() const
Definition:
FSimDisplacedVertex.h:47
FSimDisplacedVertex::operator<<
friend std::ostream & operator<<(std::ostream &out, const FSimDisplacedVertex &co)
Definition:
FSimDisplacedVertex.cc:44
FSimDisplacedVertex::daughterIds_
std::vector< int > daughterIds_
Vector of daughter ids in the track collection.
Definition:
FSimDisplacedVertex.h:103
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
FSimDisplacedVertex::id
int id() const
Definition:
FSimDisplacedVertex.h:50
FSimDisplacedVertex::vertex_
SimVertex vertex_
Sim Vertex.
Definition:
FSimDisplacedVertex.h:90
FSimDisplacedVertex.h
FSimDisplacedVertex::nCharged_
unsigned int nCharged_
Number of charged daughters.
Definition:
FSimDisplacedVertex.h:100
FSimDisplacedVertex
A FSimDisplacedVertex extends the FSimVertex with VertexType information.
Definition:
FSimDisplacedVertex.h:28
FSimDisplacedVertex::nDaughters
unsigned int nDaughters() const
Definition:
FSimDisplacedVertex.h:56
FSimDisplacedVertex::id_
int id_
Definition:
FSimDisplacedVertex.h:94
Generated for CMSSW Reference Manual by
1.8.11