ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::TrigRingerRings_v2 Class Reference

#include <TrigRingerRings_v2.h>

Inheritance diagram for xAOD::TrigRingerRings_v2:
Collaboration diagram for xAOD::TrigRingerRings_v2:

Public Types

typedef ElementLink< TrigEMClusterContainerEMClusterLink_t
 Type of the EM cluster link.

Public Member Functions

 TrigRingerRings_v2 ()
 Class default constructor.
const std::vector< float > & rings () const
 Acessor methods.
void setRings (const std::vector< float > &r)
unsigned size () const
const TrigEMClusteremCluster () const
 The associated EM cluster, as a simple pointer.
const EMClusterLink_temClusterLink () const
 The associated EM cluster, as an ElementLink.
void setEmClusterLink (const EMClusterLink_t &value)
 Set the ElementLink pointing to the EM cluster constituent.

Detailed Description

Definition at line 24 of file TrigRingerRings_v2.h.

Member Typedef Documentation

◆ EMClusterLink_t

Type of the EM cluster link.

Definition at line 39 of file TrigRingerRings_v2.h.

Constructor & Destructor Documentation

◆ TrigRingerRings_v2()

xAOD::TrigRingerRings_v2::TrigRingerRings_v2 ( )

Class default constructor.

Definition at line 19 of file TrigRingerRings_v2.cxx.

20 {
21 // no things to be done!
22 }
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.

Member Function Documentation

◆ emCluster()

const TrigEMCluster * xAOD::TrigRingerRings_v2::emCluster ( ) const

The associated EM cluster, as a simple pointer.

This function can be used to conveniently access the EM cluster associated with the electron.

It will return a null pointer if associated object can't be retrieved, but it will never fail in other way.

Returns
A pointer to the associated EM cluster, or a null if the object can't be found

Definition at line 41 of file TrigRingerRings_v2.cxx.

41 {
42 // The link accessor:
43 static const Accessor< EMClusterLink_t > acc( "emClusterLink" );
44
45 // Check if the link is available:
46 if( ! acc.isAvailable( *this ) ) {
47 return nullptr;
48 }
49 // Check if the link is valid:
50 const EMClusterLink_t& link = acc( *this );
51 if( ! link.isValid() ) {
52 return nullptr;
53 }
54
55 // Return the pointer:
56 return *link;
57 }
ElementLink< TrigEMClusterContainer > EMClusterLink_t
Type of the EM cluster link.
pointer & link(pointer p) const
Return a reference to the link for an element.
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.

◆ emClusterLink()

const EMClusterLink_t & xAOD::TrigRingerRings_v2::emClusterLink ( ) const

The associated EM cluster, as an ElementLink.

◆ rings()

const std::vector< float > & xAOD::TrigRingerRings_v2::rings ( ) const

Acessor methods.

◆ setEmClusterLink()

void xAOD::TrigRingerRings_v2::setEmClusterLink ( const EMClusterLink_t & value)

Set the ElementLink pointing to the EM cluster constituent.

◆ setRings()

void xAOD::TrigRingerRings_v2::setRings ( const std::vector< float > & r)

◆ size()

unsigned xAOD::TrigRingerRings_v2::size ( ) const

Definition at line 26 of file TrigRingerRings_v2.cxx.

26 {
27 static const Accessor< std::vector<float> > acc( "rings" );
28 return acc(*this).size();
29 }

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