ATLAS Offline Software
Loading...
Searching...
No Matches
jet::JetIsolation::IsolationAreaBase Class Reference

Defines a zone from which constituents will contribute to the isolation of a jet. More...

Collaboration diagram for jet::JetIsolation::IsolationAreaBase:

Public Member Functions

 IsolationAreaBase (double p, const string &n)
bool inIsolationArea (double rap, double phi, const xAOD::IParticle *part) const
string name () const
double isoArea () const

Public Attributes

double m_parameter
string m_name
double m_deltaRmax2 = 0.0

Detailed Description

Defines a zone from which constituents will contribute to the isolation of a jet.

In most cases, the zone is simply a cone which radius depends on the jet radius.

Definition at line 177 of file JetIsolationTool.cxx.

Constructor & Destructor Documentation

◆ IsolationAreaBase()

jet::JetIsolation::IsolationAreaBase::IsolationAreaBase ( double p,
const string & n )
inline

Member Function Documentation

◆ inIsolationArea()

bool jet::JetIsolation::IsolationAreaBase::inIsolationArea ( double rap,
double phi,
const xAOD::IParticle * part ) const
inline

Definition at line 180 of file JetIsolationTool.cxx.

180 {
181 // we use eta rather than rapidity for constituents, because the later can generate FPE (presumably in very low pt PFlow constit)
182 double dr2 = xAOD::P4Helpers::deltaR2(rap, phi, part->rapidity(), part->phi());
183 return dr2 < m_deltaRmax2;
184 }
Scalar phi() const
phi method
double deltaR2(double rapidity1, double phi1, double rapidity2, double phi2)
from bare rapidity,phi

◆ isoArea()

double jet::JetIsolation::IsolationAreaBase::isoArea ( ) const
inline

Definition at line 191 of file JetIsolationTool.cxx.

191 {
192 return m_deltaRmax2*M_PI;
193 }
#define M_PI

◆ name()

string jet::JetIsolation::IsolationAreaBase::name ( ) const
inline

Definition at line 186 of file JetIsolationTool.cxx.

186 {
187 std::ostringstream oss; oss << m_name << int(10*m_parameter);
188 return oss.str();
189 }

Member Data Documentation

◆ m_deltaRmax2

double jet::JetIsolation::IsolationAreaBase::m_deltaRmax2 = 0.0

Definition at line 197 of file JetIsolationTool.cxx.

◆ m_name

string jet::JetIsolation::IsolationAreaBase::m_name

Definition at line 196 of file JetIsolationTool.cxx.

◆ m_parameter

double jet::JetIsolation::IsolationAreaBase::m_parameter

Definition at line 195 of file JetIsolationTool.cxx.


The documentation for this class was generated from the following file: