ATLAS Offline Software
Loading...
Searching...
No Matches
IsolationConditionFormula.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 ISOLATIONSELECTION_ISOLATIONCONDITIONFORMULA_H
6#define ISOLATIONSELECTION_ISOLATIONCONDITIONFORMULA_H
7
8#include <memory>
9
11
12// Forward Declaration(s)
13class TF1;
14class TH3F;
15
16namespace CP {
18 public:
19 IsolationConditionFormula(const std::string& name, xAOD::Iso::IsolationType isoType, const std::string& cutFunction,
20 bool invertCut = false, const std::string& isoDecSuffix = "");
21 IsolationConditionFormula(const std::string& name, const std::string& isoType, const std::string& cutFunction, bool invertCut = false, const std::string& isoDecSuffix = "");
22 virtual ~IsolationConditionFormula() = default;
23
24 virtual bool accept(const xAOD::IParticle& x) const override;
25 virtual bool accept(const strObj& x) const override;
26
27 private:
28 std::shared_ptr<TF1> m_cutFunction{nullptr};
29 bool m_invertCut{false};
30 };
31} // namespace CP
32#endif
#define x
IsolationConditionFormula(const std::string &name, xAOD::Iso::IsolationType isoType, const std::string &cutFunction, bool invertCut=false, const std::string &isoDecSuffix="")
virtual bool accept(const xAOD::IParticle &x) const override
virtual ~IsolationConditionFormula()=default
IsolationCondition(const std::string &name, xAOD::Iso::IsolationType isoType, const std::string &isoDecSuffix="")
const std::string & name() const
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
IsolationType
Overall enumeration for isolation types in xAOD files.