ATLAS Offline Software
TrackCollHandle_RefittedTracks.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Implementation of class TrackCollHandle_RefittedTracks //
9 // //
10 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11 // Initial version: September 2008 //
12 // //
14 
15 #include <utility>
16 
19 // #include "VP1Utils/VP1JobConfigInfo.h"
20 #include "VP1Base/IVP1System.h"
21 
22 //____________________________________________________________________
24 public:
25  QList<const Trk::Track*> fittedtracks;
26 };
27 
28 
29 //____________________________________________________________________
31  const QString& name, QList<const Trk::Track*> fittedtracks)
32  : TrackCollHandle_TrkTrack(cd,name,TrackType::RefittedTrack), m_d(new Imp)
33 {
34  m_d->fittedtracks = std::move(fittedtracks);
35 }
36 
37 //____________________________________________________________________
39 {
40  delete m_d;
41 }
42 
43 //____________________________________________________________________
45 {
47  int i(0);
48  for (const Trk::Track * trk : m_d->fittedtracks) {
49  if (trk) {
50  messageDebug("ADDTRACK.");
51  addTrackHandle(new TrackHandle_TrkTrack(this,trk));
52  } else
53  messageDebug("WARNING: Ignoring null Trk::Track pointer.");
54  if (!(i++%100))
55  systemBase()->updateGUI();
56  }
57 
58  //Maybe we need to show measurements, etc.:
59  //FIXME updateVisibleAssociatedObjects(); ??
60 
61  return true;
62 }
63 
64 //FIXME: These coll's should not have their states saved...
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
TrackCollHandle_RefittedTracks::load
virtual bool load()
Definition: TrackCollHandle_RefittedTracks.cxx:44
TrackCollHandle_RefittedTracks::Imp
Definition: TrackCollHandle_RefittedTracks.cxx:23
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
TrackCollHandleBase::hintNumberOfTracksInEvent
void hintNumberOfTracksInEvent(unsigned)
Definition: TrackCollHandleBase.cxx:509
VP1HelperClassBase::messageDebug
void messageDebug(const QString &) const
Definition: VP1HelperClassBase.cxx:65
TrackCollHandle_RefittedTracks::Imp::fittedtracks
QList< const Trk::Track * > fittedtracks
Definition: TrackCollHandle_RefittedTracks.cxx:25
TrackCollHandle_TrkTrack
Definition: TrackCollHandle_TrkTrack.h:27
TrackSysCommonData
Definition: TrackSysCommonData.h:50
TrackCollHandle_RefittedTracks::~TrackCollHandle_RefittedTracks
virtual ~TrackCollHandle_RefittedTracks()
Definition: TrackCollHandle_RefittedTracks.cxx:38
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrackHandle_TrkTrack
Definition: TrackHandle_TrkTrack.h:29
TrackCollHandle_RefittedTracks::TrackCollHandle_RefittedTracks
TrackCollHandle_RefittedTracks(TrackSysCommonData *, const QString &name, QList< const Trk::Track * > fittedtracks)
Definition: TrackCollHandle_RefittedTracks.cxx:30
TrackCollHandle_RefittedTracks.h
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition: VP1HelperClassBase.h:50
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrackCollHandleBase::addTrackHandle
void addTrackHandle(TrackHandleBase *)
Definition: TrackCollHandleBase.cxx:515
TrackHandle_TrkTrack.h
IVP1System::updateGUI
void updateGUI()
Definition: IVP1System.cxx:262
calibdata.cd
cd
Definition: calibdata.py:51
TrackCollHandle_RefittedTracks::m_d
Imp * m_d
Definition: TrackCollHandle_RefittedTracks.h:41
IVP1System.h
TrackType
Definition: TrackTypes.h:10