ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
eflowRec
src
eflowEEtaBinBase.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
6
#ifndef EFLOWREC_EFLOWEETABINBASE_H
7
#define EFLOWREC_EFLOWEETABINBASE_H
8
9
/********************************************************************
10
11
NAME: eflowEEtaBinBase.h
12
PACKAGE: offline/Reconstruction/eflowRec
13
14
AUTHOR: R Duxfield
15
CREATED: 17th May, 2006
16
17
********************************************************************/
18
19
#include <vector>
20
21
class
eflowParameters
;
22
26
class
eflowEEtaBinBase
{
27
public
:
28
29
eflowEEtaBinBase
() =
default
;
30
virtual
~eflowEEtaBinBase
();
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
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
x
#define x
eflowEEtaBinBase::getEBinIndexLegacy
int getEBinIndexLegacy(double e) const
Definition
eflowEEtaBinBase.cxx:38
eflowEEtaBinBase::m_useAbsEta
bool m_useAbsEta
Definition
eflowEEtaBinBase.h:48
eflowEEtaBinBase::getErrorReturnValue
static double getErrorReturnValue()
Definition
eflowEEtaBinBase.h:34
eflowEEtaBinBase::~eflowEEtaBinBase
virtual ~eflowEEtaBinBase()
eflowEEtaBinBase::eflowEEtaBinBase
eflowEEtaBinBase()=default
eflowEEtaBinBase::getEtaBinIndex
int getEtaBinIndex(double eta) const
Definition
eflowEEtaBinBase.cxx:52
eflowEEtaBinBase::m_errorReturnValue
static const double m_errorReturnValue
Definition
eflowEEtaBinBase.h:46
eflowEEtaBinBase::getEBinIndex
int getEBinIndex(double e) const
Definition
eflowEEtaBinBase.cxx:28
eflowEEtaBinBase::m_etaBinBounds
std::vector< double > m_etaBinBounds
Definition
eflowEEtaBinBase.h:50
eflowEEtaBinBase::getNumEtaBins
int getNumEtaBins() const
Definition
eflowEEtaBinBase.h:39
eflowEEtaBinBase::getNumEBins
int getNumEBins() const
Definition
eflowEEtaBinBase.h:38
eflowEEtaBinBase::getBinIndex
static int getBinIndex(double x, const std::vector< double > &binBounds)
Definition
eflowEEtaBinBase.cxx:67
eflowEEtaBinBase::m_eBinBounds
std::vector< double > m_eBinBounds
Definition
eflowEEtaBinBase.h:49
eflowEEtaBinBase::binExists
bool binExists(double e, double eta) const
Definition
eflowEEtaBinBase.h:32
eflowParameters
Definition
eflowEEtaBinnedParameters.h:30
Generated on
for ATLAS Offline Software by
1.17.0