Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
CP::FlowElementPtr Struct Reference

For the flow elements we need a special derivate which also contains the weights. More...

#include <Defs.h>

Inheritance diagram for CP::FlowElementPtr:
Collaboration diagram for CP::FlowElementPtr:

Public Member Functions

 FlowElementPtr (const xAOD::FlowElement *ele, float _weight)
 
 FlowElementPtr ()=default
 
bool operator< (const FlowElementPtr &other) const
 
const xAOD::FlowElementget () const
 
const xAOD::FlowElementoperator-> () const
 
const xAOD::FlowElementoperator* () const
 
bool operator! () const
 
 operator bool () const
 
 operator const xAOD::FlowElement * () const
 
bool operator< (const SortedObjPtr< xAOD::FlowElement > &other) const
 

Public Attributes

float weight {1.f}
 

Private Attributes

const xAOD::FlowElementm_ptr
 

Detailed Description

For the flow elements we need a special derivate which also contains the weights.

Definition at line 60 of file PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h.

Constructor & Destructor Documentation

◆ FlowElementPtr() [1/2]

CP::FlowElementPtr::FlowElementPtr ( const xAOD::FlowElement ele,
float  _weight 
)
inline

Definition at line 61 of file PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h.

61 : SortedObjPtr<xAOD::FlowElement>{ele}, weight{_weight} {}

◆ FlowElementPtr() [2/2]

CP::FlowElementPtr::FlowElementPtr ( )
default

Member Function Documentation

◆ get()

◆ operator bool()

CP::SortedObjPtr< xAOD::FlowElement >::operator bool
inlineinherited

◆ operator const xAOD::FlowElement *()

◆ operator!()

bool CP::SortedObjPtr< xAOD::FlowElement >::operator!
inlineinherited

◆ operator*()

const xAOD::FlowElement & CP::SortedObjPtr< xAOD::FlowElement >::operator*
inlineinherited

◆ operator->()

const xAOD::FlowElement * CP::SortedObjPtr< xAOD::FlowElement >::operator->
inlineinherited

◆ operator<() [1/2]

bool CP::FlowElementPtr::operator< ( const FlowElementPtr other) const
inline

Definition at line 63 of file PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h.

63  {
64  if (other.weight != weight) return weight < other.weight;
66  }

◆ operator<() [2/2]

bool CP::SortedObjPtr< xAOD::FlowElement >::operator< ( const SortedObjPtr< xAOD::FlowElement > &  other) const
inlineinherited

Definition at line 51 of file PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h.

51  {
52  return other.get() != get() && get() &&
53  (!other || other->pt() < get()->pt() || (other->pt() == get()->pt() && other.get() < get()));
54  }

Member Data Documentation

◆ m_ptr

◆ weight

float CP::FlowElementPtr::weight {1.f}

The documentation for this struct was generated from the following file:
CP::SortedObjPtr::operator<
bool operator<(const SortedObjPtr< Obj > &other) const
Definition: PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h:51
test_pyathena.pt
pt
Definition: test_pyathena.py:11
CP::SortedObjPtr< xAOD::FlowElement >::m_ptr
const xAOD::FlowElement * m_ptr
Definition: PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h:57
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
CP::FlowElementPtr::weight
float weight
Definition: PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h:67