ATLAS Offline Software
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 59 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 60 of file PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h.

60 : 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 62 of file PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h.

62  {
63  if (other.weight != weight) return weight < other.weight;
65  }

◆ operator<() [2/2]

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

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

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

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:50
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:56
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
CP::FlowElementPtr::weight
float weight
Definition: PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h:66