ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TrackingAnalysisAlgorithms
TrackingAnalysisAlgorithms
SecVertexTruthMatchAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRACKINGANALYSISALGORITHMS_SECVERTEXTRUTHMATCHALG_H
6
#define TRACKINGANALYSISALGORITHMS_SECVERTEXTRUTHMATCHALG_H
7
8
// Gaudi/Athena include(s):
9
#include "
AnaAlgorithm/AnaAlgorithm.h
"
10
#include "
AsgTools/ToolHandle.h
"
11
12
// SG includes
13
#include "
xAODTracking/VertexContainer.h
"
14
#include "
xAODTracking/TrackParticleContainer.h
"
15
#include "
xAODTruth/TruthVertexContainer.h
"
16
17
// Local include(s):
18
#include "
InDetSecVtxTruthMatchTool/IInDetSecVtxTruthMatchTool.h
"
19
20
// Asg includes
21
#include <
AsgTools/PropertyWrapper.h
>
22
#include <
AsgDataHandles/ReadHandleKey.h
>
23
#include <
AsgDataHandles/ReadHandle.h
>
24
25
namespace
CP
{
26
31
class
SecVertexTruthMatchAlg
final :
public
EL::AnaAlgorithm
{
32
33
public
:
35
SecVertexTruthMatchAlg
(
const
std::string&
name
, ISvcLocator* svcLoc );
36
virtual
StatusCode
initialize
()
override
;
37
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
38
39
private
:
40
// Input (reco) Secondary Vertices
41
SG::ReadHandleKey<xAOD::VertexContainer>
m_secVtxContainerKey
{
this
,
"SecondaryVertexContainer"
,
"VrtSecInclusive_SecondaryVertices"
,
42
"Secondary vertex container"
};
43
// Input Truth Vertices
44
SG::ReadHandleKey<xAOD::TruthVertexContainer>
m_truthVtxContainerKey
{
this
,
"TruthVertexContainer"
,
"TruthVertices"
,
45
"Truth vertex container"
};
46
// Input Tracks
47
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_trackParticleContainerKey
{
this
,
"TrackParticleContainer"
,
"InDetTrackParticles"
,
48
"Track container"
};
49
50
Gaudi::Property<std::vector<int>>
m_targetPDGIDs
{
this
,
"TargetPDGIDs"
, {},
"List of PDGIDs to select for matching"
};
51
52
Gaudi::Property<bool>
m_writeHistograms
{
this
,
"WriteHistograms"
,
true
,
"Write histograms"
};
53
54
ToolHandle<IInDetSecVtxTruthMatchTool>
m_matchTool
{
this
,
"MatchTool"
,
"InDetSecVtxTruthMatchTool"
};
55
Gaudi::Property<bool>
m_doMuSA
{
this
,
"doMuSA"
,
false
,
"MuSA mode for wider histogram ranges"
};
56
Gaudi::Property<bool>
m_doSMOrigin
{
this
,
"doSMOrigin"
,
false
,
"Enable SM origin categorization"
};
57
58
void
fillRecoHistograms
(
const
xAOD::Vertex
* secVtx,
const
std::string& matchType);
59
void
fillTruthHistograms
(
const
xAOD::TruthVertex
* truthVtx,
const
std::string& truthType);
60
void
fillOriginHistograms
(
const
xAOD::Vertex
* secVtx,
const
std::string& originType);
61
};
62
}
// namespace CP
63
#endif
AnaAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandle.h
Handle class for reading from StoreGate.
TrackParticleContainer.h
IInDetSecVtxTruthMatchTool.h
PropertyWrapper.h
ToolHandle.h
TruthVertexContainer.h
VertexContainer.h
CP::SecVertexTruthMatchAlg::fillOriginHistograms
void fillOriginHistograms(const xAOD::Vertex *secVtx, const std::string &originType)
Definition
SecVertexTruthMatchAlg.cxx:536
CP::SecVertexTruthMatchAlg::m_doMuSA
Gaudi::Property< bool > m_doMuSA
Definition
SecVertexTruthMatchAlg.h:55
CP::SecVertexTruthMatchAlg::m_writeHistograms
Gaudi::Property< bool > m_writeHistograms
Definition
SecVertexTruthMatchAlg.h:52
CP::SecVertexTruthMatchAlg::m_targetPDGIDs
Gaudi::Property< std::vector< int > > m_targetPDGIDs
Definition
SecVertexTruthMatchAlg.h:50
CP::SecVertexTruthMatchAlg::m_doSMOrigin
Gaudi::Property< bool > m_doSMOrigin
Definition
SecVertexTruthMatchAlg.h:56
CP::SecVertexTruthMatchAlg::initialize
virtual StatusCode initialize() override
Definition
SecVertexTruthMatchAlg.cxx:20
CP::SecVertexTruthMatchAlg::fillRecoHistograms
void fillRecoHistograms(const xAOD::Vertex *secVtx, const std::string &matchType)
Definition
SecVertexTruthMatchAlg.cxx:337
CP::SecVertexTruthMatchAlg::m_trackParticleContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
Definition
SecVertexTruthMatchAlg.h:47
CP::SecVertexTruthMatchAlg::m_secVtxContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_secVtxContainerKey
Definition
SecVertexTruthMatchAlg.h:41
CP::SecVertexTruthMatchAlg::m_matchTool
ToolHandle< IInDetSecVtxTruthMatchTool > m_matchTool
Definition
SecVertexTruthMatchAlg.h:54
CP::SecVertexTruthMatchAlg::SecVertexTruthMatchAlg
SecVertexTruthMatchAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition
SecVertexTruthMatchAlg.cxx:17
CP::SecVertexTruthMatchAlg::fillTruthHistograms
void fillTruthHistograms(const xAOD::TruthVertex *truthVtx, const std::string &truthType)
Definition
SecVertexTruthMatchAlg.cxx:485
CP::SecVertexTruthMatchAlg::m_truthVtxContainerKey
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_truthVtxContainerKey
Definition
SecVertexTruthMatchAlg.h:44
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
xAOD::TruthVertex
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition
TruthVertex.h:15
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Generated on
for ATLAS Offline Software by
1.17.0