ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
TrackHandle_TrackParticle Class Reference

#include <TrackHandle_TrackParticle.h>

Inheritance diagram for TrackHandle_TrackParticle:
Collaboration diagram for TrackHandle_TrackParticle:

Classes

class  Imp
 

Public Member Functions

 TrackHandle_TrackParticle (TrackCollHandleBase *, const Rec::TrackParticle *)
 
virtual ~TrackHandle_TrackParticle ()
 
virtual QStringList clicked () const
 Called when user selects the node (stringlist is displayed in messagebox). More...
 
virtual Amg::Vector3D momentum () const
 
virtual unsigned getNPixelHits () const
 
virtual unsigned getNSCTHits () const
 
virtual unsigned getNTRTHits () const
 
virtual unsigned getNMuonPhiHits () const
 The number of phi hits is part of hit counts below (i.e. More...
 
virtual unsigned getNMDTHits () const
 
virtual unsigned getNRPCHits () const
 
virtual unsigned getNTGCHits () const
 
virtual unsigned getNCSCHits () const
 
virtual unsigned getNMuonPrecisionHits () const
 
virtual QString type () const
 return very short word with type (maybe link with collection type?) More...
 
TrackSysCommonDatacommon () const
 
void setVisible (bool)
 use by the collection handle. More...
 
bool visible () const
 
TrackCollHandleBasecollHandle () const
 
const std::set< GeoPVConstLink > & touchedMuonChambers () const
 
void update3DObjects (bool invalidatePropagatedPoints=false, float maxR=0.0)
 
void updateInDetProjections ()
 
void updateMuonProjections ()
 
void updateMaterial ()
 
void rerandomiseRandomMaterial ()
 
void updateRandomColourTransparencyAndBrightness ()
 
SoMaterial * currentMaterial () const
 
QStringList baseInfo () const
 
virtual std::optional< Amg::Vector3DstartPoint () const
 returns 0 if can't find start point. More...
 
virtual std::optional< Amg::Vector3DendPoint () const
 returns 0 if can't find start point. More...
 
virtual int pdgCode () const
 0 means unknown More...
 
double charge () const
 
virtual double mass () const
 
bool hasCharge () const
 
bool hasMass () const
 
virtual bool isRun4EDM () const
 
virtual bool isIDTrack () const
 
virtual unsigned getNMuonHits () const
 
virtual unsigned getNMMHits () const
 
virtual unsigned getNsTGCHits () const
 
virtual const Trk::FitQualitygetFitQuality () const
 
virtual const MuonGM::MuonReadoutElementgetMuonReadoutElement (const Trk::RIO_OnTrack &mb) const
 
QList< AssociatedObjectHandleBase * > getVisibleMeasurements () const
 
TrackCommonFlags::TSOSPartsFlags shownTSOSParts () const
 
TrackCommonFlags::TSOSPartsFlags customColouredTSOSParts () const
 
std::vector< Amg::Vector3D > * hackGetPointsPropagated ()
 FIXME. More...
 
virtual QString shortInfo () const
 returns mom and hit information about track More...
 
virtual void fillObjectBrowser (QList< QTreeWidgetItem * > &list)
 Called in child classes. More...
 
virtual void updateObjectBrowser ()
 
QTreeWidgetItem * browserTreeItem () const
 

Static Public Member Functions

static int numberOfInstances ()
 
static double unknown ()
 

Protected Member Functions

const Trk::Trackprovide_pathInfoTrkTrack () const
 
void ensureTouchedMuonChambersInitialised () const
 
double calculateCharge () const
 
virtual bool hasSubSystemHitInfo () const
 
virtual const std::vector< Amg::Vector3D > * provide_pathInfoPoints ()
 
virtual Trk::ParticleHypothesis extrapolationParticleHypothesis () const
 Default implementation of this next method bases hypothesis on pdgCode() and charge(): More...
 
void registerTouchedMuonChamber (const GeoPVConstLink &) const
 If not earlier, touched muon chambers must me registered at latest when this method is invoked. More...
 
virtual void visibleStateChanged ()
 override if need to take action in this case. More...
 
virtual void currentMaterialChanged ()
 
QList< AssociatedObjectHandleBase * > getAllAscObjHandles () const
 override if need to take action in this case. More...
 
virtual bool containsDetElement (const QString &) const
 
void registerAssocObject (AssociatedObjectHandleBase *)
 Trackhandle assumes ownership. More...
 
virtual void ensureInitTSOSs (std::vector< AssociatedObjectHandleBase * > *&)
 Ensure that the TSOSs are initialized. More...
 

Private Member Functions

void ensureInitSubSysHitInfo () const
 
void clearLine ()
 
void registerTrack ()
 
void updateShapes_TSOSWithMeasurements ()
 
void updateShapes_TSOSWithErrors ()
 
void updateShapes_TSOSWithMaterialEffects ()
 
void setShownTSOSParts (TrackCommonFlags::TSOSPartsFlags f)
 
void setCustomColouredTSOSParts (TrackCommonFlags::TSOSPartsFlags f)
 
AssocObjAttachmentHandlegetAttachmentHandle (int regionIndex, const double &crossoverval)
 

Private Attributes

Impm_d
 
bool m_visible
 
TrackCollHandleBasem_collhandle
 
SoMaterial * m_currentmaterial
 

Detailed Description

Definition at line 23 of file TrackHandle_TrackParticle.h.

Constructor & Destructor Documentation

◆ TrackHandle_TrackParticle()

TrackHandle_TrackParticle::TrackHandle_TrackParticle ( TrackCollHandleBase ch,
const Rec::TrackParticle tp 
)

Definition at line 59 of file TrackHandle_TrackParticle.cxx.

60  : TrackHandleBase(ch), m_d(new Imp)
61 {
62  m_d->theclass = this;
63  m_d->trackparticle = tp;
64  m_d->trkTrack = nullptr;
65  m_d->trkTrackInit = false;
66 
67 }

◆ ~TrackHandle_TrackParticle()

TrackHandle_TrackParticle::~TrackHandle_TrackParticle ( )
virtual

Definition at line 70 of file TrackHandle_TrackParticle.cxx.

71 {
72  delete m_d;
73 }

Member Function Documentation

◆ baseInfo()

QStringList TrackHandleBase::baseInfo ( ) const
inherited

coverity 17186: this code is unreachable int pdg = pdgCode(); if (pdg) { bool ok; QString name = VP1ParticleData::particleName(pdg,ok); if (ok) l << "pdg: "+QString::number(pdg)+" ["+name+"]"; else l << "pdg: "+QString::number(pdg); }

return l;

Definition at line 1551 of file TrackHandleBase.cxx.

1552 {
1553  QStringList l;
1555  mom /= CLHEP::GeV;
1556  if (mom.mag2()==0.0) {
1557  l << "Momentum : 0 (undefined)";
1558  } else {
1559  l << "Momentum [GeV]: "+VP1Msg::str(mom);
1560  l << "|Pt|/|P| [GeV]: "+VP1Msg::str(mom.perp())+" / " + VP1Msg::str(mom.mag());
1561  l << VP1Msg::str("(")+QChar(0x03B7)+","+QChar(0x03D5)+VP1Msg::str(")=(")
1563 
1564  l << "Eta: "+VP1Msg::str(mom.eta());
1565  l << "Phi: "+VP1Msg::str(VP1LinAlgUtils::phiFromXY(mom.x(), mom.y() ));
1566  }
1567  l<<"Hit summary: Pix["+VP1Msg::str(getNPixelHits())+"], SCT["+VP1Msg::str(getNSCTHits())+"], TRT["+VP1Msg::str(getNTRTHits())
1569 
1570  return l;
1584 }

◆ browserTreeItem()

QTreeWidgetItem * TrackHandleBase::browserTreeItem ( ) const
inherited

Definition at line 2026 of file TrackHandleBase.cxx.

2026 {return m_d->m_objBrowseTree;}

◆ calculateCharge()

double TrackHandle_TrackParticle::calculateCharge ( ) const
protectedvirtual

Reimplemented from TrackHandleBase.

Definition at line 94 of file TrackHandle_TrackParticle.cxx.

95 {
96  const Trk::Perigee* p = m_d->trackparticle->perigee();
97  if (!common()->trackSanityHelper()->isSafe(p))
98  return unknown();//fixme: warn
99  return p->charge();
100 }

◆ charge()

double TrackHandleBase::charge ( ) const
inherited

Definition at line 1508 of file TrackHandleBase.cxx.

1509 {
1510  if (m_d->chargeinit)
1511  return m_d->charge;
1512  m_d->chargeinit = true;
1513  m_d->charge = calculateCharge();
1514  return m_d->charge;
1515 }

◆ clearLine()

void TrackHandleBase::clearLine ( )
privateinherited

Definition at line 640 of file TrackHandleBase.cxx.

641 {
642  if (m_d->line) {
644  m_d->line->unref();
645  m_d->line=nullptr;
646  }
647 }

◆ clicked()

QStringList TrackHandle_TrackParticle::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 TrackHandleBase.

Definition at line 76 of file TrackHandle_TrackParticle.cxx.

77 {
78  QStringList l;
79  l << "TrackParticle:";
81  return l;
82 }

◆ collHandle()

TrackCollHandleBase* TrackHandleBase::collHandle ( ) const
inlineinherited

Definition at line 68 of file TrackHandleBase.h.

68 { return m_collhandle; }

◆ common()

TrackSysCommonData * TrackHandleBase::common ( ) const
inherited

Definition at line 255 of file TrackHandleBase.cxx.

256 {
257  return m_collhandle->common();
258 }

◆ containsDetElement()

virtual bool TrackHandleBase::containsDetElement ( const QString &  ) const
inlineprotectedvirtualinherited

Reimplemented in TrackHandle_TrkTrack, and TrackHandle_TrackContainer.

Definition at line 164 of file TrackHandleBase.h.

164 {return false; }

◆ currentMaterial()

SoMaterial* TrackHandleBase::currentMaterial ( ) const
inlineinherited

Definition at line 76 of file TrackHandleBase.h.

76 { return m_currentmaterial; }

◆ currentMaterialChanged()

virtual void TrackHandleBase::currentMaterialChanged ( )
inlineprotectedvirtualinherited

Reimplemented in TrackHandle_TrkTrack, TrackHandle_TrkSegment, and TrackHandle_TrackContainer.

Definition at line 160 of file TrackHandleBase.h.

160 {};

◆ customColouredTSOSParts()

TrackCommonFlags::TSOSPartsFlags TrackHandleBase::customColouredTSOSParts ( ) const
inherited

Definition at line 306 of file TrackHandleBase.cxx.

307 {
308  return m_d->customColouredTSOSParts;//FIXME: inline?
309 }

◆ endPoint()

std::optional< Amg::Vector3D > TrackHandleBase::endPoint ( ) const
virtualinherited

returns 0 if can't find start point.

Definition at line 1607 of file TrackHandleBase.cxx.

1608 {
1610  if (m_d->pathInfo_TrkTrack) {
1613  for (; tsos_iter != tsos_end; ++tsos_iter) {
1614  if (common()->trackSanityHelper()->isSafe(*tsos_iter)) {
1615  const Trk::TrackParameters* trackParam = (*tsos_iter)->trackParameters();
1616  if (common()->trackSanityHelper()->isSafe(trackParam))
1617  return trackParam->position();
1618  }
1619  }
1620  } else if (m_d->pathInfo_Points&&!m_d->pathInfo_Points->empty()) {
1621  return m_d->pathInfo_Points->back();
1622  }
1623  return {};
1624 }

◆ ensureInitSubSysHitInfo()

void TrackHandle_TrackParticle::ensureInitSubSysHitInfo ( ) const
private

◆ ensureInitTSOSs()

void TrackHandleBase::ensureInitTSOSs ( std::vector< AssociatedObjectHandleBase * > *&  tsos_ascobjs)
protectedvirtualinherited

Ensure that the TSOSs are initialized.

This is called by update3DObjects() and should be called by any method that needs to access the TSOSs.

Reimplemented in TrackHandle_TrackContainer.

Definition at line 380 of file TrackHandleBase.cxx.

381 {
382  std::cout<<"TrackHandleBase::ensureInitTSOSs"<<std::endl;
383  if (tsos_ascobjs)
384  return;
385 
386  tsos_ascobjs = new std::vector<AssociatedObjectHandleBase*>;
388 
390  return;
391 
392  tsos_ascobjs->reserve(m_d->pathInfo_TrkTrack->trackParameters()->size());
393 
394  unsigned parindex(0);
395 
396  AscObj_TSOS* ascObjNeedDistToNext(nullptr);
399  const Trk::TrackParameters* trackParam(nullptr);
400  for (; tsos_iter != tsos_end; ++tsos_iter) {
401  trackParam = (*tsos_iter)->trackParameters();
402  if (!VP1TrackSanity::isSafe(*tsos_iter)) {
403  parindex++;
404  continue;
405  }
406  if (trackParam&&!VP1TrackSanity::isSafe(trackParam)) {
407  parindex++;
408  continue;
409  }
410  //FIXME: likewise check that we don't have a bad measurement, material effect, ...
411  if (ascObjNeedDistToNext&&trackParam) {
412  ascObjNeedDistToNext->setDistToNextPar((trackParam->position()-ascObjNeedDistToNext->approxCenter()).mag());
413  ascObjNeedDistToNext = nullptr;
414  }
415  VP1Msg::messageVerbose("Adding TSOS at index:"+QString::number(parindex));
416  ascObjNeedDistToNext = m_d->addTSOS(*tsos_iter,parindex++);
417  }
418 
419 }

◆ ensureTouchedMuonChambersInitialised()

void TrackHandle_TrackParticle::ensureTouchedMuonChambersInitialised ( ) const
protectedvirtual

Reimplemented from TrackHandleBase.

Definition at line 137 of file TrackHandle_TrackParticle.cxx.

138 {
139 }

◆ extrapolationParticleHypothesis()

Trk::ParticleHypothesis TrackHandleBase::extrapolationParticleHypothesis ( ) const
protectedvirtualinherited

Default implementation of this next method bases hypothesis on pdgCode() and charge():

Definition at line 1534 of file TrackHandleBase.cxx.

1535 {
1536  switch(abs(pdgCode())) {
1537  case 211: return Trk::pion;
1538  case 2212: return Trk::proton;
1539  case 11: return Trk::electron;
1540  case 13: return Trk::muon;
1541  case 321://k+
1542  case 323://k*+
1543  return Trk::kaon;
1544  case 0:
1545  default:
1547  }
1548 }

◆ fillObjectBrowser()

void TrackHandleBase::fillObjectBrowser ( QList< QTreeWidgetItem * > &  list)
virtualinherited

Called in child classes.

Reimplemented in TrackHandle_TrkTrack, and TrackHandle_TrackContainer.

Definition at line 2009 of file TrackHandleBase.cxx.

2009  {
2010  VP1Msg::messageVerbose("TrackHandleBase::fillObjectBrowser");
2011 
2012  assert(m_d->m_objBrowseTree==0);
2013  m_d->m_objBrowseTree = new QTreeWidgetItem();
2014 
2015  QString direction = QString::fromUtf8("(\u03B7,\u03D5)=[") + QString::number(momentum().eta(),'f',2) + ","+QString::number(momentum().phi(),'f',2)+"], ";
2016  QString l = direction + shortInfo();
2017  m_d->m_objBrowseTree->setText(0, type()+QString(QString::number(listOfItems.size())) );
2018  m_d->m_objBrowseTree->setText(1, l );
2019 
2020  if (!visible()) {
2021  m_d->m_objBrowseTree->setFlags(Qt::ItemFlags()); // not selectable, not enabled
2022  }
2023  listOfItems << browserTreeItem();
2024 }

◆ getAllAscObjHandles()

QList< AssociatedObjectHandleBase * > TrackHandleBase::getAllAscObjHandles ( ) const
protectedinherited

override if need to take action in this case.

Return list of all AscObj handles. Not guaranteed to be filled unless tsoses are visible.

Definition at line 1634 of file TrackHandleBase.cxx.

1635 {
1636  return m_d->associatedObjects;
1637 }

◆ getAttachmentHandle()

AssocObjAttachmentHandle * TrackHandleBase::getAttachmentHandle ( int  regionIndex,
const double &  crossoverval 
)
privateinherited

Definition at line 1468 of file TrackHandleBase.cxx.

1469 {
1470  std::map<std::pair<int,double>,AssocObjAttachmentHandle *>::iterator
1471  it = m_d->attachmentHandles.find(std::make_pair(regionIndex,crossoverval));
1472  if (it!=m_d->attachmentHandles.end())
1473  return it->second;
1474  AssocObjAttachmentHandle *attachHandle
1475  = new AssocObjAttachmentHandle(common()->trackLODManager()->getLODHandle(regionIndex,crossoverval),this);
1476  m_d->attachmentHandles[std::make_pair(regionIndex,crossoverval)] = attachHandle;
1477  return attachHandle;
1478 }

◆ getFitQuality()

virtual const Trk::FitQuality* TrackHandleBase::getFitQuality ( ) const
inlinevirtualinherited

Reimplemented in TrackHandle_TrkTrack.

Definition at line 119 of file TrackHandleBase.h.

119 {return nullptr;}

◆ getMuonReadoutElement()

const MuonGM::MuonReadoutElement * TrackHandleBase::getMuonReadoutElement ( const Trk::RIO_OnTrack mb) const
virtualinherited

Definition at line 1966 of file TrackHandleBase.cxx.

1966  {
1967  const MuonGM::MuonReadoutElement* re = nullptr;
1968  switch (TrkObjToString::type(&mb)){
1969  case TrkObjToString::MDT:
1971  break;
1972  case TrkObjToString::CSC:
1974  break;
1975  case TrkObjToString::RPC:
1977  break;
1978  case TrkObjToString::TGC:
1980  break;
1981  case TrkObjToString::sTGC:
1983  break;
1984  case TrkObjToString::MM:
1986  break;
1987  default:
1988  VP1Msg::message("TrackHandleBase::getReadoutElement:: Unable to find matching readoutElement");
1989  }
1990  return re;
1991  }

◆ getNCSCHits()

unsigned TrackHandle_TrackParticle::getNCSCHits ( ) const
virtual

◆ getNMDTHits()

unsigned TrackHandle_TrackParticle::getNMDTHits ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 162 of file TrackHandle_TrackParticle.cxx.

163 {
165 }

◆ getNMMHits()

virtual unsigned TrackHandleBase::getNMMHits ( ) const
inlinevirtualinherited

Reimplemented in TrackHandle_TrkTrack, and TrackHandle_TrkSegment.

Definition at line 116 of file TrackHandleBase.h.

116 { return 0; }

◆ getNMuonHits()

virtual unsigned TrackHandleBase::getNMuonHits ( ) const
inlinevirtualinherited

Definition at line 110 of file TrackHandleBase.h.

◆ getNMuonPhiHits()

unsigned TrackHandle_TrackParticle::getNMuonPhiHits ( ) const
virtual

The number of phi hits is part of hit counts below (i.e.

RPC hits include phi hits), but reported separately due to importance.

Reimplemented from TrackHandleBase.

Definition at line 157 of file TrackHandle_TrackParticle.cxx.

◆ getNMuonPrecisionHits()

unsigned TrackHandle_TrackParticle::getNMuonPrecisionHits ( ) const
virtual

◆ getNPixelHits()

unsigned TrackHandle_TrackParticle::getNPixelHits ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 142 of file TrackHandle_TrackParticle.cxx.

143 {
145 }

◆ getNRPCHits()

unsigned TrackHandle_TrackParticle::getNRPCHits ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 167 of file TrackHandle_TrackParticle.cxx.

168 {
170 }//____________________________________________________________________

◆ getNSCTHits()

unsigned TrackHandle_TrackParticle::getNSCTHits ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 147 of file TrackHandle_TrackParticle.cxx.

148 {
150 }

◆ getNsTGCHits()

virtual unsigned TrackHandleBase::getNsTGCHits ( ) const
inlinevirtualinherited

Reimplemented in TrackHandle_TrkTrack.

Definition at line 117 of file TrackHandleBase.h.

117 { return 0; }

◆ getNTGCHits()

unsigned TrackHandle_TrackParticle::getNTGCHits ( ) const
virtual

◆ getNTRTHits()

unsigned TrackHandle_TrackParticle::getNTRTHits ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 152 of file TrackHandle_TrackParticle.cxx.

153 {
155 }

◆ getVisibleMeasurements()

QList< AssociatedObjectHandleBase * > TrackHandleBase::getVisibleMeasurements ( ) const
inherited

Definition at line 1996 of file TrackHandleBase.cxx.

1997 {
1998  QList<AssociatedObjectHandleBase*> l;
1999  if (!m_d->tsos_ascobjs) return l;
2001  it(m_d->tsos_ascobjs->begin()),
2002  itE(m_d->tsos_ascobjs->end());
2003  for (;it!=itE;++it)
2004  if ((*it)->hasMeasurement()&&(*it)->visible())
2005  l << (*it);
2006  return l;
2007 }

◆ hackGetPointsPropagated()

std::vector< Amg::Vector3D > * TrackHandleBase::hackGetPointsPropagated ( )
inherited

FIXME.

Used to get position of track for use in short tubes etc.

Definition at line 1639 of file TrackHandleBase.cxx.

1640 {
1642  return m_d->points_propagated;
1643 }

◆ hasCharge()

bool TrackHandleBase::hasCharge ( ) const
inlineinherited

Definition at line 99 of file TrackHandleBase.h.

99 { return charge()!=unknown(); }

◆ hasMass()

bool TrackHandleBase::hasMass ( ) const
inlineinherited

Definition at line 100 of file TrackHandleBase.h.

100 { return mass()!=unknown(); }

◆ hasSubSystemHitInfo()

virtual bool TrackHandle_TrackParticle::hasSubSystemHitInfo ( ) const
inlineprotectedvirtual

Reimplemented from TrackHandleBase.

Definition at line 49 of file TrackHandle_TrackParticle.h.

49 { return true; } //TODO - maybe actually check content? But a TP MUST have some hit info.

◆ isIDTrack()

bool TrackHandleBase::isIDTrack ( ) const
virtualinherited

Definition at line 1626 of file TrackHandleBase.cxx.

1627 {
1628  std::optional<Amg::Vector3D> start = startPoint();
1629  if (!start) return false;
1630  return start->perp()<1100 &&fabs( start->z())<3500;
1631 }

◆ isRun4EDM()

virtual bool TrackHandleBase::isRun4EDM ( ) const
inlinevirtualinherited

Reimplemented in TrackHandle_TrackContainer.

Definition at line 105 of file TrackHandleBase.h.

105 { return false; }

◆ mass()

double TrackHandleBase::mass ( ) const
virtualinherited

Definition at line 1518 of file TrackHandleBase.cxx.

1519 {
1520  if (m_d->massinit)
1521  return m_d->mass;
1522  m_d->massinit = true;
1523  int pdg = pdgCode();
1524  if (pdg) {
1525  bool ok;
1526  double m = VP1ParticleData::particleMass(pdg,ok);
1527  if (ok)
1528  m_d->mass = m;
1529  }
1530  return m_d->mass;
1531 }

◆ momentum()

Amg::Vector3D TrackHandle_TrackParticle::momentum ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 85 of file TrackHandle_TrackParticle.cxx.

86 {
87  const Trk::Perigee* p = m_d->trackparticle->perigee();
88  if (!common()->trackSanityHelper()->isSafe(p))
89  return Amg::Vector3D(0,0,0);//fixme: warn?
90  return p->momentum();
91 }

◆ numberOfInstances()

int TrackHandleBase::numberOfInstances ( )
staticinherited

Definition at line 249 of file TrackHandleBase.cxx.

250 {
251  return Imp::ntrackhandles;
252 }

◆ pdgCode()

virtual int TrackHandleBase::pdgCode ( ) const
inlinevirtualinherited

0 means unknown

Reimplemented in TrackHandle_TruthTrack, and TrackHandle_SimulationTrack.

Definition at line 86 of file TrackHandleBase.h.

◆ provide_pathInfoPoints()

virtual const std::vector< Amg::Vector3D >* TrackHandleBase::provide_pathInfoPoints ( )
inlineprotectedvirtualinherited

Reimplemented in TrackHandle_TrkSegment, and TrackHandle_TrackContainer.

Definition at line 151 of file TrackHandleBase.h.

151 { return nullptr; }

◆ provide_pathInfoTrkTrack()

const Trk::Track * TrackHandle_TrackParticle::provide_pathInfoTrkTrack ( ) const
protectedvirtual

Reimplemented from TrackHandleBase.

Definition at line 103 of file TrackHandle_TrackParticle.cxx.

104 {
105  if (m_d->trkTrackInit)
106  return m_d->trkTrack;
107  m_d->trkTrackInit = true;
108  const std::vector<const Trk::TrackParameters*>& trackpars = m_d->trackparticle->trackParameters();
109  Trk::TrackStates* trackStateOnSurfaces = new Trk::TrackStates;
110 
111  if (!trackpars.empty()) {
112  bool needresorting = trackpars.at(0)!=m_d->trackparticle->perigee();//Needed since TrackParticles are (at the moment)
113  //created with the first parameter put last
114  if (needresorting) {
115  const Trk::TrackParameters* p = trackpars.at(trackpars.size()-1);
116  if (p)
117  trackStateOnSurfaces->push_back(new Trk::TrackStateOnSurface(nullptr,p->uniqueClone(),nullptr));
118  }
119  unsigned limit(needresorting?trackpars.size()-1:trackpars.size());
120 
121  //NB: We only ever created this handle if charge()!=0.0:
122  for (unsigned i = 0; i < limit; ++i) {
123  const Trk::TrackParameters* p = trackpars.at(i);
124  if (!p)
125  continue;
126  if (!common()->trackSanityHelper()->isSafe(p))
127  continue;
128  trackStateOnSurfaces->push_back(new Trk::TrackStateOnSurface(nullptr,p->uniqueClone(),nullptr));
129  }
130  }
131 
132  m_d->trkTrack = m_d->createTrack(trackStateOnSurfaces);
133  return m_d->trkTrack;
134 }

◆ registerAssocObject()

void TrackHandleBase::registerAssocObject ( AssociatedObjectHandleBase ao)
protectedinherited

Trackhandle assumes ownership.

Definition at line 1449 of file TrackHandleBase.cxx.

1450 {
1451  if (VP1Msg::verbose()) {
1452  if (m_d->associatedObjects.contains(ao)) {
1453  m_d->theclass->collHandle()->systemBase()->message("TrackHandleBase::registerAssocObject ERROR: object already registered!");
1454  return;
1455  }
1456  }
1457  //Assume ownership of this associated object:
1458  if (!ao) {
1459  m_d->theclass->collHandle()->systemBase()->message("TrackHandleBase::registerAssocObject ERROR: object is null!");
1460  return;
1461  }
1462 
1463  m_d->associatedObjects << ao;
1464 }

◆ registerTouchedMuonChamber()

void TrackHandleBase::registerTouchedMuonChamber ( const GeoPVConstLink &  chamberPV) const
protectedinherited

If not earlier, touched muon chambers must me registered at latest when this method is invoked.

Call this from constructor - (at least) once for each muon chamber "touched" by this track.

Definition at line 1269 of file TrackHandleBase.cxx.

1270 {
1271  m_d->touchedmuonchambers.insert(chamberPV);
1272 }

◆ registerTrack()

void TrackHandleBase::registerTrack ( )
privateinherited

Definition at line 650 of file TrackHandleBase.cxx.

651 {
652  if (m_d->line)
653  common()->registerTrack(m_d->line,this);
654 }

◆ rerandomiseRandomMaterial()

void TrackHandleBase::rerandomiseRandomMaterial ( )
inherited

Definition at line 1395 of file TrackHandleBase.cxx.

1396 {
1397  if ( !m_d->randommaterial )//We will anyway rerandomize it when we need it
1398  return;
1399 
1400  double r2 = 0.3*0.3;
1401  unsigned i(0);
1402  double r,g,b;
1403  bool ok;
1404  while (true) {
1405  r = (rand() / static_cast<double>(RAND_MAX));
1406  g = (rand() / static_cast<double>(RAND_MAX));
1407  b = (rand() / static_cast<double>(RAND_MAX));
1408  ok = true;
1409  //For now we make sure that we avoid black and red. This should be updated from bgd and highlight col automatically! (fixme).
1410  // -> and we should probably also make sure that tracks close in (eta,phi) are well separated in colour-space.
1411  if ( (r-1.0)*(r-1.0)+g*g+b*b < r2*0.5 )//avoid red (distance)
1412  ok = false;
1413  else if ( r*r/(r*r+g*g+b*b) > 0.8 )//avoid red (angle)
1414  ok = false;
1415  else if ( r*r+g*g+b*b < r2*2.0 )//avoid black
1416  ok = false;
1417  if (ok)
1418  break;
1419  ++i;
1420  if (i>50 ) {
1421  r2 *= 0.99;//To avoid problem in case we add too many forbidden spheres.
1422  if (i>1000) {
1423  //Just a safety
1424  m_d->theclass->collHandle()->systemBase()->message("TrackHandleBase::rerandomiseRandomMaterial Warning: Random colour could"
1425  " not be selected such as to satisfy all separation criterias");
1426  break;
1427  }
1428  }
1429  }
1431  collHandle()->collMaterialBrightness(),
1432  collHandle()->collMaterialTransparency());
1433 }

◆ setCustomColouredTSOSParts()

void TrackHandleBase::setCustomColouredTSOSParts ( TrackCommonFlags::TSOSPartsFlags  f)
privateinherited

Definition at line 356 of file TrackHandleBase.cxx.

357 {
359  return;
360  //Figure out changed bits:
361  TrackCommonFlags::TSOSPartsFlags change(m_d->customColouredTSOSParts ^ f);//^ is XOR
363 
365  return;
366 
367  TrackCommonFlags::TSOSPartsFlags changedShownParts(change & m_d->shownTSOSParts);
368 
369  if (!changedShownParts)
370  return;
371 
373  for (;it!=itE;++it) {
374  if ((*it)->parts()&changedShownParts)
375  (*it)->update3DObjects();
376  }
377 }

◆ setShownTSOSParts()

void TrackHandleBase::setShownTSOSParts ( TrackCommonFlags::TSOSPartsFlags  f)
privateinherited

Definition at line 312 of file TrackHandleBase.cxx.

313 {
314  VP1Msg::messageDebug(QString("TrackHandleBase::setShownTSOSParts to ")+QString::number(f) );
315 
316  if (m_d->shownTSOSParts==f){
317  VP1Msg::messageDebug(QString("->No change in shown parts. Skipping."));
318  return;
319  }
320 
321  //Figure out changed bits:
322  TrackCommonFlags::TSOSPartsFlags change(m_d->shownTSOSParts ^ f);//^ is XOR
325  return;
326 
328  //Loop over all TSOS objects. Those with changed parts needs shape
329  //and visibility update:
331  for (;it!=itE;++it) {
332  const bool vis = (*it)->parts() & m_d->shownTSOSParts;
333  if (!((*it)->parts()&change)){
334  continue;
335  }
336 
337  if (vis==(*it)->visible()) {
338  //Just update shape:
339  (*it)->update3DObjects();
340  continue;
341  }
342  //Need both shape and visibility updates.
343  if (vis) {
344  //update shape and then turn visible:
345  (*it)->update3DObjects();
346  (*it)->setVisible(vis);
347  } else {
348  //turn invisible and then update (i.e. invalidate) shape:
349  (*it)->setVisible(vis);
350  (*it)->update3DObjects();
351  }
352  }
353 }

◆ setVisible()

void TrackHandleBase::setVisible ( bool  vis)
inherited

use by the collection handle.

Definition at line 434 of file TrackHandleBase.cxx.

435 {
436  std::cout<<"TrackHandleBase::setVisible"<<std::endl;
437  QString tmp = (vis)?"True":"False";
438  QString tmp2 = (m_visible)?"True":"False";
439  VP1Msg::messageDebug(QString("TrackHandleBase calling setVisible with vis=")+tmp+QString(", and m_visible=")+tmp2 );
440  if (vis==m_visible)
441  return;
442  std::cout<<"TrackHandleBase::setVisible 1"<<std::endl;
443 
444  m_visible=vis;
445  if (vis) {
447  if (!touchedMuonChambers().empty()) {
450  }
451  if (!m_d->line)
452  m_d->rebuild3DObjects();//The call to rebuild also fixes attached state.
453  else
454  m_d->attach3DObjects();
455  } else {
457  if (!touchedMuonChambers().empty()) {
460  }
461  m_d->detach3DObjects();
462  }
463 
464  std::cout<<"TrackHandleBase::setVisible 2"<<std::endl;
465 
466 
467  bool initTSOS(false);
470  initTSOS = true;
471  }
472  std::cout<<"m_d->tsos_ascobjs: "<<m_d->tsos_ascobjs<<std::endl;
473  std::cout<<"m_d->shownTSOSParts!=TrackCommonFlags::TSOS_NoObjects "<<(m_d->shownTSOSParts!=TrackCommonFlags::TSOS_NoObjects)<<std::endl;
474  std::cout<<"TrackHandleBase::setVisible 3"<<std::endl;
475 
476  if (!initTSOS && m_d->tsos_ascobjs) {
478  it(m_d->tsos_ascobjs->begin()),
479  itE(m_d->tsos_ascobjs->end());
481  for (;it!=itE;++it) {
482  if ((*it)->visible()!=((*it)->parts() & m_d->shownTSOSParts))
483  (*it)->toggleVisible();
484  }
485  } else {
486  for (;it!=itE;++it) {
487  if ((*it)->visible())
488  (*it)->setVisible(false);
489  }
490  }
491  }
492  std::cout<<"TrackHandleBase::setVisible 4"<<std::endl;
493 
495 
496  std::map<std::pair<int,double>,AssocObjAttachmentHandle *>::iterator it,itE(m_d->attachmentHandles.end());
497  for (it = m_d->attachmentHandles.begin();it!=itE;++it)
498  it->second->trackVisibilityChanged();
499 
500  //Label
501 
502 }

◆ shortInfo()

virtual QString TrackHandleBase::shortInfo ( ) const
inlinevirtualinherited

returns mom and hit information about track

Reimplemented in TrackHandle_TrkTrack, and TrackHandle_TrackContainer.

Definition at line 128 of file TrackHandleBase.h.

◆ shownTSOSParts()

TrackCommonFlags::TSOSPartsFlags TrackHandleBase::shownTSOSParts ( ) const
inherited

Definition at line 300 of file TrackHandleBase.cxx.

301 {
302  return m_d->shownTSOSParts;//FIXME: inline?
303 }

◆ startPoint()

std::optional< Amg::Vector3D > TrackHandleBase::startPoint ( ) const
virtualinherited

returns 0 if can't find start point.

Definition at line 1587 of file TrackHandleBase.cxx.

1588 {
1590  if (m_d->pathInfo_TrkTrack) {
1593  for (; tsos_iter != tsos_end; ++tsos_iter) {
1594  if (common()->trackSanityHelper()->isSafe(*tsos_iter)) {
1595  const Trk::TrackParameters* trackParam = (*tsos_iter)->trackParameters();
1596  if (common()->trackSanityHelper()->isSafe(trackParam))
1597  return trackParam->position();
1598  }
1599  }
1600  } else if (m_d->pathInfo_Points&&!m_d->pathInfo_Points->empty()) {
1601  return m_d->pathInfo_Points->at(0);
1602  }
1603  return {};
1604 }

◆ touchedMuonChambers()

const std::set< GeoPVConstLink > & TrackHandleBase::touchedMuonChambers ( ) const
inherited

Definition at line 1275 of file TrackHandleBase.cxx.

1276 {
1277  if (!m_d->inittouchedchambers) {
1280  m_d->inittouchedchambers=true;
1281  }
1282  return m_d->touchedmuonchambers;
1283 }

◆ type()

virtual QString TrackHandle_TrackParticle::type ( ) const
inlinevirtual

return very short word with type (maybe link with collection type?)

Reimplemented from TrackHandleBase.

Definition at line 42 of file TrackHandle_TrackParticle.h.

◆ unknown()

static double TrackHandleBase::unknown ( )
inlinestaticinherited

Definition at line 102 of file TrackHandleBase.h.

102 { return -999.0; }

◆ update3DObjects()

void TrackHandleBase::update3DObjects ( bool  invalidatePropagatedPoints = false,
float  maxR = 0.0 
)
inherited

Definition at line 505 of file TrackHandleBase.cxx.

506 {
507  VP1Msg::messageVerbose(QString("TrackHandleBase::update3DObject with maxR set to ")+QString::number(maxR) );
508  if (maxR>0.0) {
509  m_d->tempMaxPropRadius=maxR;
510  }
511  if ( invalidatePropagatedPoints) {
512  if (m_d->points_propagated != m_d->points_raw) {
513  delete m_d->points_propagated;m_d->points_propagated = nullptr;
514  }
515  delete m_d->points_raw;m_d->points_raw = nullptr;
518  }
519  if (m_visible) {
521  } else {
522  //Simply clear the present 3D objects. They will only be recreated if/when the track becomes visible again.
523  clearLine();
524  }
525  m_d->tempMaxPropRadius=0.0;
526 }

◆ updateInDetProjections()

void TrackHandleBase::updateInDetProjections ( )
inherited

Definition at line 529 of file TrackHandleBase.cxx.

530 {
531  //Invalidate points of indet projections if already calculated:
535  m_d->points_raw_id_projections = nullptr;
537  //Rebuild 3D objects:
538  update3DObjects();
539 }

◆ updateMaterial()

void TrackHandleBase::updateMaterial ( )
inherited

Definition at line 954 of file TrackHandleBase.cxx.

955 {
956  //We need to change the current material. This means we need to
957  //clear the cache. Only if we are visible do we need to do a
958  //detach->clear material->attach cycle to trigger attachment under new material.
959 
960  if (!m_currentmaterial)
961  return;//We have no material cached and is thus not attached either.
962  if (m_visible) {
963  //See if the material changed. If it did, detach, update the material, attach again.
964  SoMaterial * newmat = m_d->determineMaterial();
965  newmat->ref();
966  if (newmat!=m_currentmaterial) {
967  m_d->detach3DObjects();
968  m_currentmaterial->unref();
969  m_currentmaterial = newmat;
970  m_d->attach3DObjects();
971  m_d->materialChanged();
972  } else {
973  newmat->unref();
974  }
975  } else {
976  //Just clear material.
977  m_currentmaterial->unref();
978  m_currentmaterial = nullptr;
979  m_d->materialChanged();
980  }
981 }

◆ updateMuonProjections()

void TrackHandleBase::updateMuonProjections ( )
inherited

Definition at line 542 of file TrackHandleBase.cxx.

543 {
544  //Invalidate points of indet projections if already calculated:
548  m_d->points_raw_muon_projections = nullptr;
550  //Rebuild 3D objects:
551  update3DObjects();
552 }

◆ updateObjectBrowser()

virtual void TrackHandleBase::updateObjectBrowser ( )
inlinevirtualinherited

Reimplemented in TrackHandle_TrkTrack, and TrackHandle_TrackContainer.

Definition at line 134 of file TrackHandleBase.h.

134 {};

◆ updateRandomColourTransparencyAndBrightness()

void TrackHandleBase::updateRandomColourTransparencyAndBrightness ( )
inherited

Definition at line 1436 of file TrackHandleBase.cxx.

1437 {
1438  if ( !m_d->randommaterial )//We will anyway set up correctly when needed.
1439  return;
1440  float r,g,b;
1441  m_d->randommaterial->diffuseColor[0].getValue(r,g,b);
1443  collHandle()->collMaterialBrightness(),
1444  collHandle()->collMaterialTransparency());
1445 }

◆ updateShapes_TSOSWithErrors()

void TrackHandleBase::updateShapes_TSOSWithErrors ( )
privateinherited

Definition at line 274 of file TrackHandleBase.cxx.

275 {
276  if (!m_d->tsos_ascobjs)
277  return;
279  it(m_d->tsos_ascobjs->begin()),
280  itE(m_d->tsos_ascobjs->end());
281  for (;it!=itE;++it)
282  if ((*it)->hasError())
283  (*it)->update3DObjects();
284 }

◆ updateShapes_TSOSWithMaterialEffects()

void TrackHandleBase::updateShapes_TSOSWithMaterialEffects ( )
privateinherited

Definition at line 287 of file TrackHandleBase.cxx.

288 {
289  if (!m_d->tsos_ascobjs)
290  return;
292  it(m_d->tsos_ascobjs->begin()),
293  itE(m_d->tsos_ascobjs->end());
294  for (;it!=itE;++it)
295  if ((*it)->hasMaterialEffect())
296  (*it)->update3DObjects();
297 }

◆ updateShapes_TSOSWithMeasurements()

void TrackHandleBase::updateShapes_TSOSWithMeasurements ( )
privateinherited

Definition at line 261 of file TrackHandleBase.cxx.

262 {
263  if (!m_d->tsos_ascobjs)
264  return;
266  it(m_d->tsos_ascobjs->begin()),
267  itE(m_d->tsos_ascobjs->end());
268  for (;it!=itE;++it)
269  if ((*it)->hasMeasurement())
270  (*it)->update3DObjects();
271 }

◆ visible()

bool TrackHandleBase::visible ( ) const
inlineinherited

Definition at line 67 of file TrackHandleBase.h.

67 { return m_visible; }

◆ visibleStateChanged()

void TrackHandleBase::visibleStateChanged ( )
protectedvirtualinherited

override if need to take action in this case.

Reimplemented in TrackHandle_TrkTrack, TrackHandle_TruthTrack, TrackHandle_TrackContainer, TrackHandle_SimulationTrack, and TrackHandle_TrkSegment.

Definition at line 2029 of file TrackHandleBase.cxx.

2030 {
2031  if ( !browserTreeItem()) {
2032  VP1Msg::messageVerbose("visibleStateChanged: No m_objBrowseTree!");
2033  return;
2034  }
2035 
2036  if (!visible()) {
2037  browserTreeItem()->setFlags(Qt::ItemFlags()); // not selectable, not enabled
2038  } else {
2039  browserTreeItem()->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); // selectable, enabled
2040  }
2041  QFont itemFont = browserTreeItem()->font(0);
2042  itemFont.setStrikeOut(!visible());
2043  browserTreeItem()->setFont(0, itemFont);
2044  browserTreeItem()->setFont(1, itemFont);
2045 }

Member Data Documentation

◆ m_collhandle

TrackCollHandleBase* TrackHandleBase::m_collhandle
privateinherited

Definition at line 178 of file TrackHandleBase.h.

◆ m_currentmaterial

SoMaterial* TrackHandleBase::m_currentmaterial
privateinherited

Definition at line 179 of file TrackHandleBase.h.

◆ m_d

Imp* TrackHandle_TrackParticle::m_d
private

Definition at line 55 of file TrackHandle_TrackParticle.h.

◆ m_visible

bool TrackHandleBase::m_visible
privateinherited

Definition at line 177 of file TrackHandleBase.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MuonGM::MuonDetectorManager::getRpcReadoutElement
const RpcReadoutElement * getRpcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:168
Trk::numberOfPixelHits
@ numberOfPixelHits
number of pixel layers on track with absence of hits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:57
TrackHandleBase::browserTreeItem
QTreeWidgetItem * browserTreeItem() const
Definition: TrackHandleBase.cxx:2026
beamspotman.r
def r
Definition: beamspotman.py:676
TrackHandleBase::touchedMuonChambers
const std::set< GeoPVConstLink > & touchedMuonChambers() const
Definition: TrackHandleBase.cxx:1275
TrackHandleBase::visibleStateChanged
virtual void visibleStateChanged()
override if need to take action in this case.
Definition: TrackHandleBase.cxx:2029
Trk::proton
@ proton
Definition: ParticleHypothesis.h:31
TrackHandleBase::Imp::theclass
TrackHandleBase * theclass
Definition: TrackHandleBase.cxx:109
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
TrackHandleBase::Imp::addTSOS
AscObj_TSOS * addTSOS(const Trk::TrackStateOnSurface *tsos, unsigned index) const
Definition: TrackHandleBase.cxx:423
TrackCollHandleBase::decrementNShownHandles
void decrementNShownHandles()
Definition: TrackCollHandleBase.h:126
DeMoUpdate.tmp2
string tmp2
Definition: DeMoUpdate.py:1168
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrackHandleBase::Imp::attachmentHandles
std::map< std::pair< int, double >, AssocObjAttachmentHandle * > attachmentHandles
Definition: TrackHandleBase.cxx:155
TrackHandle_TrackParticle::Imp::trkTrackInit
bool trkTrackInit
Definition: TrackHandle_TrackParticle.cxx:54
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
TrkObjToString::RPC
@ RPC
Definition: TrkObjToString.h:44
TrackHandleBase::clearLine
void clearLine()
Definition: TrackHandleBase.cxx:640
TouchedMuonChamberHelper::incrementNumberOfObjectsForPV
void incrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
Definition: TouchedMuonChamberHelper.cxx:59
TrackHandleBase::charge
double charge() const
Definition: TrackHandleBase.cxx:1508
Trk::numberOfCscEtaHits
@ numberOfCscEtaHits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:108
DataVector::rend
const_reverse_iterator rend() const noexcept
Return a const_reverse_iterator pointing at the beginning of the collection.
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
Trk::ParametersBase::position
const Amg::Vector3D & position() const
Access method for the position.
TrkObjToString::TGC
@ TGC
Definition: TrkObjToString.h:45
TrkObjToString::MM
@ MM
Definition: TrkObjToString.h:47
Trk::Track::trackStateOnSurfaces
const Trk::TrackStates * trackStateOnSurfaces() const
return a pointer to a const DataVector of const TrackStateOnSurfaces.
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
TrackHandleBase::m_currentmaterial
SoMaterial * m_currentmaterial
Definition: TrackHandleBase.h:179
TrackHandleBase::Imp::detach3DObjects
void detach3DObjects()
Definition: TrackHandleBase.cxx:935
TrackHandle_TrackParticle::Imp::trackparticle
const Rec::TrackParticle * trackparticle
Definition: TrackHandle_TrackParticle.cxx:52
VP1TrackSanity::isSafe
static bool isSafe(const Trk::TrackStateOnSurface *)
Definition: VP1TrackSanity.cxx:46
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
TrackHandleBase::Imp::touchedmuonchambers
std::set< GeoPVConstLink > touchedmuonchambers
Definition: TrackHandleBase.cxx:143
TrackHandleBase::getNTGCHits
virtual unsigned getNTGCHits() const
Definition: TrackHandleBase.h:114
TrackSysCommonData::touchedMuonChamberHelper
TouchedMuonChamberHelper * touchedMuonChamberHelper() const
Definition: TrackSysCommonData.h:129
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
TrackHandleBase::collHandle
TrackCollHandleBase * collHandle() const
Definition: TrackHandleBase.h:68
Trk::TrackParticleBase::trackSummary
const TrackSummary * trackSummary() const
accessor function for TrackSummary.
Definition: TrackParticleBase.h:247
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TrackHandleBase::Imp::massinit
bool massinit
Definition: TrackHandleBase.cxx:113
ParticleTest.tp
tp
Definition: ParticleTest.py:25
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
TrackSysCommonData::registerTrack
void registerTrack(SoNode *, TrackHandleBase *)
Definition: TrackSysCommonData.cxx:132
Trk::numberOfTgcPhiHits
@ numberOfTgcPhiHits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:105
TrackHandleBase::getNSCTHits
virtual unsigned getNSCTHits() const
Definition: TrackHandleBase.h:108
MCP::ScaleSmearParam::r2
@ r2
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
empty
bool empty(TH1 *h)
Definition: computils.cxx:294
TrackHandleBase::Imp::points_propagated_muon_projections
Amg::SetVectorVector3D * points_propagated_muon_projections
Definition: TrackHandleBase.cxx:130
TruthTest.itE
itE
Definition: TruthTest.py:25
TrackHandleBase::AssocObjAttachmentHandle
friend class AssocObjAttachmentHandle
Definition: TrackHandleBase.h:171
TrackHandleBase::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: TrackHandleBase.h:129
MuonGM::MuonReadoutElement
Base class for the XxxReadoutElement, with Xxx = Mdt, Rpc, Tgc, Csc.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:40
VP1LinAlgUtils::phiFromXY
static double phiFromXY(const double &x, const double &y)
Definition: VP1LinAlgUtils.cxx:374
MuonGM::MuonDetectorManager::getTgcReadoutElement
const TgcReadoutElement * getTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:247
TrackHandleBase::getNsTGCHits
virtual unsigned getNsTGCHits() const
Definition: TrackHandleBase.h:117
TrackHandleBase::Imp::determineMaterial
SoMaterial * determineMaterial()
Definition: TrackHandleBase.cxx:1286
TrackHandleBase::calculateCharge
virtual double calculateCharge() const
Definition: TrackHandleBase.cxx:1481
TrackHandleBase::ensureTouchedMuonChambersInitialised
virtual void ensureTouchedMuonChambersInitialised() const
Definition: TrackHandleBase.h:156
TrackHandleBase::getNTRTHits
virtual unsigned getNTRTHits() const
Definition: TrackHandleBase.h:109
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
TrackHandleBase::Imp::points_propagated_id_projections
Amg::SetVectorVector3D * points_propagated_id_projections
Definition: TrackHandleBase.cxx:129
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
TrackHandleBase::Imp::m_objBrowseTree
QTreeWidgetItem * m_objBrowseTree
Definition: TrackHandleBase.cxx:181
TrackHandleBase::Imp::randommaterial
SoMaterial * randommaterial
Definition: TrackHandleBase.cxx:152
MuonGM::MuonDetectorManager::getMdtReadoutElement
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:204
LArG4FSStartPointFilter.rand
rand
Definition: LArG4FSStartPointFilter.py:80
TrackHandle_TrackParticle::Imp::createTrack
const Trk::Track * createTrack(Trk::TrackStates *trackStateOnSurfaces) const
Definition: TrackHandle_TrackParticle.cxx:27
Trk::TrackStates
DataVector< const Trk::TrackStateOnSurface > TrackStates
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:30
TrackHandleBase::Imp::pathInfo_TrkTrack
const Trk::Track * pathInfo_TrkTrack
Used in the case of a Trk::Track.
Definition: TrackHandleBase.cxx:159
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrackHandleBase::momentum
virtual Amg::Vector3D momentum() const
Definition: TrackHandleBase.h:83
VP1MaterialButton::setMaterialParameters
static void setMaterialParameters(SoMaterial *m, const QColor &, const double &brightness=0.0, const double &transp=0.0)
Definition: VP1MaterialButton.cxx:802
MuonGM::MuonDetectorManager::getCscReadoutElement
const CscReadoutElement * getCscReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:225
TrackHandleBase::Imp::materialChanged
void materialChanged()
Definition: TrackHandleBase.cxx:833
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
TrackHandleBase::visible
bool visible() const
Definition: TrackHandleBase.h:67
TrackHandleBase::ensureInitTSOSs
virtual void ensureInitTSOSs(std::vector< AssociatedObjectHandleBase * > *&)
Ensure that the TSOSs are initialized.
Definition: TrackHandleBase.cxx:380
TrackHandleBase::Imp::ntrackhandles
static int ntrackhandles
Definition: TrackHandleBase.cxx:81
Trk::numberOfSCTHits
@ numberOfSCTHits
number of SCT holes
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:71
Trk::electron
@ electron
Definition: ParticleHypothesis.h:27
TrackHandleBase::getNRPCHits
virtual unsigned getNRPCHits() const
Definition: TrackHandleBase.h:113
TrackHandleBase::Imp::associatedObjects
QList< AssociatedObjectHandleBase * > associatedObjects
Definition: TrackHandleBase.cxx:154
TrkObjToString::CSC
@ CSC
Definition: TrkObjToString.h:43
AssocObjAttachmentHandle
Definition: TrackHandleBase.h:202
Trk::pion
@ pion
Definition: ParticleHypothesis.h:29
TrackHandleBase::getNMuonHits
virtual unsigned getNMuonHits() const
Definition: TrackHandleBase.h:110
TrkObjToString::MDT
@ MDT
Definition: TrkObjToString.h:46
TrkObjToString::type
static MeasurementType type(const Trk::PrepRawData *prd)
Definition: TrkObjToString.cxx:64
TrackHandleBase::Imp::chargeinit
bool chargeinit
Definition: TrackHandleBase.cxx:111
TrackHandleBase::shortInfo
virtual QString shortInfo() const
returns mom and hit information about track
Definition: TrackHandleBase.h:128
hist_file_dump.f
f
Definition: hist_file_dump.py:135
TrackHandleBase::Imp::ensureInitPointsPropagated
void ensureInitPointsPropagated()
Definition: TrackHandleBase.cxx:1062
Trk::ParametersBase
Definition: ParametersBase.h:55
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
Trk::muon
@ muon
Definition: ParticleHypothesis.h:28
DataVector< const Trk::TrackStateOnSurface >
TrackHandleBase::pdgCode
virtual int pdgCode() const
0 means unknown
Definition: TrackHandleBase.h:86
DataVector::rbegin
const_reverse_iterator rbegin() const noexcept
Return a const_reverse_iterator pointing past the end of the collection.
TrackHandleBase::getNMDTHits
virtual unsigned getNMDTHits() const
Definition: TrackHandleBase.h:112
TrackHandleBase::Imp::rebuild3DObjects
void rebuild3DObjects()
Definition: TrackHandleBase.cxx:658
Trk::numberOfTgcEtaHits
@ numberOfTgcEtaHits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:106
TrackSysCommonData::unregisterTrack
void unregisterTrack(SoNode *)
Definition: TrackSysCommonData.cxx:147
TrackHandleBase::getNMMHits
virtual unsigned getNMMHits() const
Definition: TrackHandleBase.h:116
TrackHandleBase::m_collhandle
TrackCollHandleBase * m_collhandle
Definition: TrackHandleBase.h:178
TrackHandleBase::common
TrackSysCommonData * common() const
Definition: TrackHandleBase.cxx:255
TrackHandleBase::TrackHandleBase
TrackHandleBase(TrackCollHandleBase *)
Definition: TrackHandleBase.cxx:204
Trk::Track::trackParameters
const DataVector< const TrackParameters > * trackParameters() const
Return a pointer to a vector of TrackParameters.
Definition: Tracking/TrkEvent/TrkTrack/src/Track.cxx:97
TrackHandleBase::getNPixelHits
virtual unsigned getNPixelHits() const
Definition: TrackHandleBase.h:107
Trk::numberOfTRTHits
@ numberOfTRTHits
number of TRT outliers
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:79
Trk::numberOfRpcPhiHits
@ numberOfRpcPhiHits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:109
TrackHandleBase::Imp::attach3DObjects
void attach3DObjects()
Definition: TrackHandleBase.cxx:900
Trk::TrackStateOnSurface
represents the track state (measurement, material, fit parameters and quality) at a surface.
Definition: TrackStateOnSurface.h:71
TrackHandleBase::startPoint
virtual std::optional< Amg::Vector3D > startPoint() const
returns 0 if can't find start point.
Definition: TrackHandleBase.cxx:1587
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition: VP1HelperClassBase.h:50
python.selection.number
number
Definition: selection.py:20
TrackHandleBase::Imp::shownTSOSParts
TrackCommonFlags::TSOSPartsFlags shownTSOSParts
Definition: TrackHandleBase.cxx:176
DataVector< const Trk::TrackStateOnSurface >::const_reverse_iterator
std::reverse_iterator< const_iterator > const_reverse_iterator
Standard const_reverse_iterator.
Definition: DataVector.h:846
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Trk::TrackParticleBase::trackParameters
const std::vector< const TrackParameters * > & trackParameters() const
Returns the track parameters.
Definition: TrackParticleBase.h:243
Trk::nonInteracting
@ nonInteracting
Definition: ParticleHypothesis.h:25
VP1Msg::messageVerbose
static void messageVerbose(const QString &)
Definition: VP1Msg.cxx:84
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
TrackHandleBase::Imp::pathInfo_Points
const std::vector< Amg::Vector3D > * pathInfo_Points
Used in all other cases.
Definition: TrackHandleBase.cxx:160
TrackHandleBase::Imp::charge
double charge
Definition: TrackHandleBase.cxx:112
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::kaon
@ kaon
Definition: ParticleHypothesis.h:30
TrackHandle_TrackParticle::m_d
Imp * m_d
Definition: TrackHandle_TrackParticle.h:54
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
TouchedMuonChamberHelper::decrementNumberOfObjectsForPV
void decrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
Definition: TouchedMuonChamberHelper.cxx:73
TrackHandleBase::m_d
Imp * m_d
Definition: TrackHandleBase.h:172
TrackHandleBase::getNCSCHits
virtual unsigned getNCSCHits() const
Definition: TrackHandleBase.h:115
VP1DetInfo::muonDetMgr
static const MuonGM::MuonDetectorManager * muonDetMgr()
Definition: VP1DetInfo.cxx:148
VP1Msg::messageDebug
static void messageDebug(const QString &)
Definition: VP1Msg.cxx:39
TrackCollHandleBase::incrementNShownHandles
void incrementNShownHandles()
Definition: TrackCollHandleBase.h:125
VP1Msg::message
static void message(const QString &, IVP1System *sys=0)
Definition: VP1Msg.cxx:30
TrackHandleBase::Imp::ensureLoadPathInfo
void ensureLoadPathInfo()
Definition: TrackHandleBase.cxx:189
TRT_PAI_physicsConstants::mb
const double mb
1mb to cm2
Definition: TRT_PAI_physicsConstants.h:15
TrackHandleBase::update3DObjects
void update3DObjects(bool invalidatePropagatedPoints=false, float maxR=0.0)
Definition: TrackHandleBase.cxx:505
MuonGM::MuonDetectorManager::getMMReadoutElement
const MMReadoutElement * getMMReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:255
re
const boost::regex re(r_e)
VP1ParticleData::particleMass
static double particleMass(const int &pdgcode, bool &ok)
Definition: VP1ParticleData.cxx:83
TrackHandleBase::Imp::points_raw_muon_projections
Amg::SetVectorVector3D * points_raw_muon_projections
Definition: TrackHandleBase.cxx:128
TrackCommonFlags::TSOS_NoObjects
@ TSOS_NoObjects
Definition: TrackCommonFlags.h:43
TrackHandleBase::Imp::points_raw_id_projections
Amg::SetVectorVector3D * points_raw_id_projections
Definition: TrackHandleBase.cxx:127
TrackHandleBase::Imp::tempMaxPropRadius
float tempMaxPropRadius
Definition: TrackHandleBase.cxx:182
TrackHandleBase::Imp::customColouredTSOSParts
TrackCommonFlags::TSOSPartsFlags customColouredTSOSParts
Definition: TrackHandleBase.cxx:177
TrackHandleBase::Imp::points_propagated
std::vector< Amg::Vector3D > * points_propagated
Definition: TrackHandleBase.cxx:125
TrackHandleBase::Imp::line
SoLineSet * line
Definition: TrackHandleBase.cxx:116
TrackHandleBase::baseInfo
QStringList baseInfo() const
Definition: TrackHandleBase.cxx:1551
TrackHandleBase::hasCharge
bool hasCharge() const
Definition: TrackHandleBase.h:99
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
Trk::numberOfRpcEtaHits
@ numberOfRpcEtaHits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:110
MuonGM::MuonDetectorManager::getsTgcReadoutElement
const sTgcReadoutElement * getsTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:259
Trk::TrackSummary::get
int get(const SummaryType &type) const
returns the summary information for the passed SummaryType.
TrackCollHandleBase::common
TrackSysCommonData * common() const
Definition: TrackCollHandleBase.h:79
TrackHandleBase::m_visible
bool m_visible
Definition: TrackHandleBase.h:177
TrackHandleBase::mass
virtual double mass() const
Definition: TrackHandleBase.cxx:1518
Trk::TrackParticleBase::perigee
const Perigee * perigee() const
Attempts to cast the definingParameters() to Perigee.
Definition: TrackParticleBase.h:263
TrackHandle_TrackParticle::Imp::trkTrack
const Trk::Track * trkTrack
Definition: TrackHandle_TrackParticle.cxx:53
VP1JobConfigInfo::hasMuonGeometry
static bool hasMuonGeometry()
Definition: VP1JobConfigInfo.cxx:134
TrkObjToString::sTGC
@ sTGC
Definition: TrkObjToString.h:48
TrackHandleBase::Imp::inittouchedchambers
bool inittouchedchambers
Definition: TrackHandleBase.cxx:144
TrackHandleBase::unknown
static double unknown()
Definition: TrackHandleBase.h:102
updateCoolNtuple.limit
int limit
Definition: updateCoolNtuple.py:45
Trk::numberOfCscPhiHits
@ numberOfCscPhiHits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:107
TrackHandleBase::Imp::tsos_ascobjs
std::vector< AssociatedObjectHandleBase * > * tsos_ascobjs
Definition: TrackHandleBase.cxx:178
AscObj_TSOS
Definition: AscObj_TSOS.h:45
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
TrackHandleBase::Imp::mass
double mass
Definition: TrackHandleBase.cxx:114
Trk::numberOfMdtHits
@ numberOfMdtHits
number of mdt hits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:103
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
TrackHandleBase::Imp::points_raw
std::vector< Amg::Vector3D > * points_raw
Definition: TrackHandleBase.cxx:124
TrackHandle_TrackParticle::Imp::theclass
TrackHandle_TrackParticle * theclass
Definition: TrackHandle_TrackParticle.cxx:51