ATLAS Offline Software
PhysicsAnalysis
D3PDMaker
MuonD3PDMaker
src
MuonTruthHitsFillerTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
12
#ifndef MUOND3PDMAKER_MUONTRUTHHITSFILLERTOOL_H
13
#define MUOND3PDMAKER_MUONTRUTHHITSFILLERTOOL_H
14
15
#include "
D3PDMakerUtils/BlockFillerTool.h
"
16
17
#include "GaudiKernel/ServiceHandle.h"
18
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
19
#include "
D3PDMakerUtils/BlockFillerToolMulti.h
"
20
#include "
TrackRecord/TrackRecord.h
"
21
#include "
xAODTruth/TruthParticle.h
"
22
23
#include <vector>
24
25
namespace
D3PD
{
26
30
class
MuonTruthHitsFillerTool
31
:
public
BlockFillerTool
<Types<TrackRecord, xAOD::TruthParticle> >
32
{
33
public
:
34
typedef
BlockFillerTool<Types<TrackRecord, xAOD::TruthParticle>
>
Base
;
35
36
43
MuonTruthHitsFillerTool
(
const
std::string&
type
,
44
const
std::string&
name
,
45
const
IInterface*
parent
);
46
47
49
virtual
StatusCode
initialize
();
50
51
53
virtual
StatusCode
book
();
54
55
59
virtual
StatusCode
fill
(
const
TrackRecord
&
p
);
60
61
65
virtual
StatusCode
fill
(
const
xAOD::TruthParticle
&
p
);
66
67
68
private
:
69
StatusCode
fillHitCounts
(
int
);
70
71
int
*
m_nprecLayers
{
nullptr
};
72
int
*
m_nphiLayers
{
nullptr
};
73
int
*
m_ntrigEtaLayers
{
nullptr
};
74
std::vector<int*>
m_nprecHitsPerChamberLayer
;
75
std::vector<int*>
m_nphiHitsPerChamberLayer
;
76
std::vector<int*>
m_ntrigEtaHitsPerChamberLayer
;
77
78
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
79
std::vector<std::string>
m_PRD_TruthNames
;
80
};
81
82
83
}
// namespace D3PD
84
85
86
#endif // not MUOND3PDMAKER_MUONTRUTHHITSFILLERTOOL_H
D3PD::MuonTruthHitsFillerTool::MuonTruthHitsFillerTool
MuonTruthHitsFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition:
MuonTruthHitsFillerTool.cxx:26
D3PD::MuonTruthHitsFillerTool::m_ntrigEtaLayers
int * m_ntrigEtaLayers
Definition:
MuonTruthHitsFillerTool.h:73
D3PD::MuonTruthHitsFillerTool::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition:
MuonTruthHitsFillerTool.cxx:46
BlockFillerTool.h
Type-safe wrapper for block filler tools.
D3PD
Block filler tool for noisy FEB information.
Definition:
CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition:
TruthParticle_v1.h:37
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition:
BlockFillerTool.h:65
BlockFillerToolMulti.h
A specialization of BlockFillerTool that can accept one of several types.
D3PD::MuonTruthHitsFillerTool::m_PRD_TruthNames
std::vector< std::string > m_PRD_TruthNames
Definition:
MuonTruthHitsFillerTool.h:79
D3PD::MuonTruthHitsFillerTool
Fill truth hit information for muons.
Definition:
MuonTruthHitsFillerTool.h:32
TrackRecord.h
D3PD::MuonTruthHitsFillerTool::m_nprecLayers
int * m_nprecLayers
Definition:
MuonTruthHitsFillerTool.h:71
D3PD::MuonTruthHitsFillerTool::Base
BlockFillerTool< Types< TrackRecord, xAOD::TruthParticle > > Base
Definition:
MuonTruthHitsFillerTool.h:34
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
TrackRecord
Definition:
TrackRecord.h:12
D3PD::MuonTruthHitsFillerTool::m_ntrigEtaHitsPerChamberLayer
std::vector< int * > m_ntrigEtaHitsPerChamberLayer
Definition:
MuonTruthHitsFillerTool.h:76
D3PD::MuonTruthHitsFillerTool::m_nphiLayers
int * m_nphiLayers
Definition:
MuonTruthHitsFillerTool.h:72
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
D3PD::MuonTruthHitsFillerTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition:
MuonTruthHitsFillerTool.h:78
TruthParticle.h
D3PD::MuonTruthHitsFillerTool::fillHitCounts
StatusCode fillHitCounts(int)
Definition:
MuonTruthHitsFillerTool.cxx:111
D3PD::MuonTruthHitsFillerTool::m_nprecHitsPerChamberLayer
std::vector< int * > m_nprecHitsPerChamberLayer
Definition:
MuonTruthHitsFillerTool.h:74
D3PD::MuonTruthHitsFillerTool::m_nphiHitsPerChamberLayer
std::vector< int * > m_nphiHitsPerChamberLayer
Definition:
MuonTruthHitsFillerTool.h:75
D3PD::MuonTruthHitsFillerTool::fill
virtual StatusCode fill(const TrackRecord &p)
Fill one block — type-safe version.
Definition:
MuonTruthHitsFillerTool.cxx:94
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >
D3PD::MuonTruthHitsFillerTool::book
virtual StatusCode book()
Book variables for this block.
Definition:
MuonTruthHitsFillerTool.cxx:57
Generated on Sun Dec 22 2024 21:15:33 for ATLAS Offline Software by
1.8.18