ATLAS Offline Software
Loading...
Searching...
No Matches
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>
12
13namespace CP
14{
20
22 : public asg::AsgTool, virtual public IAsgSelectionTool
23 {
24 //
25 // public interface
26 //
27
28 // Create a proper constructor for Athena
30
31
32
37 public:
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
59
61 private:
63
64 };
65}
66
67#endif
68
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Base class for elements of a container that can have aux data.
an IAsgSelectionTool that performs basic mass cut
virtual const asg::AcceptInfo & getAcceptInfo() const override
Declare the interface ID for this pure-virtual interface class to the Athena framework.
virtual asg::AcceptData accept(const xAOD::IParticle *particle) const override
The main accept method: the actual cuts are applied here.
int m_maxMassCutIndex
Index for the maximum pT selection.
Gaudi::Property< float > m_maxM
int m_minMassCutIndex
Index for the minimum pT selection.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
asg::AcceptInfo m_accept
the asg::AcceptInfo we are using
Gaudi::Property< float > m_minM
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.