ATLAS Offline Software
graphics
VP1
VP1Systems
VP1TrackSystems
src
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
17
#include "
VP1TrackSystems/TrackCollHandle_RefittedTracks.h
"
18
#include "
VP1TrackSystems/TrackHandle_TrkTrack.h
"
19
// #include "VP1Utils/VP1JobConfigInfo.h"
20
#include "
VP1Base/IVP1System.h
"
21
22
//____________________________________________________________________
23
class
TrackCollHandle_RefittedTracks::Imp
{
24
public
:
25
QList<const Trk::Track*>
fittedtracks
;
26
};
27
28
29
//____________________________________________________________________
30
TrackCollHandle_RefittedTracks::TrackCollHandle_RefittedTracks
(
TrackSysCommonData
*
cd
,
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
//____________________________________________________________________
38
TrackCollHandle_RefittedTracks::~TrackCollHandle_RefittedTracks
()
39
{
40
delete
m_d
;
41
}
42
43
//____________________________________________________________________
44
bool
TrackCollHandle_RefittedTracks::load
()
45
{
46
hintNumberOfTracksInEvent
(
m_d
->
fittedtracks
.count());
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
Generated on Thu Nov 7 2024 21:28:50 for ATLAS Offline Software by
1.8.18