ATLAS Offline Software
Loading...
Searching...
No Matches
IsolationConditionHist.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5 */
6
7#ifndef ISOLATIONSELECTION_ISOLATIONCONDITIONHIST_H
8#define ISOLATIONSELECTION_ISOLATIONCONDITIONHIST_H
9
11#include <memory>
12
13// Forward Declaration(s)
14class TF1;
15class TH3F;
16
17class Interp3D;
18
19namespace CP {
21 public:
22 IsolationConditionHist(const std::string& name, xAOD::Iso::IsolationType isoType, const std::string& isolationFunction,
23 std::unique_ptr<TH3F> efficiencyHisto3D);
24 virtual ~IsolationConditionHist() = default;
25
26 bool accept(const xAOD::IParticle& x) const override;
27 bool accept(const strObj& x) const override;
28 void setInterp(std::shared_ptr<Interp3D> interp) { m_interp = std::move(interp); }
29
30 private:
31 float getCutValue(const float pt, const float eta) const;
32 std::shared_ptr<TH3F> m_efficiencyHisto3D{nullptr};
33 std::unique_ptr<TF1> m_isolationFunction{nullptr};
34 bool m_ptGeV{false};
35 std::shared_ptr<Interp3D> m_interp;
36 };
37} // namespace CP
38#endif
Scalar eta() const
pseudorapidity method
#define x
void setInterp(std::shared_ptr< Interp3D > interp)
std::shared_ptr< TH3F > m_efficiencyHisto3D
virtual ~IsolationConditionHist()=default
float getCutValue(const float pt, const float eta) const
bool accept(const xAOD::IParticle &x) const override
std::unique_ptr< TF1 > m_isolationFunction
std::shared_ptr< Interp3D > m_interp
IsolationConditionHist(const std::string &name, xAOD::Iso::IsolationType isoType, const std::string &isolationFunction, std::unique_ptr< TH3F > efficiencyHisto3D)
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.
setRcore setEtHad setFside pt