CMS 3D CMS Logo

FSimDisplacedVertex.h
Go to the documentation of this file.
1 #ifndef FastSimDataFormats_NuclearInteractions_FSimDisplacedVertex_h
2 #define FastSimDataFormats_NuclearInteractions_FSimDisplacedVertex_h
3 
5 
7 
8 #include <iostream>
9 #include <vector>
10 
28 public:
31  unsigned id,
32  int motherId,
33  unsigned nCharged,
34  const std::vector<int>& daughterIds,
36 
38 
39  virtual ~FSimDisplacedVertex() {}
40 
42  const SimVertex vertex() const { return vertex_; }
43 
45  int id() const { return id_; }
46 
48  int motherId() const { return motherId_; }
49 
51  unsigned int nDaughters() const { return daughterIds_.size(); }
52 
54  unsigned int nChargedDaughters() const { return nCharged_; }
55 
57  const std::vector<int>& daughterIds() const { return daughterIds_; }
58 
61 
63  const bool isRecoVertex() const { return isRecoVertex_; }
64 
66  const int recoVertexId() const { return recoVertexId_; }
67 
70  isRecoVertex_ = true;
72  }
73 
76  isRecoVertex_ = false;
77  recoVertexId_ = -1;
78  }
79 
80 private:
83 
86  int id_;
87 
89  int motherId_;
90 
92  unsigned int nCharged_;
93 
95  std::vector<int> daughterIds_;
96 
99 
102 
107 
108  friend std::ostream& operator<<(std::ostream& out, const FSimDisplacedVertex& co);
109 };
110 
111 #endif
FSimDisplacedVertex::nDaughters
unsigned int nDaughters() const
Definition: FSimDisplacedVertex.h:51
FSimDisplacedVertex::recoVertexId
const int recoVertexId() const
Definition: FSimDisplacedVertex.h:66
SimVertex
Definition: SimVertex.h:5
HLT_FULL_cff.nCharged
nCharged
Definition: HLT_FULL_cff.py:33318
FSimDisplacedVertex::recoVertexId_
int recoVertexId_
Definition: FSimDisplacedVertex.h:106
FSimVertexType.h
FSimDisplacedVertex::nCharged_
unsigned int nCharged_
Number of charged daughters.
Definition: FSimDisplacedVertex.h:92
FSimDisplacedVertex::vertexType
const FSimVertexType::VertexType vertexType() const
Definition: FSimDisplacedVertex.h:60
FSimDisplacedVertex
A FSimDisplacedVertex extends the FSimVertex with VertexType information.
Definition: FSimDisplacedVertex.h:27
FSimDisplacedVertex::vertex_
SimVertex vertex_
Sim Vertex.
Definition: FSimDisplacedVertex.h:82
SimVertex.h
trackingPlots.other
other
Definition: trackingPlots.py:1467
FSimDisplacedVertex::motherId
int motherId() const
Definition: FSimDisplacedVertex.h:48
FSimDisplacedVertex::daughterIds
const std::vector< int > & daughterIds() const
Definition: FSimDisplacedVertex.h:57
FSimDisplacedVertex::removeRecoVertex
void removeRecoVertex()
Remove the associated reconstructed DispacedVertex.
Definition: FSimDisplacedVertex.h:75
FSimVertexType::VertexType
VertexType
Definition: FSimVertexType.h:22
FSimDisplacedVertex::id
int id() const
Definition: FSimDisplacedVertex.h:45
FSimDisplacedVertex::nChargedDaughters
unsigned int nChargedDaughters() const
Definition: FSimDisplacedVertex.h:54
FSimDisplacedVertex::isRecoVertex
const bool isRecoVertex() const
Definition: FSimDisplacedVertex.h:63
FSimDisplacedVertex::vertex
const SimVertex vertex() const
Definition: FSimDisplacedVertex.h:42
FSimDisplacedVertex::setRecoVertex
void setRecoVertex(int recoVertexId)
Set the associated reconstructed DispacedVertex.
Definition: FSimDisplacedVertex.h:69
FSimDisplacedVertex::FSimDisplacedVertex
FSimDisplacedVertex()
Definition: FSimDisplacedVertex.cc:3
FSimDisplacedVertex::daughterIds_
std::vector< int > daughterIds_
Vector of daughter ids in the track collection.
Definition: FSimDisplacedVertex.h:95
FSimDisplacedVertex::id_
int id_
Definition: FSimDisplacedVertex.h:86
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
FSimDisplacedVertex::vertexType_
FSimVertexType::VertexType vertexType_
Vertex Type.
Definition: FSimDisplacedVertex.h:98
cms::cuda::co
VT * co
Definition: prefixScan.h:46
FSimDisplacedVertex::~FSimDisplacedVertex
virtual ~FSimDisplacedVertex()
Definition: FSimDisplacedVertex.h:39
FSimDisplacedVertex::isRecoVertex_
bool isRecoVertex_
Flag to indicate if a reconstructed DisplacedVertex was found and associated.
Definition: FSimDisplacedVertex.h:101
FSimDisplacedVertex::operator<<
friend std::ostream & operator<<(std::ostream &out, const FSimDisplacedVertex &co)
Definition: FSimDisplacedVertex.cc:38
FSimDisplacedVertex::motherId_
int motherId_
id of mother particle. -1 if no mother
Definition: FSimDisplacedVertex.h:89