ATLAS Offline Software
Loading...
Searching...
No Matches
TrigRingerRings_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// create by: joao victor da fonseca pinto, joao.victor.da.fonseca.pinto@cern.ch
7
8// STD incluse(s)
9#include <iostream>
10#include <vector>
11// xAOD include(s):
13// local include(s)
15
16namespace xAOD{
17
18
20 {
21 // no things to be done!
22 }
23
24 AUXSTORE_OBJECT_SETTER_AND_GETTER(TrigRingerRings_v2, std::vector<float>, rings, setRings)
25
27 static const Accessor< std::vector<float> > acc( "rings" );
28 return acc(*this).size();
29 }
30
32
33
34
40 //
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 }
58
59}// 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.
const TrigEMCluster * emCluster() const
The associated EM cluster, as a simple pointer.
TrigRingerRings_v2()
Class default constructor.
ElementLink< TrigEMClusterContainer > EMClusterLink_t
Type of the EM cluster link.
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TrigEMCluster_v1 TrigEMCluster
Define the latest version of the trigger EM cluster class.
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.