ATLAS Offline Software
Loading...
Searching...
No Matches
IsolationConditionGraph.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef ISOLATIONSELECTION_ISOLATIONCONDITIONGRAPH_H
6#define ISOLATIONSELECTION_ISOLATIONCONDITIONGRAPH_H
7
8#include <TF1.h>
9#include <TGraph.h>
10#include <TH1F.h>
11
13
14namespace CP {
16 public:
17 IsolationConditionGraph(const std::string& name,
18 const std::vector<std::string>& isoType,
19 std::unique_ptr<TF1> isoFunction,
20 std::vector<TGraph*>& cutGraphs, // std::vector<std::unique_ptr<TGraph>>
21 std::unique_ptr<TH1F> binning,
22 const std::string& isoDecSuffix = "",
23 bool invertCut = false);
24 virtual ~IsolationConditionGraph() override = default;
25
26 bool accept(const xAOD::IParticle& x) const override;
27 bool accept(const strObj& x) const override;
28
29 private:
30 std::vector<TGraph*> m_cutGraphs; // std::vector<std::unique_ptr<TGraph>> m_cutGraphs;
31 std::unique_ptr<TF1> m_isoFunction;
32 std::unique_ptr<TH1F> m_binning;
33 bool m_invertCut{false};
34
35 float getCutValue(const float pt, const float eta) const;
36};
37} // namespace CP
38#endif
Scalar eta() const
pseudorapidity method
#define x
float getCutValue(const float pt, const float eta) const
virtual ~IsolationConditionGraph() override=default
std::unique_ptr< TF1 > m_isoFunction
bool accept(const xAOD::IParticle &x) const override
std::vector< TGraph * > m_cutGraphs
std::unique_ptr< TH1F > m_binning
IsolationConditionGraph(const std::string &name, const std::vector< std::string > &isoType, std::unique_ptr< TF1 > isoFunction, std::vector< TGraph * > &cutGraphs, std::unique_ptr< TH1F > binning, const std::string &isoDecSuffix="", bool invertCut=false)
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.
setRcore setEtHad setFside pt