ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
(
const
EventContext& ctx)
override
final
;
25
virtual
StatusCode
finalize
()
override
final
;
26
private
:
27
28
std::size_t
fillSpacePoint
(
const
ActsTrk::GeometryContext
& 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"
,
"MuonTruthSegments"
};
33
34
SG::ReadDecorHandleKey<xAOD::MuonSegmentContainer>
m_truthLinkKey
{
this
,
"TruthLinkKey"
,
m_truthSegKey
,
"truthParticleLink"
};
35
ActsTrk::GeoContextReadKey_t
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
AthHistogramAlgorithm.h
IMuonIdHelperSvc.h
sp
static Double_t sp
Definition
LArPhysWaveHECTool.cxx:37
MuonPatternContainer.h
MuonSegmentContainer.h
MuonTesterTreeDict.h
SpacePointTesterModule.h
ReadDecorHandleKeyArray.h
ReadHandleKeyArray.h
ActsTrk::GeometryContext
Definition
GeometryContext.h:30
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonR4::MlHitDumperAlg
Definition
MlHitDumperAlg.h:20
MuonR4::MlHitDumperAlg::m_spReadoutSide
MuonVal::VectorBranch< char > & m_spReadoutSide
Definition
MlHitDumperAlg.h:45
MuonR4::MlHitDumperAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition
MlHitDumperAlg.h:37
MuonR4::MlHitDumperAlg::m_geoCtxKey
ActsTrk::GeoContextReadKey_t m_geoCtxKey
Definition
MlHitDumperAlg.h:35
MuonR4::MlHitDumperAlg::m_truthSegKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_truthSegKey
Definition
MlHitDumperAlg.h:32
MuonR4::MlHitDumperAlg::fillSpacePoint
std::size_t fillSpacePoint(const ActsTrk::GeometryContext &gctx, const SpacePoint &sp)
Definition
MlHitDumperAlg.cxx:65
MuonR4::MlHitDumperAlg::m_spCollection
std::shared_ptr< MuonValR4::SpacePointTesterModule > m_spCollection
Definition
MlHitDumperAlg.h:41
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_spacePointKeys
SG::ReadHandleKeyArray< SpacePointContainer > m_spacePointKeys
Definition
MlHitDumperAlg.h:29
MuonR4::MlHitDumperAlg::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
MlHitDumperAlg.cxx:35
MuonR4::MlHitDumperAlg::finalize
virtual StatusCode finalize() override final
Definition
MlHitDumperAlg.cxx:147
MuonR4::MlHitDumperAlg::initialize
virtual StatusCode initialize() override final
Definition
MlHitDumperAlg.cxx:19
MuonR4::MlHitDumperAlg::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonR4::MlHitDumperAlg::m_spGlobPos
MuonVal::ThreeVectorBranch m_spGlobPos
Definition
MlHitDumperAlg.h:42
MuonR4::MlHitDumperAlg::m_spGlobEdgeHigh
MuonVal::ThreeVectorBranch m_spGlobEdgeHigh
Definition
MlHitDumperAlg.h:44
MuonR4::MlHitDumperAlg::m_spGlobEdgeLow
MuonVal::ThreeVectorBranch m_spGlobEdgeLow
Definition
MlHitDumperAlg.h:43
MuonR4::MlHitDumperAlg::m_spTime
MuonVal::VectorBranch< float > & m_spTime
Definition
MlHitDumperAlg.h:46
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:25
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::VectorBranch
Definition
VectorBranch.h:14
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ActsTrk::GeoContextReadKey_t
SG::ReadHandleKey< GeometryContext > GeoContextReadKey_t
Abrivate the ReadHandleKey to declare the data dependency on the Geometry context.
Definition
GeometryContext.h:64
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0