ATLAS Offline Software
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 
19 namespace 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"};
45  this, "ChargedPFOName", "chargedPFOs", "Input charged PFO collection"};
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
HLT::MET::PFSumFex::m_chargedOnlyFromPV
Gaudi::Property< bool > m_chargedOnlyFromPV
Whether to only include charged PFOs that are matched to the PV vertex.
Definition: PFSumFex.h:71
HLT::MET::PFSumFex::m_chargedPFOKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_chargedPFOKey
Input charged PFOs.
Definition: PFSumFex.h:68
HLT::MET::PFSumFex::initialize
virtual StatusCode initialize() override
Initialize the fex.
Definition: PFSumFex.cxx:35
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
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::PFSumFex::PFSumFex
PFSumFex(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: PFSumFex.cxx:31
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
TCS::MET
@ MET
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:16
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HLT::MET::PFSumFex::fillMET
virtual StatusCode fillMET(xAOD::TrigMissingET &met, const EventContext &context, MonGroupBuilder &monitors) const override
Calculate and fill the output MET value.
Definition: PFSumFex.cxx:42
xAOD::TrigMissingET_v1
Class holding the Missing ET trigger fex results.
Definition: TrigMissingET_v1.h:32
HLT::MET::PFSumFex::m_neutralPFOKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_neutralPFOKey
Input neutral PFOs.
Definition: PFSumFex.h:65