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

#include <TrigRNNOutput_v2.h>

Inheritance diagram for xAOD::TrigRNNOutput_v2:
Collaboration diagram for xAOD::TrigRNNOutput_v2:

Public Types

typedef ElementLink< TrigRingerRingsContainerRingerLink_t
 Type of the EM cluster link.

Public Member Functions

 TrigRNNOutput_v2 ()
 Class default constructor.
const std::vector< float > & rnnDecision () const
 Acessor methods.
void setRnnDecision (const std::vector< float > &d)
void setRnnDecision (float d)
const TrigRingerRingsringer () const
 The associated EM cluster, as a simple pointer.
const RingerLink_tringerLink () const
 The associated EM cluster, as an ElementLink.
void setRingerLink (const RingerLink_t &value)
 Set the ElementLink pointing to the EM cluster constituent.

Detailed Description

Definition at line 24 of file TrigRNNOutput_v2.h.

Member Typedef Documentation

◆ RingerLink_t

Type of the EM cluster link.

Definition at line 37 of file TrigRNNOutput_v2.h.

Constructor & Destructor Documentation

◆ TrigRNNOutput_v2()

xAOD::TrigRNNOutput_v2::TrigRNNOutput_v2 ( )

Class default constructor.

Definition at line 16 of file TrigRNNOutput_v2.cxx.

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

Member Function Documentation

◆ ringer()

const TrigRingerRings * xAOD::TrigRNNOutput_v2::ringer ( ) const

The associated EM cluster, as a simple pointer.

This function can be used to conveniently access the TrigRingerRings associated with the rnn.

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

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

Definition at line 39 of file TrigRNNOutput_v2.cxx.

39 {
40
41 // The link accessor:
42 static const Accessor< RingerLink_t > acc( "ringerLink" );
43
44 // Check if the link is available:
45 if( ! acc.isAvailable( *this ) ) {
46 return nullptr;
47 }
48
49 // Check if the link is valid:
50 const RingerLink_t& link = acc( *this );
51 if( ! link.isValid() ) {
52 return nullptr;
53 }
54
55 // Return the pointer:
56 return *link;
57 }
ElementLink< TrigRingerRingsContainer > RingerLink_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.

◆ ringerLink()

const RingerLink_t & xAOD::TrigRNNOutput_v2::ringerLink ( ) const

The associated EM cluster, as an ElementLink.

◆ rnnDecision()

const std::vector< float > & xAOD::TrigRNNOutput_v2::rnnDecision ( ) const

Acessor methods.

◆ setRingerLink()

void xAOD::TrigRNNOutput_v2::setRingerLink ( const RingerLink_t & value)

Set the ElementLink pointing to the EM cluster constituent.

◆ setRnnDecision() [1/2]

void xAOD::TrigRNNOutput_v2::setRnnDecision ( const std::vector< float > & d)

◆ setRnnDecision() [2/2]

void xAOD::TrigRNNOutput_v2::setRnnDecision ( float d)

Definition at line 23 of file TrigRNNOutput_v2.cxx.

23 {
24 static const Accessor< std::vector<float> > acc( "rnnDecision" );
25 acc(*this).push_back(d);
26 }

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