ATLAS Offline Software
Loading...
Searching...
No Matches
VP1VertexCollection::Imp Class Reference
Collaboration diagram for VP1VertexCollection::Imp:

Classes

class  VertexHandle

Public Member Functions

void findAssociatedTracks (const Trk::VxCandidate *vtx, QList< const Trk::Track * > &tracks, QList< const Trk::TrackParticleBase * > &trackparticles)
bool cut (VertexHandle *vh, VertexSysController *controller)
void recheckCut (VertexHandle *vh)

Static Public Member Functions

static QString comboBoxEntry_ColourByCollection ()
static QString comboBoxEntry_ColourByRandom ()

Public Attributes

VP1VertexCollectiontheclass = nullptr
VertexSysControllercontroller = nullptr
QString key
QList< VertexHandle * > vertices
QComboBox * comboBox_colourby = nullptr
SoMaterial * m_randommaterial = nullptr

Detailed Description

Definition at line 64 of file VP1VertexCollection.cxx.

Member Function Documentation

◆ comboBoxEntry_ColourByCollection()

QString VP1VertexCollection::Imp::comboBoxEntry_ColourByCollection ( )
inlinestatic

Definition at line 265 of file VP1VertexCollection.cxx.

265{ return "Uniform"; }

◆ comboBoxEntry_ColourByRandom()

QString VP1VertexCollection::Imp::comboBoxEntry_ColourByRandom ( )
inlinestatic

Definition at line 266 of file VP1VertexCollection.cxx.

266{ return "Random"; }

◆ cut()

bool VP1VertexCollection::Imp::cut ( VertexHandle * vh,
VertexSysController * controller )
inline

Definition at line 251 of file VP1VertexCollection.cxx.

251 {
252 return vh->type() & controller->reconCutAllowedTypes();//nb: cache allowed types val?
253 }
VertexSysController * controller
virtual QString type() const
return very short word with type (maybe link with collection type?)

◆ findAssociatedTracks()

void VP1VertexCollection::Imp::findAssociatedTracks ( const Trk::VxCandidate * vtx,
QList< const Trk::Track * > & tracks,
QList< const Trk::TrackParticleBase * > & trackparticles )

Definition at line 391 of file VP1VertexCollection.cxx.

394{
395 tracks.clear();
396 trackparticles.clear();
397 if (!vtx)
398 return;
399
400 const std::vector<Trk::VxTrackAtVertex*> * tmpVxTAVtx = vtx->vxTrackAtVertex();
401 for ( std::vector<Trk::VxTrackAtVertex*>::const_iterator itr = tmpVxTAVtx->begin(); itr != tmpVxTAVtx->end(); ++itr) {
402 Trk::ITrackLink * link = *itr ? (*itr)->trackOrParticleLink() : 0;
403 if (!link) continue;
404
405 //Attempt to get Trk::TrackParticleBase:
406
407 Trk::LinkToTrackParticleBase* linkToTrackParticle = dynamic_cast<Trk::LinkToTrackParticleBase*>(link);
408 const Trk::TrackParticleBase * tp((linkToTrackParticle && linkToTrackParticle->isValid())?linkToTrackParticle->cachedElement():0);
409
410 //Attempt to get Trk::Track - directly or from the track particle:
411 const Trk::Track* trk(0);
412 if (tp) {
413 trk = tp->originalTrack();
414 } else {
415 Trk::LinkToTrack* linkToTrack = dynamic_cast<Trk::LinkToTrack*>(link);
416 if (linkToTrack && linkToTrack->isValid())
417 trk = linkToTrack->cachedElement();
418 }
419
420 //Store:
421 if (tp)
422 trackparticles << tp;
423 if (trk)
424 tracks << trk;
425 }
426
427}
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex(void)
Unconst pointer to the vector of tracks Required by some of the vertex fitters.

◆ recheckCut()

void VP1VertexCollection::Imp::recheckCut ( VertexHandle * vh)
inline

Definition at line 255 of file VP1VertexCollection.cxx.

255 {
256 if (cut(vh,controller))
257 vh->ensureAttached(theclass->collSep(),controller);
258 else
259 vh->ensureDetached(theclass->collSep());
260 }
bool cut(VertexHandle *vh, VertexSysController *controller)
VP1VertexCollection * theclass

Member Data Documentation

◆ comboBox_colourby

QComboBox* VP1VertexCollection::Imp::comboBox_colourby = nullptr

Definition at line 264 of file VP1VertexCollection.cxx.

◆ controller

VertexSysController* VP1VertexCollection::Imp::controller = nullptr

Definition at line 67 of file VP1VertexCollection.cxx.

◆ key

QString VP1VertexCollection::Imp::key

Definition at line 68 of file VP1VertexCollection.cxx.

◆ m_randommaterial

SoMaterial* VP1VertexCollection::Imp::m_randommaterial = nullptr

Definition at line 268 of file VP1VertexCollection.cxx.

◆ theclass

VP1VertexCollection* VP1VertexCollection::Imp::theclass = nullptr

Definition at line 66 of file VP1VertexCollection.cxx.

◆ vertices

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

Definition at line 262 of file VP1VertexCollection.cxx.


The documentation for this class was generated from the following file: