ATLAS Offline Software
MuonRecoChainTester.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONVALR4_MuonRecoChainTester_H
6 #define MUONVALR4_MuonRecoChainTester_H
7 
8 // Framework includes
13 
15 
16 namespace MuonValR4{
17 
19  public:
20  MuonRecoChainTester(const std::string& name, ISvcLocator* pSvcLocator);
21  virtual ~MuonRecoChainTester() = default;
22 
23  virtual StatusCode initialize() override;
24  virtual StatusCode execute() override;
25  virtual StatusCode finalize() override;
26 
27  private:
28  // // output tree - allows to compare the sim and fast-digitised hits
29  MuonVal::MuonTesterTree m_tree{"MuonRecoObjTest","MuonEtaHoughTransformTest"};
30 
31  Gaudi::Property<bool> m_isMC{this, "isMC", false};
32 
36  Gaudi::Property<std::string> m_legacySegmentKey{this, "LegacySegmentKey", "LegacyChainSegments"};
38  Gaudi::Property<std::string> m_r4PatternSegmentKey{this, "SegmentFromR4HoughKey", "MuonSegmentsFromHoughR4"};
40  Gaudi::Property<std::string> m_segmentKeyR4{this, "R4SegmentKey", "MuonSegmentsFromR4"};
42  Gaudi::Property<std::string> m_truthSegmentKey{this, "TruthSegmentKey", "TruthSegmentsR4"};
44  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_legacyTrackKey{this,"LegacyTrackKey", "MuonSpectrometerTrackParticles"};
45  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_TrackKeyHoughR4{this, "TrackKeyHoughR4", "MuonSpectrometerTrackParticlesFromHoughR4"};
46  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_TrackKeyR4{this, "TrackKeyR4", "MuonSpectrometerTrackParticlesR4"};
47 
49  SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthKey{this, "TruthKey", "TruthParticles"};
50 
51  std::shared_ptr<MuonVal::IParticleFourMomBranch> m_legacyTrks{};
52  std::shared_ptr<MuonVal::IParticleFourMomBranch> m_TrksHoughR4{};
53  std::shared_ptr<MuonVal::IParticleFourMomBranch> m_TrksSegmentR4{};
54 
55  std::shared_ptr<MuonVal::IParticleFourMomBranch> m_truthTrks{};
56 
57  };
58 }
59 
60 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonValR4::MuonRecoChainTester::m_TrksSegmentR4
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_TrksSegmentR4
Definition: MuonRecoChainTester.h:53
MuonValR4::MuonRecoChainTester::m_TrackKeyR4
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackKeyR4
Definition: MuonRecoChainTester.h:46
TruthParticleContainer.h
MuonTesterTreeDict.h
MuonValR4::MuonRecoChainTester::m_legacySegmentKey
Gaudi::Property< std::string > m_legacySegmentKey
Keys to the segment collections.
Definition: MuonRecoChainTester.h:36
SG::ReadHandleKey< xAOD::TrackParticleContainer >
MuonValR4::MuonRecoChainTester::m_truthKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Key to the truth particle collection.
Definition: MuonRecoChainTester.h:49
AthHistogramAlgorithm.h
MuonValR4::MuonRecoChainTester::finalize
virtual StatusCode finalize() override
Definition: MuonRecoChainTester.cxx:133
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonValR4::MuonRecoChainTester::m_TrackKeyHoughR4
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackKeyHoughR4
Definition: MuonRecoChainTester.h:45
MuonValR4::MuonRecoChainTester::m_truthSegmentKey
Gaudi::Property< std::string > m_truthSegmentKey
Segment from the truth hits.
Definition: MuonRecoChainTester.h:42
MuonValR4::MuonRecoChainTester::m_TrksHoughR4
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_TrksHoughR4
Definition: MuonRecoChainTester.h:52
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonValR4::MuonRecoChainTester
Definition: MuonRecoChainTester.h:18
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
MuonValR4::MuonRecoChainTester::m_legacyTrks
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_legacyTrks
Definition: MuonRecoChainTester.h:51
MuonValR4::MuonRecoChainTester::m_segmentKeyR4
Gaudi::Property< std::string > m_segmentKeyR4
Segments made from the R4 segment maker.
Definition: MuonRecoChainTester.h:40
MuonValR4::MuonRecoChainTester::m_truthTrks
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_truthTrks
Definition: MuonRecoChainTester.h:55
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MuonValR4::MuonRecoChainTester::m_isMC
Gaudi::Property< bool > m_isMC
Definition: MuonRecoChainTester.h:31
MuonValR4::MuonRecoChainTester::initialize
virtual StatusCode initialize() override
Definition: MuonRecoChainTester.cxx:39
MuonValR4::MuonRecoChainTester::m_r4PatternSegmentKey
Gaudi::Property< std::string > m_r4PatternSegmentKey
Segments seeded from the R4 pattern but made with the legacy segment maker.
Definition: MuonRecoChainTester.h:38
MuonValR4::MuonRecoChainTester::MuonRecoChainTester
MuonRecoChainTester(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonRecoChainTester.cxx:36
MuonValR4::MuonRecoChainTester::m_tree
MuonVal::MuonTesterTree m_tree
Definition: MuonRecoChainTester.h:29
MuonValR4::MuonRecoChainTester::~MuonRecoChainTester
virtual ~MuonRecoChainTester()=default
MuonValR4::MuonRecoChainTester::execute
virtual StatusCode execute() override
Definition: MuonRecoChainTester.cxx:79
TrackParticleContainer.h
MuonValR4::MuonRecoChainTester::m_legacyTrackKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_legacyTrackKey
Key to the track collections.
Definition: MuonRecoChainTester.h:44