ATLAS Offline Software
L1EtTools.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
5 // L1EtTools.h,
7 
8  /***************************************************************************
9  * *
10  * *
11  ***************************************************************************/
12 
13 #ifndef LVL1L1ETTOOLS_H
14 #define LVL1L1ETTOOLS_H
15 
23 #include "TrigConfData/L1Menu.h"
24 
25 namespace LVL1
26 {
27 
59  class L1EtTools : virtual public IL1EtTools, public AthAlgTool
60  {
61  public:
62 
63  L1EtTools(const std::string&,const std::string&,const IInterface*);
64 
66  virtual ~L1EtTools ();
67 
69  virtual StatusCode initialize();
71  virtual StatusCode finalize();
73  virtual void moduleSums(const xAOD::JetElementContainer* jetelements,
74  DataVector<ModuleEnergy>* modules, int slice = -1) const;
75  virtual void moduleSums(const xAOD::JetElementMap_t* jemap,
76  DataVector<ModuleEnergy>* modules, int slice = -1) const;
78  virtual void crateSums(const DataVector<ModuleEnergy>* modules,
79  DataVector<CrateEnergy>* crates, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false) const;
80  virtual void crateSums(const DataVector<EnergyCMXData>* modules,
81  DataVector<CrateEnergy>* crates, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false) const;
83  virtual void crateSums(const xAOD::JetElementContainer* jetelements,
84  DataVector<CrateEnergy>* crates, int slice = -1, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false) const;
85  virtual void crateSums(const xAOD::JetElementMap_t* jemap,
86  DataVector<CrateEnergy>* crates, int slice = -1, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false) const;
88  virtual SystemEnergy systemSums(const DataVector<CrateEnergy>* crates) const;
90  virtual SystemEnergy systemSums(const xAOD::JetElementContainer* jetelements, int slice = -1, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false) const;
91  virtual SystemEnergy systemSums(const xAOD::JetElementMap_t* jemap, int slice = -1, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false) const;
92 
93  private:
94 
96  void mapJetElements(const xAOD::JetElementContainer* jetelements,
97  xAOD::JetElementMap_t* m_jeContainer) const;
99  void fillMaskedOutMap();
100 
104 
106  std::map<int, int>* m_TEMasks;
107  SG::ReadHandleKey<TrigConf::L1Menu> m_L1MenuKey{ this, "L1TriggerMenu", "DetectorStore+L1TriggerMenu", "L1 Menu" };
108 
109 
110  };
111 } // end of namespace
112 
113 #endif
LVL1::L1EtTools::finalize
virtual StatusCode finalize()
standard Athena-Algorithm method
Definition: L1EtTools.cxx:54
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
JetElementKey.h
ModuleEnergy.h
LVL1::L1EtTools::m_TEMasks
std::map< int, int > * m_TEMasks
Map of JetElements masked out of TE trigger.
Definition: L1EtTools.h:109
LVL1::L1EtTools::m_jetElementThresholdEtSum
int m_jetElementThresholdEtSum
Thresholds to apply to JetElements in EtSum and EtMiss triggers.
Definition: L1EtTools.h:105
SG::ReadHandleKey< TrigConf::L1Menu >
IL1EtTools.h
LVL1::L1EtTools::L1EtTools
L1EtTools(const std::string &, const std::string &, const IInterface *)
Definition: L1EtTools.cxx:19
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::L1EtTools::initialize
virtual StatusCode initialize()
standard Athena-Algorithm method
Definition: L1EtTools.cxx:45
CrateEnergy.h
EnergyCMXData.h
LVL1::L1EtTools::m_L1MenuKey
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
Definition: L1EtTools.h:110
xAOD::JetElementMap_t
std::map< int, const JetElement * > JetElementMap_t
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/JetElement.h:18
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
LVL1::L1EtTools::m_jetElementThresholdEtMiss
int m_jetElementThresholdEtMiss
Definition: L1EtTools.h:106
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
LVL1::L1EtTools::~L1EtTools
virtual ~L1EtTools()
default destructor
Definition: L1EtTools.cxx:38
LVL1::L1EtTools::mapJetElements
void mapJetElements(const xAOD::JetElementContainer *jetelements, xAOD::JetElementMap_t *m_jeContainer) const
Return a map of JetElements.
Definition: L1EtTools.cxx:63
LVL1::SystemEnergy
SystemEnergy class declaration Simulates behaviour of the Crate-CMM System CMM logic is done in Energ...
Definition: SystemEnergy.h:35
LVL1::L1EtTools::systemSums
virtual SystemEnergy systemSums(const DataVector< CrateEnergy > *crates) const
Returns a LVL1::SystemEnergy object.
Definition: L1EtTools.cxx:156
AthAlgTool
Definition: AthAlgTool.h:26
L1Menu.h
LVL1::L1EtTools::crateSums
virtual void crateSums(const DataVector< ModuleEnergy > *modules, DataVector< CrateEnergy > *crates, uint32_t maskXE=0xff, uint32_t maskTE=0xff, bool restricted=false) const
Returns a vector of LVL1::CrateEnergy objects.
Definition: L1EtTools.cxx:130
SystemEnergy.h
LVL1::L1EtTools::fillMaskedOutMap
void fillMaskedOutMap()
Fill masked out JetElements map.
LVL1::L1EtTools::moduleSums
virtual void moduleSums(const xAOD::JetElementContainer *jetelements, DataVector< ModuleEnergy > *modules, int slice=-1) const
Returns a vector of LVL1::ModuleEnergy objects.
Definition: L1EtTools.cxx:91