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-2023 CERN for the benefit of the ATLAS collaboration
5 */
6
7#ifndef ISOLATIONSELECTION_ISOLATIONCONDITIONHIST_H
8#define ISOLATIONSELECTION_ISOLATIONCONDITIONHIST_H
9
10#include <map>
11#include <memory>
12#include <vector>
13
15
16// Forward Declaration(s)
17class TF1;
18class TH3F;
19
20class Interp3D;
21
22namespace CP {
24 public:
25 IsolationConditionHist(const std::string& name, xAOD::Iso::IsolationType isoType, const std::string& isolationFunction,
26 std::unique_ptr<TH3F> efficiencyHisto3D);
27 virtual ~IsolationConditionHist() = default;
28
29 bool accept(const xAOD::IParticle& x) const override;
30 bool accept(const strObj& x) const override;
31 void setInterp(std::shared_ptr<Interp3D> interp) { m_interp = interp; }
32
33 private:
34 float getCutValue(const float pt, const float eta) const;
35 std::shared_ptr<TH3F> m_efficiencyHisto3D{nullptr};
36 std::unique_ptr<TF1> m_isolationFunction{nullptr};
37 bool m_ptGeV{false};
38 std::shared_ptr<Interp3D> m_interp;
39 };
40} // namespace CP
41#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