ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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()

static QString VP1VertexCollection::Imp::comboBoxEntry_ColourByCollection ( )
inlinestatic

Definition at line 265 of file VP1VertexCollection.cxx.

265 { return "Uniform"; }

◆ comboBoxEntry_ColourByRandom()

static 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  }

◆ 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 }

◆ 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  }

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:
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
ParticleTest.tp
tp
Definition: ParticleTest.py:25
VertexSysController::reconCutAllowedTypes
VertexCommonFlags::ReconVertexTypeFlags reconCutAllowedTypes() const
Definition: VertexSysController.cxx:318
Trk::TrackParticleBase
Definition: TrackParticleBase.h:41
VP1VertexCollection::Imp::theclass
VP1VertexCollection * theclass
Definition: VP1VertexCollection.cxx:66
Trk::VxCandidate::vxTrackAtVertex
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex(void)
Unconst pointer to the vector of tracks Required by some of the vertex fitters.
Definition: VxCandidate.h:144
VP1VertexCollection::Imp::controller
VertexSysController * controller
Definition: VP1VertexCollection.cxx:67
VP1VertexCollection::Imp::cut
bool cut(VertexHandle *vh, VertexSysController *controller)
Definition: VP1VertexCollection.cxx:251
Trk::LinkToTrack
AUTO - An Undocumented Tracking Object.
Definition: LinkToTrack.h:20
VertexHandle::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: VertexHandle.h:68
Trk::LinkToTrackParticleBase
Definition: LinkToTrackParticleBase.h:17
VP1StdCollection::collSep
SoSeparator * collSep() const
All 3D objects from this coll.
Definition: VP1StdCollection.cxx:212