ATLAS Offline Software
Loading...
Searching...
No Matches
IsolationWP.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_ISOLATIONWP_H
6#define ISOLATIONSELECTION_ISOLATIONWP_H
7
10
11#include <map>
12#include <memory>
13
14#include "PATCore/AcceptData.h"
15namespace CP {
17 public:
18 IsolationWP(const std::string& name);
19 ~IsolationWP() = default;
20 const std::string& name() const;
21 void name(const std::string& name);
22
24 asg::AcceptData accept(const strObj& p) const;
25 void addCut(std::unique_ptr<IsolationCondition> cut);
26
27 const asg::AcceptInfo& getAccept() const;
28 const std::vector<std::unique_ptr<IsolationCondition>>& conditions() const;
29
30 private:
31 std::string m_name{};
32 std::vector<std::unique_ptr<IsolationCondition>> m_cuts;
34 };
35} // namespace CP
36#endif // ISOLATIONSELECTION_ISOLATIONWP_H
IsolationWP(const std::string &name)
const std::string & name() const
asg::AcceptInfo m_acceptInfo
Definition IsolationWP.h:33
std::vector< std::unique_ptr< IsolationCondition > > m_cuts
Definition IsolationWP.h:32
void addCut(std::unique_ptr< IsolationCondition > cut)
std::string m_name
Definition IsolationWP.h:31
asg::AcceptData accept(const xAOD::IParticle &p) const
const std::vector< std::unique_ptr< IsolationCondition > > & conditions() const
~IsolationWP()=default
const asg::AcceptInfo & getAccept() const
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.