ATLAS Offline Software
Loading...
Searching...
No Matches
TrigRNNOutput_v2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6#include <iostream>
7// xAOD include(s):
9// local include(s)
11#include <vector>
12
13namespace xAOD{
14
15
17 {
18 // no things to be done!
19 }
20
21 AUXSTORE_OBJECT_SETTER_AND_GETTER(TrigRNNOutput_v2, std::vector<float>, rnnDecision, setRnnDecision)
22
24 static const Accessor< std::vector<float> > acc( "rnnDecision" );
25 acc(*this).push_back(d);
26 }
27
29
30
31
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 }
58
59
60}// namespace xAOD
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
AuxElement()
Default constructor.
TrigRNNOutput_v2()
Class default constructor.
void setRnnDecision(const std::vector< float > &d)
ElementLink< TrigRingerRingsContainer > RingerLink_t
Type of the EM cluster link.
const TrigRingerRings * ringer() const
The associated EM cluster, as a simple pointer.
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TrigRingerRings_v2 TrigRingerRings
Define the latest version of the TrigRingerRings class.
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.