ATLAS Offline Software
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:
47  class JEMEnergySim : public AthAlgorithm
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 
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 
81  SG::WriteHandleKey<DataVector<EnergyCMXData> > m_energyCMXDataOutputKey { this, "EnergyCMXDataLocation", TrigT1CaloDefs::EnergyCMXDataLocation, "Output Jet CMX energy sum container" };
82 
85 
86 private: // Private methods
87 
90  void storeBackplaneData();
91 
93  void cleanup();
94 
95 };
96 
97 } // end of namespace bracket
98 
99 #endif
100 
LVL1::JEMEnergySim::storeBackplaneData
void storeBackplaneData()
Form EnergyCMXData and put into SG.
Definition: JEMEnergySim.cxx:148
xAOD::JEMEtSums
JEMEtSums_v2 JEMEtSums
Define the latest version of the JEMEtSums class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/JEMEtSums.h:15
LVL1::JEMEnergySim::m_jemContainer
DataVector< ModuleEnergy > * m_jemContainer
vector of ModuleEnergy objects
Definition: JEMEnergySim.h:89
LVL1::JEMEnergySim::m_energyCMXDataOutputKey
SG::WriteHandleKey< DataVector< EnergyCMXData > > m_energyCMXDataOutputKey
Definition: JEMEnergySim.h:86
LVL1::TrigT1CaloDefs::EnergyCMXDataLocation
static const std::string EnergyCMXDataLocation
Definition: TrigT1CaloDefs.h:44
LVL1::JEMEnergySim::m_jemEtSumsLocation
std::string m_jemEtSumsLocation
Definition: JEMEnergySim.h:82
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
IL1EtTools.h
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::JEMEnergySim::initialize
StatusCode initialize()
Definition: JEMEnergySim.cxx:51
AthAlgorithm.h
LVL1::TrigT1CaloDefs::JEMEtSumsLocation
static const std::string JEMEtSumsLocation
Definition: TrigT1CaloDefs.h:48
LVL1::JEMEnergySim::JEMEtSumsCollection
DataVector< JEMEtSums > JEMEtSumsCollection
Definition: JEMEnergySim.h:54
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1::JEMEnergySim::execute
StatusCode execute()
Definition: JEMEnergySim.cxx:67
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
AthAlgorithm
Definition: AthAlgorithm.h:47
TrigConf::name
Definition: HLTChainList.h:35
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
LVL1::TrigT1CaloDefs::JetElementLocation
static const std::string JetElementLocation
Definition: TrigT1CaloDefs.h:39
LVL1::JEMEnergySim::storeJEMEtSums
void storeJEMEtSums()
put results into SG
Definition: JEMEnergySim.cxx:110
JEMEtSums_ClassDEF.h
LVL1::JEMEnergySim::m_JetElementInputKey
SG::ReadHandleKey< xAOD::JetElementContainer > m_JetElementInputKey
Definition: JEMEnergySim.h:80
TrigT1CaloDefs.h
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
LVL1::JEMEnergySim::EnergyCMXDataCollection
DataVector< EnergyCMXData > EnergyCMXDataCollection
Definition: JEMEnergySim.h:55
LVL1::JEMEnergySim::m_jemEtSumsOutputKey
SG::WriteHandleKey< DataVector< JEMEtSums > > m_jemEtSumsOutputKey
Definition: JEMEnergySim.h:83
LVL1::JEMEnergySim::cleanup
void cleanup()
delete pointers etc.
Definition: JEMEnergySim.cxx:104
LVL1::JEMEnergySim::m_EtTool
ToolHandle< LVL1::IL1EtTools > m_EtTool
Definition: JEMEnergySim.h:77
LVL1::JEMEnergySim::m_energyCMXDataLocation
std::string m_energyCMXDataLocation
Definition: JEMEnergySim.h:85
LVL1::JEMEnergySim::JEMEnergySim
JEMEnergySim(const std::string &name, ISvcLocator *pSvcLocator)
Definition: JEMEnergySim.cxx:40