ATLAS Offline Software
Loading...
Searching...
No Matches
IsolationConditionCombined.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef ISOLATIONSELECTION_ISOLATIONCONDITIONCOMBINED_H
6#define ISOLATIONSELECTION_ISOLATIONCONDITIONCOMBINED_H
7
8#include <TF1.h>
9
11
12namespace CP {
14 public:
15 IsolationConditionCombined(const std::string& name, const std::vector<xAOD::Iso::IsolationType>& isoType,
16 std::unique_ptr<TF1> isoFunction, const std::string& cutFunction, const std::string& isoDecSuffix = "", bool invertCut = false);
17 IsolationConditionCombined(const std::string& name, const std::vector<std::string>& isoType,
18 std::unique_ptr<TF1> isoFunction, const std::string& cutFunction, const std::string& isoDecSuffix = "", bool invertCut = false);
19 virtual ~IsolationConditionCombined() = default;
20
21 bool accept(const xAOD::IParticle& x) const override;
22 bool accept(const strObj& x) const override;
23
24 private:
25 std::unique_ptr<TF1> m_cutFunction;
26 std::unique_ptr<TF1> m_isoFunction;
27 bool m_invertCut{false};
28 };
29} // namespace CP
30#endif
#define x
IsolationConditionCombined(const std::string &name, const std::vector< xAOD::Iso::IsolationType > &isoType, std::unique_ptr< TF1 > isoFunction, const std::string &cutFunction, const std::string &isoDecSuffix="", bool invertCut=false)
virtual ~IsolationConditionCombined()=default
bool accept(const xAOD::IParticle &x) const override
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.