#include <VertexHandle.h>
Definition at line 39 of file VertexHandle.h.
◆ VertexHandle() [1/2]
Definition at line 69 of file VertexHandle.cxx.
71{
74}
AODHandleBase(AODCollHandleBase *)
static std::atomic< int > nvtxhandles
◆ ~VertexHandle()
| VertexHandle::~VertexHandle |
( |
| ) |
|
|
virtual |
◆ VertexHandle() [2/2]
◆ attach3DObjects()
| void AODHandleBase::attach3DObjects |
( |
| ) |
|
|
virtualinherited |
Connect to the scene graph.
Definition at line 157 of file AODHandleBase.cxx.
158{
160
165 }
168
170
171
172
174
175
176
178
179 } else {
181 VP1Msg::message(
"AODHandleBase::attach3DObjects() - No 3D objects to attach!");
182 }
184 }
185
186
187
188}
virtual void currentMaterialChanged()
SoMaterial * m_currentmaterial
virtual SoNode * nodes()=0
Returns the 3Dobjects.
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
virtual SoMaterial * determineMaterial()=0
Should be implemented by children, in order to change the material depending on the interface etc.
AODCollHandleBase * m_collhandle
static void messageVerbose(const QString &)
static void message(const QString &, IVP1System *sys=0)
◆ baseInfo()
| QStringList VertexHandle::baseInfo |
( |
| ) |
const |
|
virtual |
Reimplemented from AODHandleBase.
Definition at line 155 of file VertexHandle.cxx.
156{
159
162}
static QString str(const QString &s)
virtual QString shortInfo() const
returns position & type information about vertex
l
Printing final latex table to .tex output file.
◆ browserTreeItem()
| QTreeWidgetItem * AODHandleBase::browserTreeItem |
( |
| ) |
const |
|
inherited |
Return the QTreeWidgetItem;.
Definition at line 311 of file AODHandleBase.cxx.
311 {
312 return m_d->m_objBrowseTree;
313}
◆ clear3DObjects()
| void VertexHandle::clear3DObjects |
( |
| ) |
|
|
virtual |
◆ clicked()
| QStringList VertexHandle::clicked |
( |
| ) |
const |
|
virtual |
Called when user selects the node (stringlist is displayed in messagebox).
Reimplementations should add info momInfo() to get momentum, eta, phi, pid,charge, mass printed.
Implements AODHandleBase.
Definition at line 209 of file VertexHandle.cxx.
210{
214 #ifndef BUILDVP1LIGHT
215 try {
216 l<<
"Has "<<
VP1Msg::str(
m_d->vertex->vxTrackAtVertex ().size()) <<
" associated tracks.";
217 } catch ( SG::ExcBadAuxVar& ) {
218 l<<
"Vertex is missing links to tracks!";
219 }
220 #endif
222}
QStringList baseInfo() const
◆ collHandle()
◆ common()
◆ currentMaterial()
| SoMaterial * AODHandleBase::currentMaterial |
( |
| ) |
const |
|
inlineinherited |
Returns the current material of the handle.
Definition at line 76 of file AODHandleBase.h.
◆ currentMaterialChanged()
| virtual void AODHandleBase::currentMaterialChanged |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ detach3DObjects()
| void AODHandleBase::detach3DObjects |
( |
| ) |
|
|
virtualinherited |
Remove from the scene graph.
Definition at line 191 of file AODHandleBase.cxx.
192{
194
196 return;
199 }
200
202
203
204
205}
◆ determineMaterial()
| SoMaterial * VertexHandle::determineMaterial |
( |
| ) |
|
|
virtual |
Should be implemented by children, in order to change the material depending on the interface etc.
This will (by default) return the collection material.
Implements AODHandleBase.
Definition at line 148 of file VertexHandle.cxx.
148 {
149
150
152}
const AODCollHandleBase * collHandle() const
SoMaterial * material() const
◆ dumpToJSON()
| virtual void AODHandleBase::dumpToJSON |
( |
std::ofstream & | | ) |
const |
|
inlinevirtualinherited |
◆ fillObjectBrowser()
| void AODHandleBase::fillObjectBrowser |
( |
QList< QTreeWidgetItem * > & | list | ) |
|
|
virtualinherited |
Create and fill the object browser QTreeWidgetItem.
Reimplemented in IParticleHandle_CaloCluster, IParticleHandle_Electron, IParticleHandle_Jet, IParticleHandle_Muon, IParticleHandle_TrackParticle, and MissingEtHandle.
Definition at line 288 of file AODHandleBase.cxx.
288 {
289
291
292 if (
m_d->m_objBrowseTree){
293 VP1Msg::message(
"ERROR: AODHandleBase::fillObjectBrowser - already have m_objBrowseTree. Aborting.");
294 return;
295 }
296
297 m_d->m_objBrowseTree =
new QTreeWidgetItem();
298
300
301 m_d->m_objBrowseTree->setText(0,
type()+QString(QString::number(listOfItems.size())) );
302 m_d->m_objBrowseTree->setText(1, l );
303
305 m_d->m_objBrowseTree->setFlags(Qt::ItemFlags());
306 }
308}
virtual QString type() const
return very short word with type (maybe link with collection type?)
QTreeWidgetItem * browserTreeItem() const
Return the QTreeWidgetItem;.
virtual QString shortInfo() const
returns mom and hit information about track
static void messageDebug(const QString &)
◆ getPositionX()
| double VertexHandle::getPositionX |
( |
| ) |
const |
◆ getPositionY()
| double VertexHandle::getPositionY |
( |
| ) |
const |
◆ getPositionZ()
| double VertexHandle::getPositionZ |
( |
| ) |
const |
◆ has3DObjects()
| bool VertexHandle::has3DObjects |
( |
| ) |
|
|
virtual |
◆ nodes()
| SoNode * VertexHandle::nodes |
( |
| ) |
|
|
virtual |
Returns the 3Dobjects.
Implements AODHandleBase.
Definition at line 112 of file VertexHandle.cxx.
112 {
113
115
119 }
122 m_d->sep =
new SoSeparator();
124 }
125
126
127
128
129
130
131
132
133
134
136
137 SoTranslation * translation = new SoTranslation;
138 translation->translation.setValue (
m_d->vertex->x(),
m_d->vertex->y(),
m_d->vertex->z() );
139 m_d->sep->addChild ( translation );
140 m_d->sphere =
new SoSphere;
141 m_d->sphere->radius =
m_d->collHandle->collSettingsButton().vertexSize();
142 m_d->sep->addChild (
m_d->sphere );
143
145}
◆ numberOfInstances()
| int VertexHandle::numberOfInstances |
( |
| ) |
|
|
static |
◆ operator=()
◆ rebuild3DObjects()
| void AODHandleBase::rebuild3DObjects |
( |
| ) |
|
|
virtualinherited |
Definition at line 137 of file AODHandleBase.cxx.
138{
141
142
145 }
146
149
150
153 }
154}
virtual void clear3DObjects()=0
Delete objects.
virtual void detach3DObjects()
Remove from the scene graph.
virtual void attach3DObjects()
Connect to the scene graph.
◆ setVisible()
| void AODHandleBase::setVisible |
( |
bool | vis | ) |
|
|
inherited |
use by the collection handle.
Definition at line 99 of file AODHandleBase.cxx.
100{
101 QString
tmp = (vis==
true)?
"True":
"False";
103 VP1Msg::messageDebug(QString(
"AODHandleBase calling setVisible with vis=")+tmp+QString(
", and m_visible=")+tmp2 );
105 return;
106
108 if (vis) {
110
113 else
115 } else {
118 }
119
121}
virtual void rebuild3DObjects()
virtual void visibleStateChanged()
Dummy implementation does nothing.
◆ shortInfo()
| QString VertexHandle::shortInfo |
( |
| ) |
const |
|
virtual |
returns position & type information about vertex
Reimplemented from AODHandleBase.
Definition at line 203 of file VertexHandle.cxx.
203 {
206}
QString vertexType() const
◆ type()
| virtual QString VertexHandle::type |
( |
| ) |
const |
|
inlinevirtual |
return very short word with type (maybe link with collection type?)
Reimplemented from AODHandleBase.
Definition at line 68 of file VertexHandle.h.
◆ unknown()
| double AODHandleBase::unknown |
( |
| ) |
|
|
inlinestaticinherited |
◆ update3DObjects()
| void AODHandleBase::update3DObjects |
( |
| ) |
|
|
virtualinherited |
Called after some configuration changes, or when the object is first created. Must be overloaded by children.
Definition at line 125 of file AODHandleBase.cxx.
126{
129 } else {
130
132 }
133}
◆ updateMaterial()
| void VertexHandle::updateMaterial |
( |
| ) |
|
Called after some configuration related to material changes.
◆ updateObjectBrowser()
| void AODHandleBase::updateObjectBrowser |
( |
| ) |
|
|
inlineinherited |
◆ vertexType()
| QString VertexHandle::vertexType |
( |
| ) |
const |
Definition at line 165 of file VertexHandle.cxx.
165 {
166 using namespace xAOD;
167
168 switch (
m_d->vertex->vertexType()){
170 return QString("Type: Dummy");
172 return QString("Type: Primary");
174 return QString("Type: Secondary");
176 return QString("Type: Pileup");
178 return QString("Type: Conversion");
180 return QString("Type: Kink");
182 return QString("Type: Not specified (default)");
183 default:
184 return QString("Unknown vertex type - probably VP1 needs updating!");
185 }
186}
@ ConvVtx
Conversion vertex.
@ NotSpecified
Default value, no explicit type set.
@ SecVtx
Secondary vertex.
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
◆ visible()
| bool AODHandleBase::visible |
( |
| ) |
const |
|
inlineinherited |
◆ visibleStateChanged()
| void AODHandleBase::visibleStateChanged |
( |
| ) |
|
|
protectedvirtualinherited |
Dummy implementation does nothing.
override if need to take action in this case.
Definition at line 316 of file AODHandleBase.cxx.
317{
320 return;
321 }
322
325 } else {
327 }
329 itemFont.setStrikeOut(!
visible());
332}
◆ AssocObjAttachmentHandle
◆ m_collhandle
◆ m_currentmaterial
| SoMaterial* AODHandleBase::m_currentmaterial |
|
privateinherited |
◆ m_d
◆ m_visible
| bool AODHandleBase::m_visible |
|
privateinherited |
The documentation for this class was generated from the following files: