ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonLearning
MuonSPId
src
SPIdDumperAlg.h
Go to the documentation of this file.
1
#ifndef MUON_SP_ID_DUMPER_H
2
#define MUON_SP_ID_DUMPER_H
3
/*
4
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#include <
AthenaBaseComps/AthAlgorithm.h
>
8
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
9
10
#include <
MuonIdHelpers/IMuonIdHelperSvc.h
>
11
#include "
StoreGate/ReadHandleKey.h
"
12
#include "
StoreGate/ReadDecorHandle.h
"
13
#include "
StoreGate/ReadHandleKeyArray.h
"
14
#include "
StoreGate/ReadCondHandleKey.h
"
15
16
#include <
MuonPatternEvent/MuonPatternContainer.h
>
17
#include <
MuonSpacePoint/SpacePointContainer.h
>
18
#include <
ActsGeometryInterfaces/GeometryContext.h
>
19
#include <
MuonReadoutGeometryR4/MuonDetectorManager.h
>
20
21
#include "
MuonTesterTree/MuonTesterTree.h
"
22
#include "
MuonTesterTree/ThreeVectorBranch.h
"
23
#include "
MuonTesterTree/IdentifierBranch.h
"
24
25
#include "
xAODMuonSimHit/MuonSimHitContainer.h
"
26
#include "
xAODMuon/MuonSegmentContainer.h
"
27
28
#include "
MuonInferenceInterfaces/IGraphInferenceTool.h
"
29
30
namespace
MuonR4
{
31
32
class
SPIdDumperAlg
:
public
AthHistogramAlgorithm
{
33
public
:
34
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
35
36
virtual
StatusCode
initialize
()
override
;
37
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
38
virtual
StatusCode
finalize
()
override
;
39
40
private
:
41
SG::ReadHandleKey<MuonR4::SpacePointContainer>
m_readKey
{
this
,
"ReadSpacePoints"
,
"MuonSpacePoints"
,
"Input SpacePoints"
};
42
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
43
44
SG::ReadHandleKey<MuonR4::SegmentContainer>
m_inSegmentKey
{
this
,
"SegmentKey"
,
"R4MuonSegments"
};
45
46
ToolHandle<MuonML::IGraphInferenceTool>
m_graphFilterTool
{
this
,
"GraphFilterTool"
,
""
,
"Graph inference tool"
};
47
48
Gaudi::Property<bool>
m_isMC
{
this
,
"isMC"
,
true
};
49
Gaudi::Property<double>
m_SPId_cut
{
this
,
"spIdValue"
, -7};
50
51
MuonVal::MuonTesterTree
m_tree
{
"MuonSPId"
,
"MuonSPId"
};
52
MuonVal::VectorBranch<float>
&
m_spoint_x
{
m_tree
.newVector<
float
>(
"x"
)};
53
MuonVal::VectorBranch<float>
&
m_spoint_y
{
m_tree
.newVector<
float
>(
"y"
)};
54
MuonVal::VectorBranch<float>
&
m_spoint_z
{
m_tree
.newVector<
float
>(
"z"
)};
55
56
MuonVal::VectorBranch<uint8_t>
&
m_spoint_station
{
m_tree
.newVector<uint8_t>(
"stationIndex"
)};
57
MuonVal::VectorBranch<float>
&
m_spoint_driftR
{
m_tree
.newVector<
float
>(
"driftR"
)};
58
59
MuonVal::VectorBranch<uint16_t>
&
m_spoint_layer
{
m_tree
.newVector<uint16_t>(
"Layer"
)};
60
61
MuonVal::VectorBranch<uint8_t>
&
m_spoint_label
{
m_tree
.newVector<uint8_t>(
"label"
)};
62
MuonVal::VectorBranch<float>
&
m_spoint_predictions
{
m_tree
.newVector<
float
>(
"predictions"
)};
63
64
};
65
66
}
// namespace MuonR4
67
68
#endif
AthAlgorithm.h
AthHistogramAlgorithm.h
GeometryContext.h
IGraphInferenceTool.h
IMuonIdHelperSvc.h
IdentifierBranch.h
MuonPatternContainer.h
MuonDetectorManager.h
MuonSegmentContainer.h
MuonSimHitContainer.h
SpacePointContainer.h
MuonTesterTree.h
ReadCondHandleKey.h
ReadDecorHandle.h
Handle class for reading a decoration on an object.
ReadHandleKeyArray.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ThreeVectorBranch.h
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonR4::SPIdDumperAlg
Definition
SPIdDumperAlg.h:32
MuonR4::SPIdDumperAlg::m_readKey
SG::ReadHandleKey< MuonR4::SpacePointContainer > m_readKey
Definition
SPIdDumperAlg.h:41
MuonR4::SPIdDumperAlg::m_spoint_driftR
MuonVal::VectorBranch< float > & m_spoint_driftR
Definition
SPIdDumperAlg.h:57
MuonR4::SPIdDumperAlg::m_spoint_x
MuonVal::VectorBranch< float > & m_spoint_x
Definition
SPIdDumperAlg.h:52
MuonR4::SPIdDumperAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
SPIdDumperAlg.h:42
MuonR4::SPIdDumperAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition
SPIdDumperAlg.h:51
MuonR4::SPIdDumperAlg::m_spoint_layer
MuonVal::VectorBranch< uint16_t > & m_spoint_layer
Definition
SPIdDumperAlg.h:59
MuonR4::SPIdDumperAlg::m_spoint_station
MuonVal::VectorBranch< uint8_t > & m_spoint_station
Definition
SPIdDumperAlg.h:56
MuonR4::SPIdDumperAlg::m_spoint_z
MuonVal::VectorBranch< float > & m_spoint_z
Definition
SPIdDumperAlg.h:54
MuonR4::SPIdDumperAlg::finalize
virtual StatusCode finalize() override
Definition
SPIdDumperAlg.cxx:156
MuonR4::SPIdDumperAlg::initialize
virtual StatusCode initialize() override
Definition
SPIdDumperAlg.cxx:21
MuonR4::SPIdDumperAlg::m_inSegmentKey
SG::ReadHandleKey< MuonR4::SegmentContainer > m_inSegmentKey
Definition
SPIdDumperAlg.h:44
MuonR4::SPIdDumperAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
SPIdDumperAlg.cxx:31
MuonR4::SPIdDumperAlg::m_graphFilterTool
ToolHandle< MuonML::IGraphInferenceTool > m_graphFilterTool
Definition
SPIdDumperAlg.h:46
MuonR4::SPIdDumperAlg::m_spoint_label
MuonVal::VectorBranch< uint8_t > & m_spoint_label
Definition
SPIdDumperAlg.h:61
MuonR4::SPIdDumperAlg::m_SPId_cut
Gaudi::Property< double > m_SPId_cut
Definition
SPIdDumperAlg.h:49
MuonR4::SPIdDumperAlg::m_isMC
Gaudi::Property< bool > m_isMC
Definition
SPIdDumperAlg.h:48
MuonR4::SPIdDumperAlg::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonR4::SPIdDumperAlg::m_spoint_y
MuonVal::VectorBranch< float > & m_spoint_y
Definition
SPIdDumperAlg.h:53
MuonR4::SPIdDumperAlg::m_spoint_predictions
MuonVal::VectorBranch< float > & m_spoint_predictions
Definition
SPIdDumperAlg.h:62
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::VectorBranch
Definition
VectorBranch.h:14
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
Generated on
for ATLAS Offline Software by
1.17.0