ATLAS Offline Software
CVFPrepAlg.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 CVFPrepAlg
8  *
9  * @brief Algorithm to prepare clusters for the PUSplit pufit alg
10  * @author Jon Burr
11  *****************************************************************************/
12 
13 #ifndef TRIGEFMISSINGET_CVFPREPALG_H
14 #define TRIGEFMISSINGET_CVFPREPALG_H
15 
21 #include "Gaudi/Property.h"
22 
23 namespace HLT
24 {
25  namespace MET
26  {
27  /**************************************************************************
28  * @class PFOPrepAlg
29  *
30  * Class to prepare the clusters for the PUSplit pufit alg.
31  *
32  * This just uses the CVF value per cluster to add the necessary
33  * classification decoration
34  **************************************************************************/
35  class CVFPrepAlg : public AthReentrantAlgorithm
36  {
37  public:
39  CVFPrepAlg(const std::string &name, ISvcLocator *pSvcLocator);
40 
41  virtual StatusCode initialize() override;
42 
43  virtual StatusCode execute(const EventContext &ctx) const override;
44 
45  private:
48  this, "InputClusterKey", "", "Input cluster container"};
51  this, "InputCVFKey", "", "Input CVF key"};
54  this, "OutputCategoryKey", "", "Output category name"};
56  Gaudi::Property<float> m_cvfThreshold{
57  this, "CVFThreshold", 0.5, "The CVF threshold to apply"};
58  }; //> end class CVFPrepAlg
59  } // namespace MET
60 } // namespace HLT
61 
62 #endif //> !TRIGEFMISSINGET_CVFPREPALG_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
HLT::MET::CVFPrepAlg::CVFPrepAlg
CVFPrepAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: CVFPrepAlg.cxx:16
SG::ReadHandleKey< xAOD::CaloClusterContainer >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TCS::MET
@ MET
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:16
HLT::MET::CVFPrepAlg::m_outputCategoryKey
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_outputCategoryKey
The output classifcation.
Definition: CVFPrepAlg.h:78
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HLT::MET::CVFPrepAlg::m_inputClusterKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterKey
The input container.
Definition: CVFPrepAlg.h:72
HLT::MET::CVFPrepAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: CVFPrepAlg.cxx:46
CaloClusterContainer.h
HLT::MET::CVFPrepAlg::m_cvfThreshold
Gaudi::Property< float > m_cvfThreshold
The CVF threshold.
Definition: CVFPrepAlg.h:81
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
HLT::MET::CVFPrepAlg::m_inputCVFKey
SG::ReadDecorHandleKey< xAOD::CaloClusterContainer > m_inputCVFKey
The input CVF key.
Definition: CVFPrepAlg.h:75
HLT::MET::CVFPrepAlg::initialize
virtual StatusCode initialize() override
Definition: CVFPrepAlg.cxx:21