ATLAS Offline Software
Loading...
Searching...
No Matches
eflowEEtaBinBase.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
6#ifndef _INC_BASE_INTERPOLATED_E_ETA_BIN_SYSTEM_
7#define _INC_BASE_INTERPOLATED_E_ETA_BIN_SYSTEM_
8
9/********************************************************************
10
11NAME: eflowEEtaBinBase.h
12PACKAGE: offline/Reconstruction/eflowRec
13
14AUTHOR: R Duxfield
15CREATED: 17th May, 2006
16
17********************************************************************/
18
19#include <vector>
20
21class eflowParameters;
22
27 public:
28
29 eflowEEtaBinBase() = default;
31
32 bool binExists(double e, double eta) const { return (getEBinIndex(e) >= 0 && getEtaBinIndex(eta) >= 0); }
33
34 static double getErrorReturnValue() {return m_errorReturnValue;}
35
36 protected:
37
38 int getNumEBins() const { return m_eBinBounds.size(); }
39 int getNumEtaBins() const { return m_etaBinBounds.size(); }
40
41 int getEBinIndexLegacy(double e) const;
42 int getEBinIndex(double e) const;
43 int getEtaBinIndex(double eta) const;
44 static int getBinIndex(double x, const std::vector<double>& binBounds) ;
45
46 static const double m_errorReturnValue;
47
48 bool m_useAbsEta{true};
49 std::vector<double> m_eBinBounds;
50 std::vector<double> m_etaBinBounds;
51};
52#endif
Scalar eta() const
pseudorapidity method
#define x
int getEBinIndexLegacy(double e) const
static double getErrorReturnValue()
virtual ~eflowEEtaBinBase()
eflowEEtaBinBase()=default
int getEtaBinIndex(double eta) const
static const double m_errorReturnValue
int getEBinIndex(double e) const
std::vector< double > m_etaBinBounds
int getNumEtaBins() const
int getNumEBins() const
static int getBinIndex(double x, const std::vector< double > &binBounds)
std::vector< double > m_eBinBounds
bool binExists(double e, double eta) const