ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::Object< Spec > Class Template Reference

#include <Object.h>

Inheritance diagram for GlobalSim::Object< Spec >:
Collaboration diagram for GlobalSim::Object< Spec >:

Public Types

using BaseObject = Object<typename Spec::BaseSpec>

Public Member Functions

 Object (const SG::AuxElement &obj)
 Object ()
Spec::bitset_type bits () const
void operator= (const Spec::bitset_type &bits)
const SG::AuxElement * objectPtr () const
void dump () const

Static Public Attributes

static constexpr Spec spec {}

Detailed Description

template<typename Spec>
class GlobalSim::Object< Spec >

Definition at line 39 of file Object.h.

Member Typedef Documentation

◆ BaseObject

template<typename Spec>
using GlobalSim::Object< Spec >::BaseObject = Object<typename Spec::BaseSpec>

Definition at line 41 of file Object.h.

Constructor & Destructor Documentation

◆ Object() [1/2]

template<typename Spec>
GlobalSim::Object< Spec >::Object ( const SG::AuxElement & obj)
inlineexplicit

Definition at line 46 of file Object.h.

47
48 }
Object< typename Spec::BaseSpec > BaseObject
Definition Object.h:41

◆ Object() [2/2]

template<typename Spec>
GlobalSim::Object< Spec >::Object ( )
inlineexplicit

Definition at line 51 of file Object.h.

Member Function Documentation

◆ bits()

template<typename Spec>
Spec::bitset_type GlobalSim::Object< Spec >::bits ( ) const
inline

Definition at line 57 of file Object.h.

◆ dump()

template<typename Spec>
void GlobalSim::Object< Spec >::dump ( ) const
inline

Definition at line 73 of file Object.h.

73 {
75 }
const SG::AuxElement * objectPtr() const
Definition Object.h:69
void dump(const SG::AuxElement &obj)
Helper function for dumping xAOD objects on the screen in PyROOT.

◆ objectPtr()

template<typename Spec>
const SG::AuxElement * GlobalSim::Object< Spec >::objectPtr ( ) const
inline

Definition at line 69 of file Object.h.

69 {
70 return &this->Spec::ObjectAcc::m_obj;
71 }

◆ operator=()

template<typename Spec>
void GlobalSim::Object< Spec >::operator= ( const Spec::bitset_type & bits)
inline

Definition at line 61 of file Object.h.

61 {
62 std::apply([&](const auto *... field) {
63 (field->decodeAndAssignFrom(bits, const_cast<SG::AuxElement &>(Spec::ObjectAcc::m_obj)), ...);
64 },
66 }
Spec::bitset_type bits() const
Definition Object.h:57

Member Data Documentation

◆ spec

template<typename Spec>
Spec GlobalSim::Object< Spec >::spec {}
staticconstexpr

Definition at line 43 of file Object.h.

43{}; // allows access to the BitSpec with obj.spec. syntax

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