ATLAS Offline Software
MHTFex.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  * @package Trigger/TrigAlgorithms/TrigEFMissingET
7  * @class MHTFex
8  *
9  * @brief Fex class for the basic mht algorithm
10  * @author Jon Burr
11  *****************************************************************************/
12 
13 #ifndef TRIGEFMISSINGET_MHTFEX_H
14 #define TRIGEFMISSINGET_MHTFEX_H
15 
16 #include "FexBase.h"
17 #include "xAODJet/JetContainer.h"
18 
19 namespace HLT { namespace MET {
20  /****************************************************************************
21  * @class MHTFex
22  *
23  * Class to create output from the mht algorithm
24  *
25  * mht calculates the MET with a sum over trigger-level jets.
26  ***************************************************************************/
27  class MHTFex : public FexBase
28  {
29  public:
31  MHTFex(const std::string& name, ISvcLocator* pSvcLocator);
32 
34  virtual StatusCode initialize() override;
35 
36  private:
37  /************************************************************************
38  * Properties
39  ***********************************************************************/
42  this, "JetName", "jets", "Input jet colleciton"};
44  Gaudi::Property<float> m_etaSeparation{
45  this, "EtaSeparation", 2.4,
46  "Selection on |eta| to separate the central and forward regions"};
48  Gaudi::Property<float> m_centralPtCut{
49  this, "CentralPtCut", 0, "pT cut for central jets"};
51  Gaudi::Property<float> m_forwardPtCut{
52  this, "ForwardPtCut", 0, "pT cut for forward jets"};
53 
54  /************************************************************************
55  * Internal functions
56  ***********************************************************************/
63  virtual StatusCode fillMET(
65  const EventContext& context,
66  MonGroupBuilder& monitors) const override;
67 
69  inline bool isCentral(const xAOD::Jet* ijet) const
70  { return std::abs(ijet->eta() ) < m_etaSeparation; }
71  }; //> end class MHTFex
72 } } //> end namespace HLT::MET
73 
74 #endif //> !TRIGEFMISSINGET_MHTFEX_H
HLT::MET::MHTFex::isCentral
bool isCentral(const xAOD::Jet *ijet) const
Is a jet central or forward.
Definition: MHTFex.h:93
HLT::MET::MHTFex::m_jetKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
Input jets.
Definition: MHTFex.h:65
HLT::MET::MHTFex::m_centralPtCut
Gaudi::Property< float > m_centralPtCut
Central pT cut.
Definition: MHTFex.h:72
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
HLT::MET::MHTFex::m_etaSeparation
Gaudi::Property< float > m_etaSeparation
Eta separation.
Definition: MHTFex.h:68
met
Definition: IMETSignificance.h:24
FexBase.h
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
HLT::MET::MHTFex::fillMET
virtual StatusCode fillMET(xAOD::TrigMissingET &met, const EventContext &context, MonGroupBuilder &monitors) const override
Calculate and fill the output MET value.
Definition: MHTFex.cxx:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HLT::MET::MHTFex::initialize
virtual StatusCode initialize() override
Initialize the fex.
Definition: MHTFex.cxx:34
TCS::MET
@ MET
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:16
HLT::MET::MHTFex::MHTFex
MHTFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: MHTFex.cxx:30
xAOD::Jet_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: Jet_v1.cxx:49
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HLT::MET::MonGroupBuilder
Definition: MonGroupBuilder.h:45
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetContainer.h
xAOD::TrigMissingET_v1
Class holding the Missing ET trigger fex results.
Definition: TrigMissingET_v1.h:32
HLT::MET::MHTFex::m_forwardPtCut
Gaudi::Property< float > m_forwardPtCut
Forward pT cut.
Definition: MHTFex.h:75