ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
LVL1::gFexTower2SCellDecorator Class Reference

#include <gFexTower2SCellDecorator.h>

Inheritance diagram for LVL1::gFexTower2SCellDecorator:
Collaboration diagram for LVL1::gFexTower2SCellDecorator:

Public Member Functions

 gFexTower2SCellDecorator (const std::string &name, ISvcLocator *svc)
 
virtual StatusCode initialize () override
 Function initialising the algorithm. More...
 
virtual StatusCode execute (const EventContext &) const override
 Function executing the algorithm. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode 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
 

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 ReadSCfromFile (const std::string &)
 
StatusCode ReadTilefromFile (const std::string &)
 
bool isBadSCellID (const std::string &) const
 
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< CaloCellContainerm_SCellKey {this, "SCell", "SCell", "SCell container"}
 
SG::ReadHandleKey< xAOD::TriggerTowerContainerm_triggerTowerKey {this, "xODTriggerTowers", "xAODTriggerTowers", "xAODTriggerTowers container"}
 
const std::string m_ReadKey_name = "L1_gFexDataTowers"
 
SG::ReadHandleKey< xAOD::gFexTowerContainerm_gTowersReadKey {this,"gTowersReadKey" ,"L1_gFexDataTowers", "Read gFex EDM Trigger Tower container"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gSCellEtdecorKey { this, "gSCellEtdecorKey" , "L1_gFexDataTowers.SCellEt" , "SCell Et information of the gTower"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gSCellEtadecorKey { this, "gSCellEtadecorKey" , "L1_gFexDataTowers.SCellEta" , "SCell Eta information of the gTower"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gSCellPhidecorKey { this, "gSCellPhidecorKey" , "L1_gFexDataTowers.SCellPhi" , "SCell Phi information of the gTower"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gSCellIDdecorKey { this, "gSCellIDdecorKey" , "L1_gFexDataTowers.SCellID" , "SCell IDs information of the gTower"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gSCellSampledecorKey { this, "gSCellSampledecorKey", "L1_gFexDataTowers.SCellSample" , "SCell Samples information of the gTower"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gtowerEtMeVdecorKey { this, "gtowerEtMeVdecorKey" , "L1_gFexDataTowers.gtowerEtMeV" , "gFex Tower Et information in MeV"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gTowerEtdecorKey { this, "gTowerEtdecorKey" , "L1_gFexDataTowers.SCSumEncoded" , "SCell sum Et. ENCODED!"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gTileEtMeVdecorKey { this, "gTileEtMeVdecorKey" , "L1_gFexDataTowers.TileEt" , "Tile Tower Et information in Encoded from jepET"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gTileEtadecorKey { this, "gTileEtadecorKey" , "L1_gFexDataTowers.TileEta" , "Tile Tower Eta information in MeV"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gTilePhidecorKey { this, "gTilePhidecorKey" , "L1_gFexDataTowers.TilePhi" , "Tile Tower Phi information in MeV"}
 
SG::WriteDecorHandleKey< xAOD::gFexTowerContainerm_gTileIDdecorKey { this, "gTileIDdecorKey" , "L1_gFexDataTowers.TileID" , "Tile Tower ID information"}
 
Gaudi::Property< std::string > m_gFEX2Scellmapping {this, "gFEX2SCmapping" , "L1CaloFEXByteStream/gFEX_maps/2023_02_23/gfexSuperCellMap.txt" , "Text file to convert from simulation ID to SuperCell Identifier"}
 
Gaudi::Property< std::string > m_gFEX2Tilemapping {this, "gFEX2Tilemapping", "L1CaloFEXByteStream/gFEX_maps/2023_02_23/gfexTileMap.txt", "Text file to convert from simulation ID to Tile Identifier"}
 
std::unordered_map< uint32_t, std::vector< uint64_t > > m_map_TTower2SCells
 
std::unordered_map< uint32_t, std::vector< uint32_t > > m_map_TTower2Tile
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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 24 of file gFexTower2SCellDecorator.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ gFexTower2SCellDecorator()

LVL1::gFexTower2SCellDecorator::gFexTower2SCellDecorator ( const std::string &  name,
ISvcLocator *  svc 
)

Definition at line 29 of file gFexTower2SCellDecorator.cxx.

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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; }

◆ execute()

StatusCode LVL1::gFexTower2SCellDecorator::execute ( const EventContext &  ctx) const
overridevirtual

Function executing the algorithm.

Definition at line 56 of file gFexTower2SCellDecorator.cxx.

56  {
57 
58  //Reading the Scell container
59  SG::ReadHandle<CaloCellContainer> ScellContainer(m_SCellKey, ctx);
60  if(!ScellContainer.isValid()) {
61  ATH_MSG_FATAL("Could not retrieve collection " << ScellContainer.key() );
62  return StatusCode::FAILURE;
63  }
64 
65  // Reading the TriggerTower container
67  if(!triggerTowerContainer.isValid()) {
68  ATH_MSG_FATAL("Could not retrieve collection " << triggerTowerContainer.key() );
69  return StatusCode::FAILURE;
70  }
71 
72  //Reading the gTower container
74  if(!gTowerContainer.isValid()) {
75  ATH_MSG_FATAL("Could not retrieve collection " << gTowerContainer.key() );
76  return StatusCode::FAILURE;
77  }
78 
79  if(ScellContainer->empty() || triggerTowerContainer->empty() || gTowerContainer->empty() ){
80  ATH_MSG_WARNING("Nothing to decorate here, at least one container is empty. ScellContainer.size="<<ScellContainer->size() << " or gTowerContainer.size=" << gTowerContainer->size() << " or triggerTowerContainer.size=" << triggerTowerContainer->size() );
81  return StatusCode::SUCCESS;
82  }
83 
84  // building Scell ID pointers
85  std::unordered_map< uint64_t, const CaloCell*> map_ScellID2ptr;
86 
87  for(const CaloCell* scell : *ScellContainer){
88  const uint64_t ID = scell->ID().get_compact();
89  map_ScellID2ptr[ID] = scell;
90  }
91 
92  // building Tile ID pointers
93  std::unordered_map< uint32_t, const xAOD::TriggerTower*> map_TileID2ptr;
94 
95  for(const xAOD::TriggerTower* tower : *triggerTowerContainer){
96 
97  // keeping just
98  if(std::abs(tower->eta())>1.5 || tower->sampling()!=1) continue;
99  map_TileID2ptr[tower->coolId()]=tower;
100  }
101 
102  //Setup Decorator Handlers
114 
115  //looping over the gTowers to decorate them
116  for(const xAOD::gFexTower* gTower : *gTowerContainer){
117 
118  uint32_t gFexID = gTower->gFEXtowerID();
119  uint16_t gFexEt = gTower->towerEt();
120  uint16_t scSumEtEncoded = 0;
121 
122  std::vector<float> scEt;
123  std::vector<float> scEta;
124  std::vector<float> scPhi;
125  std::vector<int> scID;
126  std::vector<int> scSample;
127 
128  std::vector<int> TileEt;
129  std::vector<float> TileEta;
130  std::vector<float> TilePhi;
131  std::vector<int> TileID;
132 
133  //check that the gFEX Tower ID exists in the map
134  auto it_TTower2SCells = (m_map_TTower2SCells).find(gFexID);
135  if(it_TTower2SCells == (m_map_TTower2SCells).end()) {
136  ATH_MSG_ERROR("ID: "<<gFexID<< " not found on map m_map_TTower2SCells");
137  return StatusCode::FAILURE;
138  }
139 
140  for (auto const& SCellID : it_TTower2SCells->second ) {
141 
142  //check that the SCell Identifier exists in the map
143  auto it_ScellID2ptr = map_ScellID2ptr.find(SCellID);
144  if(it_ScellID2ptr == map_ScellID2ptr.end()) {
145  ATH_MSG_WARNING("Scell ID: 0x"<<std::hex<<(SCellID >> 32)<<std::dec<< " not found on map map_ScellID2ptr");
146 
147  scEt.push_back(-9999);
148  scEta.push_back(-99);
149  scPhi.push_back(-99);
150  // bit shifting to get only a 32 bit number
151  scID.push_back( SCellID >> 32 );
152  scSample.push_back(-99);
153 
154  }
155 
156  else{
157 
158  const CaloCell* myCell = it_ScellID2ptr->second;
159  float et = myCell->et();
160  const CaloSampling::CaloSample sample = (myCell)->caloDDE()->getSampling();
161 
162 
163  // The following is to check if any SuperCells from data are permanently masked, and if so the masking is applied
164  int prov = (myCell)->provenance();
165  int SCprov = prov&0xFFF;
166  bool isMasked = (SCprov&0x80)==0x80;//prov looks like 0000 0000 1000 0000 if the cell is masked
167  if (isMasked) et=0;
168 
169  scEt.push_back(et);
170  scEta.push_back(myCell->eta());
171  scPhi.push_back(myCell->phi());
172  // bit shifting to get only a 32 bit number
173  scID.push_back( SCellID >> 32 );
174  scSample.push_back(sample);
175 
176  }
177  }
178 
179  //emulated encoded Et
180  float tmpSCellEt = 0;
181  for(const auto& tmpet : scEt){
182  tmpSCellEt += tmpet;
183  }
184 
185  scSumEtEncoded = gFEXCompression::compress( tmpSCellEt );
186 
187  // Decorating the tower with the corresponding information
188  gTowerSCellEt (*gTower) = scEt;
189  gTowerSCellEta (*gTower) = scEta;
190  gTowerSCellPhi (*gTower) = scPhi;
191  gTowerSCellID (*gTower) = scID;
192  gTowerSCellSample (*gTower) = scSample;
193  gTowerEtMeV (*gTower) = gFexEt * 200;
194  gTowerSCEtEncoded (*gTower) = scSumEtEncoded;
195 
196 
197  auto it_TTower2Tile = (m_map_TTower2Tile).find(gFexID);
198  //check that the gFEX Tower ID exists in the map
199  if(it_TTower2Tile == (m_map_TTower2Tile).end()) {
200  continue;
201  }
202 
203  for (auto const& TileTowerID : it_TTower2Tile->second ) {
204 
205  //check that the Tile Identifier exists in the map
206  auto it_TileID2ptr = map_TileID2ptr.find(TileTowerID);
207  if(it_TileID2ptr == map_TileID2ptr.end()) {
208 
209  ATH_MSG_WARNING("Tile ID: "<<TileID<<std::dec<< " not found on map map_TileID2ptr");
210 
211  TileEt.push_back(-9999);
212  TileEta.push_back(-99);
213  TilePhi.push_back(-99);
214  TileID.push_back(-99);
215  }
216  else{
217 
218  const xAOD::TriggerTower* tileTower = it_TileID2ptr->second;
219  TileEt.push_back(tileTower->jepET()*1000); //1000 is the Tile energy resolution
220  TileEta.push_back(tileTower->eta());
221  float phi = tileTower->phi() < M_PI ? tileTower->phi() : tileTower->phi()-2*M_PI;
222  TilePhi.push_back(phi);
223  TileID.push_back(TileTowerID);
224 
225  }
226 
227 
228  }
229 
230 
231  // Decorating the tower with the corresponding information
232  gTowerTileEt (*gTower) = TileEt;
233  gTowerTileID (*gTower) = TileID;
234  gTowerTileEta (*gTower) = TileEta;
235  gTowerTilePhi (*gTower) = TilePhi;
236  }
237 
238  // Return gracefully
239  return StatusCode::SUCCESS;
240 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ initialize()

StatusCode LVL1::gFexTower2SCellDecorator::initialize ( )
overridevirtual

Function initialising the algorithm.

Definition at line 31 of file gFexTower2SCellDecorator.cxx.

31  {
32  ATH_MSG_INFO( "L1CaloFEXTools/gFexTower2SCellDecorator::initialize()");
34  ATH_CHECK( m_triggerTowerKey.initialize() );
35  ATH_CHECK( m_gTowersReadKey.initialize() );
36  ATH_CHECK( m_gSCellEtdecorKey.initialize() );
37  ATH_CHECK( m_gSCellEtadecorKey.initialize() );
38  ATH_CHECK( m_gSCellPhidecorKey.initialize() );
39  ATH_CHECK( m_gSCellIDdecorKey.initialize() );
40  ATH_CHECK( m_gSCellSampledecorKey.initialize() );
41  ATH_CHECK( m_gtowerEtMeVdecorKey.initialize() );
42  ATH_CHECK( m_gTowerEtdecorKey.initialize() );
43  ATH_CHECK( m_gTileEtMeVdecorKey.initialize() );
44  ATH_CHECK( m_gTileEtadecorKey.initialize() );
45  ATH_CHECK( m_gTilePhidecorKey.initialize() );
46  ATH_CHECK( m_gTileIDdecorKey.initialize() );
47 
48 
49  //Reading from CVMFS Trigger Tower and their corresponding SCell ID
52 
53  return StatusCode::SUCCESS;
54 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isBadSCellID()

bool LVL1::gFexTower2SCellDecorator::isBadSCellID ( const std::string &  ID) const
private

Definition at line 303 of file gFexTower2SCellDecorator.cxx.

303  {
304 
305  // does it start with "0x"?, if so then is a GOOD SCell ID!
306  if (ID.find("0x") == std::string::npos) {
307  ATH_MSG_ERROR("Invalid SuperCell ID " << ID << ". Expecting hexadecimal number on the mapping file");
308  return true;
309  }
310  return false;
311 }

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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.

◆ ReadSCfromFile()

StatusCode LVL1::gFexTower2SCellDecorator::ReadSCfromFile ( const std::string &  fileName)
private

Definition at line 243 of file gFexTower2SCellDecorator.cxx.

243  {
244 
245  std::string myline;
246  //open file with ifstream
247  std::ifstream myfile(fileName);
248 
249  if ( !myfile.is_open() ){
250  ATH_MSG_FATAL("Could not open file:" << fileName);
251  return StatusCode::FAILURE;
252  }
253 
254  //loading the mapping information into an unordered_map <Fex Tower ID, vector of SCell IDs>
255  while ( std::getline (myfile, myline) ) {
256  std::vector<uint64_t> SCellvector;
257  SCellvector.clear();
258 
259  //removing the header of the file (it is just information!)
260  myline.erase(myline.begin(), std::find_if(myline.begin(), myline.end(), [](int ch) {
261  return !std::isspace(ch);
262  }));
263  if(myline[0] == '#') continue;
264 
265  //Splitting myline in different substrings
266  std::stringstream oneSCellID(myline);
267 
268  //reading elements
269  std::string substr = "";
270  int TTID = 0;
271  int elem = 0;
272 
273  while(std::getline(oneSCellID, substr, ' '))
274  {
275  ++elem;
276  if(elem == 1){
277  TTID = std::stoi(substr);
278  }
279  else{
280  //Check if it looks like a SCell Identifier
281  if(isBadSCellID(substr)){
282  return StatusCode::FAILURE;
283  }
284 
285  // converts hex number to unsigned long long int
286  uint64_t scid_uint64 = std::strtoull(substr.c_str(), nullptr, 0);
287 
288  //empty slots are filled with 0xffffffffffffffff
289  if(scid_uint64 == 0xffffffffffffffff) continue;
290 
291  SCellvector.push_back(scid_uint64);
292  }
293  }
294 
295  m_map_TTower2SCells[TTID] = SCellvector;
296 
297  }
298  myfile.close();
299 
300  return StatusCode::SUCCESS;
301 }

◆ ReadTilefromFile()

StatusCode LVL1::gFexTower2SCellDecorator::ReadTilefromFile ( const std::string &  fileName)
private

Definition at line 314 of file gFexTower2SCellDecorator.cxx.

314  {
315 
316  std::string myline;
317 
318  //openning file with ifstream
319  std::ifstream myfile(fileName);
320 
321  if ( !myfile.is_open() ){
322  ATH_MSG_FATAL("Could not open file:" << fileName);
323  return StatusCode::FAILURE;
324  }
325 
326  //loading the mapping information into an unordered_map <Fex Tower ID, vector of SCell IDs>
327  while ( std::getline (myfile, myline) ) {
328 
329  std::vector<uint32_t> Tilevector;
330  Tilevector.clear();
331  //removing the header of the file
332  myline.erase(myline.begin(), std::find_if(myline.begin(), myline.end(), [](int ch) {
333  return !std::isspace(ch);
334  }));
335  if(myline[0] == '#') continue;
336 
337  //Splitting myline in different substrings
338  std::stringstream oneTileID(myline);
339 
340  //reading elements
341  std::string substr = "";
342  int gTowerID = 0;
343  int elem = 0;
344 
345  while(std::getline(oneTileID, substr, ' ')){
346  ++elem;
347  if(elem == 1){
348  gTowerID = std::stoi(substr);
349  }
350  else{
351  uint32_t tileid_uint32 = std::strtoul(substr.c_str(), nullptr, 0);
352  Tilevector.push_back(tileid_uint32);
353  }
354  }
355 
356  m_map_TTower2Tile[gTowerID] = Tilevector;
357 
358  }
359  myfile.close();
360 
361  return StatusCode::SUCCESS;
362 }

◆ 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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_gFEX2Scellmapping

Gaudi::Property<std::string> LVL1::gFexTower2SCellDecorator::m_gFEX2Scellmapping {this, "gFEX2SCmapping" , "L1CaloFEXByteStream/gFEX_maps/2023_02_23/gfexSuperCellMap.txt" , "Text file to convert from simulation ID to SuperCell Identifier"}
private

Definition at line 61 of file gFexTower2SCellDecorator.h.

◆ m_gFEX2Tilemapping

Gaudi::Property<std::string> LVL1::gFexTower2SCellDecorator::m_gFEX2Tilemapping {this, "gFEX2Tilemapping", "L1CaloFEXByteStream/gFEX_maps/2023_02_23/gfexTileMap.txt", "Text file to convert from simulation ID to Tile Identifier"}
private

Definition at line 62 of file gFexTower2SCellDecorator.h.

◆ m_gSCellEtadecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gSCellEtadecorKey { this, "gSCellEtadecorKey" , "L1_gFexDataTowers.SCellEta" , "SCell Eta information of the gTower"}
private

Definition at line 48 of file gFexTower2SCellDecorator.h.

◆ m_gSCellEtdecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gSCellEtdecorKey { this, "gSCellEtdecorKey" , "L1_gFexDataTowers.SCellEt" , "SCell Et information of the gTower"}
private

Definition at line 47 of file gFexTower2SCellDecorator.h.

◆ m_gSCellIDdecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gSCellIDdecorKey { this, "gSCellIDdecorKey" , "L1_gFexDataTowers.SCellID" , "SCell IDs information of the gTower"}
private

Definition at line 50 of file gFexTower2SCellDecorator.h.

◆ m_gSCellPhidecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gSCellPhidecorKey { this, "gSCellPhidecorKey" , "L1_gFexDataTowers.SCellPhi" , "SCell Phi information of the gTower"}
private

Definition at line 49 of file gFexTower2SCellDecorator.h.

◆ m_gSCellSampledecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gSCellSampledecorKey { this, "gSCellSampledecorKey", "L1_gFexDataTowers.SCellSample" , "SCell Samples information of the gTower"}
private

Definition at line 51 of file gFexTower2SCellDecorator.h.

◆ m_gTileEtadecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gTileEtadecorKey { this, "gTileEtadecorKey" , "L1_gFexDataTowers.TileEta" , "Tile Tower Eta information in MeV"}
private

Definition at line 55 of file gFexTower2SCellDecorator.h.

◆ m_gTileEtMeVdecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gTileEtMeVdecorKey { this, "gTileEtMeVdecorKey" , "L1_gFexDataTowers.TileEt" , "Tile Tower Et information in Encoded from jepET"}
private

Definition at line 54 of file gFexTower2SCellDecorator.h.

◆ m_gTileIDdecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gTileIDdecorKey { this, "gTileIDdecorKey" , "L1_gFexDataTowers.TileID" , "Tile Tower ID information"}
private

Definition at line 57 of file gFexTower2SCellDecorator.h.

◆ m_gTilePhidecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gTilePhidecorKey { this, "gTilePhidecorKey" , "L1_gFexDataTowers.TilePhi" , "Tile Tower Phi information in MeV"}
private

Definition at line 56 of file gFexTower2SCellDecorator.h.

◆ m_gTowerEtdecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gTowerEtdecorKey { this, "gTowerEtdecorKey" , "L1_gFexDataTowers.SCSumEncoded" , "SCell sum Et. ENCODED!"}
private

Definition at line 53 of file gFexTower2SCellDecorator.h.

◆ m_gtowerEtMeVdecorKey

SG::WriteDecorHandleKey<xAOD::gFexTowerContainer> LVL1::gFexTower2SCellDecorator::m_gtowerEtMeVdecorKey { this, "gtowerEtMeVdecorKey" , "L1_gFexDataTowers.gtowerEtMeV" , "gFex Tower Et information in MeV"}
private

Definition at line 52 of file gFexTower2SCellDecorator.h.

◆ m_gTowersReadKey

SG::ReadHandleKey< xAOD::gFexTowerContainer > LVL1::gFexTower2SCellDecorator::m_gTowersReadKey {this,"gTowersReadKey" ,"L1_gFexDataTowers", "Read gFex EDM Trigger Tower container"}
private

Definition at line 44 of file gFexTower2SCellDecorator.h.

◆ m_map_TTower2SCells

std::unordered_map< uint32_t, std::vector<uint64_t> > LVL1::gFexTower2SCellDecorator::m_map_TTower2SCells
private

Definition at line 68 of file gFexTower2SCellDecorator.h.

◆ m_map_TTower2Tile

std::unordered_map< uint32_t, std::vector<uint32_t> > LVL1::gFexTower2SCellDecorator::m_map_TTower2Tile
private

Definition at line 69 of file gFexTower2SCellDecorator.h.

◆ m_ReadKey_name

const std::string LVL1::gFexTower2SCellDecorator::m_ReadKey_name = "L1_gFexDataTowers"
private

Definition at line 41 of file gFexTower2SCellDecorator.h.

◆ m_SCellKey

SG::ReadHandleKey<CaloCellContainer> LVL1::gFexTower2SCellDecorator::m_SCellKey {this, "SCell", "SCell", "SCell container"}
private

Definition at line 36 of file gFexTower2SCellDecorator.h.

◆ m_triggerTowerKey

SG::ReadHandleKey<xAOD::TriggerTowerContainer> LVL1::gFexTower2SCellDecorator::m_triggerTowerKey {this, "xODTriggerTowers", "xAODTriggerTowers", "xAODTriggerTowers container"}
private

Definition at line 39 of file gFexTower2SCellDecorator.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
PathResolver::find_calib_file
static std::string find_calib_file(const std::string &logical_file_name)
Definition: PathResolver.cxx:384
LVL1::gFexTower2SCellDecorator::ReadSCfromFile
StatusCode ReadSCfromFile(const std::string &)
Definition: gFexTower2SCellDecorator.cxx:243
et
Extra patterns decribing particle interation process.
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
CaloCell::phi
virtual double phi() const override final
get phi (through CaloDetDescrElement)
Definition: CaloCell.h:359
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ID
std::vector< Identifier > ID
Definition: CalibHitIDCheck.h:24
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
xAOD::TriggerTower_v2::phi
virtual double phi() const final
The azimuthal angle ( ) of the particle.
Definition: TriggerTower_v2.cxx:222
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LVL1::gFEXCompression::compress
static unsigned int compress(float Energy)
Compress data.
Definition: gFEXCompression.cxx:20
LVL1::gFexTower2SCellDecorator::m_gSCellIDdecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gSCellIDdecorKey
Definition: gFexTower2SCellDecorator.h:50
LVL1::gFexTower2SCellDecorator::m_gFEX2Tilemapping
Gaudi::Property< std::string > m_gFEX2Tilemapping
Definition: gFexTower2SCellDecorator.h:62
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
M_PI
#define M_PI
Definition: ActiveFraction.h:11
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
LVL1::gFexTower2SCellDecorator::m_gTileIDdecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gTileIDdecorKey
Definition: gFexTower2SCellDecorator.h:57
LVL1::gFexTower2SCellDecorator::m_gSCellEtdecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gSCellEtdecorKey
Definition: gFexTower2SCellDecorator.h:47
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
LVL1::gFexTower2SCellDecorator::m_gTowersReadKey
SG::ReadHandleKey< xAOD::gFexTowerContainer > m_gTowersReadKey
Definition: gFexTower2SCellDecorator.h:44
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
LVL1::gFexTower2SCellDecorator::m_gSCellPhidecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gSCellPhidecorKey
Definition: gFexTower2SCellDecorator.h:49
LVL1::gFexTower2SCellDecorator::m_gtowerEtMeVdecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gtowerEtMeVdecorKey
Definition: gFexTower2SCellDecorator.h:52
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
FortranAlgorithmOptions.fileName
fileName
Definition: FortranAlgorithmOptions.py:13
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:116
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
LVL1::gFexTower2SCellDecorator::m_gTileEtMeVdecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gTileEtMeVdecorKey
Definition: gFexTower2SCellDecorator.h:54
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
LVL1::gFexTower2SCellDecorator::m_gTowerEtdecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gTowerEtdecorKey
Definition: gFexTower2SCellDecorator.h:53
xAOD::TriggerTower_v2
Description of TriggerTower_v2.
Definition: TriggerTower_v2.h:49
xAOD::TriggerTower_v2::eta
virtual double eta() const final
The pseudorapidity ( ) of the particle.
Definition: TriggerTower_v2.cxx:210
CaloCell::et
virtual double et() const override final
get et
Definition: CaloCell.h:407
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
xAOD::gFexTower_v1
Class describing input data of a LVL1 eFEX.
Definition: gFexTower_v1.h:22
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
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
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
LVL1::gFexTower2SCellDecorator::m_gTileEtadecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gTileEtadecorKey
Definition: gFexTower2SCellDecorator.h:55
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
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::gFexTower2SCellDecorator::isBadSCellID
bool isBadSCellID(const std::string &) const
Definition: gFexTower2SCellDecorator.cxx:303
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
LVL1::gFexTower2SCellDecorator::m_gSCellSampledecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gSCellSampledecorKey
Definition: gFexTower2SCellDecorator.h:51
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LVL1::gFexTower2SCellDecorator::m_map_TTower2Tile
std::unordered_map< uint32_t, std::vector< uint32_t > > m_map_TTower2Tile
Definition: gFexTower2SCellDecorator.h:69
LVL1::gFexTower2SCellDecorator::m_gSCellEtadecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gSCellEtadecorKey
Definition: gFexTower2SCellDecorator.h:48
LVL1::gFexTower2SCellDecorator::ReadTilefromFile
StatusCode ReadTilefromFile(const std::string &)
Definition: gFexTower2SCellDecorator.cxx:314
LVL1::gFexTower2SCellDecorator::m_triggerTowerKey
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_triggerTowerKey
Definition: gFexTower2SCellDecorator.h:39
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
LVL1::gFexTower2SCellDecorator::m_map_TTower2SCells
std::unordered_map< uint32_t, std::vector< uint64_t > > m_map_TTower2SCells
Definition: gFexTower2SCellDecorator.h:68
LVL1::gFexTower2SCellDecorator::m_gTilePhidecorKey
SG::WriteDecorHandleKey< xAOD::gFexTowerContainer > m_gTilePhidecorKey
Definition: gFexTower2SCellDecorator.h:56
LVL1::gFexTower2SCellDecorator::m_gFEX2Scellmapping
Gaudi::Property< std::string > m_gFEX2Scellmapping
Definition: gFexTower2SCellDecorator.h:61
xAOD::TriggerTower_v2::jepET
uint8_t jepET() const
get jepET from peak of lut_jep
Definition: TriggerTower_v2.cxx:186
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::gFexTower2SCellDecorator::m_SCellKey
SG::ReadHandleKey< CaloCellContainer > m_SCellKey
Definition: gFexTower2SCellDecorator.h:36
CaloCell::eta
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Definition: CaloCell.h:366
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >