ATLAS Offline Software
Loading...
Searching...
No Matches
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
22 #include "GaudiKernel/ServiceHandle.h"
23 #include "GaudiKernel/ToolHandle.h"
24
26
28
29 // LVL1 Calo Trigger
33
34
35 namespace LVL1 {
36
37 class ModuleEnergy;
38 class JEMEtSums;
39 class EnergyCMXData;
40
41 //Doxygen class description below:
48 {
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() ;
70
71private: // Private attributes
72 ToolHandle<LVL1::IL1EtTools> m_EtTool;
73
74 /* StoreGate keys */
76
77 std::string m_jemEtSumsLocation ;
78 SG::WriteHandleKey<DataVector<JEMEtSums> > m_jemEtSumsOutputKey { this, "JEMEtSumsLocation", TrigT1CaloDefs::JEMEtSumsLocation, "Output Jet energy sums container" };
79
81 SG::WriteHandleKey<DataVector<EnergyCMXData> > m_energyCMXDataOutputKey { this, "EnergyCMXDataLocation", TrigT1CaloDefs::EnergyCMXDataLocation, "Output Jet CMX energy sum container" };
82
85
86private: // Private methods
87
89 void storeJEMEtSums();
90 void storeBackplaneData();
91
93 void cleanup();
94
95};
96
97} // end of namespace bracket
98
99#endif
100
An STL vector of pointers that by default owns its pointed-to elements.
Property holding a SG store/key/clid from which a WriteHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Derived DataVector<T>.
Definition DataVector.h:795
The EnergyCMXData object contains the data transferred from the JEM to the EnergySum CMX in the crate...
SG::WriteHandleKey< DataVector< EnergyCMXData > > m_energyCMXDataOutputKey
std::string m_energyCMXDataLocation
StatusCode initialize()
std::string m_jemEtSumsLocation
void storeJEMEtSums()
put results into SG
SG::WriteHandleKey< DataVector< JEMEtSums > > m_jemEtSumsOutputKey
SG::ReadHandleKey< xAOD::JetElementContainer > m_JetElementInputKey
JEMEnergySim(const std::string &name, ISvcLocator *pSvcLocator)
void cleanup()
delete pointers etc.
DataVector< EnergyCMXData > EnergyCMXDataCollection
ToolHandle< LVL1::IL1EtTools > m_EtTool
StatusCode execute()
DataVector< JEMEtSums > JEMEtSumsCollection
void storeBackplaneData()
Form EnergyCMXData and put into SG.
DataVector< ModuleEnergy > * m_jemContainer
vector of ModuleEnergy objects
This is an internal class, used in the Energy trigger.
static const std::string EnergyCMXDataLocation
static const std::string JetElementLocation
static const std::string JEMEtSumsLocation
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...