ATLAS Offline Software
Classes | Public Member Functions | Public Attributes | List of all members
VP1TruthVertexCollection::Imp Class Reference
Collaboration diagram for VP1TruthVertexCollection::Imp:

Classes

class  VertexHandle
 

Public Member Functions

double mag (const HepMC::FourVector &v) const
 
SoLineSet * createCross (const double &x, const double &y, const double &z, const double &extent=10 *Gaudi::Units::mm)
 

Public Attributes

QString key
 
VP1TruthVertexCollectiontheclass = nullptr
 
VertexSysControllercontroller = nullptr
 
std::map< SoNode *, HepMC::ConstGenVertexPtrnodeToVertexMap
 
QList< VertexHandle * > vertices
 

Detailed Description

Definition at line 56 of file VP1TruthVertexCollection.cxx.

Member Function Documentation

◆ createCross()

SoLineSet * VP1TruthVertexCollection::Imp::createCross ( const double &  x,
const double &  y,
const double &  z,
const double &  extent = 10*Gaudi::Units::mm 
)

Definition at line 224 of file VP1TruthVertexCollection.cxx.

225 {
226  SoVertexProperty *vertices = new SoVertexProperty();
227  vertices->vertex.set1Value ( 0,x-extent, y, z );
228  vertices->vertex.set1Value ( 1,x+extent, y,z );
229  vertices->vertex.set1Value ( 2, x,y-extent, z);
230  vertices->vertex.set1Value ( 3, x,y+extent, z );
231  vertices->vertex.set1Value ( 4, x, y,z-extent );
232  vertices->vertex.set1Value ( 5, x, y,z+extent );
233  SoLineSet * line = new SoLineSet();
234  line->numVertices.set1Value(0,2);
235  line->numVertices.set1Value(1,2);
236  line->numVertices.set1Value(2,2);
237  line->vertexProperty = vertices;
238  return line;
239 }

◆ mag()

double VP1TruthVertexCollection::Imp::mag ( const HepMC::FourVector &  v) const
inline

Definition at line 58 of file VP1TruthVertexCollection.cxx.

58  {
59  return std::sqrt( v.x()*v.x() + v.y()*v.y() + v.z()*v.z() );
60  }

Member Data Documentation

◆ controller

VertexSysController* VP1TruthVertexCollection::Imp::controller = nullptr

Definition at line 63 of file VP1TruthVertexCollection.cxx.

◆ key

QString VP1TruthVertexCollection::Imp::key

Definition at line 61 of file VP1TruthVertexCollection.cxx.

◆ nodeToVertexMap

std::map<SoNode *, HepMC::ConstGenVertexPtr> VP1TruthVertexCollection::Imp::nodeToVertexMap

Definition at line 64 of file VP1TruthVertexCollection.cxx.

◆ theclass

VP1TruthVertexCollection* VP1TruthVertexCollection::Imp::theclass = nullptr

Definition at line 62 of file VP1TruthVertexCollection.cxx.

◆ vertices

QList<VertexHandle*> VP1TruthVertexCollection::Imp::vertices

Definition at line 185 of file VP1TruthVertexCollection.cxx.


The documentation for this class was generated from the following file:
checkFileSG.line
line
Definition: checkFileSG.py:75
x
#define x
z
#define z
python.PyAthena.v
v
Definition: PyAthena.py:154
y
#define y
VP1TruthVertexCollection::Imp::vertices
QList< VertexHandle * > vertices
Definition: VP1TruthVertexCollection.cxx:185