ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
LVL1::jFEXSmallRJetAlgo Class Reference

#include <jFEXSmallRJetAlgo.h>

Inheritance diagram for LVL1::jFEXSmallRJetAlgo:
Collaboration diagram for LVL1::jFEXSmallRJetAlgo:

Public Member Functions

 jFEXSmallRJetAlgo (const std::string &type, const std::string &name, const IInterface *parent)
 Constructors. More...
 
virtual StatusCode initialize () override
 standard Athena-Algorithm method More...
 
virtual ~jFEXSmallRJetAlgo ()
 Destructor. More...
 
virtual StatusCode safetyTest () override
 
virtual void setup (int inputTable[7][7], int inputTableDisplaced[7][7]) override
 
virtual unsigned int getTTowerET (unsigned int TTID) const override
 
virtual void buildSeeds () override
 
virtual bool isSeedLocalMaxima (int seedThreshold) override
 
virtual unsigned int getSmallClusterET () const override
 
virtual unsigned int getSmallETRing () const override
 
virtual unsigned int getTTIDcentre () const override
 
virtual bool getSRjetSat () const override
 
virtual void setFPGAEnergy (const std::unordered_map< int, std::vector< int > > &et_map) override
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void calcSaturation ()
 
bool getTTowerSat (unsigned int TTID)
 
bool CalculateLM (int mymatrix[5][5])
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

SG::ReadHandleKey< LVL1::jTowerContainerm_jTowerContainerKey {this, "MyjTowers", "jTowerContainer", "Input container for jTowers"}
 
SG::ReadHandle< jTowerContainerm_jTowerContainer
 
bool m_JetSaturation = false
 
int m_jFEXalgoTowerID [7][7] = {{0}}
 
int m_jFEXalgoTowerID_displaced [7][7] = {{0}}
 
int m_jFEXalgoSearchWindowSeedET [5][5] = {{0}}
 
int m_jFEXalgoSearchWindowSeedET_displaced [5][5] = {{0}}
 
std::unordered_map< int, std::vector< int > > m_map_Etvalues
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 28 of file jFEXSmallRJetAlgo.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ jFEXSmallRJetAlgo()

LVL1::jFEXSmallRJetAlgo::jFEXSmallRJetAlgo ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Constructors.

Definition at line 24 of file jFEXSmallRJetAlgo.cxx.

24  :
26  {
27  declareInterface<IjFEXSmallRJetAlgo>(this);
28  }

◆ ~jFEXSmallRJetAlgo()

LVL1::jFEXSmallRJetAlgo::~jFEXSmallRJetAlgo ( )
virtual

Destructor.

Definition at line 31 of file jFEXSmallRJetAlgo.cxx.

32 {
33 }

Member Function Documentation

◆ buildSeeds()

void LVL1::jFEXSmallRJetAlgo::buildSeeds ( )
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 84 of file jFEXSmallRJetAlgo.cxx.

85 {
86 
87  for(int mphi = 1; mphi < 6; mphi++) {
88  for(int meta = 1; meta< 6; meta++) {
89 
90  int seedTotalET = 0;
91  int seedTotalET_displaced = 0;
92  for(int iphi = -1; iphi < 2; iphi++) {
93  for(int ieta = -1; ieta < 2; ieta++) {
94  //for that TT, build the seed
95  //here we sum TT ET to calculate seed
96  seedTotalET += getTTowerET(m_jFEXalgoTowerID [mphi + iphi][meta + ieta]);
97  seedTotalET_displaced += getTTowerET(m_jFEXalgoTowerID_displaced[mphi + iphi][meta + ieta]);
98  }
99  }
100  m_jFEXalgoSearchWindowSeedET[mphi -1][meta -1] = seedTotalET;
101  m_jFEXalgoSearchWindowSeedET_displaced[mphi -1][meta -1] = seedTotalET_displaced;
102  }
103  }
104 }

◆ calcSaturation()

void LVL1::jFEXSmallRJetAlgo::calcSaturation ( )
private

Definition at line 167 of file jFEXSmallRJetAlgo.cxx.

167  {
168 
169  m_JetSaturation = false;
170  for(int nphi = -3; nphi< 4; nphi++) {
171  for(int neta = -3; neta< 4; neta++) {
172  int DeltaRSquared = std::pow(nphi,2)+std::pow(neta,2);
173  if(DeltaRSquared < 16) {
175  }
176  }
177  }
178 }

◆ CalculateLM()

bool LVL1::jFEXSmallRJetAlgo::CalculateLM ( int  mymatrix[5][5])
private

Definition at line 107 of file jFEXSmallRJetAlgo.cxx.

107  {
108 
109  //here put the 24 conditions to determine if the TT seed is a local maxima.
110  int central_seed = mymatrix[2][2];
111  for (int iphi = 0; iphi < 5; iphi++) {
112  for (int ieta = 0; ieta < 5; ieta++) {
113  //avoid comparing central seed to itself
114  if ((ieta == 2) && (iphi == 2)) {
115  continue;
116  }
117  //strictly less than central
118  if( (iphi > ieta) || (iphi == 0 && ieta == 0) || (iphi == 1 && ieta == 1) ) {
119  if(central_seed < mymatrix[iphi][ieta]) {
120  return false;
121  }
122  }
123  //less than or equal to central
124  if((iphi < ieta) || (iphi == 3 && ieta == 3) || (iphi == 4 && ieta == 4)) {
125  if(central_seed <= mymatrix[iphi][ieta]) {
126  return false;
127  }
128  }
129  }
130  }
131 
132  return true;
133 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getSmallClusterET()

unsigned int LVL1::jFEXSmallRJetAlgo::getSmallClusterET ( ) const
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 153 of file jFEXSmallRJetAlgo.cxx.

153  {
154 
155  int SRJetClusterET = 0;
156  for(int nphi = -3; nphi< 4; nphi++) {
157  for(int neta = -3; neta< 4; neta++) {
158  int DeltaRSquared = std::pow(nphi,2)+std::pow(neta,2);
159  if(DeltaRSquared < 16) {
160  SRJetClusterET += getTTowerET(m_jFEXalgoTowerID[3+nphi][3+neta]);
161  }
162  }
163  }
164  return SRJetClusterET;
165 }

◆ getSmallETRing()

unsigned int LVL1::jFEXSmallRJetAlgo::getSmallETRing ( ) const
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 184 of file jFEXSmallRJetAlgo.cxx.

184  {
185  int SmallETRing = getSmallClusterET() - m_jFEXalgoSearchWindowSeedET[3][3];
186  return SmallETRing;
187 }

◆ getSRjetSat()

bool LVL1::jFEXSmallRJetAlgo::getSRjetSat ( ) const
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 180 of file jFEXSmallRJetAlgo.cxx.

180  {
181  return m_JetSaturation;
182 }

◆ getTTIDcentre()

unsigned int LVL1::jFEXSmallRJetAlgo::getTTIDcentre ( ) const
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 189 of file jFEXSmallRJetAlgo.cxx.

189  {
190  return m_jFEXalgoTowerID[3][3];
191 }

◆ getTTowerET()

unsigned int LVL1::jFEXSmallRJetAlgo::getTTowerET ( unsigned int  TTID) const
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 70 of file jFEXSmallRJetAlgo.cxx.

70  {
71  if(TTID == 0) {
72  return 0;
73  }
74 
75  if(m_map_Etvalues.find(TTID) != m_map_Etvalues.end()) {
76  return m_map_Etvalues.at(TTID).at(0);
77  }
78 
79  //we shouldn't arrive here
80  return 0;
81 }

◆ getTTowerSat()

bool LVL1::jFEXSmallRJetAlgo::getTTowerSat ( unsigned int  TTID)
private

Definition at line 199 of file jFEXSmallRJetAlgo.cxx.

199  {
200  if(TTID == 0) {
201  return false;
202  }
203 
204  const LVL1::jTower * tmpTower = m_jTowerContainer->findTower(TTID);
205  return tmpTower->getTowerSat();
206 }

◆ initialize()

StatusCode LVL1::jFEXSmallRJetAlgo::initialize ( )
overridevirtual

standard Athena-Algorithm method

Definition at line 34 of file jFEXSmallRJetAlgo.cxx.

35 {
37 
38  return StatusCode::SUCCESS;
39 
40 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

const InterfaceID & LVL1::IjFEXSmallRJetAlgo::interfaceID ( )
inlinestaticinherited

Definition at line 38 of file IjFEXSmallRJetAlgo.h.

39  {
40  return IID_IjFEXSmallRJetAlgo;
41  }

◆ isSeedLocalMaxima()

bool LVL1::jFEXSmallRJetAlgo::isSeedLocalMaxima ( int  seedThreshold)
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 136 of file jFEXSmallRJetAlgo.cxx.

136  {
137 
138  bool isCentralLM = CalculateLM(m_jFEXalgoSearchWindowSeedET) &&
140 
141  bool isDisplacedLM = CalculateLM(m_jFEXalgoSearchWindowSeedET_displaced) &&
143 
144  if(isCentralLM || isDisplacedLM ){
145  calcSaturation();
146  return m_jFEXalgoSearchWindowSeedET[2][2] > seedThreshold;
147  }
148  return false;
149 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ safetyTest()

StatusCode LVL1::jFEXSmallRJetAlgo::safetyTest ( )
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 43 of file jFEXSmallRJetAlgo.cxx.

43  {
44 
46  if(! m_jTowerContainer.isValid()) {
47  ATH_MSG_ERROR("Could not retrieve jTowerContainer " << m_jTowerContainerKey.key());
48  return StatusCode::FAILURE;
49  }
50 
51  return StatusCode::SUCCESS;
52 }

◆ setFPGAEnergy()

void LVL1::jFEXSmallRJetAlgo::setFPGAEnergy ( const std::unordered_map< int, std::vector< int > > &  et_map)
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 194 of file jFEXSmallRJetAlgo.cxx.

194  {
195  m_map_Etvalues=et_map;
196 }

◆ setup()

void LVL1::jFEXSmallRJetAlgo::setup ( int  inputTable[7][7],
int  inputTableDisplaced[7][7] 
)
overridevirtual

Implements LVL1::IjFEXSmallRJetAlgo.

Definition at line 54 of file jFEXSmallRJetAlgo.cxx.

54  {
55 
56  for(int phi=0; phi<7; phi++) {
57  for (int eta=0; eta<7; eta++) {
58  m_jFEXalgoTowerID[phi][eta] = inputTable[6-phi][eta];
59  }
60  }
61 
62  for(int phi=0; phi<7; phi++) {
63  for (int eta=0; eta<7; eta++) {
64  m_jFEXalgoTowerID_displaced[phi][eta] = inputTableDisplaced[6-phi][eta];
65  }
66  }
67 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_JetSaturation

bool LVL1::jFEXSmallRJetAlgo::m_JetSaturation = false
private

Definition at line 57 of file jFEXSmallRJetAlgo.h.

◆ m_jFEXalgoSearchWindowSeedET

int LVL1::jFEXSmallRJetAlgo::m_jFEXalgoSearchWindowSeedET[5][5] = {{0}}
private

Definition at line 61 of file jFEXSmallRJetAlgo.h.

◆ m_jFEXalgoSearchWindowSeedET_displaced

int LVL1::jFEXSmallRJetAlgo::m_jFEXalgoSearchWindowSeedET_displaced[5][5] = {{0}}
private

Definition at line 62 of file jFEXSmallRJetAlgo.h.

◆ m_jFEXalgoTowerID

int LVL1::jFEXSmallRJetAlgo::m_jFEXalgoTowerID[7][7] = {{0}}
private

Definition at line 59 of file jFEXSmallRJetAlgo.h.

◆ m_jFEXalgoTowerID_displaced

int LVL1::jFEXSmallRJetAlgo::m_jFEXalgoTowerID_displaced[7][7] = {{0}}
private

Definition at line 60 of file jFEXSmallRJetAlgo.h.

◆ m_jTowerContainer

SG::ReadHandle<jTowerContainer> LVL1::jFEXSmallRJetAlgo::m_jTowerContainer
private

Definition at line 53 of file jFEXSmallRJetAlgo.h.

◆ m_jTowerContainerKey

SG::ReadHandleKey<LVL1::jTowerContainer> LVL1::jFEXSmallRJetAlgo::m_jTowerContainerKey {this, "MyjTowers", "jTowerContainer", "Input container for jTowers"}
private

Definition at line 52 of file jFEXSmallRJetAlgo.h.

◆ m_map_Etvalues

std::unordered_map<int,std::vector<int> > LVL1::jFEXSmallRJetAlgo::m_map_Etvalues
private

Definition at line 64 of file jFEXSmallRJetAlgo.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
LVL1::jFEXSmallRJetAlgo::m_JetSaturation
bool m_JetSaturation
Definition: jFEXSmallRJetAlgo.h:57
LVL1::jFEXSmallRJetAlgo::m_jTowerContainer
SG::ReadHandle< jTowerContainer > m_jTowerContainer
Definition: jFEXSmallRJetAlgo.h:53
LVL1::jFEXSmallRJetAlgo::m_jFEXalgoSearchWindowSeedET
int m_jFEXalgoSearchWindowSeedET[5][5]
Definition: jFEXSmallRJetAlgo.h:61
test_pyathena.eta
eta
Definition: test_pyathena.py:10
LVL1::jFEXSmallRJetAlgo::m_jTowerContainerKey
SG::ReadHandleKey< LVL1::jTowerContainer > m_jTowerContainerKey
Definition: jFEXSmallRJetAlgo.h:52
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
LVL1::jFEXSmallRJetAlgo::getSmallClusterET
virtual unsigned int getSmallClusterET() const override
Definition: jFEXSmallRJetAlgo.cxx:153
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
LVL1::jFEXSmallRJetAlgo::m_jFEXalgoTowerID
int m_jFEXalgoTowerID[7][7]
Definition: jFEXSmallRJetAlgo.h:59
LVL1::jFEXSmallRJetAlgo::getTTowerSat
bool getTTowerSat(unsigned int TTID)
Definition: jFEXSmallRJetAlgo.cxx:199
LVL1::jFEXSmallRJetAlgo::getTTowerET
virtual unsigned int getTTowerET(unsigned int TTID) const override
Definition: jFEXSmallRJetAlgo.cxx:70
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
LVL1::jFEXSmallRJetAlgo::m_jFEXalgoSearchWindowSeedET_displaced
int m_jFEXalgoSearchWindowSeedET_displaced[5][5]
Definition: jFEXSmallRJetAlgo.h:62
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
LVL1::jTower::getTowerSat
bool getTowerSat() const
Definition: jTower.h:65
LVL1::jFEXSmallRJetAlgo::CalculateLM
bool CalculateLM(int mymatrix[5][5])
Definition: jFEXSmallRJetAlgo.cxx:107
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
LVL1::jFEXSmallRJetAlgo::m_jFEXalgoTowerID_displaced
int m_jFEXalgoTowerID_displaced[7][7]
Definition: jFEXSmallRJetAlgo.h:60
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
LVL1::jFEXSmallRJetAlgo::calcSaturation
void calcSaturation()
Definition: jFEXSmallRJetAlgo.cxx:167
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
a
TList * a
Definition: liststreamerinfos.cxx:10
h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
LVL1::jTower
The jTower class is an interface object for jFEX trigger algorithms The purposes are twofold:
Definition: jTower.h:40
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LVL1::jFEXSmallRJetAlgo::m_map_Etvalues
std::unordered_map< int, std::vector< int > > m_map_Etvalues
Definition: jFEXSmallRJetAlgo.h:64
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528