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::eFEXTOBEtTool Class Reference

The eFEXTOBEtTool class is a utility for recalculating the jet discriminant ("isolation") quantities that are not read out as part of the (x)TOB data Its purpose is: More...

#include <eFEXTOBEtTool.h>

Inheritance diagram for LVL1::eFEXTOBEtTool:
Collaboration diagram for LVL1::eFEXTOBEtTool:

Public Member Functions

 eFEXTOBEtTool (const std::string &type, const std::string &name, const IInterface *parent)
 Constructors. More...
 
virtual StatusCode initialize () override
 standard Athena-Algorithm method More...
 
virtual ~eFEXTOBEtTool ()
 Destructor. More...
 
virtual StatusCode getegSums (float etaTOB, float phiTOB, int seed, int UnD, std::vector< unsigned int > &ClusterCellETs, std::vector< unsigned int > &RetaSums, std::vector< unsigned int > &RhadSums, std::vector< unsigned int > &WstotSums) override
 Tool to calculate eEM discriminant sums. More...
 
virtual StatusCode gettauSums (float etaTOB, float phiTOB, int seed, int UnD, std::vector< unsigned int > &RcoreSums, std::vector< unsigned int > &RemSums) override
 Tool to calculate eTaudiscriminant sums. More...
 
virtual unsigned int eTowerID (float eta, float phi) const override
 Tool to find eTower identifier from an eta, phi coordinate pair. More...
 
virtual void location (float etaTOB, float phiTOB, int &eFEX, int &FPGA, int &fpgaEta) override
 Tool to find eFEX and FPGA numbers and eta index of a TOB within the FPGA. More...
 
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

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

const float m_dphiTower = M_PI/32
 Internal data. More...
 
const float m_detaTower = 0.1
 
ToolHandle< IeFEXtauAlgom_eFEXtauAlgoTool
 
ToolHandle< IeFEXegAlgom_eFEXegAlgoTool
 
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 eFEXTOBEtTool class is a utility for recalculating the jet discriminant ("isolation") quantities that are not read out as part of the (x)TOB data Its purpose is:

Definition at line 36 of file eFEXTOBEtTool.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

◆ eFEXTOBEtTool()

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

Constructors.

Definition at line 20 of file eFEXTOBEtTool.cxx.

20  :
22 {
23  declareInterface<IeFEXTOBEtTool>(this);
24 }

◆ ~eFEXTOBEtTool()

LVL1::eFEXTOBEtTool::~eFEXTOBEtTool ( )
virtual

Destructor.

Definition at line 28 of file eFEXTOBEtTool.cxx.

29  {
30  }

Member Function Documentation

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

◆ eTowerID()

unsigned int LVL1::eFEXTOBEtTool::eTowerID ( float  eta,
float  phi 
) const
overridevirtual

Tool to find eTower identifier from an eta, phi coordinate pair.

Implements LVL1::IeFEXTOBEtTool.

Definition at line 132 of file eFEXTOBEtTool.cxx.

133 {
134  // Calculate ID by hand from coordinate
135  int posneg = (eta >= 0 ? 1 : -1);
136  int towereta = std::abs(eta)/0.1;
137  if (phi < 0) phi += 2*M_PI;
138  int towerphi = int(32*phi/M_PI);
139  unsigned int tower_id = towerphi + 64*towereta;
140 
141  if (towereta < 14) {
142  tower_id += (posneg > 0 ? 200000 : 100000);
143  }
144  else if (towereta == 14) {
145  tower_id += (posneg > 0 ? 400000 : 300000);
146  }
147  else {
148  tower_id += (posneg > 0 ? 600000 : 500000);
149  }
150 
151  return tower_id;
152 }

◆ 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

◆ getegSums()

StatusCode LVL1::eFEXTOBEtTool::getegSums ( float  etaTOB,
float  phiTOB,
int  seed,
int  UnD,
std::vector< unsigned int > &  ClusterCellETs,
std::vector< unsigned int > &  RetaSums,
std::vector< unsigned int > &  RhadSums,
std::vector< unsigned int > &  WstotSums 
)
overridevirtual

Tool to calculate eEM discriminant sums.

Form grid of 3x3 tower IDs for this window

Which eFEX & FPGA is responsible for this window?

Implements LVL1::IeFEXTOBEtTool.

Definition at line 44 of file eFEXTOBEtTool.cxx.

49 {
50 
52  int tobtable[3][3];
53 
54  for (int iphi = -1; iphi <= 1; ++iphi) {
55  float phiTable = phiTOB + iphi*m_dphiTower;
56  if (phiTable > M_PI) phiTable -= 2*M_PI;
57  if (phiTable < -M_PI) phiTable += 2*M_PI;
58 
59  for (int ieta = -1; ieta <= 1; ++ieta) {
60  float etaTable = etaTOB + ieta*m_detaTower;
61 
62  // Set the tower ID if within acceptance, else 0
63  if (std::abs(etaTable)<2.5) tobtable[iphi+1][ieta+1] = eTowerID(etaTable, phiTable);
64  else tobtable[iphi+1][ieta+1] = 0;
65 
66  } // eta loop
67  } // phi loop
68 
70  int eFEX, FPGA, fpgaEta;
71  location(etaTOB,phiTOB, eFEX, FPGA, fpgaEta);
72 
73  // Set up e/g algorithm for this location
74  ATH_CHECK( m_eFEXegAlgoTool->safetyTest() );
75  m_eFEXegAlgoTool->setup(tobtable, eFEX, FPGA, fpgaEta);
76 
77  // Get ETs of cells making up the ET clusters
78  m_eFEXegAlgoTool->getClusterCells(ClusterCellETs);
79 
80  // Get sums from algorithm
81  // This will override the seed calculated by the algorithm with the one supplied here
82  m_eFEXegAlgoTool->getSums(seed, UnD, RetaSums, RhadSums, WstotSums);
83 
84  // and we're done
85  return StatusCode::SUCCESS;
86 
87 }

◆ gettauSums()

StatusCode LVL1::eFEXTOBEtTool::gettauSums ( float  etaTOB,
float  phiTOB,
int  seed,
int  UnD,
std::vector< unsigned int > &  RcoreSums,
std::vector< unsigned int > &  RemSums 
)
overridevirtual

Tool to calculate eTaudiscriminant sums.

Form grid of 3x3 tower IDs for this window

Which eFEX & FPGA is responsible for this window?

Implements LVL1::IeFEXTOBEtTool.

Definition at line 90 of file eFEXTOBEtTool.cxx.

93 {
94 
96  int tobtable[3][3];
97 
98  for (int iphi = -1; iphi <= 1; ++iphi) {
99  float phiTable = phiTOB + iphi*m_dphiTower;
100  if (phiTable > M_PI) phiTable -= 2*M_PI;
101  if (phiTable < -M_PI) phiTable += 2*M_PI;
102 
103  for (int ieta = -1; ieta <= 1; ++ieta) {
104  float etaTable = etaTOB + ieta*m_detaTower;
105 
106  // Set the tower ID if within acceptance, else 0
107  if (std::abs(etaTable)<2.5) tobtable[iphi+1][ieta+1] = eTowerID(etaTable, phiTable);
108  else tobtable[iphi+1][ieta+1] = 0;
109 
110  } // eta loop
111  } // phi loop
112 
114  int eFEX, FPGA, fpgaEta;
115  location(etaTOB,phiTOB, eFEX, FPGA, fpgaEta);
116 
117  // Set up e/g algorithm for this location
118  ATH_CHECK( m_eFEXtauAlgoTool->safetyTest() );
119  m_eFEXtauAlgoTool->setup(tobtable, eFEX, FPGA, fpgaEta);
120 
121  // Get sums from algorithm
122  // This will override the seed calculated by the algorithm with the one supplied here
123  m_eFEXtauAlgoTool->getSums(seed, UnD, RcoreSums, RemSums);
124 
125  // and we're done
126  return StatusCode::SUCCESS;
127 
128 }

◆ initialize()

StatusCode LVL1::eFEXTOBEtTool::initialize ( )
overridevirtual

standard Athena-Algorithm method

Definition at line 34 of file eFEXTOBEtTool.cxx.

35 {
36 
37  ATH_CHECK( m_eFEXegAlgoTool.retrieve() );
38  ATH_CHECK( m_eFEXtauAlgoTool.retrieve() );
39 
40  return StatusCode::SUCCESS;
41 }

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

Definition at line 55 of file IeFEXTOBEtTool.h.

56  {
57  return IID_IeFEXTOBEtTool;
58  }

◆ location()

void LVL1::eFEXTOBEtTool::location ( float  etaTOB,
float  phiTOB,
int &  eFEX,
int &  FPGA,
int &  fpgaEta 
)
overridevirtual

Tool to find eFEX and FPGA numbers and eta index of a TOB within the FPGA.

Implements LVL1::IeFEXTOBEtTool.

Definition at line 156 of file eFEXTOBEtTool.cxx.

157 {
158  // indices of central tower within a 0->49, 0->63 eta,phi map
159  int ieta = (etaTOB + 2.5)/m_detaTower;
160  float phiShifted = phiTOB + 2*m_dphiTower; // eFEX boundary does not line up with phi = 0
161  int iphi = (phiShifted > 0 ? phiShifted/m_dphiTower : (phiShifted + 2*M_PI)/m_dphiTower );
162 
163  // Now we have global 0->N indices we can simply calculate which eFEX these come from
164  int eFEXPhi = iphi/8;
165  int eFEXeta = 0;
166  if (ieta > 16) eFEXeta = 1;
167  if (ieta > 32) eFEXeta = 2;
168 
169  // eFEX number in range 0 -> 23
170  eFEX = eFEXeta + 3*eFEXPhi;
171 
172  // Now which FPGA within the eFEX?
173  // This logic will give an index: 0 -> 16 for eFEX 0
174  // 1 -> 16 for eFEX 1
175  // 1 -> 17 for eFEX 2
176  // which puts FPGA boundaries at 4, 8, 12 in all cases
177  int eFEXIndex;
178  switch(eFEXeta) {
179  case 0: {
180  eFEXIndex = ieta;
181  break;
182  }
183  case 1: {
184  eFEXIndex = ieta -16;
185  break;
186  }
187  case 2: {
188  eFEXIndex = ieta -32;
189  break;
190  }
191  }
192 
193  // Finally we can calculate the FPGA number
194  if (eFEXIndex <= 4) FPGA = 0;
195  else if (eFEXIndex <= 8) FPGA = 1;
196  else if (eFEXIndex <= 12) FPGA = 2;
197  else FPGA = 3;
198 
199  // And eta index within the FPGA = 1-4 in most cases
200  // except for eFEX 0 FPGA 0 => 0-4 and eFEX 2 FPGA 3 => 1-5
201  etaIndex = eFEXIndex - 4*FPGA;
202 
203  // And return the results by reference
204  return;
205 }

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

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

const float LVL1::eFEXTOBEtTool::m_detaTower = 0.1
private

Definition at line 74 of file eFEXTOBEtTool.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_dphiTower

const float LVL1::eFEXTOBEtTool::m_dphiTower = M_PI/32
private

Internal data.

Definition at line 73 of file eFEXTOBEtTool.h.

◆ m_eFEXegAlgoTool

ToolHandle<IeFEXegAlgo> LVL1::eFEXTOBEtTool::m_eFEXegAlgoTool
private
Initial value:
{
this, "eFEXegAlgoTool", "LVL1::eFEXegAlgo",
"Tool that runs the eFEX e/gamma algorithm"}

Definition at line 79 of file eFEXTOBEtTool.h.

◆ m_eFEXtauAlgoTool

ToolHandle<IeFEXtauAlgo> LVL1::eFEXTOBEtTool::m_eFEXtauAlgoTool
private
Initial value:
{
this, "eFEXtauAlgoTool", "LVL1::eFEXtauAlgo",
"Tool that runs the eFEX tau algorithm"}

Definition at line 76 of file eFEXTOBEtTool.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_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::eFEXTOBEtTool::m_eFEXtauAlgoTool
ToolHandle< IeFEXtauAlgo > m_eFEXtauAlgoTool
Definition: eFEXTOBEtTool.h:76
LVL1::eFEXTOBEtTool::eTowerID
virtual unsigned int eTowerID(float eta, float phi) const override
Tool to find eTower identifier from an eta, phi coordinate pair.
Definition: eFEXTOBEtTool.cxx:132
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
M_PI
#define M_PI
Definition: ActiveFraction.h:11
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
LVL1::eFEXTOBEtTool::m_eFEXegAlgoTool
ToolHandle< IeFEXegAlgo > m_eFEXegAlgoTool
Definition: eFEXTOBEtTool.h:79
LVL1::eFEXTOBEtTool::m_dphiTower
const float m_dphiTower
Internal data.
Definition: eFEXTOBEtTool.h:73
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
LVL1::eFEXTOBEtTool::location
virtual void location(float etaTOB, float phiTOB, int &eFEX, int &FPGA, int &fpgaEta) override
Tool to find eFEX and FPGA numbers and eta index of a TOB within the FPGA.
Definition: eFEXTOBEtTool.cxx:156
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
LVL1::eFEXTOBEtTool::m_detaTower
const float m_detaTower
Definition: eFEXTOBEtTool.h:74
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:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
FEXReprocessingRun3.eFEX
eFEX
Definition: FEXReprocessingRun3.py:114
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LVL1::gFEX::FPGA
FPGA
Definition: GTowerHelpers.h:17
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