ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::jFexEmulatedTowers Class Reference

#include <jFexEmulatedTowers.h>

Inheritance diagram for LVL1::jFexEmulatedTowers:

Public Member Functions

 jFexEmulatedTowers (const std::string &name, ISvcLocator *svc)
virtual StatusCode initialize () override
 Function initialising the algorithm.
virtual StatusCode execute (const EventContext &) const override
 Function executing the algorithm.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
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.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

StatusCode ReadFibersfromFile (const std::string &)
StatusCode ReadSCfromFile (const std::string &)
StatusCode ReadTilefromFile (const std::string &)
bool isBadSCellID (const std::string &) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Static Private Member Functions

static constexpr unsigned int mapIndex (unsigned int jfex, unsigned int fpga, unsigned int channel, unsigned int tower)

Private Attributes

SG::ReadHandleKey< CaloCellContainerm_SCellKey {this, "SCell", "SCell", "SCell container"}
SG::ReadHandleKey< xAOD::TriggerTowerContainerm_triggerTowerKey {this, "xODTriggerTowers", "xAODTriggerTowers", "xAODTriggerTowers container"}
SG::WriteHandleKey< xAOD::jFexTowerContainerm_jTowersWriteKey {this,"jTowersWriteKey" ,"L1_jFexEmulatedTowers", "Write jFexEDM Trigger Tower container"}
Gaudi::Property< std::string > m_FiberMapping {this, "jFexTowerMapping", PathResolver::find_calib_file("L1CaloFEXByteStream/2023-08-01/jFexTowerMap.txt"), "Text file to convert from hardware fiber to eta-phi location"}
Gaudi::Property< bool > m_apply_masking {this, "SCellMasking", true, "Applies masking. Only use for data"}
Gaudi::Property< bool > m_isDATA {this, "isDATA" , true, "Tells the algorithm if it is data. Used for xAOD::TriggerTower WARNING due to the 0 supresion"}
Gaudi::Property< bool > m_doThinning {this, "DoThinning" , true, "Remove overlapped towers. Only FPGA Core region is saved"}
Gaudi::Property< bool > m_applyTimingCut {this, "ApplyTimingCut", false, "If true, will apply a timing cut to supercells in MC (but not in HEC). In data this property has no effect"}
Gaudi::Property< bool > m_applyTimingCutAll {this, "ApplyTimingCutAll", false, "If true, will apply a timing cut to supercells in MC. In data this property has no effect"}
Gaudi::Property< std::string > m_jFEX2Scellmapping {this, "jFEX2SCmapping" , PathResolver::find_calib_file("L1CaloFEXByteStream/2022-10-19/jfex_SCID.txt") , "Text file to convert from simulation ID to SuperCell Identifier"}
Gaudi::Property< std::string > m_jFEX2Tilemapping {this, "jFEX2Tilemapping", PathResolver::find_calib_file("L1CaloFEXByteStream/2022-10-19/jfex_TileID.txt"), "Text file to convert from simulation ID to Tile Identifier"}
std::unordered_map< uint32_t, std::vector< uint64_t > > m_map_TTower2SCellsEM
std::unordered_map< uint32_t, std::vector< uint64_t > > m_map_TTower2SCellsHAD
std::unordered_map< uint32_t, std::tuple< uint32_t, float, float > > m_map_TTower2Tile
std::unordered_map< unsigned int, std::array< float, 6 > > m_Firm2Tower_map
SG::ReadHandleKey< CaloCellContainerm_CaloCellKey {this, "CaloCell", "", "Calo Cell container, supply AllCalo to activate"}
 {map index, {IDsimulation,eta,phi,source,iEta,iPhi}}
ToolHandle< ICaloSuperCellIDToolm_scellIdTool {this, "CaloSuperCellIDTool", "", "Offline / SuperCell ID mapping tool"}
const CaloCell_IDm_caloCellIdHelper {}
SG::ReadDecorHandleKey< xAOD::TriggerTowerContainerm_readTileOfflineDecorKey { this, "TileOfflineETKey", m_triggerTowerKey, "", "decoration of offline energy from Tile Towers" }
SG::WriteDecorHandleKey< xAOD::jFexTowerContainerm_caloCellSumETdecorKey {this, "CaloCellSumEtdecorKey", m_jTowersWriteKey, "", "Offline Calo Cell Et information of the jTower in MeV"}
SG::WriteDecorHandleKey< xAOD::jFexTowerContainerm_jtowerEtMeVdecorKey { this, "jtowerEtMeVdecorKey", m_jTowersWriteKey, "jtowerEtMeV", "jFex Tower Et in MeV"}
SG::WriteDecorHandleKey< xAOD::jFexTowerContainerm_jtowerEtTimingMeVdecorKey { this, "jtowerEtTimingMeVdecorKey", m_jTowersWriteKey, "jtowerEtTimingMeV", "jFex Tower Et, after timing cut, in MeV"}
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 37 of file jFexEmulatedTowers.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

◆ jFexEmulatedTowers()

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

Definition at line 30 of file jFexEmulatedTowers.cxx.

30: AthReentrantAlgorithm(name, svc){}

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::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.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

62{
63 return 0;
64}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

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

◆ evtStore()

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.

◆ execute()

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

Function executing the algorithm.

Definition at line 81 of file jFexEmulatedTowers.cxx.

81 {
82
83 //Reading the Scell container
84 SG::ReadHandle<CaloCellContainer> ScellContainer(m_SCellKey, ctx);
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
91 SG::ReadHandle<xAOD::TriggerTowerContainer> triggerTowerContainer(m_triggerTowerKey, ctx);
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
110 SG::WriteHandle<xAOD::jFexTowerContainer> jTowersContainer(m_jTowersWriteKey, ctx);
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}
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_WARNING(x)
#define ATH_MSG_DEBUG(x)
const CaloCell * findCell(const IdentifierHash theHash) const
fast find method given identifier hash.
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}}
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
SG::WriteHandleKey< xAOD::jFexTowerContainer > m_jTowersWriteKey
std::unordered_map< uint32_t, std::vector< uint64_t > > m_map_TTower2SCellsHAD
Gaudi::Property< bool > m_apply_masking
SG::WriteDecorHandleKey< xAOD::jFexTowerContainer > m_jtowerEtTimingMeVdecorKey
ToolHandle< ICaloSuperCellIDTool > m_scellIdTool
Gaudi::Property< bool > m_doThinning
std::unordered_map< uint32_t, std::tuple< uint32_t, float, float > > m_map_TTower2Tile
@ iPhi
Definition ParamDefs.h:47
ID
//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding...
setScale setgFexType iEta
TriggerTower_v2 TriggerTower
Define the latest version of the TriggerTower class.
setWord1 uint16_t
setEventNumber uint32_t

◆ 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 & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

88{
89 // If we didn't find any symlinks to add, just return the collection
90 // from the base class. Otherwise, return the extended collection.
91 if (!m_extendedExtraObjects.empty()) {
93 }
95}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode LVL1::jFexEmulatedTowers::initialize ( )
overridevirtual

Function initialising the algorithm.

Definition at line 32 of file jFexEmulatedTowers.cxx.

32 {
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}
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
const ServiceHandle< StoreGateSvc > & detStore() const
Gaudi::Property< std::string > m_jFEX2Scellmapping
StatusCode ReadSCfromFile(const std::string &)
StatusCode ReadFibersfromFile(const std::string &)
Gaudi::Property< std::string > m_FiberMapping
Gaudi::Property< std::string > m_jFEX2Tilemapping
StatusCode ReadTilefromFile(const std::string &)

◆ 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::jFexEmulatedTowers::isBadSCellID ( const std::string & ID) const
private

Definition at line 459 of file jFexEmulatedTowers.cxx.

459 {
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}

◆ isClonable()

◆ mapIndex()

unsigned int LVL1::jFexEmulatedTowers::mapIndex ( unsigned int jfex,
unsigned int fpga,
unsigned int channel,
unsigned int tower )
staticconstexprprivate

Definition at line 394 of file jFexEmulatedTowers.cxx.

394 {
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}

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

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

◆ ReadFibersfromFile()

StatusCode LVL1::jFexEmulatedTowers::ReadFibersfromFile ( const std::string & fileName)
private

Definition at line 346 of file jFexEmulatedTowers.cxx.

346 {
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}
static constexpr unsigned int mapIndex(unsigned int jfex, unsigned int fpga, unsigned int channel, unsigned int tower)
TFile * file

◆ ReadSCfromFile()

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

Definition at line 399 of file jFexEmulatedTowers.cxx.

399 {
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}
bool isBadSCellID(const std::string &) const

◆ ReadTilefromFile()

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

Definition at line 472 of file jFexEmulatedTowers.cxx.

472 {
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}

◆ 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();
384 }
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)

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

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::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 85 of file AthCommonReentrantAlgorithm.cxx.

75{
76 return BaseAlg::sysExecute (ctx);
77}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

105 {
107
108 if (sc.isFailure()) {
109 return sc;
110 }
111
112 ServiceHandle<ICondSvc> cs("CondSvc",name());
113 for (auto h : outputHandles()) {
114 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
115 // do this inside the loop so we don't create the CondSvc until needed
116 if ( cs.retrieve().isFailure() ) {
117 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
118 return StatusCode::SUCCESS;
119 }
120 if (cs->regHandle(this,*h).isFailure()) {
122 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
123 << " with CondSvc");
124 }
125 }
126 }
127 return sc;
128}
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_apply_masking

Gaudi::Property<bool> LVL1::jFexEmulatedTowers::m_apply_masking {this, "SCellMasking", true, "Applies masking. Only use for data"}
private

Definition at line 61 of file jFexEmulatedTowers.h.

61{this, "SCellMasking", true, "Applies masking. Only use for data"};

◆ m_applyTimingCut

Gaudi::Property<bool> LVL1::jFexEmulatedTowers::m_applyTimingCut {this, "ApplyTimingCut", false, "If true, will apply a timing cut to supercells in MC (but not in HEC). In data this property has no effect"}
private

Definition at line 64 of file jFexEmulatedTowers.h.

64{this, "ApplyTimingCut", false, "If true, will apply a timing cut to supercells in MC (but not in HEC). In data this property has no effect"};

◆ m_applyTimingCutAll

Gaudi::Property<bool> LVL1::jFexEmulatedTowers::m_applyTimingCutAll {this, "ApplyTimingCutAll", false, "If true, will apply a timing cut to supercells in MC. In data this property has no effect"}
private

Definition at line 65 of file jFexEmulatedTowers.h.

65{this, "ApplyTimingCutAll", false, "If true, will apply a timing cut to supercells in MC. In data this property has no effect"};

◆ m_caloCellIdHelper

const CaloCell_ID* LVL1::jFexEmulatedTowers::m_caloCellIdHelper {}
private

Definition at line 92 of file jFexEmulatedTowers.h.

92{};

◆ m_CaloCellKey

SG::ReadHandleKey<CaloCellContainer> LVL1::jFexEmulatedTowers::m_CaloCellKey {this, "CaloCell", "", "Calo Cell container, supply AllCalo to activate"}
private

{map index, {IDsimulation,eta,phi,source,iEta,iPhi}}

Definition at line 88 of file jFexEmulatedTowers.h.

88{this, "CaloCell", "", "Calo Cell container, supply AllCalo to activate"};

◆ m_caloCellSumETdecorKey

SG::WriteDecorHandleKey<xAOD::jFexTowerContainer> LVL1::jFexEmulatedTowers::m_caloCellSumETdecorKey {this, "CaloCellSumEtdecorKey", m_jTowersWriteKey, "", "Offline Calo Cell Et information of the jTower in MeV"}
private

Definition at line 98 of file jFexEmulatedTowers.h.

98{this, "CaloCellSumEtdecorKey", m_jTowersWriteKey, "", "Offline Calo Cell Et information of the jTower in MeV"};

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

Gaudi::Property<bool> LVL1::jFexEmulatedTowers::m_doThinning {this, "DoThinning" , true, "Remove overlapped towers. Only FPGA Core region is saved"}
private

Definition at line 63 of file jFexEmulatedTowers.h.

63{this, "DoThinning" , true, "Remove overlapped towers. Only FPGA Core region is saved"};

◆ 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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_FiberMapping

Gaudi::Property<std::string> LVL1::jFexEmulatedTowers::m_FiberMapping {this, "jFexTowerMapping", PathResolver::find_calib_file("L1CaloFEXByteStream/2023-08-01/jFexTowerMap.txt"), "Text file to convert from hardware fiber to eta-phi location"}
private

Definition at line 58 of file jFexEmulatedTowers.h.

58{this, "jFexTowerMapping", PathResolver::find_calib_file("L1CaloFEXByteStream/2023-08-01/jFexTowerMap.txt"), "Text file to convert from hardware fiber to eta-phi location"};
static std::string find_calib_file(const std::string &logical_file_name)

◆ m_Firm2Tower_map

std::unordered_map<unsigned int, std::array<float,6> > LVL1::jFexEmulatedTowers::m_Firm2Tower_map
private

Definition at line 84 of file jFexEmulatedTowers.h.

◆ m_isDATA

Gaudi::Property<bool> LVL1::jFexEmulatedTowers::m_isDATA {this, "isDATA" , true, "Tells the algorithm if it is data. Used for xAOD::TriggerTower WARNING due to the 0 supresion"}
private

Definition at line 62 of file jFexEmulatedTowers.h.

62{this, "isDATA" , true, "Tells the algorithm if it is data. Used for xAOD::TriggerTower WARNING due to the 0 supresion"};

◆ m_jFEX2Scellmapping

Gaudi::Property<std::string> LVL1::jFexEmulatedTowers::m_jFEX2Scellmapping {this, "jFEX2SCmapping" , PathResolver::find_calib_file("L1CaloFEXByteStream/2022-10-19/jfex_SCID.txt") , "Text file to convert from simulation ID to SuperCell Identifier"}
private

Definition at line 68 of file jFexEmulatedTowers.h.

68{this, "jFEX2SCmapping" , PathResolver::find_calib_file("L1CaloFEXByteStream/2022-10-19/jfex_SCID.txt") , "Text file to convert from simulation ID to SuperCell Identifier"};

◆ m_jFEX2Tilemapping

Gaudi::Property<std::string> LVL1::jFexEmulatedTowers::m_jFEX2Tilemapping {this, "jFEX2Tilemapping", PathResolver::find_calib_file("L1CaloFEXByteStream/2022-10-19/jfex_TileID.txt"), "Text file to convert from simulation ID to Tile Identifier"}
private

Definition at line 69 of file jFexEmulatedTowers.h.

69{this, "jFEX2Tilemapping", PathResolver::find_calib_file("L1CaloFEXByteStream/2022-10-19/jfex_TileID.txt"), "Text file to convert from simulation ID to Tile Identifier"};

◆ m_jtowerEtMeVdecorKey

SG::WriteDecorHandleKey<xAOD::jFexTowerContainer> LVL1::jFexEmulatedTowers::m_jtowerEtMeVdecorKey { this, "jtowerEtMeVdecorKey", m_jTowersWriteKey, "jtowerEtMeV", "jFex Tower Et in MeV"}
private

Definition at line 99 of file jFexEmulatedTowers.h.

99{ this, "jtowerEtMeVdecorKey", m_jTowersWriteKey, "jtowerEtMeV", "jFex Tower Et in MeV"};

◆ m_jtowerEtTimingMeVdecorKey

SG::WriteDecorHandleKey<xAOD::jFexTowerContainer> LVL1::jFexEmulatedTowers::m_jtowerEtTimingMeVdecorKey { this, "jtowerEtTimingMeVdecorKey", m_jTowersWriteKey, "jtowerEtTimingMeV", "jFex Tower Et, after timing cut, in MeV"}
private

Definition at line 100 of file jFexEmulatedTowers.h.

100{ this, "jtowerEtTimingMeVdecorKey", m_jTowersWriteKey, "jtowerEtTimingMeV", "jFex Tower Et, after timing cut, in MeV"};

◆ m_jTowersWriteKey

SG::WriteHandleKey< xAOD::jFexTowerContainer > LVL1::jFexEmulatedTowers::m_jTowersWriteKey {this,"jTowersWriteKey" ,"L1_jFexEmulatedTowers", "Write jFexEDM Trigger Tower container"}
private

Definition at line 55 of file jFexEmulatedTowers.h.

55{this,"jTowersWriteKey" ,"L1_jFexEmulatedTowers", "Write jFexEDM Trigger Tower container"};

◆ m_map_TTower2SCellsEM

std::unordered_map< uint32_t, std::vector<uint64_t> > LVL1::jFexEmulatedTowers::m_map_TTower2SCellsEM
private

Definition at line 78 of file jFexEmulatedTowers.h.

◆ m_map_TTower2SCellsHAD

std::unordered_map< uint32_t, std::vector<uint64_t> > LVL1::jFexEmulatedTowers::m_map_TTower2SCellsHAD
private

Definition at line 79 of file jFexEmulatedTowers.h.

◆ m_map_TTower2Tile

std::unordered_map< uint32_t, std::tuple<uint32_t,float,float> > LVL1::jFexEmulatedTowers::m_map_TTower2Tile
private

Definition at line 80 of file jFexEmulatedTowers.h.

◆ m_readTileOfflineDecorKey

SG::ReadDecorHandleKey<xAOD::TriggerTowerContainer> LVL1::jFexEmulatedTowers::m_readTileOfflineDecorKey { this, "TileOfflineETKey", m_triggerTowerKey, "", "decoration of offline energy from Tile Towers" }
private

Definition at line 95 of file jFexEmulatedTowers.h.

95{ this, "TileOfflineETKey", m_triggerTowerKey, "", "decoration of offline energy from Tile Towers" };

◆ m_scellIdTool

ToolHandle<ICaloSuperCellIDTool> LVL1::jFexEmulatedTowers::m_scellIdTool {this, "CaloSuperCellIDTool", "", "Offline / SuperCell ID mapping tool"}
private

Definition at line 90 of file jFexEmulatedTowers.h.

90{this, "CaloSuperCellIDTool", "", "Offline / SuperCell ID mapping tool"};

◆ m_SCellKey

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

Definition at line 49 of file jFexEmulatedTowers.h.

49{this, "SCell", "SCell", "SCell container"};

◆ m_triggerTowerKey

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

Definition at line 52 of file jFexEmulatedTowers.h.

52{this, "xODTriggerTowers", "xAODTriggerTowers", "xAODTriggerTowers container"};

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