ATLAS Offline Software
|
#include <MuonSegmentTagTool.h>
Public Member Functions | |
MuonSegmentTagTool (const std::string &type, const std::string &name, const IInterface *parent) | |
~MuonSegmentTagTool ()=default | |
StatusCode | initialize () override |
StatusCode | finalize () override |
void | tag (const EventContext &ctx, const InDetCandidateCollection &inDetCandidates, const std::vector< const Muon::MuonSegment * > &segments, InDetCandidateToTagMap *tagMap) const override |
IMuonSegmentTagTool interface: build muons from ID and MuonSegments. More... | |
ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
virtual StatusCode | sysInitialize () override |
Perform system initialization for an algorithm. More... | |
virtual StatusCode | sysStart () override |
Handle START transition. More... | |
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
Return this algorithm's input handles. More... | |
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
Return this algorithm's output handles. More... | |
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
Declare a new Gaudi property. More... | |
void | updateVHKA (Gaudi::Details::PropertyBase &) |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Private Types | |
using | SegmentMap = std::map< const Muon::MuonSegment *, ElementLink< xAOD::MuonSegmentContainer > > |
using | SurfDef = MuonCombined::MuonSegmentTagSurfaces::SurfDef |
using | SortedSegmentMap = std::map< int, std::vector< const Muon::MuonSegment * > > |
The segment vector is sorted into a map where the key is the associated surface definition of each segment. More... | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
void | printTable (const std::vector< std::string > &didEx, const std::vector< std::string > &segStation, const std::vector< std::vector< std::string >> &segToSurf) const |
method for extra DEBUG More... | |
std::vector< const Muon::MuonSegment * > | getCandidateSegments (const std::vector< const Muon::MuonSegment * > &segments) const |
Filters the input segments based on the number of hits fit quality etc. More... | |
SortedSegmentMap | findPopulatedStations (const std::vector< const Muon::MuonSegment * > &filteredSegments) const |
Creates the sorted segment map. More... | |
SortedSegmentMap | findCandidateStations (const MuonCombined::InDetCandidate &Id_trk, const SortedSegmentMap &filteredSegments) const |
Returns an array encoding which muon segments are compatible with the IdCandidate. More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Static Private Member Functions | |
static double | getPropDistance (const Trk::TrackParameters &start_pars, const Trk::Surface &target_surf) |
Returns the straight line distance estimation of the parameters to the surface. More... | |
Private Attributes | |
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
ServiceHandle< Muon::IMuonEDMHelperSvc > | m_edmHelperSvc |
ToolHandle< Muon::MuonEDMPrinterTool > | m_printer {this, "Printer", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool"} |
ToolHandle< IMuTagMatchingTool > | m_MuTagMatchingTool {this, "MuTagMatchingTool", "MuTagMatchingTool/MuTagMatchingTool"} |
ToolHandle< IMuTagAmbiguitySolverTool > | m_MuTagAmbiguitySolverTool |
ToolHandle< Muon::IMuonSegmentSelectionTool > | m_segmentSelector |
ToolHandle< Muon::IMuonSegmentHitSummaryTool > | m_hitSummaryTool |
Gaudi::Property< bool > | m_doSegmentsFilter {this, "DoSegmentsFilter", true, "flag to switch segment filtering on/off (for trigger)"} |
Gaudi::Property< bool > | m_doTable {this, "DoOverviewTable", false} |
Gaudi::Property< bool > | m_doBidirectional |
Gaudi::Property< bool > | m_doPtDependentPullCut {this, "DoPtDependentPullCut", false, "flag to enable the pT-dependent pull cut"} |
Gaudi::Property< bool > | m_removeLowPLowFieldRegion |
Gaudi::Property< int > | m_segmentQualityCut {this, "SegmentQualityCut", 1, "minimum segment quality"} |
Gaudi::Property< unsigned int > | m_nmdtHits {this, "nmdtHits", 4} |
Gaudi::Property< unsigned int > | m_nmdtHoles {this, "nmdtHoles", 3} |
Gaudi::Property< unsigned int > | m_nmdtHitsML {this, "nmdtHitsML", 2} |
Gaudi::Property< bool > | m_triggerHitCut {this, "TriggerHitCut", true, "apply Trigger hit cut if trigger hits are expected"} |
Gaudi::Property< bool > | m_ignoreSiAssocated |
const MuonCombined::MuonSegmentTagSurfaces | m_surfaces {} |
const Muon::MuonSectorMapping | m_sectorMapping {} |
sector mapping helper More... | |
std::atomic_uint | m_ntotTracks {0} |
std::atomic_uint | m_nangleMatch {0} |
std::atomic_uint | m_npmatch {0} |
std::atomic_uint | m_natMSEntrance {0} |
std::atomic_uint | m_naccepted {0} |
std::array< std::atomic_uint, SurfDef::NumSurf > m_extrapolated | ATLAS_THREAD_SAFE {0} |
std::array< std::atomic_uint, SurfDef::NumSurf > m_goodExtrapolated | ATLAS_THREAD_SAFE {0} |
std::array< std::atomic_uint, SurfDef::NumSurf > m_recycledIntersect | ATLAS_THREAD_SAFE {0} |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Definition at line 38 of file MuonSegmentTagTool.h.
|
private |
Definition at line 39 of file MuonSegmentTagTool.h.
|
private |
The segment vector is sorted into a map where the key is the associated surface definition of each segment.
Definition at line 61 of file MuonSegmentTagTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
private |
Definition at line 40 of file MuonSegmentTagTool.h.
MuonCombined::MuonSegmentTagTool::MuonSegmentTagTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 49 of file MuonSegmentTagTool.cxx.
|
default |
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
override |
Definition at line 71 of file MuonSegmentTagTool.cxx.
|
private |
Returns an array encoding which muon segments are compatible with the IdCandidate.
Definition at line 566 of file MuonSegmentTagTool.cxx.
|
private |
Creates the sorted segment map.
Definition at line 553 of file MuonSegmentTagTool.cxx.
|
private |
Filters the input segments based on the number of hits fit quality etc.
Update ME: Need to think about cuts for the NSW!
Definition at line 504 of file MuonSegmentTagTool.cxx.
|
inlinestaticprivate |
Returns the straight line distance estimation of the parameters to the surface.
Definition at line 626 of file MuonSegmentTagTool.cxx.
|
override |
Definition at line 54 of file MuonSegmentTagTool.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlinestaticinherited |
Definition at line 27 of file IMuonSegmentTagTool.h.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
private |
method for extra DEBUG
Definition at line 464 of file MuonSegmentTagTool.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
overridevirtual |
IMuonSegmentTagTool interface: build muons from ID and MuonSegments.
Associate the segments to the Track
Start the extrapolations through the spectrometer
update the extensions
Do not use the intersections in the back extrapolations
Actually this should never happen for the forward extrapolation
Segments found here
Recylce the intersections to get as close as possible to the target surfaces. In this case switch off the extrapolations
Find the intersection matching at best to the target surface
There exist tracks in the transition region between the endcaps & the barrel which have associated segment candidates with Barrel & Endcap like surfaces. However, if the previous surface was on a barrel and we start to extrapolate from the Barrel to an endcap like surface. It is very likely to fail hence use as a fall back the MS entrance again
Next surface succesfully reached
Some debugging statements
m_dotable
Check if there exists already a segment on the same surface. No need to redo the extrapolations twice
Implements MuonCombined::IMuonSegmentTagTool.
Definition at line 87 of file MuonSegmentTagTool.cxx.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
mutableprivate |
Definition at line 111 of file MuonSegmentTagTool.h.
|
mutableprivate |
Definition at line 112 of file MuonSegmentTagTool.h.
|
mutableprivate |
Definition at line 113 of file MuonSegmentTagTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 87 of file MuonSegmentTagTool.h.
|
private |
Definition at line 89 of file MuonSegmentTagTool.h.
|
private |
Definition at line 85 of file MuonSegmentTagTool.h.
|
private |
Definition at line 86 of file MuonSegmentTagTool.h.
|
private |
Definition at line 72 of file MuonSegmentTagTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 82 of file MuonSegmentTagTool.h.
|
private |
Definition at line 71 of file MuonSegmentTagTool.h.
|
private |
Definition at line 99 of file MuonSegmentTagTool.h.
|
private |
Definition at line 77 of file MuonSegmentTagTool.h.
|
private |
Definition at line 76 of file MuonSegmentTagTool.h.
|
mutableprivate |
Definition at line 110 of file MuonSegmentTagTool.h.
|
mutableprivate |
Definition at line 107 of file MuonSegmentTagTool.h.
|
mutableprivate |
Definition at line 109 of file MuonSegmentTagTool.h.
|
private |
Definition at line 94 of file MuonSegmentTagTool.h.
|
private |
Definition at line 96 of file MuonSegmentTagTool.h.
|
private |
Definition at line 95 of file MuonSegmentTagTool.h.
|
mutableprivate |
Definition at line 108 of file MuonSegmentTagTool.h.
|
mutableprivate |
Definition at line 106 of file MuonSegmentTagTool.h.
|
private |
Definition at line 75 of file MuonSegmentTagTool.h.
|
private |
Definition at line 90 of file MuonSegmentTagTool.h.
|
private |
sector mapping helper
Definition at line 104 of file MuonSegmentTagTool.h.
|
private |
Definition at line 93 of file MuonSegmentTagTool.h.
|
private |
Definition at line 80 of file MuonSegmentTagTool.h.
|
private |
Definition at line 102 of file MuonSegmentTagTool.h.
|
private |
Definition at line 98 of file MuonSegmentTagTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.