ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
AsgMassSelectionTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ASG_ANALYSIS_ALGORITHMS__ASG_MASS_SELECTION_TOOL_H
6
#define ASG_ANALYSIS_ALGORITHMS__ASG_MASS_SELECTION_TOOL_H
7
8
#include <
AsgTools/AsgTool.h
>
9
#include <
AthContainers/AuxElement.h
>
10
#include <
PATCore/IAsgSelectionTool.h
>
11
#include "
AsgTools/PropertyWrapper.h
"
12
13
namespace
CP
14
{
20
21
class
AsgMassSelectionTool
final
22
:
public
asg::AsgTool
,
virtual
public
IAsgSelectionTool
23
{
24
//
25
// public interface
26
//
27
28
// Create a proper constructor for Athena
29
ASG_TOOL_CLASS
(
AsgMassSelectionTool
,
IAsgSelectionTool
)
30
31
32
37
public
:
38
using
asg::AsgTool::AsgTool
;
39
40
41
//
42
// inherited interface
43
//
44
45
virtual
StatusCode
initialize
()
override
;
46
47
virtual
const
asg::AcceptInfo
&
getAcceptInfo
( )
const override
;
48
49
virtual
asg::AcceptData
accept
(
const
xAOD::IParticle
*particle )
const override
;
50
51
private
:
52
Gaudi::Property<float>
m_minM
{
this
,
"minM"
, 0,
"minimum mass to require (or 0 for no mass cut)"
};
53
Gaudi::Property<float>
m_maxM
{
this
,
"maxM"
, 0,
"maximum mass to require (or 0 for no mass cut)"
};
54
56
int
m_minMassCutIndex
{ -1 };
58
int
m_maxMassCutIndex
{ -1 };
59
61
private
:
62
asg::AcceptInfo
m_accept
;
63
64
};
65
}
66
67
#endif
68
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
AuxElement.h
Base class for elements of a container that can have aux data.
IAsgSelectionTool.h
PropertyWrapper.h
CP::AsgMassSelectionTool
an IAsgSelectionTool that performs basic mass cut
Definition
AsgMassSelectionTool.h:23
CP::AsgMassSelectionTool::getAcceptInfo
virtual const asg::AcceptInfo & getAcceptInfo() const override
Declare the interface ID for this pure-virtual interface class to the Athena framework.
Definition
AsgMassSelectionTool.cxx:41
CP::AsgMassSelectionTool::accept
virtual asg::AcceptData accept(const xAOD::IParticle *particle) const override
The main accept method: the actual cuts are applied here.
Definition
AsgMassSelectionTool.cxx:48
CP::AsgMassSelectionTool::m_maxMassCutIndex
int m_maxMassCutIndex
Index for the maximum pT selection.
Definition
AsgMassSelectionTool.h:58
CP::AsgMassSelectionTool::m_maxM
Gaudi::Property< float > m_maxM
Definition
AsgMassSelectionTool.h:53
CP::AsgMassSelectionTool::m_minMassCutIndex
int m_minMassCutIndex
Index for the minimum pT selection.
Definition
AsgMassSelectionTool.h:56
CP::AsgMassSelectionTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
AsgMassSelectionTool.cxx:14
CP::AsgMassSelectionTool::m_accept
asg::AcceptInfo m_accept
the asg::AcceptInfo we are using
Definition
AsgMassSelectionTool.h:62
CP::AsgMassSelectionTool::m_minM
Gaudi::Property< float > m_minM
Definition
AsgMassSelectionTool.h:52
IAsgSelectionTool
Definition
IAsgSelectionTool.h:28
asg::AcceptData
Definition
AcceptData.h:31
asg::AcceptInfo
Definition
AcceptInfo.h:28
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition
AsgTool.cxx:58
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0