 |
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTRACKFINDINGTEST_MSTRACKTESTER_H
5 #define MUONTRACKFINDINGTEST_MSTRACKTESTER_H
54 Gaudi::Property<bool>
m_isMC{
this,
"isMC",
false};
57 using TruthHitCol = std::unordered_set<const xAOD::MuonSimHit*>;
76 std::unique_ptr<MuonR4::MsTrackSeeder>
m_seeder{};
116 ToolHandle<MuonR4::ISegmentSelectionTool>
m_segSelector{
this,
"SegmentSelectionTool" ,
"" };
Property holding a SG store/key/clid from which a ReadHandle is made.
ParticleBranchPtr_t m_legacyTrks
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
MuonVal::VectorBranch< char > & m_seedType
Is the seed in the encap or in the barrel chambers.
MuonVal::VectorBranch< float > & m_seedQP
Estimated momentum times charge from the track seed.
MuonVal::VectorBranch< float > & m_truthMuonsSeedLength
MuonVal::VectorBranch< float > & m_seedThetaCone
Maximum angular difference between the segments part of the seed.
StatusCode execute() override final
SG::ReadHandleKey< ActsTrk::GeometryContext > m_geoCtxKey
Dependency on the geometry alignment.
Location
Enum defining whether the seed is made in the endcap / barrel.
MuonVal::ThreeVectorBranch m_seedPos
Simple seed information.
MuonVal::MuonTesterTree m_tree
std::unordered_set< const xAOD::MuonSimHit * > TruthHitCol
SegmentBranchPtr_t m_truthSegs
std::unique_ptr< MuonR4::MsTrackSeeder > m_seeder
SegmentKey_t m_truthSegmentKey
Segment from the truth hits.
::StatusCode StatusCode
StatusCode definition for legacy code.
ToolHandle< MuonR4::ISegmentSelectionTool > m_segSelector
Segment selection tool to pick the good quality segments.
std::optional< MuonR4::MsTrackSeed > makeSeedFromTruth(const ActsTrk::GeometryContext &gctx, const xAOD::TruthParticle &truthMuon) const
Construct MS track seed from the truth associated segments.
Class describing a truth particle in the MC record.
MuonVal::MatrixBranch< unsigned short > & m_truthSegToRecoLink
Link of the truth segments to the matchin reco segments.
const MuonGMR4::MuonDetectorManager * m_detMgr
Gaudi::Property< bool > m_isMC
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Key to the truth particle collection.
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheKey
Dependency on the magnetic field.
StatusCode finalize() override final
std::pair< double, double > calcSeedLength(const ActsTrk::GeometryContext &gctx, const MuonR4::MsTrackSeed &seed) const
std::shared_ptr< MuonVal::IParticleFourMomBranch > ParticleBranchPtr_t
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
SegmentBranchPtr_t m_recoSegs
MuonVal::MatrixBranch< unsigned short > & m_truthMuRecoSegLinks
Links from the truth muon to the segments
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_legacyTrackKey
Legacy track reconstruction chain.
SG::ReadHandleKey< MuonR4::MsTrackSeedContainer > m_msTrkSeedKey
Temporary container write handle to push the seeds to store gate for later efficiency analysis.
MuonVal::VectorBranch< float > & m_truthMuonQP
Estimated Q x P from the seeder algorithm class
MuonVal::MatrixBranch< unsigned short > & m_seedRecoSegMatch
Link of the track seed to the building segment
MuonVal::MatrixBranch< unsigned short > & m_truthMuToSeedIdx
Links to all MsTrkSeeds that could be matched to the truthMuon, i.e.
MuonVal::MatrixBranch< unsigned short > & m_truthMuToSeedCounter
Corresponding matching counter of reconstructed segments.
SegmentKey_t m_recoSegmentKey
Primary segment container.
SG::ReadDecorHandleKeyArray< SG::AuxVectorBase > m_trkTruthLinks
Decoration dependency to the MS truth track links.
SectorProjector
Enumeration to select the sector projection.
std::shared_ptr< MuonPRDTest::SegmentVariables > SegmentBranchPtr_t
MatrixBranch< T > & newMatrix(const std::string &name)
ParticleBranchPtr_t m_truthTrks
MuonVal::VectorBranch< float > & m_truthMuonsSeedCone
Angular deviation of the true segment seed.
MuonVal::VectorBranch< float > & m_seedLength
Maximum separation between the segments on the reference plane.
MuonVal::VectorBranch< unsigned short > & m_truthMuTruthNSegs
Number of associated truth muon segments.
StatusCode initialize() override final
MuonVal::MatrixBranch< unsigned short > & m_truthMuTruthSegLinks
Links from the truth muon to the segments