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

#include <TrackHandle_TrkTrack.h>

Inheritance diagram for TrackHandle_TrkTrack:
Collaboration diagram for TrackHandle_TrkTrack:

Public Member Functions

 TrackHandle_TrkTrack (TrackCollHandleBase *, const Trk::Track *)
 
virtual ~TrackHandle_TrkTrack ()
 
virtual QStringList clicked () const
 Called when user selects the node (stringlist is displayed in messagebox). More...
 
virtual Amg::Vector3D momentum () const
 
const Trk::Trackprovide_pathInfoTrkTrack () const
 
void ensureTouchedMuonChambersInitialised () const
 
void ensureTouchedMuonChambersInitialiasedFromMeas (const Trk::MeasurementBase *meas) const
 
const Trk::TracktrkTrackPointer () const
 
virtual bool hasSubSystemHitInfo () 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 getNRPCHits () const
 
virtual unsigned getNMDTHits () const
 
virtual unsigned getNTGCHits () const
 
virtual unsigned getNCSCHits () const
 
virtual unsigned getNMMHits () const
 
virtual unsigned getNsTGCHits () const
 
virtual const Trk::FitQualitygetFitQuality () const
 
virtual bool containsDetElement (const QString &) const
 
virtual void fillObjectBrowser (QList< QTreeWidgetItem * > &list)
 Called in child classes. More...
 
virtual void updateObjectBrowser ()
 
SoNode * zoomToTSOS (unsigned int index)
 Depending on controller configuration attempt to zoom to the corresponding TSOS & returned detailed node matching it. 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...
 
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 getNMuonPrecisionHits () 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...
 
QTreeWidgetItem * browserTreeItem () const
 

Static Public Member Functions

static int numberOfInstances ()
 
static double unknown ()
 

Protected Member Functions

virtual double calculateCharge () 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...
 
const QList< AssociatedObjectHandleBase * > & getAllAscObjHandles () const
 override if need to take action in this case. More...
 
void registerAssocObject (AssociatedObjectHandleBase *)
 Trackhandle assumes ownership. More...
 
virtual void ensureInitTSOSs (std::vector< AssociatedObjectHandleBase * > *&)
 Ensure that the TSOSs are initialized. More...
 

Protected Attributes

const Trk::Trackm_trk
 

Private Member Functions

void visibleStateChanged ()
 override if need to take action in this case. More...
 
void currentMaterialChanged ()
 
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

unsigned m_nhits_pixel
 
unsigned m_nhits_sct
 
unsigned m_nhits_trt
 
unsigned m_nhits_muon_phi
 
unsigned m_nhits_rpc
 
unsigned m_nhits_mdt
 
unsigned m_nhits_tgc
 
unsigned m_nhits_csc
 
unsigned m_nhits_mm
 
unsigned m_nhits_stgc
 
int m_hitInfoStatus
 -1: uninitialized, 0: not present, 1: present. More...
 
Impm_d
 
bool m_visible
 
TrackCollHandleBasem_collhandle
 
SoMaterial * m_currentmaterial
 

Detailed Description

Definition at line 29 of file TrackHandle_TrkTrack.h.

Constructor & Destructor Documentation

◆ TrackHandle_TrkTrack()

TrackHandle_TrkTrack::TrackHandle_TrkTrack ( TrackCollHandleBase ch,
const Trk::Track trk 
)

Definition at line 41 of file TrackHandle_TrkTrack.cxx.

◆ ~TrackHandle_TrkTrack()

TrackHandle_TrkTrack::~TrackHandle_TrkTrack ( )
virtual

Definition at line 50 of file TrackHandle_TrkTrack.cxx.

51 {
52 }

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 TrackHandleBase::calculateCharge ( ) const
protectedvirtualinherited

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
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_TrkTrack::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 55 of file TrackHandle_TrkTrack.cxx.

56 {
57  // Object browser stuff
58  QTreeWidget* trkObjBrowser = common()->controller()->trackObjBrowser();
59  if (trkObjBrowser){
60  trkObjBrowser->setCurrentItem(browserTreeItem());
61  trkObjBrowser->scrollToItem(browserTreeItem());
62  }
63  QStringList l;
64  l << "Trk::Track";
65  if (!m_trk) {
66  l << "ERROR: This TrackHandle_TrkTrack handle has a NULL track pointer!!";
67  return l;
68  }
69  l << "Author info: " << " "+QString(m_trk->info().dumpInfo().c_str());
70 
72  if (m_trk->fitQuality())
73  l << "Fit quality [Chi^2, nDoF] = ["+QString::number(m_trk->fitQuality()->chiSquared())+", "+QString::number(m_trk->fitQuality()->doubleNumberDoF())+"]. ";
74  if (common()->controller()->printVerboseInfoOnSingleSelection()) {
75  l << " ===== dump =====";
76  std::ostringstream s;
77  s << *m_trk;
78  l << QString(s.str().c_str()).split('\n');
79  }
80  return l;
81 }

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

bool TrackHandle_TrkTrack::containsDetElement ( const QString &  id) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 402 of file TrackHandle_TrkTrack.cxx.

403 {
404  VP1Msg::messageVerbose("TrackHandle_TrkTrack::containsDetElement looking for " + id);
405  Identifier::value_type tmpInt = id.toLong(nullptr,10);//base 10
406  Identifier::value_type tmpInt2 = id.toLong(nullptr,16);//base 16...why?
407 
408  VP1Msg::messageVerbose("TrackHandle_TrkTrack::looping over TSOS ");
409 
412  for (; it != itE; ++it)
413  {
414  // Still debugging, so leaving this in for now...
415  // std::cout<<(*it)->surface().associatedDetectorElementIdentifier()<<std::endl;
416  if ((*it)->surface().associatedDetectorElementIdentifier()==tmpInt) {
417  VP1Msg::messageVerbose("TrackHandle_TrkTrack::containsDetElement FOUND " + id + "!");
418  return true;
419  }
420  if ((*it)->surface().associatedDetectorElementIdentifier()==tmpInt2) {
421  VP1Msg::messageVerbose("TrackHandle_TrkTrack::containsDetElement FOUND 2 " + id + "!");
422  return true;
423  }
424  }
425  return false;
426 }

◆ currentMaterial()

SoMaterial* TrackHandleBase::currentMaterial ( ) const
inlineinherited

Definition at line 76 of file TrackHandleBase.h.

76 { return m_currentmaterial; }

◆ currentMaterialChanged()

void TrackHandle_TrkTrack::currentMaterialChanged ( )
privatevirtual

Reimplemented from TrackHandleBase.

Definition at line 149 of file TrackHandle_TrkTrack.cxx.

150 {
151  if (visible())
152  static_cast<TrackCollHandle_TrkTrack*>(collHandle())->visibleStateUpdated(this);
153 }

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

◆ ensureTouchedMuonChambersInitialiasedFromMeas()

void TrackHandle_TrkTrack::ensureTouchedMuonChambersInitialiasedFromMeas ( const Trk::MeasurementBase meas) const

Definition at line 105 of file TrackHandle_TrkTrack.cxx.

106 {
107  if (meas) {
108  const Trk::CompetingRIOsOnTrack* crot = dynamic_cast<const Trk::CompetingRIOsOnTrack*>(meas);
109 
110  // for competing ROTs, it is expected that these are in the same DE. If this turns out not to be the case, need to loop & recursively call this method. EJWM
111  if (crot)
112  meas=&(crot->rioOnTrack(0));
113  if (!VP1TrackSanity::isSafe(meas)) {
114  if (VP1Msg::verbose())
115  VP1Msg::messageVerbose("TrackHandle_TrkTrack WARNING: Skipping unsafe TSOS for touched muon chamber determination.");
116  return;
117  }
118 
119  const Trk::RIO_OnTrack* rio = dynamic_cast<const Trk::RIO_OnTrack*>(meas);
120  if (rio) {
121  const MuonGM::MuonReadoutElement* muonDetEl = getMuonReadoutElement(*rio);
122  if (muonDetEl)
124  }
125  }
126 }

◆ ensureTouchedMuonChambersInitialised()

void TrackHandle_TrkTrack::ensureTouchedMuonChambersInitialised ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 84 of file TrackHandle_TrkTrack.cxx.

85 {
86  //Fixme: TO BASE!!!
87 
88  VP1TrackSanity * sanity = common()->trackSanityHelper();
89  if (!VP1JobConfigInfo::hasMuonGeometry()||!sanity) {
90  VP1Msg::messageVerbose("TrackHandle_TrkTrack WARNING: can't init touched muon chamber list.");
91  return;
92  }
95  for (; tsos_iter != tsos_end; ++tsos_iter) {
96  if (!VP1TrackSanity::isSafe(*tsos_iter)) {
97  if (VP1Msg::verbose())
98  VP1Msg::messageVerbose("TrackHandle_TrkTrack WARNING: Skipping unsafe TSOS for touched muon chamber determination.");
99  continue;
100  }
101  ensureTouchedMuonChambersInitialiasedFromMeas( (*tsos_iter)->measurementOnTrack() );
102  }
103 }

◆ 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 TrackHandle_TrkTrack::fillObjectBrowser ( QList< QTreeWidgetItem * > &  list)
virtual

Called in child classes.

(*it)->type(Trk::TrackStateOnSurface::Measurement) &&

Reimplemented from TrackHandleBase.

Definition at line 162 of file TrackHandle_TrkTrack.cxx.

163 {
164  TrackHandleBase::fillObjectBrowser(listOfItems); // Obligatory!
165 
166  // Fill sub-data.
167  QList<AssociatedObjectHandleBase*> list = getAllAscObjHandles();
170  unsigned int i=0;
171  for (;it!=itE;++it){
172 // VP1Msg::messageVerbose("TSOS #"+QString::number(i++));
173 
174  bool visible=false;
175  QTreeWidgetItem* TSOSitem = new QTreeWidgetItem(browserTreeItem());
176 
177  AscObj_TSOS* asc=nullptr;
178  if (i<static_cast<unsigned int>(list.size())) asc = dynamic_cast<AscObj_TSOS*>(list.at(i));
179 
180  if (asc) {
181  asc->setBrowserTreeItem(TSOSitem);
182  visible=asc->visible();
183  }
184 
185  if (!visible) {
186  TSOSitem->setFlags(Qt::ItemFlag());// not selectable, not enabled
187  QFont itemFont = TSOSitem->font(0);
188  itemFont.setStrikeOut(true);
189  TSOSitem->setFont(0, itemFont);
190  TSOSitem->setFont(1, itemFont);
191  }
192  TSOSitem->setText(0, QString("Track State "+QString::number( (int)(it - trkTrackPointer()->trackStateOnSurfaces ()->begin() ) ) ) );
193 
194  QString tsosText;
195  bool first=true;
196  const Trk::MeasurementBase* meas = (*it)->measurementOnTrack();
197  if ( meas ){
198  QString measName(TrkObjToString::name(*meas));
199  tsosText+=measName;
200 
201  QTreeWidgetItem* measItem = new QTreeWidgetItem(TSOSitem);
202  measItem->setExpanded(true); // want it opened so subparams seen easily
203  measItem->setFlags(Qt::ItemIsEnabled);
204  measItem->setText(0, measName);
205  // measItem->setText(1, TrkObjToString::shortInfo(*meas) );
206 
207  QStringList list = TrkObjToString::fullInfo( *((*it)->measurementOnTrack ()) );
208  for (int i = 0; i < (list.size()-1); ){
209  QTreeWidgetItem* subparamItem = new QTreeWidgetItem(measItem);
210  subparamItem->setText(0, list.at(i++) );
211  subparamItem->setText(1, list.at(i++) );
212  subparamItem->setFlags(Qt::ItemIsEnabled);
213  }
214 
215  first=false;
216  }
217  if ( (*it)->trackParameters () ) {
218  if (!first) tsosText.append(" + ");
219  tsosText.append("Parameters");
220 
221  QTreeWidgetItem* paramItem = new QTreeWidgetItem(TSOSitem);
222  paramItem->setExpanded(true); // want it opened so subparams seen easily
223  paramItem->setFlags(Qt::ItemIsEnabled);
224  paramItem->setText(0, TrkObjToString::name( *((*it)->trackParameters ()) ) );
225  // paramItem->setText(1, TrkObjToString::shortInfo( *((*it)->trackParameters ()) ) );
226 
227  QStringList list = TrkObjToString::fullInfo( *((*it)->trackParameters ()) );
228  for (int i = 0; i < (list.size()-1); ){
229  QTreeWidgetItem* subparamItem = new QTreeWidgetItem(paramItem);
230  subparamItem->setText(0, list.at(i++) );
231  subparamItem->setText(1, list.at(i++) );
232  subparamItem->setFlags(Qt::ItemIsEnabled);
233  }
234 
235  first=false;
236  }
237  if ( (*it)->materialEffectsOnTrack () ){
238  if (!first) tsosText.append(" + ");
239  tsosText.append("MaterialEffectsOnTrack");
240  QTreeWidgetItem* meItem = new QTreeWidgetItem(TSOSitem);
241  meItem->setExpanded(true); // want it opened so subparams seen easily
242  meItem->setFlags(Qt::ItemIsEnabled);
243 
244  meItem->setText(0, TrkObjToString::name( *((*it)->materialEffectsOnTrack ()) ) );
245  meItem->setText(1, TrkObjToString::shortInfo( *((*it)->materialEffectsOnTrack ()) ) );
246 
247  first=false;
248  }
249  if ( (*it)->fitQualityOnSurface () ){
250  if (!first) tsosText.append(" + ");
251  tsosText.append("FitQuality");
252  QTreeWidgetItem* fqItem = new QTreeWidgetItem(TSOSitem);
253  fqItem->setExpanded(true); // want it opened so subparams seen easily
254  fqItem->setFlags(Qt::ItemIsEnabled);
255  fqItem->setText(0, QString("FitQuality") );
256  fqItem->setText(1, TrkObjToString::shortInfo( (*it)->fitQualityOnSurface () ) );
257 
258  first=false;
259  }
260  // FIXME - add information about chamber for Muon systems?
261 
262  if ( (*it)->type(Trk::TrackStateOnSurface::Outlier) ){
263  if (!first) tsosText.append(" + ");
264  tsosText.append("Outlier");
265  }
266 
267  if ( (*it)->type(Trk::TrackStateOnSurface::InertMaterial) ){
268  if (!first) tsosText.append(" + ");
269  tsosText.append("InertMaterial");
270  }
271 
272  if ( (*it)->type(Trk::TrackStateOnSurface::BremPoint) ){
273  if (!first) tsosText.append(" + ");
274  tsosText.append("BremPoint");
275  }
276 
277  if ( (*it)->type(Trk::TrackStateOnSurface::Perigee) ){
278  if (!first) tsosText.append(" + ");
279  tsosText.append("Perigee");
280  }
281 
282  if ( (*it)->type(Trk::TrackStateOnSurface::Hole) ){
283  if (!first) tsosText.append(" + ");
284  tsosText.append("Hole");
285  }
286  TSOSitem->setText(1, tsosText );
287  }
288  // listOfItems << browserTreeItem();
289 }

◆ getAllAscObjHandles()

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

const Trk::FitQuality * TrackHandle_TrkTrack::getFitQuality ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 398 of file TrackHandle_TrkTrack.cxx.

398  {
399  return m_trk ? m_trk->fitQuality ():nullptr;
400 }

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

virtual unsigned TrackHandle_TrkTrack::getNCSCHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 53 of file TrackHandle_TrkTrack.h.

◆ getNMDTHits()

virtual unsigned TrackHandle_TrkTrack::getNMDTHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 51 of file TrackHandle_TrkTrack.h.

◆ getNMMHits()

virtual unsigned TrackHandle_TrkTrack::getNMMHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 54 of file TrackHandle_TrkTrack.h.

◆ getNMuonHits()

virtual unsigned TrackHandleBase::getNMuonHits ( ) const
inlinevirtualinherited

Definition at line 110 of file TrackHandleBase.h.

◆ getNMuonPhiHits()

virtual unsigned TrackHandle_TrkTrack::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 from TrackHandleBase.

Definition at line 49 of file TrackHandle_TrkTrack.h.

◆ getNMuonPrecisionHits()

virtual unsigned TrackHandleBase::getNMuonPrecisionHits ( ) const
inlinevirtualinherited

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 TrackHandle_TrkTrack::getNPixelHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 46 of file TrackHandle_TrkTrack.h.

◆ getNRPCHits()

virtual unsigned TrackHandle_TrkTrack::getNRPCHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 50 of file TrackHandle_TrkTrack.h.

◆ getNSCTHits()

virtual unsigned TrackHandle_TrkTrack::getNSCTHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 47 of file TrackHandle_TrkTrack.h.

◆ getNsTGCHits()

virtual unsigned TrackHandle_TrkTrack::getNsTGCHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 55 of file TrackHandle_TrkTrack.h.

◆ getNTGCHits()

virtual unsigned TrackHandle_TrkTrack::getNTGCHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 52 of file TrackHandle_TrkTrack.h.

◆ getNTRTHits()

virtual unsigned TrackHandle_TrkTrack::getNTRTHits ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 48 of file TrackHandle_TrkTrack.h.

◆ 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_TrkTrack::hasSubSystemHitInfo ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 45 of file TrackHandle_TrkTrack.h.

◆ 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_TrkTrack::momentum ( ) const
virtual

Reimplemented from TrackHandleBase.

Definition at line 131 of file TrackHandle_TrkTrack.cxx.

132 {
133  for (const Trk::TrackParameters* param : *m_trk->trackParameters()) {
134  if (!common()->trackSanityHelper()->isSafe(param))
135  continue;
136  return param->momentum();
137  }
138  return TrackHandleBase::momentum();
139 }

◆ 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_TrkTrack::provide_pathInfoTrkTrack ( ) const
inlinevirtual

Reimplemented from TrackHandleBase.

Definition at line 38 of file TrackHandle_TrkTrack.h.

38 { return m_trk; };

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

QString TrackHandle_TrkTrack::shortInfo ( ) const
virtual

returns mom and hit information about track

Reimplemented from TrackHandleBase.

Definition at line 313 of file TrackHandle_TrkTrack.cxx.

314 {
315  // get the track's momentum
317  mom /= CLHEP::GeV;
318 
319  // format info string
320  QString l;
321  l += "|Pt|="+VP1Msg::str(mom.perp())+" [GeV], ";
322  l += "|P|="+VP1Msg::str(mom.mag())+" [GeV], ";
325  return l;
326 }

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

◆ trkTrackPointer()

const Trk::Track* TrackHandle_TrkTrack::trkTrackPointer ( ) const
inline

Definition at line 43 of file TrackHandle_TrkTrack.h.

43 { return m_trk; }

◆ type()

virtual QString TrackHandle_TrkTrack::type ( ) const
inlinevirtual

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

Reimplemented from TrackHandleBase.

Definition at line 65 of file TrackHandle_TrkTrack.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()

void TrackHandle_TrkTrack::updateObjectBrowser ( )
virtual

Reimplemented from TrackHandleBase.

Definition at line 329 of file TrackHandle_TrkTrack.cxx.

329  {
330 
331  if ( !browserTreeItem()) {
332  VP1Msg::messageVerbose("updateObjectBrowser: No m_objBrowseTree!");
333  return;
334  }
335 
336  if (!visible()) {
337  browserTreeItem()->setFlags(Qt::ItemFlag()); // not selectable, not enabled
338  } else {
339  browserTreeItem()->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); // selectable, enabled
340  }
341  QFont font= browserTreeItem()->font(0);
342  font.setStrikeOut(!visible());
343  browserTreeItem()->setFont(0, font );
344  browserTreeItem()->setFont(1, font );
345 
346 
347  // FIXME! Only do if necessary i.e. if something affecting this TSOS has changed.
348 
349  QList<AssociatedObjectHandleBase*> list = getAllAscObjHandles();
350 
351  if (list.empty()) {
352  VP1Msg::message("No ASC objects associated with this track - no track components visible yet?");
353  return;
354  }
355 
358  unsigned int numOfTSOS=0;
359  for (;it!=itE;++it,++numOfTSOS){
360  AscObj_TSOS* asc = dynamic_cast<AscObj_TSOS*>(list.at(numOfTSOS));
361  if (!(asc && asc->trackStateOnSurface()==*it && !list.empty()) ) {
362  // Fallback.
363  VP1Msg::message("TSOS#"+QString::number(numOfTSOS)+" does not seem to match AscObj_TSOS in list, which has size="+QString::number(list.size())+" Will try fallback.");
364  for (int i = 0; i < list.size(); ++i) {
365  AscObj_TSOS* asc = dynamic_cast<AscObj_TSOS*>(list.at(i));
366  if (asc && asc->trackStateOnSurface()==*it) {
367  VP1Msg::message("-> this ASC matches "+QString::number(i));
368  }
369  }
370  }
371  if (!asc) {
372  VP1Msg::message("Could not find matching Asc in list of size "+QString::number(list.size()));
373  continue;
374  }
375 
376  if (!asc->browserTreeItem()){
377  // not set yet - so need to do this now. Can we just use the index?
378  asc->setBrowserTreeItem(browserTreeItem()->child(numOfTSOS));
379  }
380 
381  if (!asc->browserTreeItem()){
382  VP1Msg::message("Could not find matching browserTreeItem");
383  continue;
384  }
385 
386  if (!asc->visible()) {
387  asc->browserTreeItem()->setFlags(Qt::ItemFlag()); // not selectable, not enabled
388  } else {
389  asc->browserTreeItem()->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled); // selectable, enabled
390  }
391  QFont itemFont = asc->browserTreeItem()->font(0);
392  itemFont.setStrikeOut(!asc->visible());
393  asc->browserTreeItem()->setFont(0, itemFont);
394  asc->browserTreeItem()->setFont(1, itemFont);
395  }
396 }

◆ 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 TrackHandle_TrkTrack::visibleStateChanged ( )
privatevirtual

override if need to take action in this case.

Reimplemented from TrackHandleBase.

Definition at line 142 of file TrackHandle_TrkTrack.cxx.

143 {
144  static_cast<TrackCollHandle_TrkTrack*>(collHandle())->visibleStateUpdated(this);
146 }

◆ zoomToTSOS()

SoNode * TrackHandle_TrkTrack::zoomToTSOS ( unsigned int  index)

Depending on controller configuration attempt to zoom to the corresponding TSOS & returned detailed node matching it.

Definition at line 291 of file TrackHandle_TrkTrack.cxx.

292 {
293  if (trkTrackPointer() && (index<trkTrackPointer()->trackStateOnSurfaces()->size() )){
295  // now find matching AscObj_TSOS
296  QList<AssociatedObjectHandleBase*> list = getAllAscObjHandles();
297  for (int i = 0; i < list.size(); ++i) {
298  // VP1Msg::messageVerbose("TrackSystemController::objectBrowserClicked: checking ASC "+QString::number(i));
299 
300  AscObj_TSOS* asc = dynamic_cast<AscObj_TSOS*>(list.at(i));
301  if (asc) {
302  if (asc && asc->trackStateOnSurface()==tsos) {
303  VP1Msg::messageVerbose("TrackSystemController::objectBrowserClicked: this ASC matches "+QString::number(i));
304  //asc->zoomView();
305  return asc->shapeDetailed();
306  }
307  }
308  }
309  }
310  return nullptr;
311 }

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* TrackHandleBase::m_d
privateinherited

Definition at line 173 of file TrackHandleBase.h.

◆ m_hitInfoStatus

int TrackHandle_TrkTrack::m_hitInfoStatus
mutableprivate

-1: uninitialized, 0: not present, 1: present.

Definition at line 80 of file TrackHandle_TrkTrack.h.

◆ m_nhits_csc

unsigned TrackHandle_TrkTrack::m_nhits_csc
mutableprivate

Definition at line 77 of file TrackHandle_TrkTrack.h.

◆ m_nhits_mdt

unsigned TrackHandle_TrkTrack::m_nhits_mdt
mutableprivate

Definition at line 75 of file TrackHandle_TrkTrack.h.

◆ m_nhits_mm

unsigned TrackHandle_TrkTrack::m_nhits_mm
mutableprivate

Definition at line 78 of file TrackHandle_TrkTrack.h.

◆ m_nhits_muon_phi

unsigned TrackHandle_TrkTrack::m_nhits_muon_phi
mutableprivate

Definition at line 73 of file TrackHandle_TrkTrack.h.

◆ m_nhits_pixel

unsigned TrackHandle_TrkTrack::m_nhits_pixel
mutableprivate

Definition at line 70 of file TrackHandle_TrkTrack.h.

◆ m_nhits_rpc

unsigned TrackHandle_TrkTrack::m_nhits_rpc
mutableprivate

Definition at line 74 of file TrackHandle_TrkTrack.h.

◆ m_nhits_sct

unsigned TrackHandle_TrkTrack::m_nhits_sct
mutableprivate

Definition at line 71 of file TrackHandle_TrkTrack.h.

◆ m_nhits_stgc

unsigned TrackHandle_TrkTrack::m_nhits_stgc
mutableprivate

Definition at line 79 of file TrackHandle_TrkTrack.h.

◆ m_nhits_tgc

unsigned TrackHandle_TrkTrack::m_nhits_tgc
mutableprivate

Definition at line 76 of file TrackHandle_TrkTrack.h.

◆ m_nhits_trt

unsigned TrackHandle_TrkTrack::m_nhits_trt
mutableprivate

Definition at line 72 of file TrackHandle_TrkTrack.h.

◆ m_trk

const Trk::Track* TrackHandle_TrkTrack::m_trk
protected

Definition at line 84 of file TrackHandle_TrkTrack.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
TrackHandleBase::browserTreeItem
QTreeWidgetItem * browserTreeItem() const
Definition: TrackHandleBase.cxx:2026
beamspotman.r
def r
Definition: beamspotman.py:676
TrackHandle_TrkTrack::m_nhits_trt
unsigned m_nhits_trt
Definition: TrackHandle_TrkTrack.h:72
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
Trk::TrackStateOnSurface::Perigee
@ Perigee
This represents a perigee, and so will contain a Perigee object only.
Definition: TrackStateOnSurface.h:117
TrackHandleBase::Imp::theclass
TrackHandleBase * theclass
Definition: TrackHandleBase.cxx:109
TrackHandle_TrkTrack::ensureTouchedMuonChambersInitialiasedFromMeas
void ensureTouchedMuonChambersInitialiasedFromMeas(const Trk::MeasurementBase *meas) const
Definition: TrackHandle_TrkTrack.cxx:105
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
Trk::Track::fitQuality
const FitQuality * fitQuality() const
return a pointer to the fit quality const-overload
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TrackCollHandleBase::decrementNShownHandles
void decrementNShownHandles()
Definition: TrackCollHandleBase.h:126
TrackSysCommonData::controller
TrackSystemController * controller() const
Definition: TrackSysCommonData.h:124
TrackHandleBase::fillObjectBrowser
virtual void fillObjectBrowser(QList< QTreeWidgetItem * > &list)
Called in child classes.
Definition: TrackHandleBase.cxx:2009
TrackHandleBase::registerTouchedMuonChamber
void registerTouchedMuonChamber(const GeoPVConstLink &) const
If not earlier, touched muon chambers must me registered at latest when this method is invoked.
Definition: TrackHandleBase.cxx:1269
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_TrkTrack::getNMDTHits
virtual unsigned getNMDTHits() const
Definition: TrackHandle_TrkTrack.h:51
AssociatedObjectHandleBase::visible
bool visible() const
Definition: AssociatedObjectHandleBase.h:61
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.
Trk::ParametersBase::position
const Amg::Vector3D & position() const
Access method for the position.
TrkObjToString::TGC
@ TGC
Definition: TrkObjToString.h:45
TrackHandle_TrkTrack::m_nhits_sct
unsigned m_nhits_sct
Definition: TrackHandle_TrkTrack.h:71
index
Definition: index.py:1
TrackHandle_TrkTrack::getNTRTHits
virtual unsigned getNTRTHits() const
Definition: TrackHandle_TrkTrack.h:48
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::Track::info
const TrackInfo & info() const
Returns a const ref to info of a const tracks.
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
TrackHandle_TrkTrack::getNTGCHits
virtual unsigned getNTGCHits() const
Definition: TrackHandle_TrkTrack.h:52
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
TrackHandleBase::getAllAscObjHandles
const QList< AssociatedObjectHandleBase * > & getAllAscObjHandles() const
override if need to take action in this case.
Definition: TrackHandleBase.cxx:1634
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TrackHandleBase::Imp::massinit
bool massinit
Definition: TrackHandleBase.cxx:113
TrackHandle_TrkTrack::getNRPCHits
virtual unsigned getNRPCHits() const
Definition: TrackHandle_TrkTrack.h:50
TrackHandle_TrkTrack::getNMMHits
virtual unsigned getNMMHits() const
Definition: TrackHandle_TrkTrack.h:54
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
TrackSysCommonData::registerTrack
void registerTrack(SoNode *, TrackHandleBase *)
Definition: TrackSysCommonData.cxx:132
TrackHandle_TrkTrack::trkTrackPointer
const Trk::Track * trkTrackPointer() const
Definition: TrackHandle_TrkTrack.h:43
VP1TrackSanity
Definition: VP1TrackSanity.h:34
TrackHandleBase::getNSCTHits
virtual unsigned getNSCTHits() const
Definition: TrackHandleBase.h:108
MCP::ScaleSmearParam::r2
@ r2
TrackHandle_TrkTrack::m_nhits_mm
unsigned m_nhits_mm
Definition: TrackHandle_TrkTrack.h:78
TrackHandle_TrkTrack::m_nhits_stgc
unsigned m_nhits_stgc
Definition: TrackHandle_TrkTrack.h:79
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
empty
bool empty(TH1 *h)
Definition: computils.cxx:295
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::getMuonReadoutElement
virtual const MuonGM::MuonReadoutElement * getMuonReadoutElement(const Trk::RIO_OnTrack &mb) const
Definition: TrackHandleBase.cxx:1966
MuonGM::MuonReadoutElement
Base class for the XxxReadoutElement, with Xxx = Mdt, Rpc, Tgc, Csc.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:40
Trk::TrackStateOnSurface::Outlier
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
Definition: TrackStateOnSurface.h:122
VP1LinAlgUtils::phiFromXY
static double phiFromXY(const double &x, const double &y)
Definition: VP1LinAlgUtils.cxx:374
TrackHandle_TrkTrack::m_nhits_tgc
unsigned m_nhits_tgc
Definition: TrackHandle_TrkTrack.h:76
TrackHandle_TrkTrack::m_nhits_muon_phi
unsigned m_nhits_muon_phi
Definition: TrackHandle_TrkTrack.h:73
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
TrkObjToString::fullInfo
static QStringList fullInfo(const Trk::MeasurementBase &tp)
Returns list of key, value, key, value etc.
Definition: TrkObjToString.cxx:394
TrackHandle_TrkTrack::getNCSCHits
virtual unsigned getNCSCHits() const
Definition: TrackHandle_TrkTrack.h:53
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TrackHandle_TrkTrack::m_nhits_mdt
unsigned m_nhits_mdt
Definition: TrackHandle_TrkTrack.h:75
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
Trk::CompetingRIOsOnTrack::rioOnTrack
virtual const RIO_OnTrack & rioOnTrack(unsigned int) const =0
returns the RIO_OnTrack (also known as ROT) objects depending on the integer.
TrackHandleBase::Imp::points_propagated_id_projections
Amg::SetVectorVector3D * points_propagated_id_projections
Definition: TrackHandleBase.cxx:129
TrackCollHandle_TrkTrack
Definition: TrackCollHandle_TrkTrack.h:27
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_TrkTrack::getNPixelHits
virtual unsigned getNPixelHits() const
Definition: TrackHandle_TrkTrack.h:46
TrackHandleBase::Imp::pathInfo_TrkTrack
const Trk::Track * pathInfo_TrkTrack
Used in the case of a Trk::Track.
Definition: TrackHandleBase.cxx:159
Trk::TrackStateOnSurface::Hole
@ Hole
A hole on the track - this is defined in the following way.
Definition: TrackStateOnSurface.h:128
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrackHandle_TrkTrack::momentum
virtual Amg::Vector3D momentum() const
Definition: TrackHandle_TrkTrack.cxx:131
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
TrackHandle_TrkTrack::m_trk
const Trk::Track * m_trk
Definition: TrackHandle_TrkTrack.h:84
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::name
static QString name(const Trk::MeasurementBase &mb)
Definition: TrkObjToString.cxx:144
Trk::CompetingRIOsOnTrack
Base class for all CompetingRIOsOnTack implementations, extends the common MeasurementBase.
Definition: CompetingRIOsOnTrack.h:64
TrkObjToString::MDT
@ MDT
Definition: TrkObjToString.h:46
TrkObjToString::type
static MeasurementType type(const Trk::PrepRawData *prd)
Definition: TrkObjToString.cxx:64
TrackHandle_TrkTrack::m_nhits_csc
unsigned m_nhits_csc
Definition: TrackHandle_TrkTrack.h:77
TrackHandleBase::Imp::chargeinit
bool chargeinit
Definition: TrackHandleBase.cxx:111
hist_file_dump.f
f
Definition: hist_file_dump.py:135
TrackHandleBase::Imp::ensureInitPointsPropagated
void ensureInitPointsPropagated()
Definition: TrackHandleBase.cxx:1062
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
Trk::ParametersBase
Definition: ParametersBase.h:55
TrackHandle_TrkTrack::m_nhits_pixel
unsigned m_nhits_pixel
Definition: TrackHandle_TrkTrack.h:70
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
Trk::muon
@ muon
Definition: ParticleHypothesis.h:28
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
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
TrackHandle_TrkTrack::getNsTGCHits
virtual unsigned getNsTGCHits() const
Definition: TrackHandle_TrkTrack.h:55
TrackHandleBase::Imp::rebuild3DObjects
void rebuild3DObjects()
Definition: TrackHandleBase.cxx:658
TrackSysCommonData::unregisterTrack
void unregisterTrack(SoNode *)
Definition: TrackSysCommonData.cxx:147
Trk::TrackStateOnSurface::BremPoint
@ BremPoint
This represents a brem point on the track, and so will contain TrackParameters and MaterialEffectsBas...
Definition: TrackStateOnSurface.h:109
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::MeasurementBase
Definition: MeasurementBase.h:58
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
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
TrackHandle_TrkTrack::ensureInitSubSysHitInfo
void ensureInitSubSysHitInfo() const
Definition: TrackHandle_TrkTrack.cxx:156
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Trk::TrackStateOnSurface::InertMaterial
@ InertMaterial
This represents inert material, and so will contain MaterialEffectsBase.
Definition: TrackStateOnSurface.h:105
Trk::nonInteracting
@ nonInteracting
Definition: ParticleHypothesis.h:25
VP1Msg::messageVerbose
static void messageVerbose(const QString &)
Definition: VP1Msg.cxx:84
Trk::TrackInfo::dumpInfo
std::string dumpInfo() const
Returns a string with the name of the fitter of this track (i.e.
Definition: Tracking/TrkEvent/TrkTrack/src/TrackInfo.cxx:45
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
TrkObjToString::shortInfo
static QString shortInfo(const Trk::MeasurementBase &mb)
Definition: TrkObjToString.cxx:208
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
TrackSystemController::trackObjBrowser
QTreeWidget * trackObjBrowser() const
Returns a pointer to the Track Object Browser (if it exists)
Definition: TrackSystemController.cxx:2051
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
DeMoScan.first
bool first
Definition: DeMoScan.py:536
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
TrackHandle_TrkTrack::m_hitInfoStatus
int m_hitInfoStatus
-1: uninitialized, 0: not present, 1: present.
Definition: TrackHandle_TrkTrack.h:80
TrackHandleBase::Imp::customColouredTSOSParts
TrackCommonFlags::TSOSPartsFlags customColouredTSOSParts
Definition: TrackHandleBase.cxx:177
Trk::FitQuality::chiSquared
double chiSquared() const
returns the of the overall track fit
Definition: FitQuality.h:56
Identifier::value_type
unsigned long long value_type
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:27
TrackHandleBase::Imp::points_propagated
std::vector< Amg::Vector3D > * points_propagated
Definition: TrackHandleBase.cxx:125
TrackHandleBase::Imp::line
SoLineSet * line
Definition: TrackHandleBase.cxx:116
plotBeamSpotMon.font
font
Definition: plotBeamSpotMon.py:80
TrackHandleBase::baseInfo
QStringList baseInfo() const
Definition: TrackHandleBase.cxx:1551
TrackHandleBase::hasCharge
bool hasCharge() const
Definition: TrackHandleBase.h:99
AssociatedObjectHandleBase::shapeDetailed
SoSeparator * shapeDetailed() const
Definition: AssociatedObjectHandleBase.cxx:206
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
TrackHandle_TrkTrack::getNSCTHits
virtual unsigned getNSCTHits() const
Definition: TrackHandle_TrkTrack.h:47
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
AscObj_TSOS::trackStateOnSurface
const Trk::TrackStateOnSurface * trackStateOnSurface() const
Definition: AscObj_TSOS.h:65
TrackHandleBase::m_visible
bool m_visible
Definition: TrackHandleBase.h:177
VP1TrackSummary::countHits
static bool countHits(const Trk::Track *, unsigned &nPixelHits, unsigned &nSCTHits, unsigned &nTRTHits, unsigned &nhits_muon_phi, unsigned &nhits_rpc, unsigned &nhits_mdt, unsigned &nhits_tgc, unsigned &nhits_csc, unsigned &nhits_mm, unsigned &nhits_stgc)
Definition: VP1TrackSummary.cxx:30
TrackHandleBase::mass
virtual double mass() const
Definition: TrackHandleBase.cxx:1518
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
MuonGM::MuonReadoutElement::parentStationPV
PVConstLink parentStationPV() const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:100
AscObj_TSOS
Definition: AscObj_TSOS.h:45
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
AscObj_TSOS::setBrowserTreeItem
virtual void setBrowserTreeItem(QTreeWidgetItem *obt)
Definition: AscObj_TSOS.h:74
TrackHandleBase::Imp::mass
double mass
Definition: TrackHandleBase.cxx:114
TrackSysCommonData::trackSanityHelper
VP1TrackSanity * trackSanityHelper() const
Definition: TrackSysCommonData.h:134
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
Trk::FitQuality::doubleNumberDoF
double doubleNumberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as double
Definition: FitQuality.h:68
TrackHandleBase::Imp::points_raw
std::vector< Amg::Vector3D > * points_raw
Definition: TrackHandleBase.cxx:124
AscObj_TSOS::browserTreeItem
virtual QTreeWidgetItem * browserTreeItem() const
Definition: AscObj_TSOS.h:73
TrackHandle_TrkTrack::m_nhits_rpc
unsigned m_nhits_rpc
Definition: TrackHandle_TrkTrack.h:74