ATLAS Offline Software
Loading...
Searching...
No Matches
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 41 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 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 }
setRcore setEtHad setFside pt

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: