ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1CaloFEX
TrigT1CaloFexPerf
src
SCEmulation.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGT1CALOFEXPERF_SCEMULATION_H
6
#define TRIGT1CALOFEXPERF_SCEMULATION_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/WriteHandleKey.h
"
11
#include "
StoreGate/ReadCondHandleKey.h
"
12
#include "
CaloEvent/CaloCellContainer.h
"
13
#include "
xAODEventInfo/EventInfo.h
"
14
#include "GaudiKernel/ToolHandle.h"
15
#include "
CaloDetDescr/ICaloSuperCellIDTool.h
"
16
#include "
CaloConditions/CaloNoiseSigmaDiff.h
"
17
#include "
CaloEvent/CaloBCIDAverage.h
"
18
#include "CaloGeoHelpers/CaloSampling.h"
19
#include "
CaloDetDescr/CaloDetDescrManager.h
"
20
#include "
CaloIdentifier/CaloIdManager.h
"
21
22
#include <map>
23
#include <tuple>
24
#include <TH1F.h>
25
26
namespace
LVL1
27
{
28
class
SCEmulation
:
public
AthReentrantAlgorithm
29
{
30
public
:
31
SCEmulation
(
const
std::string &
name
, ISvcLocator *pSvcLocator);
32
virtual
~SCEmulation
()
override
;
33
34
virtual
StatusCode
initialize
()
override
;
35
virtual
StatusCode
execute
(
const
EventContext &ctx)
const override
;
36
37
private
:
38
SG::ReadHandleKey<CaloCellContainer>
m_inputCellsKey
;
39
SG::ReadHandleKey<xAOD::EventInfo>
m_evtInfoKey
;
40
SG::ReadHandleKey<CaloBCIDAverage>
m_caloBCIDAverageKey
{
41
this
,
"CaloBCIDAverage"
,
"CaloBCIDAverage"
};
42
SG::ReadCondHandleKey<CaloNoiseSigmaDiff>
m_caloNoiseSigmaDiffKey
{
43
this
,
"CaloNoiseSigmaDiff"
,
"CaloNoiseSigmaDiff"
};
44
45
SG::ReadCondHandleKey<CaloSuperCellDetDescrManager>
m_caloSuperCellMgrKey
{
46
this
,
"CaloSuperCellDetDescrManager"
,
"CaloSuperCellDetDescrManager"
,
"SG key of the resulting CaloSuperCellDetDescrManager"
};
47
SG::WriteHandleKey<CaloCellContainer>
m_outputSuperCellsKey
;
48
50
ToolHandle<ICaloSuperCellIDTool>
m_scidTool
{
"CaloSuperCellIDTool"
};
52
bool
m_useNoise
;
54
bool
m_useBCID
;
56
std::string
m_cellTimingFile
;
57
58
// Internals
60
std::map<CaloSampling::CaloSample, std::vector<float>>
m_etaBins
;
62
std::map<CaloSampling::CaloSample, std::vector<float>>
m_etBins
;
64
// Map keys are sampling, eta bin, phi bin
65
std::map<std::tuple<CaloSampling::CaloSample, std::size_t, std::size_t>, std::map<float, float>>
m_timingSamples
;
66
68
const
CaloIdManager
*
m_caloIdMgr
{
nullptr
};
69
70
std::size_t
getEtaIndex
(
CaloSampling::CaloSample
sample,
float
eta
)
const
;
71
std::size_t
getEtIndex
(
CaloSampling::CaloSample
sample,
float
et
)
const
;
72
73
};
//> end class SCEmulation
74
}
// namespace LVL1
75
76
#endif
//> !TRIGT1CALOFEXPERF_SCEMULATION_H
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
AthReentrantAlgorithm.h
CaloBCIDAverage.h
CaloCellContainer.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloIdManager.h
CaloNoiseSigmaDiff.h
ICaloSuperCellIDTool.h
ReadCondHandleKey.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.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition
CaloIdManager.h:45
CaloSampling::CaloSample
CaloSample
Definition
Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
LVL1::SCEmulation::m_caloNoiseSigmaDiffKey
SG::ReadCondHandleKey< CaloNoiseSigmaDiff > m_caloNoiseSigmaDiffKey
Definition
SCEmulation.h:42
LVL1::SCEmulation::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition
SCEmulation.h:39
LVL1::SCEmulation::getEtaIndex
std::size_t getEtaIndex(CaloSampling::CaloSample sample, float eta) const
Definition
SCEmulation.cxx:414
LVL1::SCEmulation::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
SCEmulation.cxx:209
LVL1::SCEmulation::m_etaBins
std::map< CaloSampling::CaloSample, std::vector< float > > m_etaBins
eta binning read from timing file
Definition
SCEmulation.h:60
LVL1::SCEmulation::~SCEmulation
virtual ~SCEmulation() override
Definition
SCEmulation.cxx:88
LVL1::SCEmulation::m_caloBCIDAverageKey
SG::ReadHandleKey< CaloBCIDAverage > m_caloBCIDAverageKey
Definition
SCEmulation.h:40
LVL1::SCEmulation::m_caloSuperCellMgrKey
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > m_caloSuperCellMgrKey
Super cell manager key.
Definition
SCEmulation.h:45
LVL1::SCEmulation::m_timingSamples
std::map< std::tuple< CaloSampling::CaloSample, std::size_t, std::size_t >, std::map< float, float > > m_timingSamples
Timing distributions.
Definition
SCEmulation.h:65
LVL1::SCEmulation::m_outputSuperCellsKey
SG::WriteHandleKey< CaloCellContainer > m_outputSuperCellsKey
Definition
SCEmulation.h:47
LVL1::SCEmulation::m_caloIdMgr
const CaloIdManager * m_caloIdMgr
Calo ID helpers.
Definition
SCEmulation.h:68
LVL1::SCEmulation::initialize
virtual StatusCode initialize() override
Definition
SCEmulation.cxx:90
LVL1::SCEmulation::getEtIndex
std::size_t getEtIndex(CaloSampling::CaloSample sample, float et) const
Definition
SCEmulation.cxx:419
LVL1::SCEmulation::m_inputCellsKey
SG::ReadHandleKey< CaloCellContainer > m_inputCellsKey
Definition
SCEmulation.h:38
LVL1::SCEmulation::m_useBCID
bool m_useBCID
Compensate for BCIDs.
Definition
SCEmulation.h:54
LVL1::SCEmulation::SCEmulation
SCEmulation(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SCEmulation.cxx:76
LVL1::SCEmulation::m_cellTimingFile
std::string m_cellTimingFile
The cell timing file.
Definition
SCEmulation.h:56
LVL1::SCEmulation::m_scidTool
ToolHandle< ICaloSuperCellIDTool > m_scidTool
Offline<->supercell mapping tool.
Definition
SCEmulation.h:50
LVL1::SCEmulation::m_useNoise
bool m_useNoise
Use noise values.
Definition
SCEmulation.h:52
LVL1::SCEmulation::m_etBins
std::map< CaloSampling::CaloSample, std::vector< float > > m_etBins
Et binning read from timing file.
Definition
SCEmulation.h:62
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
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
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
TrigConf::name
Definition
HLTChainList.h:35
et
Extra patterns decribing particle interation process.
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0