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#include <atomic>
13
14namespace CP
15{
21
23 : public asg::AsgTool, virtual public IAsgSelectionTool
24 {
25 //
26 // public interface
27 //
28
29 // Create a proper constructor for Athena
31
32
33
38 public:
40
41
42 //
43 // inherited interface
44 //
45
46 virtual StatusCode initialize () override;
47
48 virtual const asg::AcceptInfo& getAcceptInfo( ) const override;
49
50 virtual asg::AcceptData accept( const xAOD::IParticle *particle ) const override;
51
52 private:
53 Gaudi::Property<float> m_minM {this, "minM", 0, "minimum mass to require (or 0 for no mass cut)"};
54 Gaudi::Property<float> m_maxM {this, "maxM", 0, "maximum mass to require (or 0 for no mass cut)"};
55
60
62 private:
64
65 };
66}
67
68#endif
69
#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.