ATLAS Offline Software
Loading...
Searching...
No Matches
PFSumFex.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4
5/******************************************************************************
6 * @package Trigger/TrigAlgorithms/TrigEFMissingET
7 * @class PFSumFex
8 *
9 * @brief Fex class for the basic PFlow algorithm
10 * @author Jon Burr
11 *****************************************************************************/
12
13#ifndef TRIGEFMISSINGET_PFSUMFEX_H
14#define TRIGEFMISSINGET_PFSUMFEX_H
15
16#include "FexBase.h"
18
19namespace HLT { namespace MET {
20 /****************************************************************************
21 * @class PFSumFex
22 *
23 * Class to create output from the PFlow algorithm
24 *
25 * tc calculates the MET with a sum over trigger-level PFOs.
26 ***************************************************************************/
27 class PFSumFex : public FexBase
28 {
29 public:
31 PFSumFex(const std::string& name, ISvcLocator* pSvcLocator);
32
34 virtual StatusCode initialize() override;
35
36 private:
37 /************************************************************************
38 * Properties
39 ***********************************************************************/
42 this, "NeutralPFOName", "neutralPFOs", "Input neutral PFO collection"};
43
45 this, "ChargedPFOName", "chargedPFOs", "Input charged PFO collection"};
46
47 Gaudi::Property<bool> m_chargedOnlyFromPV{
48 this, "ChargedOnlyFromPV", true, "Only use charged PFOs from the PV"};
49
50 /************************************************************************
51 * Internal functions
52 ***********************************************************************/
59 virtual StatusCode fillMET(
61 const EventContext& context,
62 MonGroupBuilder& monitors) const override;
63 }; //> end class PFSumFex
64} } //> end namespace HLT::MET
65
66#endif //> !TRIGEFMISSINGET_PFSUMFEX_H
FexBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition FexBase.cxx:43
virtual StatusCode initialize() override
Initialize the fex.
Definition PFSumFex.cxx:23
virtual StatusCode fillMET(xAOD::TrigMissingET &met, const EventContext &context, MonGroupBuilder &monitors) const override
Calculate and fill the output MET value.
Definition PFSumFex.cxx:30
PFSumFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition PFSumFex.cxx:19
SG::ReadHandleKey< xAOD::IParticleContainer > m_chargedPFOKey
Input charged PFOs.
Definition PFSumFex.h:44
SG::ReadHandleKey< xAOD::IParticleContainer > m_neutralPFOKey
Input neutral PFOs.
Definition PFSumFex.h:41
Gaudi::Property< bool > m_chargedOnlyFromPV
Whether to only include charged PFOs that are matched to the PV vertex.
Definition PFSumFex.h:47
Property holding a SG store/key/clid from which a ReadHandle is made.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
TrigMissingET_v1 TrigMissingET
Define the most recent version of the TrigMissingET class.