ATLAS Offline Software
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 
11 
12 namespace InDet {
13 
15 
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  //
37 
38  m_initialized = true;
39  }
40 
41 
43  if( flag && (! m_simpleTrack) ) {
44  MsgStream log(Athena::getMessageSvc(), "SiCombinatorialTrackFinderData_xk");
45  log << MSG::WARNING << "not simpleTrack, keep flagToReturnFailedTrack as false" << endmsg;
47  return;
48  }
50  }
51 
53  m_heavyIon = flag;
55  }
56 
60  }
61 
65  }
66 
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  }
76  m_holeSearchOutcomes.emplace(theTrack,outcome);
77  }
78 
79 } // end of name space
InDet::SiCombinatorialTrackFinderData_xk::m_flagToReturnFailedTrack
bool m_flagToReturnFailedTrack
Flag whether to return non-successful tracks (for disappearing track trigger)
Definition: SiCombinatorialTrackFinderData_xk.h:280
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
Trk::MagneticFieldProperties
Definition: MagneticFieldProperties.h:31
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
InDet::SiCombinatorialTrackFinderData_xk::m_tools
InDet::SiTools_xk m_tools
Hold tools, service, map, etc.
Definition: SiCombinatorialTrackFinderData_xk.h:246
InDet::SiCombinatorialTrackFinderData_xk::m_simpleTrack
bool m_simpleTrack
Simple track flag.
Definition: SiCombinatorialTrackFinderData_xk.h:278
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::SiCombinatorialTrackFinderData_xk::m_heavyIon
bool m_heavyIon
Definition: SiCombinatorialTrackFinderData_xk.h:264
Trk::IPatternParametersPropagator
interface for track parameter propagation through the magnetic field, using the Trk::PatternTrackPara...
Definition: IPatternParametersPropagator.h:41
Trk::IBoundaryCheckTool
Definition: IBoundaryCheckTool.h:23
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
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::SiTools_xk::setHeavyIon
void setHeavyIon(bool)
Definition: SiTools_xk.h:219
Trk::IPatternParametersUpdator
Interface for updating Trk::PatternTrackParameters, the fast internal representation of track paramet...
Definition: IPatternParametersUpdator.h:40
InDet::SiCombinatorialTrackFinderData_xk::m_trajectory
SiTrajectory_xk m_trajectory
Track trajectory.
Definition: SiCombinatorialTrackFinderData_xk.h:242
InDet::SiTools_xk::setFastTracking
void setFastTracking(bool)
Definition: SiTools_xk.h:224
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
master.flag
bool flag
Definition: master.py:29
SiCombinatorialTrackFinderData_xk.h
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_initialized
bool m_initialized
Initialization flag.
Definition: SiCombinatorialTrackFinderData_xk.h:240
InDet::PatternHoleSearchOutcome
Helper struct for hole search results from the pattern recognition.
Definition: SiTrajectory_xk.h:33
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::m_ITkGeometry
bool m_ITkGeometry
Definition: SiCombinatorialTrackFinderData_xk.h:294
InDet::SiCombinatorialTrackFinderData_xk::m_doFastTracking
bool m_doFastTracking
Definition: SiCombinatorialTrackFinderData_xk.h:296
IInDetConditionsTool
Definition: IInDetConditionsTool.h:27
InDet::SiCombinatorialTrackFinderData_xk::setFlagToReturnFailedTrack
void setFlagToReturnFailedTrack(const bool)
Setter for flagToReturnFailedTrack (for disappearing track trigger)
Definition: SiCombinatorialTrackFinderData_xk.cxx:42
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
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
InDet::SiTools_xk::setITkGeometry
void setITkGeometry(bool)
Definition: SiTools_xk.h:229
InDet::SiCombinatorialTrackFinderData_xk::setITkGeometry
void setITkGeometry(bool)
Definition: SiCombinatorialTrackFinderData_xk.cxx:57
InDet::SiCombinatorialTrackFinderData_xk::setHeavyIon
void setHeavyIon(bool)
Definition: SiCombinatorialTrackFinderData_xk.cxx:52
Trk::IRIO_OnTrackCreator
Interface class for transforming Trk::PrepRawData to Trk::RIO_OnTrack using a local track hypothesis.
Definition: IRIO_OnTrackCreator.h:33
InDet::SiTrajectory_xk::setTools
void setTools(const InDet::SiTools_xk *)
Definition: SiTrajectory_xk.cxx:15
InDet::SiCombinatorialTrackFinderData_xk::setFastTracking
void setFastTracking(bool)
Definition: SiCombinatorialTrackFinderData_xk.cxx:62
InDet::SiTools_xk::setTools
void setTools(const Trk::IPatternParametersPropagator *, const Trk::IPatternParametersUpdator *, const Trk::IRIO_OnTrackCreator *)
Definition: SiTools_xk.h:151
InDet::SiCombinatorialTrackFinderData_xk::SiCombinatorialTrackFinderData_xk
SiCombinatorialTrackFinderData_xk()
Constructor.