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 (const std::unordered_map< int, std::vector< int > > &et_map) override
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &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 > > &) const
 
int getTTowerET (unsigned int TTID) const
 
bool getTTowerSat (unsigned int TTID)
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &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 25 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 20 of file jFEXtauAlgo.cxx.

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

◆ ~jFEXtauAlgo()

LVL1::jFEXtauAlgo::~jFEXtauAlgo ( )
virtual

Destructor.

Definition at line 25 of file jFEXtauAlgo.cxx.

25  {
26 }

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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, V, H > &  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, V, H > &  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, V, H > &  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, V, H > &  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 174 of file jFEXtauAlgo.cxx.

174  {
175  return m_ClusterEt;
176 }

◆ getFirstEtRing()

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

Implements LVL1::IjFEXtauAlgo.

Definition at line 191 of file jFEXtauAlgo.cxx.

191  {
192  return m_TauIsolation;
193 }

◆ getTauSat()

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

Implements LVL1::IjFEXtauAlgo.

Definition at line 195 of file jFEXtauAlgo.cxx.

195  {
196  return m_TauSaturation;
197 }

◆ getTTowerET()

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

Definition at line 161 of file jFEXtauAlgo.cxx.

161  {
162  if(TTID == 0) {
163  return 0;
164  }
165 
166  auto itr = m_map_Etvalues.find(TTID);
167  if( itr == m_map_Etvalues.end()) {
168  return 0;
169  }
170  return (itr->second).at(0);
171 }

◆ getTTowerSat()

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

Definition at line 151 of file jFEXtauAlgo.cxx.

151  {
152  if(TTID == 0) {
153  return false;
154  }
155 
156  const LVL1::jTower * tmpTower = m_jTowerContainer->findTower(TTID);
157  return tmpTower->getTowerSat();
158 }

◆ 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 37 of file IjFEXtauAlgo.h.

38 {
39  return IID_IjFEXtauAlgo;
40 }

◆ isSeedLocalMaxima()

bool LVL1::jFEXtauAlgo::isSeedLocalMaxima ( )
overridevirtual

Implements LVL1::IjFEXtauAlgo.

Definition at line 65 of file jFEXtauAlgo.cxx.

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

◆ isSeedLocalMaxima_fwd()

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

Implements LVL1::IjFEXtauAlgo.

Definition at line 96 of file jFEXtauAlgo.cxx.

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

◆ 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 
) const
private

Definition at line 204 of file jFEXtauAlgo.cxx.

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

◆ 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 39 of file jFEXtauAlgo.cxx.

39  {
40 
42  if(! m_jTowerContainer.isValid()) {
43  ATH_MSG_ERROR("Could not retrieve jTowerContainer " << m_jTowerContainerKey.key());
44  return StatusCode::FAILURE;
45  }
46 
47  return StatusCode::SUCCESS;
48 }

◆ setFirstEtRing() [1/2]

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

Definition at line 180 of file jFEXtauAlgo.cxx.

180  {
181 
182  ATH_MSG_DEBUG("Calculating the jFEXTau ISO");
183 
184  m_TauIsolation=0;
185  for(int i=0; i<36; i++) {
186  m_TauIsolation += getTTowerET(First_ETring[i]);
187  m_TauSaturation = m_TauSaturation || getTTowerSat(First_ETring[i]);
188  }
189 }

◆ setFirstEtRing() [2/2]

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

◆ setFPGAEnergy()

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

Implements LVL1::IjFEXtauAlgo.

Definition at line 199 of file jFEXtauAlgo.cxx.

199  {
200  m_map_Etvalues=et_map;
201 }

◆ setup()

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

Implements LVL1::IjFEXtauAlgo.

Definition at line 50 of file jFEXtauAlgo.cxx.

50  {
51 
52  ATH_MSG_DEBUG(m_color.BLUE<<"---------------- jFEXtauAlgo::setup ----------------"<<m_color.END);
53 
54  m_TauSaturation = false;
55  for(int phi=0; phi<3; phi++) {
56  for (int eta=0; eta<3; eta++) {
57  m_TTwindow[phi][eta] = seed[2-phi][eta]; // We need to flip the matrix for an increasing phi order: [0, 2Phi]
59  }
60  }
61 
62 }

◆ 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 68 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 59 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 55 of file jFEXtauAlgo.h.

◆ m_jTowerContainer

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

Definition at line 53 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 52 of file jFEXtauAlgo.h.

◆ m_map_Etvalues

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

Definition at line 72 of file jFEXtauAlgo.h.

◆ m_SearchGeMap

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

Definition at line 61 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 57 of file jFEXtauAlgo.h.

◆ m_SearchGMap

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

Definition at line 60 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 56 of file jFEXtauAlgo.h.

◆ m_TauIsolation

int LVL1::jFEXtauAlgo::m_TauIsolation = 0
private

Definition at line 69 of file jFEXtauAlgo.h.

◆ m_TauSaturation

bool LVL1::jFEXtauAlgo::m_TauSaturation = false
private

Definition at line 70 of file jFEXtauAlgo.h.

◆ m_TTwindow

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

Definition at line 67 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::getTTowerET
int getTTowerET(unsigned int TTID) const
Definition: jFEXtauAlgo.cxx:161
LVL1::jFEXtauAlgo::m_SearchGStr
Gaudi::Property< std::string > m_SearchGStr
Definition: jFEXtauAlgo.h:56
PathResolver::find_calib_file
static std::string find_calib_file(const std::string &logical_file_name)
Definition: PathResolver.cxx:235
LVL1::jFEXtauAlgo::m_color
struct LVL1::jFEXtauAlgo::color m_color
LVL1::jFEXtauAlgo::m_map_Etvalues
std::unordered_map< int, std::vector< int > > m_map_Etvalues
Definition: jFEXtauAlgo.h:72
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
LVL1::jFEXtauAlgo::color::END
std::string END
Definition: jFEXtauAlgo.h:81
LVL1::jFEXtauAlgo::m_IsoRingMap
std::unordered_map< unsigned int, std::vector< unsigned int > > m_IsoRingMap
Definition: jFEXtauAlgo.h:59
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:69
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:60
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
LVL1::jFEXtauAlgo::getTTowerSat
bool getTTowerSat(unsigned int TTID)
Definition: jFEXtauAlgo.cxx:151
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
LVL1::jTower::getTowerSat
bool getTowerSat() const
Definition: jTower.h:61
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
LVL1::jFEXtauAlgo::color::BLUE
std::string BLUE
Definition: jFEXtauAlgo.h:79
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
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
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:68
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:53
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:57
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::m_SearchGeMap
std::unordered_map< unsigned int, std::vector< unsigned int > > m_SearchGeMap
Definition: jFEXtauAlgo.h:61
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
LVL1::jFEXtauAlgo::m_TauSaturation
bool m_TauSaturation
Definition: jFEXtauAlgo.h:70
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
LVL1::jFEXtauAlgo::ReadfromFile
StatusCode ReadfromFile(const std::string &, std::unordered_map< unsigned int, std::vector< unsigned int > > &) const
Definition: jFEXtauAlgo.cxx:204
LVL1::jFEXtauAlgo::m_IsoRingStr
Gaudi::Property< std::string > m_IsoRingStr
Definition: jFEXtauAlgo.h:55
a
TList * a
Definition: liststreamerinfos.cxx:10
h
LVL1::jFEXtauAlgo::m_TTwindow
int m_TTwindow[3][3]
Definition: jFEXtauAlgo.h:67
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
LVL1::jTower
The jTower class is an interface object for jFEX trigger algorithms The purposes are twofold:
Definition: jTower.h:36
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
LVL1::jFEXtauAlgo::m_jTowerContainerKey
SG::ReadHandleKey< LVL1::jTowerContainer > m_jTowerContainerKey
Definition: jFEXtauAlgo.h:52
jobOptions.fileName
fileName
Definition: jobOptions.SuperChic_ALP2.py:39
fitman.k
k
Definition: fitman.py:528