ATLAS Offline Software
MlHitDumperAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONCSVDUMP_HitDumperAlg_H
5 #define MUONCSVDUMP_HitDumperAlg_H
6 
7 
9 
13 
18 
19 namespace MuonR4{
21  public:
23  virtual StatusCode initialize() override final;
24  virtual StatusCode execute() override final;
25  virtual StatusCode finalize() override final;
26  private:
27 
28  std::size_t fillSpacePoint(const ActsGeometryContext& gctx, const SpacePoint& sp);
29  SG::ReadHandleKeyArray<SpacePointContainer> m_spacePointKeys{this, "SpacePointKeys", {"MuonSpacePoints"},
30  "Key to the space point container"};
31 
32  SG::ReadHandleKey<xAOD::MuonSegmentContainer> m_truthSegKey{this, "TruthSegmentKey", "TruthSegmentsR4"};
33 
35  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
36 
37  MuonVal::MuonTesterTree m_tree{"MuonHitDump","MuonHitDump"};
38 
39  std::shared_ptr<MuonVal::IParticleFourMomBranch> m_muonP4{};
40 
41  std::shared_ptr<MuonValR4::SpacePointTesterModule> m_spCollection{};
44  MuonVal::ThreeVectorBranch m_spGlobEdgeHigh{m_tree, "spacePoint_globEdgeHigh"};
45  MuonVal::VectorBranch<char>& m_spReadoutSide{m_tree.newVector<char>("spacePoint_readOutSide")};
47 
48  MuonVal::VectorBranch<char>& m_truthLink{m_tree.newVector<char>("spacePoint_truthLink")};
49 
50  };
51 }
52 
53 #endif
ReadHandleKeyArray.h
MuonR4::MlHitDumperAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition: MlHitDumperAlg.h:37
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: AthHistogramAlgorithm.cxx:31
MuonR4::MlHitDumperAlg::m_truthLinkKey
SG::ReadDecorHandleKey< xAOD::MuonSegmentContainer > m_truthLinkKey
Definition: MlHitDumperAlg.h:34
MuonR4::MlHitDumperAlg::m_truthLink
MuonVal::VectorBranch< char > & m_truthLink
Definition: MlHitDumperAlg.h:48
MuonR4::MlHitDumperAlg::m_muonP4
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_muonP4
Definition: MlHitDumperAlg.h:39
MuonR4::MlHitDumperAlg::m_truthSegKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_truthSegKey
Definition: MlHitDumperAlg.h:32
MuonR4::MlHitDumperAlg::m_spCollection
std::shared_ptr< MuonValR4::SpacePointTesterModule > m_spCollection
Definition: MlHitDumperAlg.h:41
MuonR4::MlHitDumperAlg::initialize
virtual StatusCode initialize() override final
Definition: MlHitDumperAlg.cxx:19
MuonTesterTreeDict.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
MuonR4::MlHitDumperAlg::m_spacePointKeys
SG::ReadHandleKeyArray< SpacePointContainer > m_spacePointKeys
Definition: MlHitDumperAlg.h:29
MuonVal::VectorBranch< char >
SG::ReadHandleKey< xAOD::MuonSegmentContainer >
MuonR4::MlHitDumperAlg::m_spGlobPos
MuonVal::ThreeVectorBranch m_spGlobPos
Definition: MlHitDumperAlg.h:42
MuonVal::ThreeVectorBranch
Definition: ThreeVectorBranch.h:19
MuonSegmentContainer.h
AthHistogramAlgorithm.h
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonPatternContainer.h
MuonR4::MlHitDumperAlg::m_spGlobEdgeHigh
MuonVal::ThreeVectorBranch m_spGlobEdgeHigh
Definition: MlHitDumperAlg.h:44
MuonVal::MuonTesterTree::newVector
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
MuonR4::MlHitDumperAlg::m_spReadoutSide
MuonVal::VectorBranch< char > & m_spReadoutSide
Definition: MlHitDumperAlg.h:45
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
MuonR4::MlHitDumperAlg::finalize
virtual StatusCode finalize() override final
Definition: MlHitDumperAlg.cxx:150
MuonR4::SpacePoint
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePoint.h:19
MuonR4::MlHitDumperAlg::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: MlHitDumperAlg.h:35
MuonR4::MlHitDumperAlg::m_spGlobEdgeLow
MuonVal::ThreeVectorBranch m_spGlobEdgeLow
Definition: MlHitDumperAlg.h:43
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
SpacePointTesterModule.h
MuonR4::MlHitDumperAlg::fillSpacePoint
std::size_t fillSpacePoint(const ActsGeometryContext &gctx, const SpacePoint &sp)
Definition: MlHitDumperAlg.cxx:66
MuonR4::MlHitDumperAlg::m_spTime
MuonVal::VectorBranch< float > & m_spTime
Definition: MlHitDumperAlg.h:46
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
MuonR4::MlHitDumperAlg::execute
virtual StatusCode execute() override final
Definition: MlHitDumperAlg.cxx:35
MuonR4::MlHitDumperAlg
Definition: MlHitDumperAlg.h:20
ReadDecorHandleKeyArray.h
IMuonIdHelperSvc.h