ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetRecEvent
SiSPSeededTrackFinderData
src
SiCombinatorialTrackFinderData_xk.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// Source file for class SiCombinatorialTrackFinderData_xk
8
9
#include "
SiSPSeededTrackFinderData/SiCombinatorialTrackFinderData_xk.h
"
10
#include "
AthenaKernel/getMessageSvc.h
"
11
12
namespace
InDet
{
13
14
SiCombinatorialTrackFinderData_xk::SiCombinatorialTrackFinderData_xk
() =
default
;
15
16
void
SiCombinatorialTrackFinderData_xk::setTools
(
const
Trk::IPatternParametersPropagator
* propTool,
17
const
Trk::IPatternParametersUpdator
* updatorTool,
18
const
Trk::IRIO_OnTrackCreator
* rioTool,
19
const
IInDetConditionsTool
* pixCondTool,
20
const
IInDetConditionsTool
* sctCondTool,
21
const
Trk::MagneticFieldProperties
* fieldProp,
22
const
Trk::IBoundaryCheckTool
* boundaryCheckTool)
23
{
24
// Set SiTools and conditions
25
//
26
m_tools
.setTools(propTool,
27
updatorTool,
28
rioTool);
29
m_tools
.setTools(pixCondTool,
30
sctCondTool);
31
m_tools
.setTools(fieldProp);
32
m_tools
.setTools(boundaryCheckTool);
33
34
// Set tool to trajectory
35
//
36
m_trajectory
.setTools(&
m_tools
);
37
38
m_initialized
=
true
;
39
}
40
41
42
void
SiCombinatorialTrackFinderData_xk::setFlagToReturnFailedTrack
(
const
bool
flag) {
43
if
( flag && (!
m_simpleTrack
) ) {
44
MsgStream log(
Athena::getMessageSvc
(),
"SiCombinatorialTrackFinderData_xk"
);
45
log << MSG::WARNING <<
"not simpleTrack, keep flagToReturnFailedTrack as false"
<<
endmsg
;
46
m_flagToReturnFailedTrack
=
false
;
47
return
;
48
}
49
m_flagToReturnFailedTrack
= flag;
50
}
51
52
void
SiCombinatorialTrackFinderData_xk::setHeavyIon
(
bool
flag){
53
m_heavyIon
= flag;
54
m_tools
.setHeavyIon(flag);
55
}
56
57
void
SiCombinatorialTrackFinderData_xk::setITkGeometry
(
bool
flag){
58
m_ITkGeometry
= flag;
59
m_tools
.setITkGeometry(flag);
60
}
61
62
void
SiCombinatorialTrackFinderData_xk::setFastTracking
(
bool
flag){
63
m_doFastTracking
= flag;
64
m_tools
.setFastTracking(flag);
65
}
66
67
bool
SiCombinatorialTrackFinderData_xk::findPatternHoleSearchOutcome
(
Trk::Track
* theTrack,
InDet::PatternHoleSearchOutcome
& outcome)
const
{
68
auto
found =
m_holeSearchOutcomes
.find(theTrack);
69
if
(found ==
m_holeSearchOutcomes
.end()){
70
return
false
;
71
}
72
outcome = found->second;
73
return
true
;
74
}
75
void
SiCombinatorialTrackFinderData_xk::addPatternHoleSearchOutcome
(
Trk::Track
* theTrack,
const
InDet::PatternHoleSearchOutcome
& outcome){
76
m_holeSearchOutcomes
.emplace(theTrack,outcome);
77
}
78
79
}
// end of name space
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
SiCombinatorialTrackFinderData_xk.h
IInDetConditionsTool
Interface class for service providing summary of status of a detector element.
Definition
IInDetConditionsTool.h:26
InDet::SiCombinatorialTrackFinderData_xk::setTools
void setTools(const Trk::IPatternParametersPropagator *propTool, const Trk::IPatternParametersUpdator *updatorTool, const Trk::IRIO_OnTrackCreator *rioTool, const IInDetConditionsTool *pixCondTool, const IInDetConditionsTool *sctCondTool, const Trk::MagneticFieldProperties *fieldProp, const Trk::IBoundaryCheckTool *boundaryCheckTool)
Set tools, service and magnetic field properties.
Definition
SiCombinatorialTrackFinderData_xk.cxx:16
InDet::SiCombinatorialTrackFinderData_xk::m_trajectory
SiTrajectory_xk m_trajectory
Track trajectory.
Definition
SiCombinatorialTrackFinderData_xk.h:242
InDet::SiCombinatorialTrackFinderData_xk::m_heavyIon
bool m_heavyIon
Definition
SiCombinatorialTrackFinderData_xk.h:264
InDet::SiCombinatorialTrackFinderData_xk::m_initialized
bool m_initialized
Initialization flag.
Definition
SiCombinatorialTrackFinderData_xk.h:240
InDet::SiCombinatorialTrackFinderData_xk::SiCombinatorialTrackFinderData_xk
SiCombinatorialTrackFinderData_xk()
Constructor.
InDet::SiCombinatorialTrackFinderData_xk::setHeavyIon
void setHeavyIon(bool)
Definition
SiCombinatorialTrackFinderData_xk.cxx:52
InDet::SiCombinatorialTrackFinderData_xk::m_simpleTrack
bool m_simpleTrack
Simple track flag.
Definition
SiCombinatorialTrackFinderData_xk.h:278
InDet::SiCombinatorialTrackFinderData_xk::m_ITkGeometry
bool m_ITkGeometry
Definition
SiCombinatorialTrackFinderData_xk.h:294
InDet::SiCombinatorialTrackFinderData_xk::m_doFastTracking
bool m_doFastTracking
Definition
SiCombinatorialTrackFinderData_xk.h:296
InDet::SiCombinatorialTrackFinderData_xk::setITkGeometry
void setITkGeometry(bool)
Definition
SiCombinatorialTrackFinderData_xk.cxx:57
InDet::SiCombinatorialTrackFinderData_xk::setFastTracking
void setFastTracking(bool)
Definition
SiCombinatorialTrackFinderData_xk.cxx:62
InDet::SiCombinatorialTrackFinderData_xk::findPatternHoleSearchOutcome
bool findPatternHoleSearchOutcome(Trk::Track *theTrack, InDet::PatternHoleSearchOutcome &outcome) const
Methods used to associate the hole search outcome to tracks without having to modify the EDM.
Definition
SiCombinatorialTrackFinderData_xk.cxx:67
InDet::SiCombinatorialTrackFinderData_xk::m_tools
InDet::SiTools_xk m_tools
Hold tools, service, map, etc.
Definition
SiCombinatorialTrackFinderData_xk.h:246
InDet::SiCombinatorialTrackFinderData_xk::m_holeSearchOutcomes
std::map< Trk::Track *, InDet::PatternHoleSearchOutcome > m_holeSearchOutcomes
A helper map to associate hole search outcomes to tracks.
Definition
SiCombinatorialTrackFinderData_xk.h:299
InDet::SiCombinatorialTrackFinderData_xk::setFlagToReturnFailedTrack
void setFlagToReturnFailedTrack(const bool)
Setter for flagToReturnFailedTrack (for disappearing track trigger).
Definition
SiCombinatorialTrackFinderData_xk.cxx:42
InDet::SiCombinatorialTrackFinderData_xk::addPatternHoleSearchOutcome
void addPatternHoleSearchOutcome(Trk::Track *theTrack, const InDet::PatternHoleSearchOutcome &outcome)
This is used to store the pattern hole search outcome for a given track.
Definition
SiCombinatorialTrackFinderData_xk.cxx:75
InDet::SiCombinatorialTrackFinderData_xk::m_flagToReturnFailedTrack
bool m_flagToReturnFailedTrack
Flag whether to return non-successful tracks (for disappearing track trigger).
Definition
SiCombinatorialTrackFinderData_xk.h:280
Trk::IBoundaryCheckTool
Definition
IBoundaryCheckTool.h:23
Trk::IPatternParametersPropagator
interface for track parameter propagation through the magnetic field, using the Trk::PatternTrackPara...
Definition
IPatternParametersPropagator.h:41
Trk::IPatternParametersUpdator
Interface for updating Trk::PatternTrackParameters, the fast internal representation of track paramet...
Definition
IPatternParametersUpdator.h:40
Trk::IRIO_OnTrackCreator
Interface class for transforming Trk::PrepRawData to Trk::RIO_OnTrack using a local track hypothesis.
Definition
IRIO_OnTrackCreator.h:34
Trk::MagneticFieldProperties
magnetic field properties to steer the behavior of the extrapolation
Definition
MagneticFieldProperties.h:31
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition
getMessageSvc.cxx:20
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
InDet::PatternHoleSearchOutcome
Helper struct for hole search results from the pattern recognition.
Definition
SiTrajectory_xk.h:34
Generated on
for ATLAS Offline Software by
1.17.0