ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate Struct Reference
Collaboration diagram for CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate:

Public Member Functions

 DoubleOrAbsEtaCaloPredicate (double eta1_min, double eta1_max, double eta2_min, double eta2_max)
 
bool operator() (const xAOD::Egamma &p)
 

Private Attributes

float m_eta1_min
 
float m_eta1_max
 
float m_eta2_min
 
float m_eta2_max
 

Detailed Description

Definition at line 271 of file EgammaCalibrationAndSmearingTool.h.

Constructor & Destructor Documentation

◆ DoubleOrAbsEtaCaloPredicate()

CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::DoubleOrAbsEtaCaloPredicate ( double  eta1_min,
double  eta1_max,
double  eta2_min,
double  eta2_max 
)
inline

Definition at line 272 of file EgammaCalibrationAndSmearingTool.h.

274  : m_eta1_min(eta1_min),
275  m_eta1_max(eta1_max),
276  m_eta2_min(eta2_min),
277  m_eta2_max(eta2_max) {}

Member Function Documentation

◆ operator()()

bool CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::operator() ( const xAOD::Egamma p)
inline

Definition at line 279 of file EgammaCalibrationAndSmearingTool.h.

279  {
280  const double aeta =
281  std::abs(xAOD::get_eta_calo(*p.caloCluster(), p.author()));
282  return ((aeta >= m_eta1_min and aeta < m_eta1_max) or
283  (aeta >= m_eta2_min and aeta < m_eta2_max));
284  }

Member Data Documentation

◆ m_eta1_max

float CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::m_eta1_max
private

Definition at line 287 of file EgammaCalibrationAndSmearingTool.h.

◆ m_eta1_min

float CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::m_eta1_min
private

Definition at line 287 of file EgammaCalibrationAndSmearingTool.h.

◆ m_eta2_max

float CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::m_eta2_max
private

Definition at line 287 of file EgammaCalibrationAndSmearingTool.h.

◆ m_eta2_min

float CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::m_eta2_min
private

Definition at line 287 of file EgammaCalibrationAndSmearingTool.h.


The documentation for this struct was generated from the following file:
CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::m_eta1_max
float m_eta1_max
Definition: EgammaCalibrationAndSmearingTool.h:287
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::m_eta2_max
float m_eta2_max
Definition: EgammaCalibrationAndSmearingTool.h:287
CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::m_eta2_min
float m_eta2_min
Definition: EgammaCalibrationAndSmearingTool.h:287
CP::EgammaCalibrationAndSmearingTool::DoubleOrAbsEtaCaloPredicate::m_eta1_min
float m_eta1_min
Definition: EgammaCalibrationAndSmearingTool.h:287
xAOD::get_eta_calo
float get_eta_calo(const xAOD::CaloCluster &cluster, int author, bool do_throw=false)
Definition: EgammaCalibrationAndSmearingTool.h:64