ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
CP::SortedObjPtr< Obj > Struct Template Reference

Small helper struct to have sets of particle pointers sorted by pt. More...

#include <Defs.h>

Collaboration diagram for CP::SortedObjPtr< Obj >:

Public Member Functions

 SortedObjPtr ()=default
 
 SortedObjPtr (const Obj *_ptr)
 
const Obj * get () const
 
const Obj * operator-> () const
 
const Obj & operator* () const
 
bool operator! () const
 
 operator bool () const
 
 operator const Obj * () const
 
bool operator< (const SortedObjPtr< Obj > &other) const
 

Private Attributes

const Obj * m_ptr {nullptr}
 

Detailed Description

template<class Obj>
struct CP::SortedObjPtr< Obj >

Small helper struct to have sets of particle pointers sorted by pt.

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

Constructor & Destructor Documentation

◆ SortedObjPtr() [1/2]

template<class Obj >
CP::SortedObjPtr< Obj >::SortedObjPtr ( )
default

◆ SortedObjPtr() [2/2]

template<class Obj >
CP::SortedObjPtr< Obj >::SortedObjPtr ( const Obj *  _ptr)
inline

Member Function Documentation

◆ get()

template<class Obj >
const Obj* CP::SortedObjPtr< Obj >::get ( ) const
inline

◆ operator bool()

template<class Obj >
CP::SortedObjPtr< Obj >::operator bool ( ) const
inline

◆ operator const Obj *()

template<class Obj >
CP::SortedObjPtr< Obj >::operator const Obj * ( ) const
inline

◆ operator!()

template<class Obj >
bool CP::SortedObjPtr< Obj >::operator! ( ) const
inline

◆ operator*()

template<class Obj >
const Obj& CP::SortedObjPtr< Obj >::operator* ( ) const
inline

◆ operator->()

template<class Obj >
const Obj* CP::SortedObjPtr< Obj >::operator-> ( ) const
inline

◆ operator<()

template<class Obj >
bool CP::SortedObjPtr< Obj >::operator< ( const SortedObjPtr< Obj > &  other) const
inline

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

template<class Obj >
const Obj* CP::SortedObjPtr< Obj >::m_ptr {nullptr}
private

The documentation for this struct was generated from the following file:
CP::SortedObjPtr::get
const Obj * get() const
Definition: PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h:44
CP::SortedObjPtr::m_ptr
const Obj * m_ptr
Definition: PhysicsAnalysis/AnalysisCommon/IsolationSelection/IsolationSelection/Defs.h:56
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16