◆ VertexHandle()
◆ ~VertexHandle()
| VP1TruthVertexCollection::Imp::VertexHandle::~VertexHandle |
( |
| ) |
|
|
inline |
◆ cut()
| bool VP1TruthVertexCollection::Imp::VertexHandle::cut |
( |
| ) |
|
|
inlineprivate |
Definition at line 157 of file VP1TruthVertexCollection.cxx.
157 {
158
159 if (
m_d->controller->truthCutPrimaryVertexOnly()&&
this!=
m_d->vertices.at(0))
160 return false;
161
162 if (!
m_d->controller->truthCutAllowedEta().contains(
m_vertex->position().eta()))
163 return false;
164
165 QPair<VertexCommonFlags::QUANTITY,VP1Interval>
p =
m_d->controller->truthCutQuantity();
166 if (!
p.second.isAllR()) {
168 return false;
169 }
170
171
173 for (
const VP1Interval& i :
m_d->controller->truthCutAllowedPhi()) {
175 return true;
176 }
177 return false;
178 }
Scalar phi() const
phi method
double quantityVal(const VertexCommonFlags::QUANTITY &q)
◆ ensureAttach()
| void VP1TruthVertexCollection::Imp::VertexHandle::ensureAttach |
( |
SoSeparator * | collsep | ) |
|
|
inlineprivate |
◆ ensureDetach()
| void VP1TruthVertexCollection::Imp::VertexHandle::ensureDetach |
( |
SoSeparator * | collsep | ) |
|
|
inlineprivate |
◆ line()
| SoLineSet * VP1TruthVertexCollection::Imp::VertexHandle::line |
( |
| ) |
const |
|
inline |
◆ quantityVal()
Definition at line 115 of file VP1TruthVertexCollection.cxx.
115 {
116
117 double px(0),
py(0),
pz(0),
e(0);
118#ifdef HEPMC3
119 for (
const auto& PartIn:
m_vertex->particles_in()){
120#else
121 HepMC::GenVertex::particles_in_const_iterator itPartIn,itPartInE(
m_vertex->particles_in_const_end());
122 for ( itPartIn =
m_vertex->particles_in_const_begin();itPartIn!=itPartInE;++itPartIn) {
123 auto PartIn=*itPartIn;
124#endif
125 px +=PartIn->momentum().px();
126 py +=PartIn->momentum().py();
127 pz +=PartIn->momentum().pz();
128 e += PartIn->momentum().e();
129 }
130 const HepMC::FourVector
mom(px,py,pz,e);
131 switch(q) {
135 default:
137 }
138 }
◆ recheckCutStatus()
| void VP1TruthVertexCollection::Imp::VertexHandle::recheckCutStatus |
( |
| ) |
|
|
inline |
Definition at line 72 of file VP1TruthVertexCollection.cxx.
72 {
75 if (cutval)
77 else
79 }
80 }
void ensureAttach(SoSeparator *collsep)
void ensureDetach(SoSeparator *collsep)
◆ updateShape()
| void VP1TruthVertexCollection::Imp::VertexHandle::updateShape |
( |
| ) |
|
|
inline |
Definition at line 81 of file VP1TruthVertexCollection.cxx.
81 {
83 return;
85
86 }
87
88 SoVertexProperty *
vertices =
static_cast<SoVertexProperty *
>(
m_line->vertexProperty.getValue());
91 m_line->numVertices.set1Value(0,2);
92 m_line->numVertices.set1Value(1,2);
93 m_line->numVertices.set1Value(2,2);
95 }
96
97 QPair<VertexCommonFlags::QUANTITY,double>
p =
m_d->controller->truthCrossLength();
98 double extent;
101 else
103
111 }
QList< VertexHandle * > vertices
◆ vertex()
◆ m_attached
| bool VP1TruthVertexCollection::Imp::VertexHandle::m_attached |
|
private |
◆ m_d
◆ m_line
| SoLineSet* VP1TruthVertexCollection::Imp::VertexHandle::m_line |
|
private |
◆ m_vertex
The documentation for this class was generated from the following file: