ATLAS Offline Software
Loading...
Searching...
No Matches
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"
18
19namespace 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"};
43
44 Gaudi::Property<float> m_etaSeparation{
45 this, "EtaSeparation", 2.4,
46 "Selection on |eta| to separate the central and forward regions"};
47
48 Gaudi::Property<float> m_centralPtCut{
49 this, "CentralPtCut", 0, "pT cut for central jets"};
50
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
FexBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition FexBase.cxx:43
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
Input jets.
Definition MHTFex.h:41
MHTFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition MHTFex.cxx:18
virtual StatusCode fillMET(xAOD::TrigMissingET &met, const EventContext &context, MonGroupBuilder &monitors) const override
Calculate and fill the output MET value.
Definition MHTFex.cxx:28
Gaudi::Property< float > m_forwardPtCut
Forward pT cut.
Definition MHTFex.h:51
bool isCentral(const xAOD::Jet *ijet) const
Is a jet central or forward.
Definition MHTFex.h:69
Gaudi::Property< float > m_etaSeparation
Eta separation.
Definition MHTFex.h:44
virtual StatusCode initialize() override
Initialize the fex.
Definition MHTFex.cxx:22
Gaudi::Property< float > m_centralPtCut
Central pT cut.
Definition MHTFex.h:48
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition Jet_v1.cxx:49
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Jet_v1 Jet
Definition of the current "jet version".
TrigMissingET_v1 TrigMissingET
Define the most recent version of the TrigMissingET class.