ATLAS Offline Software
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"
15 namespace CP {
16  class IsolationWP {
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
CP::IsolationWP::~IsolationWP
~IsolationWP()=default
CP::IsolationWP::name
const std::string & name() const
Definition: IsolationWP.cxx:9
CP::IsolationWP::accept
asg::AcceptData accept(const xAOD::IParticle &p) const
Definition: IsolationWP.cxx:11
CP::IsolationWP::IsolationWP
IsolationWP(const std::string &name)
Definition: IsolationWP.cxx:42
CP::IsolationWP::addCut
void addCut(std::unique_ptr< IsolationCondition > cut)
Definition: IsolationWP.cxx:35
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::strObj
Definition: IsolationCondition.h:23
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
asg::AcceptInfo
Definition: AcceptInfo.h:28
IsolationCondition.h
BindingsTest.cut
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
Definition: BindingsTest.py:13
CP::IsolationWP
Definition: IsolationWP.h:16
AcceptData.h
CP::IsolationWP::m_cuts
std::vector< std::unique_ptr< IsolationCondition > > m_cuts
Definition: IsolationWP.h:32
CP::IsolationWP::m_name
std::string m_name
Definition: IsolationWP.h:31
getIsolationAccessor.h
CP::IsolationWP::m_acceptInfo
asg::AcceptInfo m_acceptInfo
Definition: IsolationWP.h:33
asg::AcceptData
Definition: AcceptData.h:30
CP::IsolationWP::conditions
const std::vector< std::unique_ptr< IsolationCondition > > & conditions() const
Definition: IsolationWP.cxx:40
CP::IsolationWP::getAccept
const asg::AcceptInfo & getAccept() const
Definition: IsolationWP.cxx:39