ATLAS Offline Software
TrigJetHypoAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TrigHLTJetHypo_TrigJetHypoAlg_H
5 #define TrigHLTJetHypo_TrigJetHypoAlg_H
6 
7 
8 #include "xAODJet/JetContainer.h"
10 #include "TrigJetHypoTool.h"
11 #include <string>
12 
17 class TrigJetHypoAlg : public ::HypoBase {
18  public:
19 
20  TrigJetHypoAlg( const std::string& name, ISvcLocator* pSvcLocator );
21 
22  virtual StatusCode initialize() override;
23  virtual StatusCode execute( const EventContext& context ) const override;
24 
25  private:
26 
40  const TrigCompositeUtils::Decision* previousDecision,
42  const EventContext& context
43  ) const;
44 
45 
46  ToolHandleArray<TrigJetHypoTool> m_hypoTools {
47  this, "HypoTools", {}, "Hypo tools"};
48 
50  this, "Jets", "Jets", "jet container key, full scan"};
51 
52  // For preselection, we want to only generate one decision object
53  // a la L1, rather than one per jet
54  Gaudi::Property<bool> m_doPresel {
55  this, "DoPresel", false, "is this preselection rather than main decision?"};
56 
57 };
58 
59 #endif
TrigJetHypoAlg
Implements jet selection for the HLT framework.
Definition: TrigJetHypoAlg.h:17
TrigJetHypoAlg::m_jetsKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
Definition: TrigJetHypoAlg.h:49
TrigJetHypoAlg::decide
StatusCode decide(const xAOD::JetContainer *jets, const TrigCompositeUtils::Decision *previousDecision, TrigCompositeUtils::DecisionContainer *outputDecisions, const EventContext &context) const
Populate outputDecisions and run all HypoTools over the jet collection.
Definition: TrigJetHypoAlg.cxx:87
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TrigJetHypoAlg::initialize
virtual StatusCode initialize() override
Definition: TrigJetHypoAlg.cxx:20
TrigJetHypoAlg::m_doPresel
Gaudi::Property< bool > m_doPresel
Definition: TrigJetHypoAlg.h:54
TrigJetHypoTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
HypoBase
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
Definition: HypoBase.h:13
TrigJetHypoAlg::m_hypoTools
ToolHandleArray< TrigJetHypoTool > m_hypoTools
Definition: TrigJetHypoAlg.h:46
TrigJetHypoAlg::TrigJetHypoAlg
TrigJetHypoAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigJetHypoAlg.cxx:15
JetContainer.h
TrigJetHypoAlg::execute
virtual StatusCode execute(const EventContext &context) const override
Definition: TrigJetHypoAlg.cxx:35
HypoBase.h
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24