ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloSim
src
JEMEnergySim.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/***************************************************************************
6
JEMEnergySim.h - description
7
-------------------
8
begin : Monday 12 May 2014
9
email : Alan.Watson@CERN.CH
10
***************************************************************************/
11
12
#ifndef JEMENERGYSIM_H
13
#define JEMENERGYSIM_H
14
15
// STL
16
#include <string>
17
#include <vector>
18
#include <map>
19
20
// Athena/Gaudi
21
#include "
AthenaBaseComps/AthAlgorithm.h
"
22
#include "GaudiKernel/ServiceHandle.h"
23
#include "GaudiKernel/ToolHandle.h"
24
25
#include "
AthContainers/DataVector.h
"
26
27
#include "
StoreGate/WriteHandleKey.h
"
28
29
// LVL1 Calo Trigger
30
#include "
TrigT1CaloEvent/JEMEtSums_ClassDEF.h
"
31
#include "
TrigT1CaloToolInterfaces/IL1EtTools.h
"
32
#include "
TrigT1Interfaces/TrigT1CaloDefs.h
"
33
34
35
namespace
LVL1
{
36
37
class
ModuleEnergy
;
38
class
JEMEtSums
;
39
class
EnergyCMXData
;
40
41
//Doxygen class description below:
47
class
JEMEnergySim
:
public
AthAlgorithm
48
{
49
typedef
DataVector<JEMEtSums>
JEMEtSumsCollection
;
50
typedef
DataVector<EnergyCMXData>
EnergyCMXDataCollection
;
51
52
public
:
53
54
//-------------------------
55
// Constructors/Destructors
56
//
57
// Athena requires that the constructor takes certain arguments
58
// (and passes them directly to the constructor of the base class)
59
//-------------------------
60
61
JEMEnergySim
(
const
std::string&
name
, ISvcLocator* pSvcLocator ) ;
62
63
64
//------------------------------------------------------
65
// Methods used by Athena to run the algorithm
66
//------------------------------------------------------
67
68
StatusCode
initialize
() ;
69
StatusCode
execute
(
const
EventContext& ctx) ;
70
71
private
:
// Private attributes
72
ToolHandle<LVL1::IL1EtTools>
m_EtTool
;
73
74
/* StoreGate keys */
75
SG::ReadHandleKey<xAOD::JetElementContainer>
m_JetElementInputKey
{
this
,
"JetElementLocation"
,
TrigT1CaloDefs::JetElementLocation
,
"Input JetElement container"
};
76
77
std::string
m_jemEtSumsLocation
;
78
SG::WriteHandleKey<DataVector<JEMEtSums>
>
m_jemEtSumsOutputKey
{
this
,
"JEMEtSumsLocation"
,
TrigT1CaloDefs::JEMEtSumsLocation
,
"Output Jet energy sums container"
};
79
80
std::string
m_energyCMXDataLocation
;
81
SG::WriteHandleKey<DataVector<EnergyCMXData>
>
m_energyCMXDataOutputKey
{
this
,
"EnergyCMXDataLocation"
,
TrigT1CaloDefs::EnergyCMXDataLocation
,
"Output Jet CMX energy sum container"
};
82
84
DataVector<ModuleEnergy>
*
m_jemContainer
;
85
86
private
:
// Private methods
87
89
void
storeJEMEtSums
(
const
EventContext& ctx);
90
void
storeBackplaneData
(
const
EventContext& ctx);
91
93
void
cleanup
();
94
95
};
96
97
}
// end of namespace bracket
98
99
#endif
100
AthAlgorithm.h
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
IL1EtTools.h
JEMEtSums_ClassDEF.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TrigT1CaloDefs.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
LVL1::EnergyCMXData
The EnergyCMXData object contains the data transferred from the JEM to the EnergySum CMX in the crate...
Definition
EnergyCMXData.h:24
LVL1::JEMEnergySim::m_energyCMXDataOutputKey
SG::WriteHandleKey< DataVector< EnergyCMXData > > m_energyCMXDataOutputKey
Definition
JEMEnergySim.h:81
LVL1::JEMEnergySim::storeJEMEtSums
void storeJEMEtSums(const EventContext &ctx)
put results into SG
Definition
JEMEnergySim.cxx:109
LVL1::JEMEnergySim::storeBackplaneData
void storeBackplaneData(const EventContext &ctx)
Form EnergyCMXData and put into SG.
Definition
JEMEnergySim.cxx:137
LVL1::JEMEnergySim::m_energyCMXDataLocation
std::string m_energyCMXDataLocation
Definition
JEMEnergySim.h:80
LVL1::JEMEnergySim::initialize
StatusCode initialize()
Definition
JEMEnergySim.cxx:50
LVL1::JEMEnergySim::m_jemEtSumsLocation
std::string m_jemEtSumsLocation
Definition
JEMEnergySim.h:77
LVL1::JEMEnergySim::m_jemEtSumsOutputKey
SG::WriteHandleKey< DataVector< JEMEtSums > > m_jemEtSumsOutputKey
Definition
JEMEnergySim.h:78
LVL1::JEMEnergySim::m_JetElementInputKey
SG::ReadHandleKey< xAOD::JetElementContainer > m_JetElementInputKey
Definition
JEMEnergySim.h:75
LVL1::JEMEnergySim::JEMEnergySim
JEMEnergySim(const std::string &name, ISvcLocator *pSvcLocator)
Definition
JEMEnergySim.cxx:39
LVL1::JEMEnergySim::cleanup
void cleanup()
delete pointers etc.
Definition
JEMEnergySim.cxx:103
LVL1::JEMEnergySim::EnergyCMXDataCollection
DataVector< EnergyCMXData > EnergyCMXDataCollection
Definition
JEMEnergySim.h:50
LVL1::JEMEnergySim::m_EtTool
ToolHandle< LVL1::IL1EtTools > m_EtTool
Definition
JEMEnergySim.h:72
LVL1::JEMEnergySim::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
JEMEnergySim.cxx:66
LVL1::JEMEnergySim::JEMEtSumsCollection
DataVector< JEMEtSums > JEMEtSumsCollection
Definition
JEMEnergySim.h:49
LVL1::JEMEnergySim::m_jemContainer
DataVector< ModuleEnergy > * m_jemContainer
vector of ModuleEnergy objects
Definition
JEMEnergySim.h:84
LVL1::JEMEtSums
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMEtSums.h:26
LVL1::ModuleEnergy
This is an internal class, used in the Energy trigger.
Definition
ModuleEnergy.h:41
LVL1::TrigT1CaloDefs::EnergyCMXDataLocation
static const std::string EnergyCMXDataLocation
Definition
TrigT1CaloDefs.h:45
LVL1::TrigT1CaloDefs::JetElementLocation
static const std::string JetElementLocation
Definition
TrigT1CaloDefs.h:39
LVL1::TrigT1CaloDefs::JEMEtSumsLocation
static const std::string JEMEtSumsLocation
Definition
TrigT1CaloDefs.h:49
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
Generated on
for ATLAS Offline Software by
1.17.0