ATLAS Offline Software
Loading...
Searching...
No Matches
jFexEmulatedTowers.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5//***************************************************************************
6// jFexEmulatedTowers - description
7// -------------------
8// This reentrant algorithm is meant build jFEX Towers from LAr and Tile
9// Information about SCellContainer objetcs are in:
10// - https://gitlab.cern.ch/atlas/athena/-/blob/22.0/Calorimeter/CaloEvent/CaloEvent/CaloCell.h
11//
12// begin : 01 11 2022
13// email : sergi.rodriguez@cern.ch
14//***************************************************************************/
15
16
17#include "jFexEmulatedTowers.h"
21
22#include <iostream>
23#include <fstream>
24#include <sstream>
25#include <algorithm>
26#include <string>
27
28namespace LVL1 {
29
30jFexEmulatedTowers::jFexEmulatedTowers(const std::string& name, ISvcLocator* svc) : AthReentrantAlgorithm(name, svc){}
31
33
34 ATH_MSG_INFO( "Initializing L1CaloFEXAlgos/jFexEmulatedTowers algorithm with name: "<< name());
35 ATH_MSG_INFO( "Writting into SG key: "<< m_jTowersWriteKey);
36 ATH_MSG_INFO( "SCell masking: "<< m_apply_masking);
37 ATH_MSG_INFO( "Thinnig towers: "<< m_doThinning);
38
39 ATH_CHECK( m_SCellKey.initialize() );
40 ATH_CHECK( m_triggerTowerKey.initialize() );
41 ATH_CHECK( m_jTowersWriteKey.initialize() );
42
43 //Reading from CVMFS Fiber mapping
45
46 //Reading from CVMFS Trigger Tower and their corresponding SCell ID
49
50 // offline energy decoration setup
51 // SCell to Cell mapping
52 if (!m_CaloCellKey.empty()) {
53 ATH_CHECK( m_scellIdTool.retrieve() );
54 ATH_CHECK( detStore()->retrieve (m_caloCellIdHelper, "CaloCell_ID") );
55 }
56
57 // Calo cell container
59
60 // read Tile Tower decoration
62
63 // Readout path cell sum Et decoration
65
66 // tower energy decorations
69
70 // Check if ApplyTimingCut and ApplyTimingCutAll flags are both enabled
73 "ApplyTimingCut and ApplyTimingCutAll flags cannot both be enabled");
74 return StatusCode::FAILURE;
75 }
76
77
78 return StatusCode::SUCCESS;
79}
80
81StatusCode jFexEmulatedTowers::execute(const EventContext& ctx) const {
82
83 //Reading the Scell container
85 if(!ScellContainer.isValid()) {
86 ATH_MSG_ERROR("Could not retrieve collection " << ScellContainer.key() );
87 return StatusCode::FAILURE;
88 }
89
90 //Reading the TriggerTower container
92 if(!triggerTowerContainer.isValid()) {
93 ATH_MSG_ERROR("Could not retrieve collection " << triggerTowerContainer.key() );
94 return StatusCode::FAILURE;
95 }
96
97 // Reading the offline Calo cell container
98 const CaloCellContainer* caloCells = nullptr;
99 if (!m_CaloCellKey.empty()) {
100 SG::ReadHandle<CaloCellContainer> caloCellContainer(m_CaloCellKey, ctx);
101 if(!caloCellContainer.isValid()) {
102 ATH_MSG_ERROR("Could not retrieve collection " << caloCellContainer.key() );
103 return StatusCode::FAILURE;
104 }
105 caloCells = caloCellContainer.cptr();
106 }
107
108 //WriteHandle for jFEX EDMs
109 //---jTower EDM
111 ATH_CHECK(jTowersContainer.record(std::make_unique<xAOD::jFexTowerContainer>(), std::make_unique<xAOD::jFexTowerAuxContainer>()));
112 ATH_MSG_DEBUG("Recorded jFexEmulatedTower container with key " << jTowersContainer.key());
113
114 if(ScellContainer->empty() || triggerTowerContainer->empty() ){
115 ATH_MSG_WARNING("Cannot fill jTowers here, at least one container is empty. ScellContainer.size="<<ScellContainer->size() << " or triggerTowerContainer.size=" << triggerTowerContainer->size() );
116 return StatusCode::SUCCESS;
117 }
118
119 std::optional<SG::ReadDecorHandle<xAOD::TriggerTowerContainer, std::vector<float>>> cellEtByLayer_handle;
120 if (!m_CaloCellKey.empty()) {
121 cellEtByLayer_handle.emplace(m_readTileOfflineDecorKey, ctx);
122 }
123 std::optional<SG::WriteDecorHandle<xAOD::jFexTowerContainer, float>> jTowerCaloCellSumEt;
124 if (!m_caloCellSumETdecorKey.empty()) {
125 jTowerCaloCellSumEt.emplace(m_caloCellSumETdecorKey, ctx);
126 }
127 std::optional<SG::WriteDecorHandle<xAOD::jFexTowerContainer, int>> jTowerEtMeV;
128 if (!m_jtowerEtMeVdecorKey.empty()) {
129 jTowerEtMeV.emplace(m_jtowerEtMeVdecorKey , ctx);
130 }
131 std::optional<SG::WriteDecorHandle<xAOD::jFexTowerContainer, int>> jTowerEtTimingMeV;
132 if (!m_jtowerEtTimingMeVdecorKey.empty()) {
133 jTowerEtTimingMeV.emplace(m_jtowerEtTimingMeVdecorKey , ctx);
134 }
135
136 // building Scell ID pointers
137 std::unordered_map< uint64_t, const CaloCell*> map_ScellID2ptr;
138 map_ScellID2ptr.reserve(ScellContainer->size());
139
140 for(const CaloCell* scell : *ScellContainer){
141 const uint64_t ID = scell->ID().get_compact();
142 map_ScellID2ptr[ID] = scell;
143 }
144
145 // building Tile ID pointers
146 std::unordered_map< uint32_t, const xAOD::TriggerTower*> map_TileID2ptr;
147
148 for(const xAOD::TriggerTower* tower : *triggerTowerContainer){
149
150 // keeping just tile information
151 if(std::abs(tower->eta())>1.5 || tower->sampling()!=1) continue;
152
153 map_TileID2ptr[tower->coolId()]=tower;
154 }
155
156
157 for( const auto& [key, element] : m_Firm2Tower_map){
158
159 unsigned int jfex = (key >> 16) & 0xf;
160 unsigned int fpga = (key >> 12) & 0xf;
161 unsigned int channel = (key >> 4 ) & 0xff;
162 unsigned int tower = (key >> 0 ) & 0xf;
163
164 const auto [f_IDSimulation, eta, phi, f_source, f_iEta, f_iPhi] = element;
165
166 //elements that need to be casted
167 unsigned int IDSimulation = static_cast<int>(f_IDSimulation);
168 unsigned int source = static_cast<int>(f_source);
169 unsigned int iEta = static_cast<int>(f_iEta);
170 unsigned int iPhi = static_cast<int>(f_iPhi);
171
172 uint16_t Total_Et_encoded = 0;
173 uint16_t Total_Et_Timing_encoded = 0;
174 char jTower_sat = 0;
175
176 float caloCellSumET(0); // Readout Et for Tower
177 int Total_Et_decoded(0);
178 int Total_Et_Timing_decoded(0);
179 if( source != 1 ){
180
181 const std::unordered_map< uint32_t, std::vector<uint64_t> > * ptr_TTower2Cells;
182
183 //HAD layer for HEC, FCAL2 and FCAL3
184 if(source == 3 or source > 4){
185 ptr_TTower2Cells = &m_map_TTower2SCellsHAD;
186 }
187 else{
188 ptr_TTower2Cells = &m_map_TTower2SCellsEM;
189 }
190
191 //check that the jFEX Tower ID exists in the map
192 auto it_TTower2SCells = (*ptr_TTower2Cells).find(IDSimulation);
193 if(it_TTower2SCells == (*ptr_TTower2Cells).end()) {
194 ATH_MSG_ERROR("jFEX ID: "<<IDSimulation<< " not found on map m_map_TTower2SCellsEM/HAD");
195 return StatusCode::FAILURE;
196 }
197
198 int Total_Et = 0;
199 int Total_Timing_Et = 0;
200 float Total_Et_float = 0;
201 bool invalid = m_apply_masking&&m_isDATA; // the isDATA is because there is no concept of invalid supercell in MC (the provenance bit is actually used for BCID in MC), so can never have an invalid jTower.
202 bool masked = m_apply_masking;
203 for (auto const& SCellID : it_TTower2SCells->second ) {
204 //check that the SCell Identifier exists in the map
205 auto it_ScellID2ptr = map_ScellID2ptr.find(SCellID);
206 if(it_ScellID2ptr == map_ScellID2ptr.end()) {
207 if(m_isDATA) ATH_MSG_DEBUG("Scell ID: 0x"<<std::hex<< (SCellID >> 32) <<std::dec<< " not found in the CaloCell Container, skipping");
208 // this is equivalent to treat the scell as a masked input, since masking takes precedence over invalidity
209 continue;
210 }
211
212 const CaloCell* myCell = it_ScellID2ptr->second;
213 int val = std::round(myCell->energy()/(12.5*std::cosh(myCell->eta()))); // 12.5 is b.c. energy is in units of 12.5MeV per count
214 bool isMasked = m_apply_masking ? (myCell->provenance()&0x80) : false;
215 bool isInvalid = (m_apply_masking&&m_isDATA) ? (myCell->provenance()&0x40) : false;
216 bool isSaturated = (m_isDATA) ? myCell->quality() : false; // saturation algorithm not implemented in MC yet
217 bool passTiming = ( myCell->provenance() & 0x200 );
218
219 invalid &= isInvalid;
220 masked &= isMasked;
221 if (!isMasked) {
222 jTower_sat |= isSaturated;
223 }
224
225 if( isMasked ) {
226 //if masked then Et = 0
227 val = 0;
228 //countMasked++;
229 } else if( isInvalid ) {
230 val = 0;
231 }
232 // Apply timing cut to MC if the respective flags are set
233 if (!m_isDATA && m_applyTimingCut && !passTiming && source != 3) {
234 // Applying timing cut everywhere but HEC if m_applyTimingCut set
235 val = 0;
236 } else if (!m_isDATA && m_applyTimingCutAll && !passTiming) {
237 // Applying timing cut on all SCells if m_applyTimingCutAll set
238 val = 0;
239 }
240
241 Total_Et += val;
242 if(val!=0) Total_Et_float += myCell->et();
243
244 // tau timing cut
245 Total_Timing_Et += (passTiming) ? val : 0;
246
247 // Readout path energy sum
248 if ( !m_CaloCellKey.empty() ) {
249 const std::vector<Identifier> caloCellIds = m_scellIdTool->superCellToOfflineID(myCell->ID());
250 float caloCellEt(0.); // offline Et for the SCell
251 //use findCell function of CaloCellContainer, which takes an identifier hash
252 for(auto& caloCellId : caloCellIds) {
253 const CaloCell* caloCell = caloCells->findCell(m_caloCellIdHelper->calo_cell_hash(caloCellId));
254 if(!caloCell) { ATH_MSG_WARNING("Could not find cell"); continue; }
255 caloCellEt += caloCell->e()*caloCell->sinTh();
256 }
257 caloCellSumET += caloCellEt;
258 }
259
260 } // SCell loop
261
262 // now must convert Total_Et int value into fex value: multi-level encoding
263 if(masked) {
264 Total_Et_encoded = 0; // no data
265 Total_Et_Timing_encoded = 0;
266 } else if(invalid) {
267 Total_Et_encoded = 4095; // invalid
268 Total_Et_Timing_encoded = 4095;
269 } else {
270 Total_Et_encoded = jFEXCompression::Compress( Total_Et*12.5);
271 Total_Et_Timing_encoded = jFEXCompression::Compress( Total_Timing_Et*12.5);
272 }
273
274 // leaving this commented while outstanding questions above about treatment of supercells
275 // using floating point for MC until determine correct procedure for MC values re invalid/masking
276 if(!m_isDATA) Total_Et_encoded = jFEXCompression::Compress( Total_Et_float, masked );
277
278 Total_Et_decoded = jFEXCompression::Expand( Total_Et_encoded );
279 Total_Et_Timing_decoded = jFEXCompression::Expand( Total_Et_Timing_encoded );
280 }
281 else{
282
283 //check that the jFEX Tower ID exists in the map
284 auto it_TTower2Tile = m_map_TTower2Tile.find(IDSimulation);
285 if(it_TTower2Tile == m_map_TTower2Tile.end()) {
286 ATH_MSG_ERROR("ID: "<<IDSimulation<< " not found on map m_map_TTower2Tile");
287 return StatusCode::FAILURE;
288 }
289
290 uint32_t TileID = std::get<0>( it_TTower2Tile->second );
291
292 //check that the Tile Identifier exists in the map
293 auto it_TileID2ptr = map_TileID2ptr.find(TileID);
294 if(it_TileID2ptr == map_TileID2ptr.end()) {
295 if(m_isDATA) ATH_MSG_WARNING("Tile cool ID: "<<TileID<< " not found in the xAOD::TriggerTower, skipping");
296 continue;
297 }
298
299 Total_Et_encoded = (it_TileID2ptr->second)->cpET();
300
301 Total_Et_decoded = Total_Et_encoded * 500;
302 Total_Et_Timing_decoded = Total_Et_encoded * 500;
303
304 // get the offline reconstructed energy from xAODTriggerTower decoration
305 if ( !m_CaloCellKey.empty() ) {
306 if ( cellEtByLayer_handle->isAvailable() ) {
307 const std::vector<float>& cellEtByLayer = (*cellEtByLayer_handle)(*it_TileID2ptr->second);
308 // Stored in GeV, see TrigT1CaloCalibTools/src/L1CaloCells2TriggerTowers.cxx
309 caloCellSumET = 1000.0 * std::accumulate(cellEtByLayer.begin(), cellEtByLayer.end(), 0.0);
310 }
311 }
312 } // end of Tile
313 std::vector<uint16_t> vtower_ET;
314 vtower_ET.push_back(Total_Et_encoded);
315
316 std::vector<char> vtower_SAT;
317
318 //Needs to be updated with Saturation flag from LAr CaloCell container, not ready yet!
319 vtower_SAT.push_back(jTower_sat);
320
321 jTowersContainer->push_back( std::make_unique<xAOD::jFexTower>() );
322 jTowersContainer->back()->initialize(eta, phi, iEta, iPhi, IDSimulation, source, vtower_ET, jfex, fpga, channel, tower, vtower_SAT );
323
324 if( m_doThinning && !jTowersContainer->back()->isCore() ){
325 jTowersContainer->pop_back();
326 } else {
327 // decorate with offline energy
328 if (!m_caloCellSumETdecorKey.empty()) {
329 (*jTowerCaloCellSumEt) (*jTowersContainer->back()) = caloCellSumET;
330 }
331 // decorate tower energies in MeV without/with timing cut
332 if (!m_jtowerEtMeVdecorKey.empty()) {
333 (*jTowerEtMeV) (*jTowersContainer->back()) = Total_Et_decoded;
334 }
335 if (!m_jtowerEtTimingMeVdecorKey.empty()) {
336 (*jTowerEtTimingMeV) (*jTowersContainer->back()) = Total_Et_Timing_decoded;
337 }
338 }
339 } // firmware tower map
340
341 // Return gracefully
342 return StatusCode::SUCCESS;
343}
344
345
346StatusCode jFexEmulatedTowers::ReadFibersfromFile(const std::string & fileName){
347
348 //opening file with ifstream
349 std::ifstream file(fileName);
350
351 if ( !file.is_open() ){
352 ATH_MSG_ERROR("Could not open file:" << fileName);
353 return StatusCode::FAILURE;
354 }
355
356 std::string line;
357 //loading the mapping information
358 while ( std::getline (file, line) ) {
359
360 //removing the header of the file (it is just information!)
361 if(line[0] == '#') continue;
362
363 //Splitting line in different substrings
364 std::stringstream oneLine(line);
365
366 //reading elements
367 std::vector<float> elements;
368 elements.reserve(10);
369 std::string element;
370 while(std::getline(oneLine, element, ' '))
371 {
372 elements.push_back(std::stof(element));
373 }
374
375 // It should have 10 elements
376 // ordered as: jfex fpga channel towerNr source globalEtaIndex globalPhiIndex IDSimulation eta phi
377 if(elements.size() != 10){
378 ATH_MSG_ERROR("Unexpected number of elemennts (10 expected) in file: "<< fileName);
379 return StatusCode::FAILURE;
380 }
381 // building array of <IDSimulation, eta, phi, source, iEta, iPhi>
382 std::array<float,6> aux_arr{ {elements.at(7),elements.at(8),elements.at(9),elements.at(4),elements.at(5),elements.at(6)} };
383
384 //filling the map with the hash given by mapIndex()
385 m_Firm2Tower_map[ mapIndex(elements.at(0),elements.at(1),elements.at(2),elements.at(3)) ] = aux_arr;
386
387 }
388 file.close();
389
390 return StatusCode::SUCCESS;
391}
392
393
394constexpr unsigned int jFexEmulatedTowers::mapIndex(unsigned int jfex, unsigned int fpga, unsigned int channel, unsigned int tower) {
395 // values from hardware: jfex=[0,5] 4 bits, fpga=[0,3] 4 bits, channel=[0,59] 8 bits, tower=[0,15] 4 bits
396 return (jfex << 16) | (fpga << 12) | (channel << 4) | tower;
397}
398
399StatusCode jFexEmulatedTowers::ReadSCfromFile(const std::string& fileName){
400
401 //opening file with ifstream
402 std::ifstream file(fileName);
403
404 if ( !file.is_open() ){
405 ATH_MSG_ERROR("Could not open file:" << fileName);
406 return StatusCode::FAILURE;
407 }
408
409 std::string line;
410 //loading the mapping information into an unordered_map <Fex Tower ID, vector of SCell IDs>
411 while ( std::getline (file, line) ) {
412 //removing the header of the file (it is just information!)
413 if(line[0] == '#') continue;
414
415 std::vector<uint64_t> SCellvectorEM;
416 std::vector<uint64_t> SCellvectorHAD;
417
418 //Splitting line in different substrings
419 std::stringstream oneSCellID(line);
420
421 //reading elements
422 std::string substr = "";
423 int TTID = 0;
424 int elem = 0;
425
426 while(std::getline(oneSCellID, substr, ' '))
427 {
428 ++elem;
429 if(elem == 1){
430 TTID = std::stoi(substr);
431 }
432 else{
433 //Check if it looks like a SCell Identifier
434 if(isBadSCellID(substr)){
435 return StatusCode::FAILURE;
436 }
437
438 // converts hex number to unsigned long long int
439 uint64_t scid_uint64 = std::strtoull(substr.c_str(), nullptr, 0);
440
441 //empty slots are filled with 0xffffffffffffffff
442 if(scid_uint64 == 0xffffffffffffffff) continue;
443
444 //from element from 2 to 13 are EM SCells, element 14 is a HAD SCell
445 if(elem<14) SCellvectorEM.push_back(scid_uint64);
446 else SCellvectorHAD.push_back(scid_uint64);
447 }
448 }
449
450 m_map_TTower2SCellsEM[TTID] = std::move(SCellvectorEM);
451 m_map_TTower2SCellsHAD[TTID] = std::move(SCellvectorHAD);
452
453 }
454 file.close();
455
456 return StatusCode::SUCCESS;
457}
458
459bool jFexEmulatedTowers::isBadSCellID(const std::string& ID) const{
460
461 // does it start with "0x"?, if so then is a GOOD SCell ID!
462 if (ID.find("0x") == std::string::npos) {
463 ATH_MSG_ERROR("Invalid SuperCell ID " << ID << ". Expecting hexadecimal number on the mapping file");
464 return true;
465 }
466 return false;
467}
468
469
470
471
472StatusCode jFexEmulatedTowers::ReadTilefromFile(const std::string& fileName){
473
474 //opening file with ifstream
475 std::ifstream file(fileName);
476
477 if ( !file.is_open() ){
478 ATH_MSG_ERROR("Could not open file:" << fileName);
479 return StatusCode::FAILURE;
480 }
481
482 std::string line;
483 //loading the mapping information into an unordered_map <Fex Tower ID, vector of SCell IDs>
484 while ( std::getline (file, line) ) {
485
486 //removing the header of the file (it is just information!)
487 if(line[0] == '#') continue;
488
489 //Splitting line in different substrings
490 std::stringstream oneLine(line);
491
492 std::vector<std::string> elements;
493 std::string element = "";
494
495 while(std::getline(oneLine, element, ' ')){
496 elements.push_back(element);
497 }
498
499 if(elements.size() != 4){
500 ATH_MSG_ERROR("Invalid number of element in " << line << ". Expecting 4 elements {jFexID, TileID, eta, phi}");
501 return StatusCode::FAILURE;
502 }
503
504 uint32_t jFexID = std::stoi( elements.at(0) );
505 uint32_t TileID = std::stoi( elements.at(1) );
506 float eta = std::stof( elements.at(2) );
507 float phi = std::stof( elements.at(3) );
508
509 m_map_TTower2Tile[jFexID] = {TileID,eta,phi};
510
511 }
512 file.close();
513
514 return StatusCode::SUCCESS;
515}
516
517
518
519
520
521}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
Handle class for reading a decoration on an object.
Handle class for adding a decoration to an object.
const ServiceHandle< StoreGateSvc > & detStore() const
An algorithm that can be simultaneously executed in multiple threads.
Container class for CaloCell.
const CaloCell * findCell(const IdentifierHash theHash) const
fast find method given identifier hash.
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
virtual double e() const override final
get energy (data member) (synonym to method energy()
Definition CaloCell.h:333
double energy() const
get energy (data member)
Definition CaloCell.h:327
uint16_t provenance() const
get provenance (data member)
Definition CaloCell.h:354
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Definition CaloCell.h:382
virtual double sinTh() const override final
get sin(theta) (through CaloDetDescrElement)
Definition CaloCell.h:389
uint16_t quality() const
get quality (data member)
Definition CaloCell.h:348
virtual double et() const override final
get et
Definition CaloCell.h:423
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Definition CaloCell.h:295
static int Expand(unsigned int code)
Uncompress data.
static unsigned int Compress(float floatEt, bool empty=false)
Compress data.
SG::ReadHandleKey< CaloCellContainer > m_SCellKey
Gaudi::Property< bool > m_isDATA
Gaudi::Property< bool > m_applyTimingCut
SG::WriteDecorHandleKey< xAOD::jFexTowerContainer > m_caloCellSumETdecorKey
SG::ReadHandleKey< CaloCellContainer > m_CaloCellKey
{map index, {IDsimulation,eta,phi,source,iEta,iPhi}}
jFexEmulatedTowers(const std::string &name, ISvcLocator *svc)
static constexpr unsigned int mapIndex(unsigned int jfex, unsigned int fpga, unsigned int channel, unsigned int tower)
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_triggerTowerKey
SG::ReadDecorHandleKey< xAOD::TriggerTowerContainer > m_readTileOfflineDecorKey
std::unordered_map< uint32_t, std::vector< uint64_t > > m_map_TTower2SCellsEM
Gaudi::Property< bool > m_applyTimingCutAll
std::unordered_map< unsigned int, std::array< float, 6 > > m_Firm2Tower_map
SG::WriteDecorHandleKey< xAOD::jFexTowerContainer > m_jtowerEtMeVdecorKey
const CaloCell_ID * m_caloCellIdHelper
Gaudi::Property< std::string > m_jFEX2Scellmapping
SG::WriteHandleKey< xAOD::jFexTowerContainer > m_jTowersWriteKey
std::unordered_map< uint32_t, std::vector< uint64_t > > m_map_TTower2SCellsHAD
StatusCode ReadSCfromFile(const std::string &)
virtual StatusCode execute(const EventContext &) const override
Function executing the algorithm.
Gaudi::Property< bool > m_apply_masking
virtual StatusCode initialize() override
Function initialising the algorithm.
StatusCode ReadFibersfromFile(const std::string &)
Gaudi::Property< std::string > m_FiberMapping
Gaudi::Property< std::string > m_jFEX2Tilemapping
SG::WriteDecorHandleKey< xAOD::jFexTowerContainer > m_jtowerEtTimingMeVdecorKey
ToolHandle< ICaloSuperCellIDTool > m_scellIdTool
bool isBadSCellID(const std::string &) const
Gaudi::Property< bool > m_doThinning
std::unordered_map< uint32_t, std::tuple< uint32_t, float, float > > m_map_TTower2Tile
StatusCode ReadTilefromFile(const std::string &)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Helper class for TileCal offline identifiers.
Definition TileID.h:67
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
TriggerTower_v2 TriggerTower
Define the latest version of the TriggerTower class.
TFile * file