ATLAS Offline Software
TrackHandle_TrackContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class TrackHandle_TrackContainer //
9 // //
10 // Description: TrackHandle for Acts::TrackProxy //
11 // //
13 
14 #ifndef TRACKHANDLE_TRACKCONTAINER_H
15 #define TRACKHANDLE_TRACKCONTAINER_H
16 
18 
22 
23 namespace Trk {
24  class Track;
25  class MeasurementBase;
26 }
27 
29 public:
30 
31  TrackHandle_TrackContainer(TrackCollHandleBase*, ActsTrk::TrackContainer::ConstTrackProxy, const ActsTrk::TrackContainer&);
33 
34  virtual QStringList clicked() const;
35  virtual bool isRun4EDM() const final { return true; }
36 
37  virtual Amg::Vector3D momentum() const;
38  virtual const std::vector< Amg::Vector3D > * provide_pathInfoPoints();
39 
40  ActsTrk::TrackContainer::ConstTrackProxy track() const { return m_track; }
41  const std::vector<ActsTrk::MultiTrajectory::ConstTrackStateProxy>& trackStates() const { return m_trackStates; }
42 
43  virtual bool containsDetElement(const QString&) const;
44 
45  virtual void fillObjectBrowser(QList<QTreeWidgetItem *>& list);
46  virtual void updateObjectBrowser();
47 
48  SoNode* zoomToTSOS(unsigned int index);
49 
50  virtual QString shortInfo() const;
51  virtual QString type() const { return QString("Track"); }
52 
53 private:
54  void visibleStateChanged();
56  virtual void ensureInitTSOSs(std::vector<AssociatedObjectHandleBase*>*& ascobjs);
58  void addTrackState(const typename ActsTrk::TrackStateBackend::ConstTrackStateProxy &state, std::vector<AssociatedObjectHandleBase*>* ascobjs, unsigned int index);
59  TrkObjToString::MeasurementType measurementType(const ActsTrk::TrackStateBackend::ConstTrackStateProxy &state) const;
60  QString measurementText(const ActsTrk::TrackStateBackend::ConstTrackStateProxy& state) const;
61 protected:
62  ActsTrk::TrackContainer::ConstTrackProxy m_track;
64  std::vector<ActsTrk::MultiTrajectory::ConstTrackStateProxy> m_trackStates;
65 
66 };
67 
68 #endif
TrackHandle_TrackContainer::addTrackState
void addTrackState(const typename ActsTrk::TrackStateBackend::ConstTrackStateProxy &state, std::vector< AssociatedObjectHandleBase * > *ascobjs, unsigned int index)
Definition: TrackHandle_TrackContainer.cxx:389
TrackCollHandleBase
Definition: TrackCollHandleBase.h:49
ActsTrk::TrackContainer
Definition: TrackContainer.h:31
TrackHandle_TrackContainer::m_track
ActsTrk::TrackContainer::ConstTrackProxy m_track
Definition: TrackHandle_TrackContainer.h:62
TrackHandle_TrackContainer::updateObjectBrowser
virtual void updateObjectBrowser()
Definition: TrackHandle_TrackContainer.cxx:272
TrackHandle_TrackContainer::measurementType
TrkObjToString::MeasurementType measurementType(const ActsTrk::TrackStateBackend::ConstTrackStateProxy &state) const
Definition: TrackHandle_TrackContainer.cxx:403
TrackHandle_TrackContainer::isRun4EDM
virtual bool isRun4EDM() const final
Definition: TrackHandle_TrackContainer.h:35
TrackHandle_TrackContainer::zoomToTSOS
SoNode * zoomToTSOS(unsigned int index)
Depending on controller configuration attempt to zoom to the corresponding TSOS & returned detailed n...
Definition: TrackHandle_TrackContainer.cxx:239
TrackHandle_TrackContainer::ensureInitTSOSs
virtual void ensureInitTSOSs(std::vector< AssociatedObjectHandleBase * > *&ascobjs)
Ensure that the TSOSs are initialized.
Definition: TrackHandle_TrackContainer.cxx:375
index
Definition: index.py:1
TrackHandleBase.h
TrackHandle_TrackContainer::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: TrackHandle_TrackContainer.h:51
TrackHandle_TrackContainer::m_container
const ActsTrk::TrackContainer & m_container
Definition: TrackHandle_TrackContainer.h:63
TrackHandle_TrackContainer::~TrackHandle_TrackContainer
virtual ~TrackHandle_TrackContainer()
Definition: TrackHandle_TrackContainer.cxx:40
TrackHandle_TrackContainer
Definition: TrackHandle_TrackContainer.h:28
TrackHandle_TrackContainer::provide_pathInfoPoints
virtual const std::vector< Amg::Vector3D > * provide_pathInfoPoints()
Definition: TrackHandle_TrackContainer.cxx:59
TrackHandle_TrackContainer::currentMaterialChanged
void currentMaterialChanged()
Definition: TrackHandle_TrackContainer.cxx:84
TrackHandle_TrackContainer::track
ActsTrk::TrackContainer::ConstTrackProxy track() const
Definition: TrackHandle_TrackContainer.h:40
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
GeoPrimitives.h
TrackHandle_TrackContainer::trackStates
const std::vector< ActsTrk::MultiTrajectory::ConstTrackStateProxy > & trackStates() const
Definition: TrackHandle_TrackContainer.h:41
TrackHandle_TrackContainer::m_trackStates
std::vector< ActsTrk::MultiTrajectory::ConstTrackStateProxy > m_trackStates
Definition: TrackHandle_TrackContainer.h:64
TrkObjToString.h
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
TrackHandle_TrackContainer::ensureInitTrackStateCache
void ensureInitTrackStateCache()
Ensure that the track state cache is initialized.
Definition: TrackHandle_TrackContainer.cxx:359
TrackHandle_TrackContainer::shortInfo
virtual QString shortInfo() const
returns mom and hit information about track
Definition: TrackHandle_TrackContainer.cxx:261
TrackHandle_TrackContainer::clicked
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
Definition: TrackHandle_TrackContainer.cxx:43
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TrackHandle_TrackContainer::momentum
virtual Amg::Vector3D momentum() const
Definition: TrackHandle_TrackContainer.cxx:51
TrackHandle_TrackContainer::TrackHandle_TrackContainer
TrackHandle_TrackContainer(TrackCollHandleBase *, ActsTrk::TrackContainer::ConstTrackProxy, const ActsTrk::TrackContainer &)
Definition: TrackHandle_TrackContainer.cxx:34
TrackHandle_TrackContainer::measurementText
QString measurementText(const ActsTrk::TrackStateBackend::ConstTrackStateProxy &state) const
Definition: TrackHandle_TrackContainer.cxx:430
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
TrackHandle_TrackContainer::visibleStateChanged
void visibleStateChanged()
override if need to take action in this case.
Definition: TrackHandle_TrackContainer.cxx:79
TrackHandle_TrackContainer::containsDetElement
virtual bool containsDetElement(const QString &) const
Definition: TrackHandle_TrackContainer.cxx:354
TrackHandleBase
Definition: TrackHandleBase.h:56
TrkObjToString::MeasurementType
MeasurementType
Definition: TrkObjToString.h:39
TrackContainer.h
TrackHandle_TrackContainer::fillObjectBrowser
virtual void fillObjectBrowser(QList< QTreeWidgetItem * > &list)
Called in child classes.
Definition: TrackHandle_TrackContainer.cxx:86