ATLAS Offline Software
VertexHandle.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VertexHandle //
9 // //
10 // Description: Base class for IParticle xAOD. //
11 // //
12 // Author: E. Moyse //
13 // //
15 
16 #ifndef VERTEXHANDLE_H
17 #define VERTEXHANDLE_H
18 
20 
21 #include <QStringList>
22 #include <QTreeWidgetItem>
23 #include <vector>
24 #include <set>
25 #include <QList>
26 #include <QFlags>
27 #include "xAODTracking/Vertex.h"
28 #include "AODHandleBase.h"
29 
30 
33 class VertexCollHandle;
34 class SoMaterial;
35 class SoNode;
36 
37 class AODSysCommonData;
38 
39 class VertexHandle : public AODHandleBase {
40 public:
41 
42  static int numberOfInstances();
43 
45  virtual ~VertexHandle();
46 
48  virtual bool has3DObjects();
49 
51  virtual SoNode* nodes();
54  SoMaterial * determineMaterial();
55 
58 
60  virtual void clear3DObjects();
61 
62  QStringList baseInfo() const;
65  virtual QStringList clicked() const;
66 
67  virtual QString shortInfo() const ;
68  virtual QString type() const { return QString("Vertex"); }
69  QString vertexType() const;
70 
71  double getPositionX() const;
72  double getPositionY() const;
73  double getPositionZ() const;
74 
75 private:
76 
77  // It is illegal to copy/assign a VertexHandle:
80 
82  class Imp;
83  Imp * m_d;
84 };
85 
86 
87 #endif
VertexHandle::operator=
VertexHandle & operator=(const VertexHandle &)
AssociatedObjectHandleBase
Definition: AssociatedObjectHandleBase.h:33
VertexHandle::shortInfo
virtual QString shortInfo() const
returns position & type information about vertex
Definition: VertexHandle.cxx:203
AODHandleBase
Definition: AODHandleBase.h:43
VertexHandle::updateMaterial
void updateMaterial()
Called after some configuration related to material changes.
AODSysCommonData
Definition: AODSysCommonData.h:42
VertexHandle::has3DObjects
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
Definition: VertexHandle.cxx:91
VertexHandle::getPositionY
double getPositionY() const
Definition: VertexHandle.cxx:193
VertexHandle::determineMaterial
SoMaterial * determineMaterial()
Should be implemented by children, in order to change the material depending on the interface etc.
Definition: VertexHandle.cxx:148
VertexHandle::VertexHandle
VertexHandle(VertexCollHandle *, const xAOD::Vertex *vertex)
Definition: VertexHandle.cxx:69
VertexHandle::clear3DObjects
virtual void clear3DObjects()
Delete objects.
Definition: VertexHandle.cxx:97
GeoPrimitives.h
AssocObjAttachmentHandle
Definition: TrackHandleBase.h:197
VertexHandle::Imp
Definition: VertexHandle.cxx:48
VertexHandle::clicked
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
Definition: VertexHandle.cxx:209
Vertex.h
VertexHandle::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: VertexHandle.h:68
VertexHandle::baseInfo
QStringList baseInfo() const
Definition: VertexHandle.cxx:155
VertexHandle::nodes
virtual SoNode * nodes()
Returns the 3Dobjects.
Definition: VertexHandle.cxx:112
VertexCollHandle
Definition: VertexCollHandle.h:42
VertexHandle::getPositionZ
double getPositionZ() const
Definition: VertexHandle.cxx:197
VertexHandle
Definition: VertexHandle.h:39
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
VertexHandle::getPositionX
double getPositionX() const
Definition: VertexHandle.cxx:189
VertexHandle::vertexType
QString vertexType() const
Definition: VertexHandle.cxx:165
AODHandleBase.h
VertexHandle::numberOfInstances
static int numberOfInstances()
Definition: VertexHandle.cxx:84
VertexHandle::VertexHandle
VertexHandle(const VertexHandle &)
VertexHandle::m_d
Imp * m_d
Definition: VertexHandle.h:82
VertexHandle::~VertexHandle
virtual ~VertexHandle()
Definition: VertexHandle.cxx:77