80 p1 =
m_d->simhit->posStart();
81 u =
m_d->simhit->momentumDirection();
86 p1 =
Amg::Vector3D(
m_d->genVertex->position().x(),
m_d->genVertex->position().y(),
m_d->genVertex->position().z());
87 u =
Amg::Vector3D(
m_d->genParticle->momentum().px(),
m_d->genParticle->momentum().py(),
m_d->genParticle->momentum().pz()).unit();
94 SoLineSet * line =
new SoLineSet();
95 SoVertexProperty * vertices =
new SoVertexProperty();
96 vertices->vertex.set1Value(0,p1.x(),p1.y(),p1.z());
97 vertices->vertex.set1Value(1,p2.x(),p2.y(),p2.z());
98 line->numVertices.set1Value(0,2);
99 line->vertexProperty = vertices;
101 shape_simple =
new SoSeparator;
102 shape_simple->addChild(line);
103 shape_detailed = shape_simple;
117 l <<
" ==> Truth point";
119 l <<
"Sim Hit ("+
m_d->simhit->type()+
")";
123 l <<
" Position: " + QString::fromStdString(
Amg::AsString(
m_d->simhit->posStart()));
124 l <<
" Direction: " + QString::fromStdString(
Amg::AsString(
m_d->simhit->momentumDirection()));
125 l <<
" Momentum: " +
VP1Msg::str(
m_d->simhit->momentum()/CLHEP::GeV)+
" GeV"+(
m_d->simhit->actualMomentum()==
m_d->simhit->momentum()?
"":
" (fudged)");
127 if (!
m_d->genVertex||!
m_d->genParticle) {
132 Amg::Vector3D p(
m_d->genVertex->position().x(),
m_d->genVertex->position().y(),
m_d->genVertex->position().z());
133 Amg::Vector3D mom(
m_d->genParticle->momentum().px(),
m_d->genParticle->momentum().py(),
m_d->genParticle->momentum().pz());
135 l <<
"Gen Particle vertex";
138 l <<
" Position: "+ QString::fromStdString(
Amg::AsString(p));
139 l <<
" Direction: "+ QString::fromStdString(
Amg::AsString(mom.unit()) );
140 l <<
" Momentum: "+
VP1Msg::str(mom.mag()/CLHEP::GeV)+
" GeV";