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]
 
Gaudi::Property< bool > m_dumpSCells
 

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 16 of file eFEXtauAlgoBase.cxx.

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

◆ ~eFEXtauAlgoBase()

LVL1::eFEXtauAlgoBase::~eFEXtauAlgoBase ( )
virtual

Destructor.

Definition at line 23 of file eFEXtauAlgoBase.cxx.

23 {}

Member Function Documentation

◆ buildLayers()

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

Definition at line 38 of file eFEXtauAlgoBase.cxx.

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

◆ 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 121 of file eFEXtauAlgoBase.cxx.

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

◆ getRealRCore()

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

Implements LVL1::IeFEXtauAlgo.

Definition at line 97 of file eFEXtauAlgoBase.cxx.

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

◆ getRealRHad()

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

Implements LVL1::IeFEXtauAlgo.

Definition at line 109 of file eFEXtauAlgoBase.cxx.

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

◆ getRHad()

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

Implements LVL1::IeFEXtauAlgo.

Definition at line 88 of file eFEXtauAlgoBase.cxx.

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

◆ 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 77 of file eFEXtauAlgoBase.cxx.

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

◆ 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 131 of file eFEXtauAlgoBase.cxx.

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

◆ 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 25 of file eFEXtauAlgoBase.cxx.

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

◆ setSCellEncoder()

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

Definition at line 170 of file eFEXtauAlgoBase.cxx.

170  {
171  if (!m_dumpSCells) {
172  tob->setSuperCellEncoder(nullptr);
173  return;
174  }
175 
176  std::unique_ptr<SCellEncoder> scellEncoder = std::make_unique<SCellEncoder>();
177  scellEncoder->setSuperCells(m_em0cells, m_em1cells, m_em2cells, m_em3cells,
178  m_hadcells);
179  tob->setSuperCellEncoder(std::move(scellEncoder));
180 }

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

Gaudi::Property<bool> LVL1::eFEXtauAlgoBase::m_dumpSCells
protected
Initial value:
{this, "DumpSuperCells", false,
"Should decorate TOBs with supercells"}

Definition at line 86 of file eFEXtauAlgoBase.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
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
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
LVL1::eFEXtauAlgoBase::m_dumpSCells
Gaudi::Property< bool > m_dumpSCells
Definition: eFEXtauAlgoBase.h:86
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
LVL1::eFEXtauAlgoBase::m_em0cells
unsigned int m_em0cells[3][3]
Definition: eFEXtauAlgoBase.h:79
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:92
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::eFEXtauTOB::setSuperCellEncoder
void setSuperCellEncoder(std::unique_ptr< SCellEncoder > scell_encoder)
Definition: eFEXtauTOB.cxx:121
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:192
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:121
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:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
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:88
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