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

#include <jFEXtauAlgo.h>

Inheritance diagram for LVL1::jFEXtauAlgo:
Collaboration diagram for LVL1::jFEXtauAlgo:

Classes

struct  color
 

Public Member Functions

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

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

StatusCode ReadfromFile (const std::string &, std::unordered_map< unsigned int, std::vector< unsigned int > > &)
 
int getTTowerET (unsigned int TTID)
 
bool getTTowerSat (unsigned int TTID)
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

SG::ReadHandleKey< LVL1::jTowerContainerm_jTowerContainerKey {this, "MyjTowers", "jTowerContainer", "Input container for jTowers"}
 
SG::ReadHandle< jTowerContainerm_jTowerContainer
 
Gaudi::Property< std::string > m_IsoRingStr {this, "IsolationRingMap" , "Run3L1CaloSimulation/JetMaps/2023_02_10/jFEX_FWD_1stRing.dat" , "Contains Trigger tower for the isolation"}
 
Gaudi::Property< std::string > m_SearchGStr {this, "SearchGTauMap" , "Run3L1CaloSimulation/JetMaps/2023_02_10/jFEX_FWD_searchGTau.dat" , "Contains Trigger tower to find local max (greater than)"}
 
Gaudi::Property< std::string > m_SearchGeStr {this, "SearchGeTauMap" , "Run3L1CaloSimulation/JetMaps/2023_02_10/jFEX_FWD_searchGeTau.dat", "Contains Trigger tower to find local max (greater or equal than)"}
 
std::unordered_map< unsigned int, std::vector< unsigned int > > m_IsoRingMap
 
std::unordered_map< unsigned int, std::vector< unsigned int > > m_SearchGMap
 
std::unordered_map< unsigned int, std::vector< unsigned int > > m_SearchGeMap
 
int m_TTwindow [3][3] ={{0}}
 
int m_ClusterEt = 0
 
int m_TauIsolation = 0
 
bool m_TauSaturation = false
 
std::unordered_map< int, std::vector< int > > m_map_Etvalues
 
struct LVL1::jFEXtauAlgo::color m_color
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 29 of file jFEXtauAlgo.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

◆ jFEXtauAlgo()

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

Constructors.

Definition at line 28 of file jFEXtauAlgo.cxx.

28  : AthAlgTool(type, name, parent) {
29  declareInterface<IjFEXtauAlgo>(this);
30 }

◆ ~jFEXtauAlgo()

LVL1::jFEXtauAlgo::~jFEXtauAlgo ( )
virtual

Destructor.

Definition at line 33 of file jFEXtauAlgo.cxx.

33  {
34 }

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

◆ 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

◆ getClusterEt()

int LVL1::jFEXtauAlgo::getClusterEt ( ) const
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 182 of file jFEXtauAlgo.cxx.

182  {
183  return m_ClusterEt;
184 }

◆ getFirstEtRing()

int LVL1::jFEXtauAlgo::getFirstEtRing ( ) const
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 199 of file jFEXtauAlgo.cxx.

199  {
200  return m_TauIsolation;
201 }

◆ getTauSat()

bool LVL1::jFEXtauAlgo::getTauSat ( ) const
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 203 of file jFEXtauAlgo.cxx.

203  {
204  return m_TauSaturation;
205 }

◆ getTTowerET()

int LVL1::jFEXtauAlgo::getTTowerET ( unsigned int  TTID)
private

Definition at line 169 of file jFEXtauAlgo.cxx.

169  {
170  if(TTID == 0) {
171  return 0;
172  }
173 
174  auto itr = m_map_Etvalues.find(TTID);
175  if( itr == m_map_Etvalues.end()) {
176  return 0;
177  }
178  return (itr->second).at(0);
179 }

◆ getTTowerSat()

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

Definition at line 159 of file jFEXtauAlgo.cxx.

159  {
160  if(TTID == 0) {
161  return false;
162  }
163 
164  const LVL1::jTower * tmpTower = m_jTowerContainer->findTower(TTID);
165  return tmpTower->getTowerSat();
166 }

◆ initialize()

StatusCode LVL1::jFEXtauAlgo::initialize ( )
overridevirtual

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

Definition at line 38 of file IjFEXtauAlgo.h.

39 {
40  return IID_IjFEXtauAlgo;
41 }

◆ isSeedLocalMaxima()

bool LVL1::jFEXtauAlgo::isSeedLocalMaxima ( )
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 73 of file jFEXtauAlgo.cxx.

73  {
74 
75  m_ClusterEt = 0;
76  int central_seed = getTTowerET(m_TTwindow[1][1]);
77 
78  for (int iphi = 0; iphi < 3; iphi++) {
79  for (int ieta = 0; ieta < 3; ieta++) {
80 
81  int ttEt = getTTowerET(m_TTwindow[iphi][ieta]);
82  m_ClusterEt += ttEt;
83  //avoid comparing central seed to itself
84  if ((iphi == 1) && (ieta == 1)) {
85  continue;
86  }
87  else if( (iphi > ieta) || (iphi==0 && ieta==0) ) { //less than or equal to central
88  if(central_seed<ttEt) {
89  return false;
90  }
91  }
92  else if( (iphi < ieta) || (iphi == 2 && ieta == 2)) { //strictly less than central
93  if(central_seed<=ttEt) {
94  return false;
95  }
96  }
97  }
98  }
99 
100  ATH_MSG_DEBUG("Tau Local Maxima found. with ClusterET = "<<m_ClusterEt);
101  return true;
102 }

◆ isSeedLocalMaxima_fwd()

bool LVL1::jFEXtauAlgo::isSeedLocalMaxima_fwd ( unsigned int  TTID)
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 104 of file jFEXtauAlgo.cxx.

104  {
105 
106  m_TauSaturation = false;
107 
108  int centreEt = getTTowerET(TTID);
109  m_ClusterEt = centreEt;
111  //centreEt greater than ?
112  auto it_map = m_SearchGMap.find(TTID);
113  if(it_map == m_SearchGMap.end()) {
114  ATH_MSG_ERROR("Could not find TT" << TTID << " in the (greater than) file for Taus.");
115  }
116 
117  for(const auto& lTT : it_map->second){
118  int seachTTET = getTTowerET(lTT);
119  if(centreEt <= seachTTET ){
120  return false;
121  }
122  m_ClusterEt += seachTTET;
124  }
125 
126  //centreEt greater or equal than ?
127  it_map = m_SearchGeMap.find(TTID);
128  if(it_map == m_SearchGeMap.end()) {
129  ATH_MSG_ERROR("Could not find TT" << TTID << " in the (greater or equal than) file for Taus.");
130  }
131 
132  for(const auto& lTT : it_map->second){
133  int seachTTET = getTTowerET(lTT);
134  if(centreEt < seachTTET ){
135  return false;
136  }
137  m_ClusterEt += seachTTET;
139  }
140 
141  // If we never returned false above.. we have a local maxima!
142  //Calculating now all the Tau iso
143 
144  m_TauIsolation = 0;
145  it_map = m_IsoRingMap.find(TTID);
146  if(it_map == m_IsoRingMap.end()) {
147  ATH_MSG_ERROR("Could not find TT" << TTID << " in the isolation file for Taus.");
148  }
149 
150  for(const auto& lTT : it_map->second){
151  m_TauIsolation += getTTowerET(lTT);
153  }
154 
155  return true;
156 }

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

◆ ReadfromFile()

StatusCode LVL1::jFEXtauAlgo::ReadfromFile ( const std::string &  fileName,
std::unordered_map< unsigned int, std::vector< unsigned int > > &  fillingMap 
)
private

Definition at line 212 of file jFEXtauAlgo.cxx.

212  {
213 
214  std::string myline;
215 
216  //openning file with ifstream
217  std::ifstream myfile(fileName);
218 
219  if ( !myfile.is_open() ){
220  ATH_MSG_ERROR("Could not open file:" << fileName);
221  return StatusCode::FAILURE;
222  }
223 
224  //loading the mapping information
225  while ( std::getline (myfile, myline) ) {
226 
227  //removing the header of the file (it is just information!)
228  if(myline[0] == '#') continue;
229 
230  //Splitting myline in different substrings
231  std::stringstream oneLine(myline);
232 
233  //reading elements
234  std::vector<unsigned int> elements;
235  std::string element;
236  while(std::getline(oneLine, element, ' '))
237  {
238  elements.push_back(std::stoi(element));
239  }
240 
241  // We should have at least two elements! Central TT and (at least) itself
242  if(elements.size() < 1){
243  ATH_MSG_ERROR("Unexpected number of elemennts (<1 expected) in file: "<< fileName);
244  return StatusCode::FAILURE;
245  }
246 
247  //Central TiggerTower
248  unsigned int TTID = elements.at(0);
249 
250  // rest of TTs that need to be check
251  elements.erase(elements.begin());
252 
253  fillingMap[TTID] = elements;
254 
255  }
256  myfile.close();
257 
258  return StatusCode::SUCCESS;
259 }

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ safetyTest()

StatusCode LVL1::jFEXtauAlgo::safetyTest ( )
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 47 of file jFEXtauAlgo.cxx.

47  {
48 
50  if(! m_jTowerContainer.isValid()) {
51  ATH_MSG_ERROR("Could not retrieve jTowerContainer " << m_jTowerContainerKey.key());
52  return StatusCode::FAILURE;
53  }
54 
55  return StatusCode::SUCCESS;
56 }

◆ setFirstEtRing() [1/2]

void LVL1::jFEXtauAlgo::setFirstEtRing ( int  First_ETring[36])
overridevirtual

Definition at line 188 of file jFEXtauAlgo.cxx.

188  {
189 
190  ATH_MSG_DEBUG("Calculating the jFEXTau ISO");
191 
192  m_TauIsolation=0;
193  for(int i=0; i<36; i++) {
194  m_TauIsolation += getTTowerET(First_ETring[i]);
195  m_TauSaturation = m_TauSaturation || getTTowerSat(First_ETring[i]);
196  }
197 }

◆ setFirstEtRing() [2/2]

virtual void LVL1::IjFEXtauAlgo::setFirstEtRing ( int  First_ETring[])
pure virtualinherited

◆ setFPGAEnergy()

void LVL1::jFEXtauAlgo::setFPGAEnergy ( std::unordered_map< int, std::vector< int > >  et_map)
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 207 of file jFEXtauAlgo.cxx.

207  {
208  m_map_Etvalues=et_map;
209 }

◆ setup()

void LVL1::jFEXtauAlgo::setup ( int  seed[3][3])
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 58 of file jFEXtauAlgo.cxx.

58  {
59 
60  ATH_MSG_DEBUG(m_color.BLUE<<"---------------- jFEXtauAlgo::setup ----------------"<<m_color.END);
61 
62  m_TauSaturation = false;
63  for(int phi=0; phi<3; phi++) {
64  for (int eta=0; eta<3; eta++) {
65  m_TTwindow[phi][eta] = seed[2-phi][eta]; // We need to flip the matrix for an increasing phi order: [0, 2Phi]
66  m_TauSaturation = m_TauSaturation || getTTowerSat(seed[2-phi][eta]);
67  }
68  }
69 
70 }

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

int LVL1::jFEXtauAlgo::m_ClusterEt = 0
private

Definition at line 72 of file jFEXtauAlgo.h.

◆ m_color

struct LVL1::jFEXtauAlgo::color LVL1::jFEXtauAlgo::m_color
private

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_IsoRingMap

std::unordered_map<unsigned int, std::vector<unsigned int> > LVL1::jFEXtauAlgo::m_IsoRingMap
private

Definition at line 63 of file jFEXtauAlgo.h.

◆ m_IsoRingStr

Gaudi::Property<std::string> LVL1::jFEXtauAlgo::m_IsoRingStr {this, "IsolationRingMap" , "Run3L1CaloSimulation/JetMaps/2023_02_10/jFEX_FWD_1stRing.dat" , "Contains Trigger tower for the isolation"}
private

Definition at line 59 of file jFEXtauAlgo.h.

◆ m_jTowerContainer

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

Definition at line 57 of file jFEXtauAlgo.h.

◆ m_jTowerContainerKey

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

Definition at line 56 of file jFEXtauAlgo.h.

◆ m_map_Etvalues

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

Definition at line 76 of file jFEXtauAlgo.h.

◆ m_SearchGeMap

std::unordered_map<unsigned int, std::vector<unsigned int> > LVL1::jFEXtauAlgo::m_SearchGeMap
private

Definition at line 65 of file jFEXtauAlgo.h.

◆ m_SearchGeStr

Gaudi::Property<std::string> LVL1::jFEXtauAlgo::m_SearchGeStr {this, "SearchGeTauMap" , "Run3L1CaloSimulation/JetMaps/2023_02_10/jFEX_FWD_searchGeTau.dat", "Contains Trigger tower to find local max (greater or equal than)"}
private

Definition at line 61 of file jFEXtauAlgo.h.

◆ m_SearchGMap

std::unordered_map<unsigned int, std::vector<unsigned int> > LVL1::jFEXtauAlgo::m_SearchGMap
private

Definition at line 64 of file jFEXtauAlgo.h.

◆ m_SearchGStr

Gaudi::Property<std::string> LVL1::jFEXtauAlgo::m_SearchGStr {this, "SearchGTauMap" , "Run3L1CaloSimulation/JetMaps/2023_02_10/jFEX_FWD_searchGTau.dat" , "Contains Trigger tower to find local max (greater than)"}
private

Definition at line 60 of file jFEXtauAlgo.h.

◆ m_TauIsolation

int LVL1::jFEXtauAlgo::m_TauIsolation = 0
private

Definition at line 73 of file jFEXtauAlgo.h.

◆ m_TauSaturation

bool LVL1::jFEXtauAlgo::m_TauSaturation = false
private

Definition at line 74 of file jFEXtauAlgo.h.

◆ m_TTwindow

int LVL1::jFEXtauAlgo::m_TTwindow[3][3] ={{0}}
private

Definition at line 71 of file jFEXtauAlgo.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::jFEXtauAlgo::m_SearchGStr
Gaudi::Property< std::string > m_SearchGStr
Definition: jFEXtauAlgo.h:60
PathResolver::find_calib_file
static std::string find_calib_file(const std::string &logical_file_name)
Definition: PathResolver.cxx:384
LVL1::jFEXtauAlgo::m_color
struct LVL1::jFEXtauAlgo::color m_color
test_pyathena.eta
eta
Definition: test_pyathena.py:10
LVL1::jFEXtauAlgo::m_map_Etvalues
std::unordered_map< int, std::vector< int > > m_map_Etvalues
Definition: jFEXtauAlgo.h:76
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LVL1::jFEXtauAlgo::color::END
std::string END
Definition: jFEXtauAlgo.h:85
LVL1::jFEXtauAlgo::m_IsoRingMap
std::unordered_map< unsigned int, std::vector< unsigned int > > m_IsoRingMap
Definition: jFEXtauAlgo.h:63
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::jFEXtauAlgo::m_TauIsolation
int m_TauIsolation
Definition: jFEXtauAlgo.h:73
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::jFEXtauAlgo::m_SearchGMap
std::unordered_map< unsigned int, std::vector< unsigned int > > m_SearchGMap
Definition: jFEXtauAlgo.h:64
LVL1::jFEXtauAlgo::getTTowerSat
bool getTTowerSat(unsigned int TTID)
Definition: jFEXtauAlgo.cxx:159
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
LVL1::jTower::getTowerSat
bool getTowerSat() const
Definition: jTower.h:65
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
FortranAlgorithmOptions.fileName
fileName
Definition: FortranAlgorithmOptions.py:13
LVL1::jFEXtauAlgo::color::BLUE
std::string BLUE
Definition: jFEXtauAlgo.h:83
AthCommonDataStore
Definition: AthCommonDataStore.h:52
Generate_dsid_ranseed.seed
seed
Definition: Generate_dsid_ranseed.py:10
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:85
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
LVL1::jFEXtauAlgo::m_ClusterEt
int m_ClusterEt
Definition: jFEXtauAlgo.h:72
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
LVL1::jFEXtauAlgo::m_jTowerContainer
SG::ReadHandle< jTowerContainer > m_jTowerContainer
Definition: jFEXtauAlgo.h:57
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
LVL1::jFEXtauAlgo::m_SearchGeStr
Gaudi::Property< std::string > m_SearchGeStr
Definition: jFEXtauAlgo.h:61
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
LVL1::jFEXtauAlgo::ReadfromFile
StatusCode ReadfromFile(const std::string &, std::unordered_map< unsigned int, std::vector< unsigned int > > &)
Definition: jFEXtauAlgo.cxx:212
LVL1::jFEXtauAlgo::m_SearchGeMap
std::unordered_map< unsigned int, std::vector< unsigned int > > m_SearchGeMap
Definition: jFEXtauAlgo.h:65
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
LVL1::jFEXtauAlgo::m_TauSaturation
bool m_TauSaturation
Definition: jFEXtauAlgo.h:74
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LVL1::jFEXtauAlgo::m_IsoRingStr
Gaudi::Property< std::string > m_IsoRingStr
Definition: jFEXtauAlgo.h:59
a
TList * a
Definition: liststreamerinfos.cxx:10
h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1::jFEXtauAlgo::m_TTwindow
int m_TTwindow[3][3]
Definition: jFEXtauAlgo.h:71
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
LVL1::jTower
The jTower class is an interface object for jFEX trigger algorithms The purposes are twofold:
Definition: jTower.h:40
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LVL1::jFEXtauAlgo::m_jTowerContainerKey
SG::ReadHandleKey< LVL1::jTowerContainer > m_jTowerContainerKey
Definition: jFEXtauAlgo.h:56
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::jFEXtauAlgo::getTTowerET
int getTTowerET(unsigned int TTID)
Definition: jFEXtauAlgo.cxx:169
fitman.k
k
Definition: fitman.py:528