ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloSim
src
LArTTL1Overlay.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// ================================================
8
// LArTTL1Overlay class description
9
// ================================================
10
//
11
// THIS TEXT TO BE REPLACED BY ATLAS STANDARD FORMAT
12
//
13
//
14
// class: LArTTL1Overlay
15
//
16
// Description:
17
//
18
//The LArTTL1Overlay class takes calorimeter cells from the TES and
19
// forms Trigger Towers, which it then places back into the TES The calorimeter
20
// cells can be produced either by GEANT or other fast simulation packages
21
// - this is defined by setting a parameter
22
// CellType to 1 for CaloCells, 2 to reprocess TriggerTowers and 3 for LAr/Tile TTL1 input (a simulation of analogue towers);
23
//
24
// ................................................................
25
//
26
27
#ifndef TRIGT1CALOSIM_LARTTL1OVERLAY_H
28
#define TRIGT1CALOSIM_LARTTL1OVERLAY_H
29
30
31
32
// Athena/Gaudi
33
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
34
#include "Identifier/Identifier.h"
35
36
// Calorimeter tower includes
37
#include "
LArRawEvent/LArTTL1Container.h
"
38
39
// STL
40
#include <map>
41
#include <string>
42
#include <vector>
43
44
namespace
LVL1
45
{
46
47
class
LArTTL1Overlay
:
public
AthReentrantAlgorithm
48
{
49
public
:
50
LArTTL1Overlay
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
51
52
// main AthReentrantAlgorithm methods
53
virtual
StatusCode
initialize
()
override
final
;
54
virtual
StatusCode
execute
(
const
EventContext& ctx)
const
override
final
;
55
56
private
:
57
// locations of background TTL1 data
58
SG::ReadHandleKey<LArTTL1Container>
m_bkgEmTTL1Key
{
this
,
"BkgEmTTL1Key"
,
"Bkg_LArTTL1EM"
,
"ReadHandleKey for Background Input EM LArTTL1Container"
};
59
SG::ReadHandleKey<LArTTL1Container>
m_bkgHadTTL1Key
{
this
,
"BkgHadTTL1Key"
,
"Bkg_LArTTL1HAD"
,
"ReadHandleKey for Background Input Had LArTTL1Container"
};
60
// locations of signal TTL1 data
61
SG::ReadHandleKey<LArTTL1Container>
m_signalEmTTL1Key
{
this
,
"SignalEmTTL1Key"
,
"Sig_LArTTL1EM"
,
"ReadHandleKey for Signal Input EM LArTTL1Container"
};
62
SG::ReadHandleKey<LArTTL1Container>
m_signalHadTTL1Key
{
this
,
"SignalHadTTL1Key"
,
"Sig_LArTTL1HAD"
,
"ReadHandleKey for Signal Input Had LArTTL1Container"
};
63
// locations of output TTL1 data
64
SG::WriteHandleKey<LArTTL1Container>
m_outputEmTTL1Key
{
this
,
"OutputEmTTL1Key"
,
"LArTTL1EM"
,
"WriteHandleKey for Output EM LArTTL1Container"
};
65
SG::WriteHandleKey<LArTTL1Container>
m_outputHadTTL1Key
{
this
,
"OutputHadTTL1Key"
,
"LArTTL1HAD"
,
"WriteHandleKey for Output Had LArTTL1Container"
};
66
67
// overlay amplitudes from other TTL1
68
void
groupTowers
(
const
LArTTL1Container
*towers,
69
std::map<
Identifier
, std::vector<const LArTTL1*>> &towerMap)
const
;
70
71
// specialised overlay functions
72
StatusCode
overlay
(
const
EventContext& ctx,
73
const
SG::ReadHandleKey<LArTTL1Container>
&bkgKey,
74
const
SG::ReadHandleKey<LArTTL1Container>
&signalKey,
75
const
SG::WriteHandleKey<LArTTL1Container>
&outputKey,
76
const
std::string &
label
)
const
;
77
};
78
79
}
// namespace LVL1
80
#endif
AthReentrantAlgorithm.h
LArTTL1Container.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
LArTTL1Container
Container class for LArTTL1.
Definition
LArTTL1Container.h:24
LVL1::LArTTL1Overlay::initialize
virtual StatusCode initialize() override final
Definition
LArTTL1Overlay.cxx:17
LVL1::LArTTL1Overlay::groupTowers
void groupTowers(const LArTTL1Container *towers, std::map< Identifier, std::vector< const LArTTL1 * > > &towerMap) const
Steps over LAr tower collection and overlays on existing collection.
Definition
LArTTL1Overlay.cxx:48
LVL1::LArTTL1Overlay::m_outputHadTTL1Key
SG::WriteHandleKey< LArTTL1Container > m_outputHadTTL1Key
Definition
LArTTL1Overlay.h:65
LVL1::LArTTL1Overlay::m_outputEmTTL1Key
SG::WriteHandleKey< LArTTL1Container > m_outputEmTTL1Key
Definition
LArTTL1Overlay.h:64
LVL1::LArTTL1Overlay::m_bkgHadTTL1Key
SG::ReadHandleKey< LArTTL1Container > m_bkgHadTTL1Key
Definition
LArTTL1Overlay.h:59
LVL1::LArTTL1Overlay::m_bkgEmTTL1Key
SG::ReadHandleKey< LArTTL1Container > m_bkgEmTTL1Key
Definition
LArTTL1Overlay.h:58
LVL1::LArTTL1Overlay::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Main algorithm execute.
Definition
LArTTL1Overlay.cxx:39
LVL1::LArTTL1Overlay::m_signalEmTTL1Key
SG::ReadHandleKey< LArTTL1Container > m_signalEmTTL1Key
Definition
LArTTL1Overlay.h:61
LVL1::LArTTL1Overlay::LArTTL1Overlay
LArTTL1Overlay(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArTTL1Overlay.cxx:14
LVL1::LArTTL1Overlay::m_signalHadTTL1Key
SG::ReadHandleKey< LArTTL1Container > m_signalHadTTL1Key
Definition
LArTTL1Overlay.h:62
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
label
std::string label(const std::string &format, int i)
Definition
label.h:19
overlay
bool overlay
Definition
listroot.cxx:42
Identifier
Definition
IdentifierFieldParser.cxx:14
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
TrigConf::name
Definition
HLTChainList.h:35
Generated on
for ATLAS Offline Software by
1.17.0