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

The eFEXtauBDTAlgo class calculates the tau BDT TOB variables. More...

#include <eFEXtauAlgoBase.h>

Inheritance diagram for LVL1::eFEXtauAlgoBase:
Collaboration diagram for LVL1::eFEXtauAlgoBase:

Public Member Functions

 eFEXtauAlgoBase (const std::string &type, const std::string &name, const IInterface *parent)
 Constructors. More...
 
virtual ~eFEXtauAlgoBase ()
 Destructor. More...
 
virtual StatusCode safetyTest () override
 
virtual void compute () override
 
virtual bool isCentralTowerSeed () const override
 
virtual bool isBDT () const override
 
virtual void setThresholds (const std::vector< unsigned int > &, const std::vector< unsigned int > &, unsigned int, unsigned int, unsigned int) override
 
virtual void getRCore (std::vector< unsigned int > &rCoreVec) const override
 
virtual unsigned int rCoreCore () const override
 
virtual unsigned int rCoreEnv () const override
 
virtual float getRealRCore () const override
 
virtual void getRHad (std::vector< unsigned int > &rHadVec) const override
 
virtual float getRealRHad () const override
 
virtual void getSums (unsigned int seed, bool UnD, std::vector< unsigned int > &RcoreSums, std::vector< unsigned int > &Remums) override
 
virtual unsigned int getBDTScore () const override
 
virtual unsigned int getBDTCondition () const override
 
virtual unsigned int getBDTHadFracCondition () const override
 
void setSCellEncoder (LVL1::eFEXtauTOB *tob) const
 
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
 
virtual void setup (int inputTable[3][3], int efex_id, int fpga_id, int central_eta)=0
 
virtual std::unique_ptr< eFEXtauTOBgetTauTOB () const =0
 
virtual unsigned int rHadCore () const =0
 
virtual unsigned int rHadEnv () const =0
 
virtual unsigned int getEt () const =0
 
virtual unsigned int getBitwiseEt () const =0
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void buildLayers (int efex_id, int fpga_id, int central_eta)
 
void setSCellPointers ()
 
void setSuperCells (eFEXtauTOB *tob, bool withSupercells)
 
virtual void setSupercellSeed ()
 
virtual void setUnDAndOffPhi ()
 
virtual bool getUnD () const override
 
virtual unsigned int getSeed () const override
 
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...
 

Protected Attributes

SG::ReadHandleKey< LVL1::eTowerContainerm_eTowerContainerKey
 
bool m_cellsSet = false
 
int m_eFexalgoTowerID [3][3]
 
unsigned int m_em0cells [3][3]
 
unsigned int m_em1cells [12][3]
 
unsigned int m_em2cells [12][3]
 
unsigned int m_em3cells [3][3]
 
unsigned int m_hadcells [3][3]
 
unsigned int m_twrcells [3][3]
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

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

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

The eFEXtauBDTAlgo class calculates the tau BDT TOB variables.

Definition at line 28 of file eFEXtauAlgoBase.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

◆ eFEXtauAlgoBase()

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

Constructors.

Definition at line 15 of file eFEXtauAlgoBase.cxx.

18  : AthAlgTool(type, name, parent) {
19  declareInterface<IeFEXtauAlgo>(this);
20 }

◆ ~eFEXtauAlgoBase()

LVL1::eFEXtauAlgoBase::~eFEXtauAlgoBase ( )
virtual

Destructor.

Definition at line 22 of file eFEXtauAlgoBase.cxx.

22 {}

Member Function Documentation

◆ buildLayers()

void LVL1::eFEXtauAlgoBase::buildLayers ( int  efex_id,
int  fpga_id,
int  central_eta 
)
protected

Definition at line 37 of file eFEXtauAlgoBase.cxx.

38  {
39 
41  m_eTowerContainerKey /*,ctx*/);
42 
43  for (unsigned int ieta = 0; ieta < 3; ieta++) {
44  for (unsigned int iphi = 0; iphi < 3; iphi++) {
45  if (((efex_id % 3 == 0) && (fpga_id == 0) && (central_eta == 0) &&
46  (ieta == 0)) ||
47  ((efex_id % 3 == 2) && (fpga_id == 3) && (central_eta == 5) &&
48  (ieta == 2))) {
49  m_twrcells[ieta][iphi] = 0;
50  m_em0cells[ieta][iphi] = 0;
51  m_em3cells[ieta][iphi] = 0;
52  m_hadcells[ieta][iphi] = 0;
53  for (unsigned int i = 0; i < 4; i++) {
54  m_em1cells[4 * ieta + i][iphi] = 0;
55  m_em2cells[4 * ieta + i][iphi] = 0;
56  }
57  } else {
58  const LVL1::eTower *tmpTower =
59  eTowerContainer->findTower(m_eFexalgoTowerID[iphi][ieta]);
60  m_twrcells[ieta][iphi] = tmpTower->getTotalET();
61  m_em0cells[ieta][iphi] = tmpTower->getLayerTotalET(0);
62  m_em3cells[ieta][iphi] = tmpTower->getLayerTotalET(3);
63  m_hadcells[ieta][iphi] = tmpTower->getLayerTotalET(4);
64  for (unsigned int i = 0; i < 4; i++) {
65  m_em1cells[4 * ieta + i][iphi] = tmpTower->getET(1, i);
66  m_em2cells[4 * ieta + i][iphi] = tmpTower->getET(2, i);
67  }
68  }
69  }
70  }
71  m_cellsSet = true;
72 }

◆ compute()

virtual void LVL1::eFEXtauAlgoBase::compute ( )
inlineoverridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauBDTAlgo.

Definition at line 40 of file eFEXtauAlgoBase.h.

40 {};

◆ 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

◆ getBDTCondition()

virtual unsigned int LVL1::eFEXtauAlgoBase::getBDTCondition ( ) const
inlineoverridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauBDTAlgo.

Definition at line 59 of file eFEXtauAlgoBase.h.

59 { return 0; };

◆ getBDTHadFracCondition()

virtual unsigned int LVL1::eFEXtauAlgoBase::getBDTHadFracCondition ( ) const
inlineoverridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauBDTAlgo.

Definition at line 60 of file eFEXtauAlgoBase.h.

60 { return 0; };

◆ getBDTScore()

virtual unsigned int LVL1::eFEXtauAlgoBase::getBDTScore ( ) const
inlineoverridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauBDTAlgo.

Definition at line 58 of file eFEXtauAlgoBase.h.

58 { return 0; }

◆ getBitwiseEt()

virtual unsigned int LVL1::IeFEXtauAlgo::getBitwiseEt ( ) const
pure virtualinherited

◆ getEt()

virtual unsigned int LVL1::IeFEXtauAlgo::getEt ( ) const
pure virtualinherited

◆ getRCore()

void LVL1::eFEXtauAlgoBase::getRCore ( std::vector< unsigned int > &  rCoreVec) const
overridevirtual

Implements LVL1::IeFEXtauAlgo.

Definition at line 120 of file eFEXtauAlgoBase.cxx.

121  {
122  unsigned int core = rCoreCore();
123  unsigned int env = rCoreEnv();
124 
125  rCoreVec.push_back(core);
126  rCoreVec.push_back(env);
127 }

◆ getRealRCore()

float LVL1::eFEXtauAlgoBase::getRealRCore ( ) const
overridevirtual

Implements LVL1::IeFEXtauAlgo.

Definition at line 96 of file eFEXtauAlgoBase.cxx.

96  {
97  unsigned int core = rCoreCore();
98  unsigned int env = rCoreEnv();
99 
100  unsigned int num = core;
101  unsigned int denom = core + env;
102 
103  float out = denom ? static_cast<float>(num) / static_cast<float>(denom) : 0;
104 
105  return out;
106 }

◆ getRealRHad()

float LVL1::eFEXtauAlgoBase::getRealRHad ( ) const
overridevirtual

Implements LVL1::IeFEXtauAlgo.

Definition at line 108 of file eFEXtauAlgoBase.cxx.

108  {
109  unsigned int core = rHadCore();
110  unsigned int env = rHadEnv();
111 
112  unsigned int num = core;
113  unsigned int denom = core + env;
114 
115  float out = denom ? static_cast<float>(num) / static_cast<float>(denom) : 0;
116 
117  return out;
118 }

◆ getRHad()

void LVL1::eFEXtauAlgoBase::getRHad ( std::vector< unsigned int > &  rHadVec) const
overridevirtual

Implements LVL1::IeFEXtauAlgo.

Definition at line 87 of file eFEXtauAlgoBase.cxx.

87  {
88  unsigned int core = rHadCore();
89  unsigned int env = rHadEnv();
90 
91  rHadVec.push_back(core);
92  rHadVec.push_back(env);
93 }

◆ getSeed()

virtual unsigned int LVL1::eFEXtauAlgoBase::getSeed ( ) const
inlineoverrideprotectedvirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauBDTAlgo, and LVL1::eFEXtauAlgo.

Definition at line 77 of file eFEXtauAlgoBase.h.

77 { return 0; }

◆ getSums()

void LVL1::eFEXtauAlgoBase::getSums ( unsigned int  seed,
bool  UnD,
std::vector< unsigned int > &  RcoreSums,
std::vector< unsigned int > &  Remums 
)
overridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauAlgo.

Definition at line 76 of file eFEXtauAlgoBase.cxx.

78  {
79  // Set seed parameters to supplied values
80 
81  // Now just call the 2 discriminant calculation methods
82  getRCore(RcoreSums);
83  getRHad(RemSums);
84 }

◆ getTauTOB()

virtual std::unique_ptr<eFEXtauTOB> LVL1::IeFEXtauAlgo::getTauTOB ( ) const
pure virtualinherited

◆ getUnD()

virtual bool LVL1::eFEXtauAlgoBase::getUnD ( ) const
inlineoverrideprotectedvirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauAlgo.

Definition at line 76 of file eFEXtauAlgoBase.h.

76 { return 0; }

◆ 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::IeFEXtauAlgo::interfaceID ( )
inlinestaticinherited

Definition at line 66 of file IeFEXtauAlgo.h.

67  {
68  return IID_IeFEXtauAlgo;
69  }

◆ isBDT()

virtual bool LVL1::eFEXtauAlgoBase::isBDT ( ) const
inlineoverridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauBDTAlgo.

Definition at line 42 of file eFEXtauAlgoBase.h.

42 { return false; }

◆ isCentralTowerSeed()

bool LVL1::eFEXtauAlgoBase::isCentralTowerSeed ( ) const
overridevirtual

Implements LVL1::IeFEXtauAlgo.

Definition at line 130 of file eFEXtauAlgoBase.cxx.

130  {
131  // Need layer cell ET arrays to be built
132  if (m_cellsSet == false) {
134  "Layers not built, cannot accurately determine if a seed tower.");
135  }
136 
137  bool out = true;
138 
139  // Get central tower ET
140  unsigned int centralET = m_twrcells[1][1];
141 
142  // Loop over all cells and check that the central tower is a local maximum
143  for (unsigned int beta = 0; beta < 3; beta++) {
144  for (unsigned int bphi = 0; bphi < 3; bphi++) {
145  // Don't need to compare central cell with itself
146  if ((beta == 1) && (bphi == 1)) {
147  continue;
148  }
149 
150  // Cells to the up and right must have strictly lesser ET
151  if (beta == 2 || (beta == 1 && bphi == 2)) {
152  if (centralET <= m_twrcells[beta][bphi]) {
153  out = false;
154  }
155  }
156  // Cells down and to the left must have lesser or equal ET. If strictly
157  // lesser would create zero TOB if two adjacent cells had equal energy
158  else if (beta == 0 || (beta == 1 && bphi == 0)) {
159  if (centralET < m_twrcells[beta][bphi]) {
160  out = false;
161  }
162  }
163  }
164  }
165 
166  return out;
167 }

◆ 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.

◆ rCoreCore()

virtual unsigned int LVL1::eFEXtauAlgoBase::rCoreCore ( ) const
inlineoverridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauAlgo.

Definition at line 50 of file eFEXtauAlgoBase.h.

50 { return 0; }

◆ rCoreEnv()

virtual unsigned int LVL1::eFEXtauAlgoBase::rCoreEnv ( ) const
inlineoverridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauAlgo.

Definition at line 51 of file eFEXtauAlgoBase.h.

51 { return 0; }

◆ 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  }

◆ rHadCore()

virtual unsigned int LVL1::IeFEXtauAlgo::rHadCore ( ) const
pure virtualinherited

◆ rHadEnv()

virtual unsigned int LVL1::IeFEXtauAlgo::rHadEnv ( ) const
pure virtualinherited

◆ safetyTest()

StatusCode LVL1::eFEXtauAlgoBase::safetyTest ( )
overridevirtual

Implements LVL1::IeFEXtauAlgo.

Definition at line 24 of file eFEXtauAlgoBase.cxx.

24  {
25 
27  m_eTowerContainerKey /*,ctx*/);
28  if (!eTowerContainer.isValid()) {
29  ATH_MSG_FATAL("Could not retrieve eTowerContainer "
31  return StatusCode::FAILURE;
32  }
33  return StatusCode::SUCCESS;
34 }

◆ setSCellEncoder()

void LVL1::eFEXtauAlgoBase::setSCellEncoder ( LVL1::eFEXtauTOB tob) const

◆ setSCellPointers()

void LVL1::eFEXtauAlgoBase::setSCellPointers ( )
protected

◆ setSuperCells()

void LVL1::eFEXtauAlgoBase::setSuperCells ( eFEXtauTOB tob,
bool  withSupercells 
)
protected

◆ setSupercellSeed()

virtual void LVL1::eFEXtauAlgoBase::setSupercellSeed ( )
inlineprotectedvirtual

Reimplemented in LVL1::eFEXtauAlgo.

Definition at line 73 of file eFEXtauAlgoBase.h.

73 {}

◆ setThresholds()

virtual void LVL1::eFEXtauAlgoBase::setThresholds ( const std::vector< unsigned int > &  ,
const std::vector< unsigned int > &  ,
unsigned int  ,
unsigned int  ,
unsigned int   
)
inlineoverridevirtual

Implements LVL1::IeFEXtauAlgo.

Reimplemented in LVL1::eFEXtauBDTAlgo.

Definition at line 44 of file eFEXtauAlgoBase.h.

48  {};

◆ setUnDAndOffPhi()

virtual void LVL1::eFEXtauAlgoBase::setUnDAndOffPhi ( )
inlineprotectedvirtual

Reimplemented in LVL1::eFEXtauAlgo.

Definition at line 74 of file eFEXtauAlgoBase.h.

74 {}

◆ setup()

virtual void LVL1::IeFEXtauAlgo::setup ( int  inputTable[3][3],
int  efex_id,
int  fpga_id,
int  central_eta 
)
pure virtualinherited

◆ 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_cellsSet

bool LVL1::eFEXtauAlgoBase::m_cellsSet = false
protected

Definition at line 66 of file eFEXtauAlgoBase.h.

◆ 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_eFexalgoTowerID

int LVL1::eFEXtauAlgoBase::m_eFexalgoTowerID[3][3]
protected

Definition at line 68 of file eFEXtauAlgoBase.h.

◆ m_em0cells

unsigned int LVL1::eFEXtauAlgoBase::m_em0cells[3][3]
protected

Definition at line 79 of file eFEXtauAlgoBase.h.

◆ m_em1cells

unsigned int LVL1::eFEXtauAlgoBase::m_em1cells[12][3]
protected

Definition at line 80 of file eFEXtauAlgoBase.h.

◆ m_em2cells

unsigned int LVL1::eFEXtauAlgoBase::m_em2cells[12][3]
protected

Definition at line 81 of file eFEXtauAlgoBase.h.

◆ m_em3cells

unsigned int LVL1::eFEXtauAlgoBase::m_em3cells[3][3]
protected

Definition at line 82 of file eFEXtauAlgoBase.h.

◆ m_eTowerContainerKey

SG::ReadHandleKey<LVL1::eTowerContainer> LVL1::eFEXtauAlgoBase::m_eTowerContainerKey
protected
Initial value:
{
this, "MyETowers", "eTowerContainer", "Input container for eTowers"}

Definition at line 64 of file eFEXtauAlgoBase.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_hadcells

unsigned int LVL1::eFEXtauAlgoBase::m_hadcells[3][3]
protected

Definition at line 83 of file eFEXtauAlgoBase.h.

◆ m_twrcells

unsigned int LVL1::eFEXtauAlgoBase::m_twrcells[3][3]
protected

Definition at line 84 of file eFEXtauAlgoBase.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:
eTowerContainer
Container class for eTower.
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
LVL1::eTower::getTotalET
int getTotalET() const
Get ET sum of all cells in the eTower in MeV.
Definition: eTower.cxx:194
LVL1::eTower
The eTower class is an interface object for eFEX trigger algorithms The purposes are twofold:
Definition: eTower.h:38
LVL1::eFEXtauAlgoBase::m_eTowerContainerKey
SG::ReadHandleKey< LVL1::eTowerContainer > m_eTowerContainerKey
Definition: eFEXtauAlgoBase.h:64
LVL1::eFEXtauAlgoBase::m_em3cells
unsigned int m_em3cells[3][3]
Definition: eFEXtauAlgoBase.h:82
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
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
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::IeFEXtauAlgo::rHadCore
virtual unsigned int rHadCore() const =0
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
LVL1::eFEXtauAlgoBase::m_em0cells
unsigned int m_em0cells[3][3]
Definition: eFEXtauAlgoBase.h:79
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::eFEXtauAlgoBase::m_hadcells
unsigned int m_hadcells[3][3]
Definition: eFEXtauAlgoBase.h:83
LVL1::eFEXtauAlgoBase::m_em2cells
unsigned int m_em2cells[12][3]
Definition: eFEXtauAlgoBase.h:81
lumiFormat.i
int i
Definition: lumiFormat.py:85
LVL1::eFEXtauAlgoBase::rCoreCore
virtual unsigned int rCoreCore() const override
Definition: eFEXtauAlgoBase.h:50
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
LVL1::eFEXtauAlgoBase::m_eFexalgoTowerID
int m_eFexalgoTowerID[3][3]
Definition: eFEXtauAlgoBase.h:68
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
LVL1::eTower::getET
int getET(unsigned int layer, int cell=0) const
Get ET of a specified cell in MeV.
Definition: eTower.cxx:172
LVL1::eFEXtauAlgoBase::m_twrcells
unsigned int m_twrcells[3][3]
Definition: eFEXtauAlgoBase.h:84
compute_lumi.denom
denom
Definition: compute_lumi.py:76
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
LVL1::eTower::getLayerTotalET
int getLayerTotalET(unsigned int layer) const
Get total ET sum of all cells in a given layer in MeV.
Definition: eTower.cxx:249
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
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LVL1::eFEXtauAlgoBase::m_em1cells
unsigned int m_em1cells[12][3]
Definition: eFEXtauAlgoBase.h:80
a
TList * a
Definition: liststreamerinfos.cxx:10
h
LVL1::eFEXtauAlgoBase::getRCore
virtual void getRCore(std::vector< unsigned int > &rCoreVec) const override
Definition: eFEXtauAlgoBase.cxx:120
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
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LVL1::eFEXtauAlgoBase::m_cellsSet
bool m_cellsSet
Definition: eFEXtauAlgoBase.h:66
LVL1::eFEXtauAlgoBase::rCoreEnv
virtual unsigned int rCoreEnv() const override
Definition: eFEXtauAlgoBase.h:51
LVL1::eFEXtauAlgoBase::getRHad
virtual void getRHad(std::vector< unsigned int > &rHadVec) const override
Definition: eFEXtauAlgoBase.cxx:87
MuonParameters::beta
@ beta
Definition: MuonParamDefs.h:144
python.DataFormatRates.env
env
Definition: DataFormatRates.py:32
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
LVL1::IeFEXtauAlgo::rHadEnv
virtual unsigned int rHadEnv() const =0
fitman.k
k
Definition: fitman.py:528