ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
TrackHandleBase Class Referenceabstract

#include <TrackHandleBase.h>

Inheritance diagram for TrackHandleBase:
Collaboration diagram for TrackHandleBase:

Classes

class  Imp
 

Public Member Functions

 TrackHandleBase (TrackCollHandleBase *)
 
virtual ~TrackHandleBase ()
 
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 QStringList clicked () const =0
 Called when user selects the node (stringlist is displayed in messagebox). More...
 
virtual Amg::Vector3D momentum () 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 hasSubSystemHitInfo () const
 
virtual bool isRun4EDM () const
 
virtual bool isIDTrack () const
 
virtual unsigned getNPixelHits () const
 
virtual unsigned getNSCTHits () const
 
virtual unsigned getNTRTHits () const
 
virtual unsigned getNMuonHits () 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 getNMMHits () const
 
virtual unsigned getNsTGCHits () const
 
virtual unsigned getNMuonPrecisionHits () 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 QString type () const
 return very short word with type (maybe link with collection type?) 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

virtual double calculateCharge () const
 
virtual const Trk::Trackprovide_pathInfoTrkTrack () 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...
 
virtual void ensureTouchedMuonChambersInitialised () const
 
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

 TrackHandleBase (const TrackHandleBase &)
 
TrackHandleBaseoperator= (const TrackHandleBase &)
 
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
 

Friends

class AssocObjAttachmentHandle
 
class AssociatedObjectHandleBase
 
class TrackCollHandleBase
 

Detailed Description

Definition at line 56 of file TrackHandleBase.h.

Constructor & Destructor Documentation

◆ TrackHandleBase() [1/2]

TrackHandleBase::TrackHandleBase ( TrackCollHandleBase ch)

Definition at line 204 of file TrackHandleBase.cxx.

205  : m_d(new Imp(this)), m_visible(false), m_collhandle(ch), m_currentmaterial(nullptr)
206 {
207  assert(m_collhandle);
209 }

◆ ~TrackHandleBase()

TrackHandleBase::~TrackHandleBase ( )
virtual

Definition at line 212 of file TrackHandleBase.cxx.

213 {
216 
217  //FIXME: if visible, should we call detach first?
219  delete ao;
220 
221  //Delete points the following way since we might use same points for raw and propagated.
223  delete m_d->points_propagated;
224  delete m_d->points_raw;
231 
232  clearLine();
233  if (m_currentmaterial)
234  m_currentmaterial->unref();
235  if (m_d->randommaterial)
236  m_d->randommaterial->unref();
237  if (m_d->label_sep)
238  m_d->label_sep->unref();
239 
240  std::map<std::pair<int,double>,AssocObjAttachmentHandle *>::iterator it,itE(m_d->attachmentHandles.end());
241  for (it = m_d->attachmentHandles.begin();it!=itE;++it)
242  delete it->second;
243 
244  delete m_d;
246 }

◆ TrackHandleBase() [2/2]

TrackHandleBase::TrackHandleBase ( const TrackHandleBase )
private

Member Function Documentation

◆ baseInfo()

QStringList TrackHandleBase::baseInfo ( ) const

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

Definition at line 2026 of file TrackHandleBase.cxx.

2026 {return m_d->m_objBrowseTree;}

◆ calculateCharge()

double TrackHandleBase::calculateCharge ( ) const
protectedvirtual

Reimplemented in TrackHandle_TruthTrack, TrackHandle_xAODTrackParticle, TrackHandle_TrackParticle, and TrackHandle_SimulationTrack.

Definition at line 1481 of file TrackHandleBase.cxx.

1482 {
1483  //look up from pdgCode(); // valid PDG codes > 0
1484  int pdg = pdgCode();
1485  if (pdg) {
1486  bool ok;
1487  double c = VP1ParticleData::particleCharge(pdg,ok);
1488  if (ok) {
1489  VP1Msg::messageDebug("TrackHandleBase: Determined charge from pdg code "+VP1Msg::str(pdg)+": "+VP1Msg::str(c));
1490  return c;
1491  }
1492  }
1493 
1494  //Attempt to look at the first trackparameter.
1495  const Trk::Track * trk = provide_pathInfoTrkTrack();
1496  if (trk&&!trk->trackParameters()->empty()) {
1497  double c = (*(trk->trackParameters()->begin()))->charge();
1498  VP1Msg::messageDebug("TrackHandleBase: Determined charge from first track parameter: "+VP1Msg::str(c));
1499  return c;
1500  }
1501  if (VP1Msg::verbose())
1502  VP1Msg::messageDebug("Failed to determine charge.");
1503 
1504  return unknown();
1505 }

◆ charge()

double TrackHandleBase::charge ( ) const

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 ( )
private

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()

virtual QStringList TrackHandleBase::clicked ( ) const
pure 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.

Implemented in TrackHandle_TruthTrack, TrackHandle_TrkTrack, TrackHandle_TrackContainer, TrackHandle_TrkSegment, TrackHandle_xAODTrackParticle, TrackHandle_SimulationTrack, and TrackHandle_TrackParticle.

◆ collHandle()

TrackCollHandleBase* TrackHandleBase::collHandle ( ) const
inline

Definition at line 68 of file TrackHandleBase.h.

68 { return m_collhandle; }

◆ common()

TrackSysCommonData * TrackHandleBase::common ( ) const

Definition at line 255 of file TrackHandleBase.cxx.

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

◆ containsDetElement()

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

Reimplemented in TrackHandle_TrkTrack, and TrackHandle_TrackContainer.

Definition at line 164 of file TrackHandleBase.h.

164 {return false; }

◆ currentMaterial()

SoMaterial* TrackHandleBase::currentMaterial ( ) const
inline

Definition at line 76 of file TrackHandleBase.h.

76 { return m_currentmaterial; }

◆ currentMaterialChanged()

virtual void TrackHandleBase::currentMaterialChanged ( )
inlineprotectedvirtual

Reimplemented in TrackHandle_TrkTrack, TrackHandle_TrkSegment, and TrackHandle_TrackContainer.

Definition at line 160 of file TrackHandleBase.h.

160 {};

◆ customColouredTSOSParts()

TrackCommonFlags::TSOSPartsFlags TrackHandleBase::customColouredTSOSParts ( ) const

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
virtual

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 }

◆ ensureInitTSOSs()

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

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()

virtual void TrackHandleBase::ensureTouchedMuonChambersInitialised ( ) const
inlineprotectedvirtual

◆ extrapolationParticleHypothesis()

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

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)
virtual

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
protected

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 
)
private

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
inlinevirtual

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
virtual

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()

virtual unsigned TrackHandleBase::getNCSCHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, TrackHandle_xAODTrackParticle, TrackHandle_TrkSegment, and TrackHandle_TrackParticle.

Definition at line 115 of file TrackHandleBase.h.

115 { return 0; }

◆ getNMDTHits()

virtual unsigned TrackHandleBase::getNMDTHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, TrackHandle_TrkSegment, TrackHandle_xAODTrackParticle, and TrackHandle_TrackParticle.

Definition at line 112 of file TrackHandleBase.h.

112 { return 0; }

◆ getNMMHits()

virtual unsigned TrackHandleBase::getNMMHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, and TrackHandle_TrkSegment.

Definition at line 116 of file TrackHandleBase.h.

116 { return 0; }

◆ getNMuonHits()

virtual unsigned TrackHandleBase::getNMuonHits ( ) const
inlinevirtual

Definition at line 110 of file TrackHandleBase.h.

◆ getNMuonPhiHits()

virtual unsigned TrackHandleBase::getNMuonPhiHits ( ) const
inlinevirtual

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 in TrackHandle_TrkTrack, TrackHandle_xAODTrackParticle, TrackHandle_TrkSegment, and TrackHandle_TrackParticle.

Definition at line 111 of file TrackHandleBase.h.

◆ getNMuonPrecisionHits()

virtual unsigned TrackHandleBase::getNMuonPrecisionHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrackParticle.

Definition at line 118 of file TrackHandleBase.h.

118 { return getNMDTHits() + getNCSCHits(); } // This should really only count eta csc hits.

◆ getNPixelHits()

virtual unsigned TrackHandleBase::getNPixelHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, TrackHandle_xAODTrackParticle, TrackHandle_TrkSegment, and TrackHandle_TrackParticle.

Definition at line 107 of file TrackHandleBase.h.

107 { return 0; }

◆ getNRPCHits()

virtual unsigned TrackHandleBase::getNRPCHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, TrackHandle_xAODTrackParticle, TrackHandle_TrkSegment, and TrackHandle_TrackParticle.

Definition at line 113 of file TrackHandleBase.h.

113 { return 0; }

◆ getNSCTHits()

virtual unsigned TrackHandleBase::getNSCTHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, TrackHandle_xAODTrackParticle, TrackHandle_TrkSegment, and TrackHandle_TrackParticle.

Definition at line 108 of file TrackHandleBase.h.

108 { return 0; }

◆ getNsTGCHits()

virtual unsigned TrackHandleBase::getNsTGCHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack.

Definition at line 117 of file TrackHandleBase.h.

117 { return 0; }

◆ getNTGCHits()

virtual unsigned TrackHandleBase::getNTGCHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, TrackHandle_xAODTrackParticle, TrackHandle_TrkSegment, and TrackHandle_TrackParticle.

Definition at line 114 of file TrackHandleBase.h.

114 { return 0; }

◆ getNTRTHits()

virtual unsigned TrackHandleBase::getNTRTHits ( ) const
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, TrackHandle_xAODTrackParticle, TrackHandle_TrkSegment, and TrackHandle_TrackParticle.

Definition at line 109 of file TrackHandleBase.h.

109 { return 0; }

◆ getVisibleMeasurements()

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

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 ( )

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
inline

Definition at line 99 of file TrackHandleBase.h.

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

◆ hasMass()

bool TrackHandleBase::hasMass ( ) const
inline

Definition at line 100 of file TrackHandleBase.h.

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

◆ hasSubSystemHitInfo()

virtual bool TrackHandleBase::hasSubSystemHitInfo ( ) const
inlinevirtual

Reimplemented in TrackHandle_xAODTrackParticle, TrackHandle_TrackParticle, TrackHandle_TrkTrack, and TrackHandle_TrkSegment.

Definition at line 104 of file TrackHandleBase.h.

104 { return false; }

◆ isIDTrack()

bool TrackHandleBase::isIDTrack ( ) const
virtual

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
inlinevirtual

Reimplemented in TrackHandle_TrackContainer.

Definition at line 105 of file TrackHandleBase.h.

105 { return false; }

◆ mass()

double TrackHandleBase::mass ( ) const
virtual

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()

virtual Amg::Vector3D TrackHandleBase::momentum ( ) const
inlinevirtual

◆ numberOfInstances()

int TrackHandleBase::numberOfInstances ( )
static

Definition at line 249 of file TrackHandleBase.cxx.

250 {
251  return Imp::ntrackhandles;
252 }

◆ operator=()

TrackHandleBase& TrackHandleBase::operator= ( const TrackHandleBase )
private

◆ pdgCode()

virtual int TrackHandleBase::pdgCode ( ) const
inlinevirtual

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 ( )
inlineprotectedvirtual

Reimplemented in TrackHandle_TrkSegment, and TrackHandle_TrackContainer.

Definition at line 151 of file TrackHandleBase.h.

151 { return nullptr; }

◆ provide_pathInfoTrkTrack()

virtual const Trk::Track* TrackHandleBase::provide_pathInfoTrkTrack ( ) const
inlineprotectedvirtual

◆ registerAssocObject()

void TrackHandleBase::registerAssocObject ( AssociatedObjectHandleBase ao)
protected

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
protected

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 ( )
private

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 ( )

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)
private

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)
private

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)

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
inlinevirtual

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

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
virtual

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

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 TrackHandleBase::type ( ) const
inlinevirtual

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

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

Definition at line 129 of file TrackHandleBase.h.

◆ unknown()

static double TrackHandleBase::unknown ( )
inlinestatic

Definition at line 102 of file TrackHandleBase.h.

102 { return -999.0; }

◆ update3DObjects()

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

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 ( )

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 ( )

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 ( )

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 ( )
inlinevirtual

Reimplemented in TrackHandle_TrkTrack, and TrackHandle_TrackContainer.

Definition at line 134 of file TrackHandleBase.h.

134 {};

◆ updateRandomColourTransparencyAndBrightness()

void TrackHandleBase::updateRandomColourTransparencyAndBrightness ( )

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 ( )
private

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 ( )
private

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 ( )
private

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
inline

Definition at line 67 of file TrackHandleBase.h.

67 { return m_visible; }

◆ visibleStateChanged()

void TrackHandleBase::visibleStateChanged ( )
protectedvirtual

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 }

Friends And Related Function Documentation

◆ AssociatedObjectHandleBase

friend class AssociatedObjectHandleBase
friend

Definition at line 190 of file TrackHandleBase.h.

◆ AssocObjAttachmentHandle

friend class AssocObjAttachmentHandle
friend

Definition at line 171 of file TrackHandleBase.h.

◆ TrackCollHandleBase

friend class TrackCollHandleBase
friend

Definition at line 191 of file TrackHandleBase.h.

Member Data Documentation

◆ m_collhandle

TrackCollHandleBase* TrackHandleBase::m_collhandle
private

Definition at line 178 of file TrackHandleBase.h.

◆ m_currentmaterial

SoMaterial* TrackHandleBase::m_currentmaterial
private

Definition at line 179 of file TrackHandleBase.h.

◆ m_d

Imp* TrackHandleBase::m_d
private

Definition at line 173 of file TrackHandleBase.h.

◆ m_visible

bool TrackHandleBase::m_visible
private

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
TrackHandleBase::browserTreeItem
QTreeWidgetItem * browserTreeItem() const
Definition: TrackHandleBase.cxx:2026
beamspotman.r
def r
Definition: beamspotman.py:676
AssociatedObjectHandleBase
Definition: AssociatedObjectHandleBase.h:35
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
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
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
TouchedMuonChamberHelper::incrementNumberOfObjectsForPV
void incrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
Definition: TouchedMuonChamberHelper.cxx:59
TrackHandleBase::charge
double charge() const
Definition: TrackHandleBase.cxx:1508
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.
TrackHandleBase::m_currentmaterial
SoMaterial * m_currentmaterial
Definition: TrackHandleBase.h:179
TrackHandleBase::Imp::detach3DObjects
void detach3DObjects()
Definition: TrackHandleBase.cxx:935
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
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TrackHandleBase::Imp::massinit
bool massinit
Definition: TrackHandleBase.cxx:113
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
TrackSysCommonData::registerTrack
void registerTrack(SoNode *, TrackHandleBase *)
Definition: TrackSysCommonData.cxx:132
TrackHandleBase::Imp::extraRepresentation
SoSeparator * extraRepresentation
Definition: TrackHandleBase.cxx:117
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
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
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::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
VP1ParticleData::particleCharge
static double particleCharge(const int &pdgcode, bool &ok)
Definition: VP1ParticleData.cxx:103
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
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
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
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
TrackHandleBase::Imp::attach3DObjects
void attach3DObjects()
Definition: TrackHandleBase.cxx:900
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::nonInteracting
@ nonInteracting
Definition: ParticleHypothesis.h:25
VP1Msg::messageVerbose
static void messageVerbose(const QString &)
Definition: VP1Msg.cxx:84
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
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
TrackHandleBase::provide_pathInfoTrkTrack
virtual const Trk::Track * provide_pathInfoTrkTrack() const
Definition: TrackHandleBase.h:149
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::hasCharge
bool hasCharge() const
Definition: TrackHandleBase.h:99
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
MuonGM::MuonDetectorManager::getsTgcReadoutElement
const sTgcReadoutElement * getsTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:259
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
TrackHandleBase::Imp::label_sep
SoSeparator * label_sep
Definition: TrackHandleBase.cxx:161
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
python.compressB64.c
def c
Definition: compressB64.py:93
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
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