ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileRecUtils
src
TileRawChannelNNMaker.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILERECUTILS_TILERAWCHANNELNNMAKER_H
6
#define TILERECUTILS_TILERAWCHANNELNNMAKER_H
7
#include "
TileEvent/TileDigitsContainer.h
"
8
#include "
TileEvent/TileRawChannelContainer.h
"
9
#include "
TileNNEmulator.h
"
10
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
11
#include "
StoreGate/ReadHandleKey.h
"
12
#include "
StoreGate/WriteHandleKey.h
"
13
#include <atomic>
14
15
class
TileHWID
;
16
22
class
TileRawChannelNNMaker
:
public
AthReentrantAlgorithm
{
23
public
:
24
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
25
virtual
~TileRawChannelNNMaker
()
override
=
default
;
26
virtual
StatusCode
initialize
()
override
;
27
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
28
virtual
StatusCode
finalize
()
override
;
29
30
private
:
31
32
SG::ReadHandleKey<TileDigitsContainer>
m_digitsContainerKey
{
this
,
33
"TileDigitsContainer"
,
"TileDigitsCnt"
,
"Input Tile digits container key"
};
34
35
SG::WriteHandleKey<TileRawChannelContainer>
m_rawChannelContainerKey
{
this
,
36
"TileRawChannelContainer"
,
"TileRawChannelNN"
,
"Output Tile raw channels container key"
};
37
38
Gaudi::Property<std::string>
m_weightsFile
{
this
,
39
"WeightsFile"
,
"TileRecUtils/TileRawChannelNN_w9_v1.json"
,
40
"PathResolver location of the network weights JSON"
};
41
42
const
TileHWID
*
m_tileHWID
{
nullptr
};
43
TileNNEmulator
m_nn
;
44
double
m_ampPerCode
{0.0};
45
mutable
std::atomic<unsigned int>
m_nMissingGain
{0};
46
mutable
std::atomic<unsigned int>
m_nBadNSamples
{0};
47
};
48
49
#endif
// TILERECUTILS_TILERAWCHANNELNNMAKER_H
AthReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TileDigitsContainer.h
TileNNEmulator.h
TileRawChannelContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition
TileHWID.h:49
TileNNEmulator
Bit-exact software emulator of the TilePPr neural-network energy reconstruction.
Definition
TileNNEmulator.h:15
TileRawChannelNNMaker
Reconstructs Tile raw channel amplitudes with the neural network of the HL-LHC TilePPr firmware,...
Definition
TileRawChannelNNMaker.h:22
TileRawChannelNNMaker::finalize
virtual StatusCode finalize() override
Definition
TileRawChannelNNMaker.cxx:93
TileRawChannelNNMaker::initialize
virtual StatusCode initialize() override
Definition
TileRawChannelNNMaker.cxx:17
TileRawChannelNNMaker::m_digitsContainerKey
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey
Definition
TileRawChannelNNMaker.h:32
TileRawChannelNNMaker::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TileRawChannelNNMaker.cxx:45
TileRawChannelNNMaker::m_nn
TileNNEmulator m_nn
Definition
TileRawChannelNNMaker.h:43
TileRawChannelNNMaker::m_rawChannelContainerKey
SG::WriteHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Definition
TileRawChannelNNMaker.h:35
TileRawChannelNNMaker::m_weightsFile
Gaudi::Property< std::string > m_weightsFile
Definition
TileRawChannelNNMaker.h:38
TileRawChannelNNMaker::m_ampPerCode
double m_ampPerCode
Definition
TileRawChannelNNMaker.h:44
TileRawChannelNNMaker::~TileRawChannelNNMaker
virtual ~TileRawChannelNNMaker() override=default
TileRawChannelNNMaker::m_nBadNSamples
std::atomic< unsigned int > m_nBadNSamples
Definition
TileRawChannelNNMaker.h:46
TileRawChannelNNMaker::m_tileHWID
const TileHWID * m_tileHWID
Definition
TileRawChannelNNMaker.h:42
TileRawChannelNNMaker::m_nMissingGain
std::atomic< unsigned int > m_nMissingGain
Definition
TileRawChannelNNMaker.h:45
Generated on
for ATLAS Offline Software by
1.17.0