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

#include <TrackSysCommonData.h>

Inheritance diagram for TrackSysCommonData:
Collaboration diagram for TrackSysCommonData:

Classes

class  Imp
 

Public Member Functions

 TrackSysCommonData (VP1TrackSystem *sys, TrackSystemController *)
 
virtual ~TrackSysCommonData ()
 
VP1TrackSystemsystem () const
 
AscObjSelectionManagerascObjSelectionManager () const
 
TrackSystemControllercontroller () const
 
MuonChamberProjectionHelpermuonChamberProjectionHelper () const
 
InDetProjHelperindetProjHelper_Pixel () const
 
InDetProjHelperindetProjHelper_SCT () const
 
InDetProjHelperindetProjHelper_TRT () const
 
TouchedMuonChamberHelpertouchedMuonChamberHelper () const
 
TrackPropagationHelpertrackPropagationHelper () const
 
TrackLODManagertrackLODManager () const
 
VisibleObjectToMaterialHelper< Trk::Track > * visTrkTracksToMaterialHelper () const
 
VisibleObjectToMaterialHelper< Trk::Segment > * visTrkSegmentsToMaterialHelper () const
 
VP1TrackSanitytrackSanityHelper () const
 
SoPointSet * singlePoint () const
 
HitsSoNodeManagernodeManager ()
 
void setEventData (AscObjSelectionManager *)
 
void clearEventData ()
 
void registerTrack (SoNode *, TrackHandleBase *)
 
void unregisterTrack (SoNode *)
 
TrackHandleBasetrackHandle (SoNode *n)
 
SoNode * node (TrackHandleBase *h)
 Returns the node associated with this handle. More...
 
SoNode * node (QTreeWidgetItem *item)
 Returns the node associated with this item. More...
 
void setLastSelectedTrack (TrackHandleBase *sel)
 
TrackHandleBaselastSelectedTrackHandle ()
 pointer to base of last selected track (zero if nothing selected) More...
 
SoSeparator * textSep ()
 
const TrackHandleBasegetHandle (const Trk::Track *trk)
 
const ActsGeometryContextgeometryContext () const
 
ServiceHandle< Muon::IMuonIdHelperSvc > & muonIdHelperSvc ()
 
void setSystemBasePointer (IVP1System *sys)
 
void message (const QString &) const
 
void message (const QStringList &, const QString &addtoend="") const
 
void message (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
void messageDebug (const QString &) const
 
void messageDebug (const QStringList &, const QString &addtoend="") const
 
void messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
void messageVerbose (const QString &) const
 
void messageVerbose (const QStringList &, const QString &addtoend="") const
 
void messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const
 
IVP1SystemsystemBase () const
 
const QString & helperClassName () const
 

Static Public Member Functions

static bool verbose ()
 
static void warnUndeletedInstances ()
 
static QString str (const QString &s)
 
static QString str (const char *c)
 
static QString str (const bool b)
 
static QString str (const QColor &)
 
static QString str (const SbColor &)
 
static QString str (const VP1Interval &)
 
static QString str (const SbVec2d &)
 
static QString str (const SbVec2f &)
 
static QString str (const SbVec2s &)
 
static QString str (const SbVec3d &)
 
static QString str (const SbVec3f &)
 
static QString str (const SbVec3s &)
 
static QString str (const SbVec4d &)
 
static QString str (const SbVec4f &)
 
static QString str (short int n)
 
static QString str (unsigned short int n)
 
static QString str (long n)
 
static QString str (ulong n)
 
static QString str (int n)
 
static QString str (uint n)
 
static QString str (qlonglong n)
 
static QString str (qulonglong n)
 
static QString str (const double &d)
 
static QString str (const float &f)
 
static QString str (const void *)
 
template<class T >
static QString str (const T *t)
 
template<class T >
static QString str (const QFlags< T > &f)
 
template<class T >
static QString str (const HepGeom::BasicVector3D< T > &t)
 
static QString str (const Amg::Vector3D &t)
 
template<class T >
static QString str (const QList< T > &t)
 

Public Attributes

SoSeparator * m_textSep
 

Protected Member Functions

void setHelperClassName (const QString &n)
 

Private Attributes

Impm_d
 
VP1TrackSystemm_3dsystem
 
AscObjSelectionManagerm_ascObjSelectionManager
 
TrackSystemControllerm_controller
 
MuonChamberProjectionHelperm_muonChamberProjectionHelper
 
InDetProjHelperm_indetProjHelper_Pixel
 
InDetProjHelperm_indetProjHelper_SCT
 
InDetProjHelperm_indetProjHelper_TRT
 
TouchedMuonChamberHelperm_touchedMuonChamberHelper
 
TrackPropagationHelperm_trackPropagationHelper
 
TrackLODManagerm_trackLODManager
 
VisibleObjectToMaterialHelper< Trk::Track > * m_visTrkTracksToMaterialHelper
 
VisibleObjectToMaterialHelper< Trk::Segment > * m_visTrkSegmentsToMaterialHelper
 
VP1TrackSanitym_trackSanity
 
SoPointSet * m_singlePoint
 
TrackHandleBasem_lastSelectedTrack
 
HitsSoNodeManager m_nodeManager
 
const ActsGeometryContextm_geometryContext
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {"MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 
QString m_helpername
 
IVP1Systemm_system
 

Static Private Attributes

static const bool s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
 

Detailed Description

Definition at line 50 of file TrackSysCommonData.h.

Constructor & Destructor Documentation

◆ TrackSysCommonData()

TrackSysCommonData::TrackSysCommonData ( VP1TrackSystem sys,
TrackSystemController controller 
)

Definition at line 51 of file TrackSysCommonData.cxx.

52  : VP1HelperClassBase(sys,"TrackSysCommonData"), m_textSep(nullptr), m_d(new Imp),
54 {
55  m_3dsystem = sys;
63 
64  m_singlePoint = new SoPointSet;
65  m_singlePoint->ref();
66  SoVertexProperty * vertices = new SoVertexProperty;
67  vertices->vertex.set1Value(0,0.0f,0.0f,0.0f);
68  m_singlePoint->numPoints=1;
69  m_singlePoint->vertexProperty.setValue(vertices);
70 
71  m_trackLODManager = new TrackLODManager(nullptr,sys);
72  QObject::connect( m_controller,SIGNAL(assocObjDetailLevelChanged(TrackCommonFlags::DETAILLEVEL)),
73  m_trackLODManager,SLOT(setDetailLevel(TrackCommonFlags::DETAILLEVEL)) );
75 
76  QObject::connect(m_touchedMuonChamberHelper,SIGNAL(touchedMuonChambersChanged(const std::set<GeoPVConstLink>&)),
77  sys,SLOT(emitTouchedMuonChambersChanged(const std::set<GeoPVConstLink>&)));//Fixme: need track sys!!
78 
81  QObject::connect(m_visTrkTracksToMaterialHelper,SIGNAL(visibleObjectsChanged()),sys,SLOT(visibleObjectsChanged()));
82  QObject::connect(m_visTrkSegmentsToMaterialHelper,SIGNAL(visibleObjectsChanged()),sys,SLOT(visibleObjectsChanged()));
83 
84  // Get geometry context
85  if (!VP1SGAccessHelper(m_3dsystem).retrieve(m_geometryContext , "ActsAlignment")) {
86  message("Error: Could not retrieve ACTS alignment=");
87  }
88 
89 }

◆ ~TrackSysCommonData()

TrackSysCommonData::~TrackSysCommonData ( )
virtual

Definition at line 92 of file TrackSysCommonData.cxx.

93 {
96  delete m_indetProjHelper_SCT;
97  delete m_indetProjHelper_TRT;
100  delete m_trackLODManager;
103  delete m_trackSanity;
104  m_singlePoint->unref();
105  if (m_textSep) {
106  m_textSep->unref();
107  m_textSep = nullptr;
108  }
109  delete m_d;
110 }

Member Function Documentation

◆ ascObjSelectionManager()

AscObjSelectionManager * TrackSysCommonData::ascObjSelectionManager ( ) const
inline

Definition at line 123 of file TrackSysCommonData.h.

123 { return m_ascObjSelectionManager; }

◆ clearEventData()

void TrackSysCommonData::clearEventData ( )

Definition at line 119 of file TrackSysCommonData.cxx.

120 {
121  m_ascObjSelectionManager->aboutTodelete();//To allow to emit signals.
123  m_ascObjSelectionManager = nullptr;
128  // m_d->nodeToTrackHandle.clear(); TrackHandle destructor already ensures that unregister... below is called.
129 }

◆ controller()

TrackSystemController * TrackSysCommonData::controller ( ) const
inline

Definition at line 124 of file TrackSysCommonData.h.

124 { return m_controller; }

◆ geometryContext()

const ActsGeometryContext & TrackSysCommonData::geometryContext ( ) const

Definition at line 212 of file TrackSysCommonData.cxx.

212  {
213  return *m_geometryContext;
214 }

◆ getHandle()

const TrackHandleBase * TrackSysCommonData::getHandle ( const Trk::Track trk)

Definition at line 196 of file TrackSysCommonData.cxx.

197 {
198  if (!trk) {
199  messageVerbose("TrackSysCommonData::getHandle(): Received null pointer!");
200  return nullptr;
201  }
202 // messageVerbose("TrackSysCommonData::getHandle(): about to loop over this many elements:"+QString::number(m_d->nodeToTrackHandle.size()));
203 
205  for (; it!=itEnd;++it){
206  const TrackHandle_TrkTrack* trkHandle = dynamic_cast<const TrackHandle_TrkTrack*>(it->second);
207  if (trkHandle && trkHandle->trkTrackPointer()==trk) return trkHandle;
208  }
209  return nullptr;
210 }

◆ helperClassName()

const QString& VP1HelperClassBase::helperClassName ( ) const
inlineinherited

Definition at line 51 of file VP1HelperClassBase.h.

51 { return m_helpername; }

◆ indetProjHelper_Pixel()

InDetProjHelper * TrackSysCommonData::indetProjHelper_Pixel ( ) const
inline

Definition at line 126 of file TrackSysCommonData.h.

126 { return m_indetProjHelper_Pixel; }

◆ indetProjHelper_SCT()

InDetProjHelper * TrackSysCommonData::indetProjHelper_SCT ( ) const
inline

Definition at line 127 of file TrackSysCommonData.h.

127 { return m_indetProjHelper_SCT; }

◆ indetProjHelper_TRT()

InDetProjHelper * TrackSysCommonData::indetProjHelper_TRT ( ) const
inline

Definition at line 128 of file TrackSysCommonData.h.

128 { return m_indetProjHelper_TRT; }

◆ lastSelectedTrackHandle()

TrackHandleBase * TrackSysCommonData::lastSelectedTrackHandle ( )
inline

pointer to base of last selected track (zero if nothing selected)

Definition at line 137 of file TrackSysCommonData.h.

137 {return m_lastSelectedTrack;}

◆ message() [1/3]

void VP1HelperClassBase::message ( const QString &  str) const
inherited

Definition at line 49 of file VP1HelperClassBase.cxx.

50 {
51  if (m_helpername.isEmpty()) {
52  if (m_system)
54  else
55  std::cout<<VP1Msg::prefix_msg()<<" [nameless helper class]: "<<str.toStdString()<<std::endl;
56  } else {
57  if (m_system)
58  m_system->message("["+m_helpername+"] " + str);
59  else
60  std::cout<<VP1Msg::prefix_msg()<<" ["<<m_helpername.toStdString()<<"]: "<<str.toStdString()<<std::endl;
61  }
62 }

◆ message() [2/3]

void VP1HelperClassBase::message ( const QString &  addtostart,
const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 131 of file VP1HelperClassBase.cxx.

132 {
133  if (addtostart.isEmpty()) {
134  message(l,addtoend);
135  return;
136  }
137  if (addtoend.isEmpty()) {
138  for (const QString& s : l)
139  message(addtostart+s);
140  } else {
141  for (const QString& s : l)
142  message(addtostart+s+addtoend);
143  }
144 }

◆ message() [3/3]

void VP1HelperClassBase::message ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 91 of file VP1HelperClassBase.cxx.

92 {
93  if (addtoend.isEmpty()) {
94  for (const QString& s : l)
95  message(s);
96  } else {
97  for (const QString& s : l)
98  message(s+addtoend);
99  }
100 }

◆ messageDebug() [1/3]

void VP1HelperClassBase::messageDebug ( const QString &  str) const
inherited

Definition at line 65 of file VP1HelperClassBase.cxx.

66 {
67  if (!VP1Msg::debug())
68  return;
69  std::string sysstring(m_system ? " in "+m_system->name().toStdString() : std::string(""));
70  if (m_helpername.isEmpty()) {
71  std::cout<<VP1Msg::prefix_debug()<<" [helper"<<sysstring<<"]: "<<str.toStdString()<<std::endl;
72  } else {
73  std::cout<<VP1Msg::prefix_debug()<<" ["<<m_helpername.toStdString()<<sysstring<<"]: "<<str.toStdString()<<std::endl;
74  }
75 }

◆ messageDebug() [2/3]

void VP1HelperClassBase::messageDebug ( const QString &  addtostart,
const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 147 of file VP1HelperClassBase.cxx.

148 {
149  if (!VP1Msg::debug())
150  return;
151  if (addtostart.isEmpty()) {
152  messageDebug(l,addtoend);
153  return;
154  }
155  if (addtoend.isEmpty()) {
156  for (const QString& s : l)
157  messageDebug(addtostart+s);
158  } else {
159  for (const QString& s : l)
160  messageDebug(addtostart+s+addtoend);
161  }
162 }

◆ messageDebug() [3/3]

void VP1HelperClassBase::messageDebug ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 103 of file VP1HelperClassBase.cxx.

104 {
105  if (!VP1Msg::debug())
106  return;
107  if (addtoend.isEmpty()) {
108  for (const QString& s : l)
109  messageDebug(s);
110  } else {
111  for (const QString& s : l)
112  messageDebug(s+addtoend);
113  }
114 }

◆ messageVerbose() [1/3]

void VP1HelperClassBase::messageVerbose ( const QString &  str) const
inherited

Definition at line 78 of file VP1HelperClassBase.cxx.

79 {
80  if (!VP1Msg::verbose())
81  return;
82  std::string sysstring(m_system ? " in "+m_system->name().toStdString() : std::string(""));
83  if (m_helpername.isEmpty()) {
84  std::cout<<VP1Msg::prefix_verbose()<<" [helper"<<sysstring<<"]: "<<str.toStdString()<<std::endl;
85  } else {
86  std::cout<<VP1Msg::prefix_verbose()<<" ["<<m_helpername.toStdString()<<sysstring<<"]: "<<str.toStdString()<<std::endl;
87  }
88 }

◆ messageVerbose() [2/3]

void VP1HelperClassBase::messageVerbose ( const QString &  addtostart,
const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 165 of file VP1HelperClassBase.cxx.

166 {
167  if (!VP1Msg::verbose())
168  return;
169  if (addtostart.isEmpty()) {
170  messageVerbose(l,addtoend);
171  return;
172  }
173  if (addtoend.isEmpty()) {
174  for (const QString& s : l)
175  messageVerbose(addtostart+s);
176  } else {
177  for (const QString& s : l)
178  messageVerbose(addtostart+s+addtoend);
179  }
180 }

◆ messageVerbose() [3/3]

void VP1HelperClassBase::messageVerbose ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 117 of file VP1HelperClassBase.cxx.

118 {
119  if (!VP1Msg::verbose())
120  return;
121  if (addtoend.isEmpty()) {
122  for (const QString& s : l)
123  messageVerbose(s);
124  } else {
125  for (const QString& s : l)
126  messageVerbose(s+addtoend);
127  }
128 }

◆ muonChamberProjectionHelper()

MuonChamberProjectionHelper * TrackSysCommonData::muonChamberProjectionHelper ( ) const
inline

Definition at line 125 of file TrackSysCommonData.h.

◆ muonIdHelperSvc()

ServiceHandle< Muon::IMuonIdHelperSvc > & TrackSysCommonData::muonIdHelperSvc ( )

Definition at line 217 of file TrackSysCommonData.cxx.

217  {
218  if (m_idHelperSvc.retrieve().isFailure()) {
219  message("IMuonIdHelperSvc ERROR: Can not retrieve");
220  }
221  return m_idHelperSvc;
222  }

◆ node() [1/2]

SoNode * TrackSysCommonData::node ( QTreeWidgetItem *  item)

Returns the node associated with this item.

Returns zero if no match found.

Definition at line 186 of file TrackSysCommonData.cxx.

187 {
188  if (!item)
189  return nullptr;
191  for (; it!=itEnd;++it)
192  if (it->second->browserTreeItem()==item) return it->first;
193  return nullptr;
194 }

◆ node() [2/2]

SoNode * TrackSysCommonData::node ( TrackHandleBase h)

Returns the node associated with this handle.

Returns zero if no match found.

Definition at line 175 of file TrackSysCommonData.cxx.

176 {
177  if (!h)
178  return nullptr;
180  for (; it!=itEnd;++it)
181  if (it->second==h) return it->first;
182  return nullptr;
183 }

◆ nodeManager()

HitsSoNodeManager & TrackSysCommonData::nodeManager ( )
inline

Definition at line 139 of file TrackSysCommonData.h.

139 {return m_nodeManager;}

◆ registerTrack()

void TrackSysCommonData::registerTrack ( SoNode *  node,
TrackHandleBase handle 
)

Definition at line 132 of file TrackSysCommonData.cxx.

133 {
134  if (VP1Msg::verbose()) {
135  if (!node||!handle) {
136  message("registerTrack ERROR: Received null pointer!");
137  return;
138  }
140  if (it!=m_d->nodeToTrackHandle.end())
141  message("registerTrack ERROR: Node already registered!");
142  }
143  m_d->nodeToTrackHandle[node]=handle;
144 }

◆ setEventData()

void TrackSysCommonData::setEventData ( AscObjSelectionManager aomgr)

Definition at line 113 of file TrackSysCommonData.cxx.

114 {
115  m_ascObjSelectionManager = aomgr;
116 }

◆ setHelperClassName()

void VP1HelperClassBase::setHelperClassName ( const QString &  n)
inlineprotectedinherited

Definition at line 59 of file VP1HelperClassBase.h.

59 { m_helpername = n; }

◆ setLastSelectedTrack()

void TrackSysCommonData::setLastSelectedTrack ( TrackHandleBase sel)
inline

Definition at line 136 of file TrackSysCommonData.h.

◆ setSystemBasePointer()

void VP1HelperClassBase::setSystemBasePointer ( IVP1System sys)
inherited

Definition at line 197 of file VP1HelperClassBase.cxx.

198 {
199  m_system = sys;
200  if (VP1Msg::verbose()){
201  vp1helperclassbase_instanceMap[this] = (m_system?m_system->name():QString(""));
202  }
203 }

◆ singlePoint()

SoPointSet * TrackSysCommonData::singlePoint ( ) const
inline

Definition at line 135 of file TrackSysCommonData.h.

135 { return m_singlePoint; }

◆ str() [1/30]

static QString VP1String::str ( const Amg::Vector3D t)
inlinestaticinherited

Definition at line 98 of file VP1String.h.

98 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ str() [2/30]

static QString VP1String::str ( const bool  b)
inlinestaticinherited

Definition at line 53 of file VP1String.h.

53 { return b?"True":"False"; }

◆ str() [3/30]

static QString VP1String::str ( const char *  c)
inlinestaticinherited

Definition at line 50 of file VP1String.h.

50 { return c; }

◆ str() [4/30]

static QString VP1String::str ( const double &  d)
inlinestaticinherited

Definition at line 81 of file VP1String.h.

81 { return QString::number(d); }

◆ str() [5/30]

static QString VP1String::str ( const float &  f)
inlinestaticinherited

Definition at line 82 of file VP1String.h.

82 { return QString::number(f); }

◆ str() [6/30]

template<class T >
static QString VP1String::str ( const HepGeom::BasicVector3D< T > &  t)
inlinestaticinherited

Definition at line 95 of file VP1String.h.

95 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ str() [7/30]

QString VP1String::str ( const QColor &  c)
staticinherited

Definition at line 30 of file VP1String.cxx.

31 {
32  return c.isValid() ? c.name() : "Invalid";
33 }

◆ str() [8/30]

template<class T >
static QString VP1String::str ( const QFlags< T > &  f)
inlinestaticinherited

Definition at line 91 of file VP1String.h.

91 { return "0x"+QString::number(f, 16).toUpper().rightJustified(8,'0'); }

◆ str() [9/30]

template<class T >
static QString VP1String::str ( const QList< T > &  t)
inlinestaticinherited

Definition at line 102 of file VP1String.h.

102 { return "QList of size"+QString::number(t.size()); }

◆ str() [10/30]

static QString VP1String::str ( const QString &  s)
inlinestaticinherited

Definition at line 49 of file VP1String.h.

49 { return s; }

◆ str() [11/30]

QString VP1String::str ( const SbColor &  c)
staticinherited

Definition at line 36 of file VP1String.cxx.

37 {
39 }

◆ str() [12/30]

QString VP1String::str ( const SbVec2d &  v)
staticinherited

Definition at line 61 of file VP1String.cxx.

61 { double x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [13/30]

QString VP1String::str ( const SbVec2f &  v)
staticinherited

Definition at line 62 of file VP1String.cxx.

62 { float x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [14/30]

QString VP1String::str ( const SbVec2s &  v)
staticinherited

Definition at line 63 of file VP1String.cxx.

63 { short x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [15/30]

QString VP1String::str ( const SbVec3d &  v)
staticinherited

Definition at line 64 of file VP1String.cxx.

64 { double x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [16/30]

QString VP1String::str ( const SbVec3f &  v)
staticinherited

Definition at line 65 of file VP1String.cxx.

65 { float x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [17/30]

QString VP1String::str ( const SbVec3s &  v)
staticinherited

Definition at line 66 of file VP1String.cxx.

66 { short x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [18/30]

QString VP1String::str ( const SbVec4d &  v)
staticinherited

Definition at line 67 of file VP1String.cxx.

67 { double x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [19/30]

QString VP1String::str ( const SbVec4f &  v)
staticinherited

Definition at line 68 of file VP1String.cxx.

68 { float x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [20/30]

template<class T >
static QString VP1String::str ( const T *  t)
inlinestaticinherited

Definition at line 87 of file VP1String.h.

87 { return str(static_cast<const void* >(t)); }

◆ str() [21/30]

QString VP1String::str ( const void *  p)
staticinherited

Definition at line 48 of file VP1String.cxx.

49 {
50  if (p) {
51  std::ostringstream s;
52  s << p;
53  // Explicitly naming QString here avoids a cppcheck warning.
54  return QString (s.str().c_str());
55  } else {
56  return "NULL";
57  }
58 }

◆ str() [22/30]

QString VP1String::str ( const VP1Interval i)
staticinherited

Definition at line 42 of file VP1String.cxx.

43 {
44  return i.toString();
45 }

◆ str() [23/30]

static QString VP1String::str ( int  n)
inlinestaticinherited

Definition at line 77 of file VP1String.h.

77 { return QString::number(n); }

◆ str() [24/30]

static QString VP1String::str ( long  n)
inlinestaticinherited

Definition at line 75 of file VP1String.h.

75 { return QString::number(n); }

◆ str() [25/30]

static QString VP1String::str ( qlonglong  n)
inlinestaticinherited

Definition at line 79 of file VP1String.h.

79 { return QString::number(n); }

◆ str() [26/30]

static QString VP1String::str ( qulonglong  n)
inlinestaticinherited

Definition at line 80 of file VP1String.h.

80 { return QString::number(n); }

◆ str() [27/30]

static QString VP1String::str ( short int  n)
inlinestaticinherited

Definition at line 73 of file VP1String.h.

73 { return QString::number(n); }

◆ str() [28/30]

static QString VP1String::str ( uint  n)
inlinestaticinherited

Definition at line 78 of file VP1String.h.

78 { return QString::number(n); }

◆ str() [29/30]

static QString VP1String::str ( ulong  n)
inlinestaticinherited

Definition at line 76 of file VP1String.h.

76 { return QString::number(n); }

◆ str() [30/30]

static QString VP1String::str ( unsigned short int  n)
inlinestaticinherited

Definition at line 74 of file VP1String.h.

74 { return QString::number(n); }

◆ system()

VP1TrackSystem * TrackSysCommonData::system ( ) const
inline

Definition at line 122 of file TrackSysCommonData.h.

122 { return m_3dsystem; }

◆ systemBase()

IVP1System* VP1HelperClassBase::systemBase ( ) const
inlineinherited

Definition at line 50 of file VP1HelperClassBase.h.

50 { return m_system; }

◆ textSep()

SoSeparator * TrackSysCommonData::textSep ( )
inline

Definition at line 138 of file TrackSysCommonData.h.

138 {return m_textSep;} // FIXME! FIXME!

◆ touchedMuonChamberHelper()

TouchedMuonChamberHelper * TrackSysCommonData::touchedMuonChamberHelper ( ) const
inline

Definition at line 129 of file TrackSysCommonData.h.

129 { return m_touchedMuonChamberHelper; }

◆ trackHandle()

TrackHandleBase * TrackSysCommonData::trackHandle ( SoNode *  n)

Definition at line 164 of file TrackSysCommonData.cxx.

165 {
166  if (!n)
167  return nullptr;
169  if (it!=m_d->nodeToTrackHandle.end())
170  return it->second;
171  return nullptr;
172 }

◆ trackLODManager()

TrackLODManager * TrackSysCommonData::trackLODManager ( ) const
inline

Definition at line 131 of file TrackSysCommonData.h.

131 { return m_trackLODManager; }

◆ trackPropagationHelper()

TrackPropagationHelper * TrackSysCommonData::trackPropagationHelper ( ) const
inline

Definition at line 130 of file TrackSysCommonData.h.

130 { return m_trackPropagationHelper; }

◆ trackSanityHelper()

VP1TrackSanity * TrackSysCommonData::trackSanityHelper ( ) const
inline

Definition at line 134 of file TrackSysCommonData.h.

134 { return m_trackSanity; }

◆ unregisterTrack()

void TrackSysCommonData::unregisterTrack ( SoNode *  node)

Definition at line 147 of file TrackSysCommonData.cxx.

148 {
149  if (VP1Msg::verbose()) {
150  if (!node) {
151  message("unregisterTrack ERROR: Received null pointer!");
152  return;
153  }
154  }
156  if (it==m_d->nodeToTrackHandle.end()) {
157  message("unregisterTrack ERROR: Not previously registered!");
158  return;
159  }
160  m_d->nodeToTrackHandle.erase(it);
161 }

◆ verbose()

static bool VP1HelperClassBase::verbose ( )
inlinestaticinherited

Definition at line 32 of file VP1HelperClassBase.h.

32 { return s_vp1verbose; } // Returns true if env var VP1_VERBOSE_OUTPUT=1

◆ visTrkSegmentsToMaterialHelper()

VisibleObjectToMaterialHelper< Trk::Segment > * TrackSysCommonData::visTrkSegmentsToMaterialHelper ( ) const
inline

Definition at line 133 of file TrackSysCommonData.h.

◆ visTrkTracksToMaterialHelper()

VisibleObjectToMaterialHelper< Trk::Track > * TrackSysCommonData::visTrkTracksToMaterialHelper ( ) const
inline

Definition at line 132 of file TrackSysCommonData.h.

◆ warnUndeletedInstances()

void VP1HelperClassBase::warnUndeletedInstances ( )
staticinherited

Definition at line 183 of file VP1HelperClassBase.cxx.

184 {
185  if (vp1helperclassbase_instanceMap.empty())
186  return;
187  std::cout << "WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<" undeleted helper class instances:"<<std::endl;
188 
189  std::map<VP1HelperClassBase*,QString>::iterator it,itE(vp1helperclassbase_instanceMap.end());
190  for (it = vp1helperclassbase_instanceMap.begin();it!=itE;++it) {
191  std::cout << " ==> "<<it->first<<": "<<it->first->m_helpername.toStdString()
192  << (it->second.isEmpty()?QString(""):" (in system "+it->second+")").toStdString()<<std::endl;
193  }
194 }

Member Data Documentation

◆ m_3dsystem

VP1TrackSystem* TrackSysCommonData::m_3dsystem
private

Definition at line 102 of file TrackSysCommonData.h.

◆ m_ascObjSelectionManager

AscObjSelectionManager* TrackSysCommonData::m_ascObjSelectionManager
private

Definition at line 103 of file TrackSysCommonData.h.

◆ m_controller

TrackSystemController* TrackSysCommonData::m_controller
private

Definition at line 104 of file TrackSysCommonData.h.

◆ m_d

Imp* TrackSysCommonData::m_d
private

Definition at line 100 of file TrackSysCommonData.h.

◆ m_geometryContext

const ActsGeometryContext* TrackSysCommonData::m_geometryContext
private

Definition at line 118 of file TrackSysCommonData.h.

◆ m_helpername

QString VP1HelperClassBase::m_helpername
privateinherited

Definition at line 67 of file VP1HelperClassBase.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> TrackSysCommonData::m_idHelperSvc {"MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 119 of file TrackSysCommonData.h.

◆ m_indetProjHelper_Pixel

InDetProjHelper* TrackSysCommonData::m_indetProjHelper_Pixel
private

Definition at line 106 of file TrackSysCommonData.h.

◆ m_indetProjHelper_SCT

InDetProjHelper* TrackSysCommonData::m_indetProjHelper_SCT
private

Definition at line 107 of file TrackSysCommonData.h.

◆ m_indetProjHelper_TRT

InDetProjHelper* TrackSysCommonData::m_indetProjHelper_TRT
private

Definition at line 108 of file TrackSysCommonData.h.

◆ m_lastSelectedTrack

TrackHandleBase* TrackSysCommonData::m_lastSelectedTrack
private

Definition at line 116 of file TrackSysCommonData.h.

◆ m_muonChamberProjectionHelper

MuonChamberProjectionHelper* TrackSysCommonData::m_muonChamberProjectionHelper
private

Definition at line 105 of file TrackSysCommonData.h.

◆ m_nodeManager

HitsSoNodeManager TrackSysCommonData::m_nodeManager
private

Definition at line 117 of file TrackSysCommonData.h.

◆ m_singlePoint

SoPointSet* TrackSysCommonData::m_singlePoint
private

Definition at line 115 of file TrackSysCommonData.h.

◆ m_system

IVP1System* VP1HelperClassBase::m_system
privateinherited

Definition at line 68 of file VP1HelperClassBase.h.

◆ m_textSep

SoSeparator* TrackSysCommonData::m_textSep

Definition at line 91 of file TrackSysCommonData.h.

◆ m_touchedMuonChamberHelper

TouchedMuonChamberHelper* TrackSysCommonData::m_touchedMuonChamberHelper
private

Definition at line 109 of file TrackSysCommonData.h.

◆ m_trackLODManager

TrackLODManager* TrackSysCommonData::m_trackLODManager
private

Definition at line 111 of file TrackSysCommonData.h.

◆ m_trackPropagationHelper

TrackPropagationHelper* TrackSysCommonData::m_trackPropagationHelper
private

Definition at line 110 of file TrackSysCommonData.h.

◆ m_trackSanity

VP1TrackSanity* TrackSysCommonData::m_trackSanity
private

Definition at line 114 of file TrackSysCommonData.h.

◆ m_visTrkSegmentsToMaterialHelper

VisibleObjectToMaterialHelper<Trk::Segment>* TrackSysCommonData::m_visTrkSegmentsToMaterialHelper
private

Definition at line 113 of file TrackSysCommonData.h.

◆ m_visTrkTracksToMaterialHelper

VisibleObjectToMaterialHelper<Trk::Track>* TrackSysCommonData::m_visTrkTracksToMaterialHelper
private

Definition at line 112 of file TrackSysCommonData.h.

◆ s_vp1verbose

const bool VP1HelperClassBase::s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
staticprivateinherited

Definition at line 69 of file VP1HelperClassBase.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
MuonChamberProjectionHelper
Definition: MuonChamberProjectionHelper.h:32
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TrackSysCommonData::controller
TrackSystemController * controller() const
Definition: TrackSysCommonData.h:124
TrackSysCommonData::m_visTrkSegmentsToMaterialHelper
VisibleObjectToMaterialHelper< Trk::Segment > * m_visTrkSegmentsToMaterialHelper
Definition: TrackSysCommonData.h:113
TrackSysCommonData::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TrackSysCommonData.h:119
AscObjSelectionManager::aboutTodelete
void aboutTodelete()
Definition: AscObjSelectionManager.cxx:97
TrackLODManager::setDetailLevel
void setDetailLevel(TrackCommonFlags::DETAILLEVEL)
Definition: TrackLODManager.cxx:111
TrackSysCommonData::m_indetProjHelper_SCT
InDetProjHelper * m_indetProjHelper_SCT
Definition: TrackSysCommonData.h:107
InDetProjHelper::createPixelHelper
static InDetProjHelper * createPixelHelper(IVP1System *sys=0)
Definition: InDetProjHelper.cxx:32
VisibleObjectToMaterialHelper::setNoVisibleObjects
void setNoVisibleObjects()
hist_file_dump.d
d
Definition: hist_file_dump.py:137
VisibleObjectToMaterialHelper< Trk::Track >
VP1HelperClassBase::m_helpername
QString m_helpername
Definition: VP1HelperClassBase.h:67
TrackSysCommonData::m_lastSelectedTrack
TrackHandleBase * m_lastSelectedTrack
Definition: TrackSysCommonData.h:116
VP1HelperClassBase::messageVerbose
void messageVerbose(const QString &) const
Definition: VP1HelperClassBase.cxx:78
TrackSysCommonData::m_ascObjSelectionManager
AscObjSelectionManager * m_ascObjSelectionManager
Definition: TrackSysCommonData.h:103
TrackSysCommonData::m_textSep
SoSeparator * m_textSep
Definition: TrackSysCommonData.h:91
TrackSysCommonData::node
SoNode * node(TrackHandleBase *h)
Returns the node associated with this handle.
Definition: TrackSysCommonData.cxx:175
VP1HelperClassBase::s_vp1verbose
static const bool s_vp1verbose
Definition: VP1HelperClassBase.h:69
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TrackSystemController::assocObjDetailLevel
TrackCommonFlags::DETAILLEVEL assocObjDetailLevel() const
Definition: TrackSystemController.cxx:1764
InDetProjHelper::createSCTHelper
static InDetProjHelper * createSCTHelper(IVP1System *sys=0)
Definition: InDetProjHelper.cxx:50
VP1Msg::debug
static bool debug()
Definition: VP1Msg.h:32
TrackPropagationHelper
Definition: TrackPropagationHelper.h:40
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
TrackHandle_TrkTrack::trkTrackPointer
const Trk::Track * trkTrackPointer() const
Definition: TrackHandle_TrkTrack.h:43
VP1TrackSanity
Definition: VP1TrackSanity.h:34
VP1HelperClassBase::m_system
IVP1System * m_system
Definition: VP1HelperClassBase.h:68
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TrackSysCommonData::m_trackPropagationHelper
TrackPropagationHelper * m_trackPropagationHelper
Definition: TrackSysCommonData.h:110
x
#define x
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
VP1HelperClassBase::messageDebug
void messageDebug(const QString &) const
Definition: VP1HelperClassBase.cxx:65
TouchedMuonChamberHelper
Definition: TouchedMuonChamberHelper.h:30
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
TrackSysCommonData::m_indetProjHelper_Pixel
InDetProjHelper * m_indetProjHelper_Pixel
Definition: TrackSysCommonData.h:106
TruthTest.itE
itE
Definition: TruthTest.py:25
TrackSysCommonData::m_trackLODManager
TrackLODManager * m_trackLODManager
Definition: TrackSysCommonData.h:111
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
VP1Msg::prefix_msg
static const char * prefix_msg()
Definition: VP1Msg.h:56
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
beamspotman.n
n
Definition: beamspotman.py:731
sel
sel
Definition: SUSYToolsTester.cxx:97
TrackSysCommonData::m_muonChamberProjectionHelper
MuonChamberProjectionHelper * m_muonChamberProjectionHelper
Definition: TrackSysCommonData.h:105
IVP1System::name
const QString & name() const
Definition: IVP1System.cxx:50
TrackHandle_TrkTrack
Definition: TrackHandle_TrkTrack.h:29
hist_file_dump.f
f
Definition: hist_file_dump.py:135
TrackSysCommonData::m_trackSanity
VP1TrackSanity * m_trackSanity
Definition: TrackSysCommonData.h:114
TrackSysCommonData::m_d
Imp * m_d
Definition: TrackSysCommonData.h:99
TrackSysCommonData::m_controller
TrackSystemController * m_controller
Definition: TrackSysCommonData.h:104
VP1QtInventorUtils::sbcol2qcol
static QColor sbcol2qcol(const SbColor &)
Definition: VP1QtInventorUtils.cxx:1142
TrackSysCommonData::m_touchedMuonChamberHelper
TouchedMuonChamberHelper * m_touchedMuonChamberHelper
Definition: TrackSysCommonData.h:109
TrackSysCommonData::m_visTrkTracksToMaterialHelper
VisibleObjectToMaterialHelper< Trk::Track > * m_visTrkTracksToMaterialHelper
Definition: TrackSysCommonData.h:112
python.selection.number
number
Definition: selection.py:20
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
VP1Msg::prefix_debug
static const char * prefix_debug()
Definition: VP1Msg.h:57
item
Definition: ItemListSvc.h:43
TrackSysCommonData::Imp::nodeToTrackHandle
std::map< SoNode *, TrackHandleBase * > nodeToTrackHandle
Definition: TrackSysCommonData.cxx:47
TrackSysCommonData::m_indetProjHelper_TRT
InDetProjHelper * m_indetProjHelper_TRT
Definition: TrackSysCommonData.h:108
python.PyAthena.v
v
Definition: PyAthena.py:154
VP1Msg::prefix_verbose
static const char * prefix_verbose()
Definition: VP1Msg.h:59
TrackSysCommonData::m_3dsystem
VP1TrackSystem * m_3dsystem
Definition: TrackSysCommonData.h:102
y
#define y
h
TouchedMuonChamberHelper::eraseEventData
void eraseEventData()
Definition: TouchedMuonChamberHelper.cxx:116
InDetProjHelper::createTRTHelper
static InDetProjHelper * createTRTHelper(IVP1System *sys=0)
Definition: InDetProjHelper.cxx:68
VP1HelperClassBase::message
void message(const QString &) const
Definition: VP1HelperClassBase.cxx:49
TrackCommonFlags::DETAILLEVEL
DETAILLEVEL
Definition: TrackCommonFlags.h:39
str
Definition: BTagTrackIpAccessor.cxx:11
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
VP1SGAccessHelper
Definition: VP1SGAccessHelper.h:25
VP1HelperClassBase::VP1HelperClassBase
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")
Definition: VP1HelperClassBase.cxx:28
TrackLODManager
Definition: TrackLODManager.h:32
TrackSysCommonData::m_singlePoint
SoPointSet * m_singlePoint
Definition: TrackSysCommonData.h:115
python.compressB64.c
def c
Definition: compressB64.py:93
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
TrackLODManager::eraseEventData
void eraseEventData()
Definition: TrackLODManager.cxx:151
node
Definition: memory_hooks-stdcmalloc.h:74
TrackSysCommonData::m_nodeManager
HitsSoNodeManager m_nodeManager
Definition: TrackSysCommonData.h:117
TrackSysCommonData::m_geometryContext
const ActsGeometryContext * m_geometryContext
Definition: TrackSysCommonData.h:118