ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkSM
DerivationFrameworkSM
DStarSelectionTool.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
//==================================================
6
// Selection of D*+ -> pi+ + D0
7
//==================================================
8
9
#ifndef DERIVATIONFRAMEWORK_DStarSelectionTool_H
10
#define DERIVATIONFRAMEWORK_DStarSelectionTool_H
11
12
#include <vector>
13
#include <string>
14
15
#include "TLorentzVector.h"
16
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
19
20
#include "
xAODTracking/VertexContainer.h
"
21
#include "
xAODTracking/TrackParticleContainer.h
"
22
#include "
xAODTracking/TrackParticle.h
"
23
24
#include "
AsgDataHandles/ReadHandleKey.h
"
25
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
26
27
#include <
AsgTools/PropertyWrapper.h
>
28
29
30
31
namespace
DerivationFramework
{
32
33
class
DStarSelectionTool
:
public
extends<AthAlgTool,IAugmentationTool> {
34
35
public
:
36
using
base_class::base_class;
37
38
StatusCode
initialize
()
override
;
39
40
virtual
StatusCode
addBranches
()
const override
;
41
42
private
:
43
SG::ReadHandleKey<xAOD::VertexContainer>
m_inputVtxContainerName
{
this
,
"InputVtxContainerName"
,
""
};
44
Gaudi::Property<double>
m_deltaMassMax
{
this
,
"DeltaMassMax"
,200.,
"invariant mass difference range"
};
45
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_trackKey
{
this
,
"TrackContainer"
,
"InDetTrackParticles"
};
46
SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>
m_trackDecoKey
{
this
,
"PassTrackDstarKey"
,
m_trackKey
,
"trackPassDstar"
};
47
SG::WriteDecorHandleKey<xAOD::VertexContainer>
m_vertexDecoKey
{
this
,
"PassVertexDstarKey"
,
m_inputVtxContainerName
,
"passed_Dstar"
};
48
49
const
double
m_pionMass
=
ParticleConstants::chargedPionMassInMeV
;
50
const
double
m_kaonMass
=
ParticleConstants::chargedKaonMassInMeV
;
51
std::string
m_hypoName
;
52
};
53
}
54
55
#endif // DERIVATIONFRAMEWORK_DStarSelectionTool_H
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
PropertyWrapper.h
DerivationFramework::DStarSelectionTool::m_deltaMassMax
Gaudi::Property< double > m_deltaMassMax
Definition:
DStarSelectionTool.h:44
IAugmentationTool.h
DerivationFramework::DStarSelectionTool::m_hypoName
std::string m_hypoName
name of the mass hypothesis prefix for decorations
Definition:
DStarSelectionTool.h:51
ParticleConstants::PDG2011::chargedKaonMassInMeV
constexpr double chargedKaonMassInMeV
the mass of the charged kaon (in MeV)
Definition:
ParticleConstants.h:50
DerivationFramework::DStarSelectionTool::initialize
StatusCode initialize() override
Definition:
DStarSelectionTool.cxx:29
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition:
StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::DStarSelectionTool::m_trackKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackKey
Definition:
DStarSelectionTool.h:45
ParticleConstants::PDG2011::chargedPionMassInMeV
constexpr double chargedPionMassInMeV
the mass of the charged pion (in MeV)
Definition:
ParticleConstants.h:41
DerivationFramework::DStarSelectionTool::m_inputVtxContainerName
SG::ReadHandleKey< xAOD::VertexContainer > m_inputVtxContainerName
Definition:
DStarSelectionTool.h:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition:
ParticleSortingAlg.h:24
DerivationFramework::DStarSelectionTool
Definition:
DStarSelectionTool.h:33
DerivationFramework::DStarSelectionTool::m_kaonMass
const double m_kaonMass
Definition:
DStarSelectionTool.h:50
DerivationFramework::DStarSelectionTool::m_trackDecoKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_trackDecoKey
Definition:
DStarSelectionTool.h:46
TrackParticle.h
WriteDecorHandleKey.h
DerivationFramework::DStarSelectionTool::addBranches
virtual StatusCode addBranches() const override
Definition:
DStarSelectionTool.cxx:39
VertexContainer.h
DerivationFramework::DStarSelectionTool::m_pionMass
const double m_pionMass
Definition:
DStarSelectionTool.h:49
TrackParticleContainer.h
DerivationFramework::DStarSelectionTool::m_vertexDecoKey
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vertexDecoKey
Definition:
DStarSelectionTool.h:47
Generated on Tue Sep 2 2025 21:10:08 for ATLAS Offline Software by
1.8.18