ATLAS Offline Software
MuonSpectrometer
MuonPhaseII
MuonCnv
MuonBucketDump
src
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
8
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
9
10
#include <
MuonIdHelpers/IMuonIdHelperSvc.h
>
11
#include "
StoreGate/ReadHandleKeyArray.h
"
12
#include "
StoreGate/ReadDecorHandleKeyArray.h
"
13
14
#include "
MuonPatternEvent/MuonPatternContainer.h
"
15
#include "
MuonTesterTree/MuonTesterTreeDict.h
"
16
#include "
MuonPRDTestR4/SpacePointTesterModule.h
"
17
#include "
xAODMuon/MuonSegmentContainer.h
"
18
19
namespace
MuonR4
{
20
class
MlHitDumperAlg
:
public
AthHistogramAlgorithm
{
21
public
:
22
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
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
34
SG::ReadDecorHandleKey<xAOD::MuonSegmentContainer>
m_truthLinkKey
{
this
,
"TruthLinkKey"
,
m_truthSegKey
,
"truthParticleLink"
};
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
{};
42
MuonVal::ThreeVectorBranch
m_spGlobPos
{
m_tree
,
"spacePoint_globPos"
};
43
MuonVal::ThreeVectorBranch
m_spGlobEdgeLow
{
m_tree
,
"spacePoint_globEdgeLow"
};
44
MuonVal::ThreeVectorBranch
m_spGlobEdgeHigh
{
m_tree
,
"spacePoint_globEdgeHigh"
};
45
MuonVal::VectorBranch<char>
&
m_spReadoutSide
{
m_tree
.
newVector
<
char
>(
"spacePoint_readOutSide"
)};
46
MuonVal::VectorBranch<float>
&
m_spTime
{
m_tree
.
newVector
<
float
>(
"spacePoint_time"
)};
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
Generated on Mon Sep 1 2025 21:15:06 for ATLAS Offline Software by
1.8.18