ATLAS Offline Software
TrigJetHypoAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TrigHLTJetHypo_TrigJetHypoAlg_H
5 #define TrigHLTJetHypo_TrigJetHypoAlg_H
6 
7 #include <string>
8 
9 #include "TrigJetHypoAlg.h"
11 #include "xAODJet/JetContainer.h"
12 
14 
15 #include "TrigJetHypoTool.h"
16 
21 class TrigJetHypoAlg : public ::HypoBase {
22  public:
23 
24  TrigJetHypoAlg( const std::string& name, ISvcLocator* pSvcLocator );
25 
26  virtual StatusCode initialize() override;
27  virtual StatusCode execute( const EventContext& context ) const override;
28 
29  private:
30 
44  const TrigCompositeUtils::Decision* previousDecision,
46  const EventContext& context
47  ) const;
48 
49 
50  ToolHandleArray<TrigJetHypoTool> m_hypoTools {
51  this, "HypoTools", {}, "Hypo tools"};
52 
54  this, "Jets", "Jets", "jet container key, full scan"};
55 
56  // For preselection, we want to only generate one decision object
57  // a la L1, rather than one per jet
58  Gaudi::Property<bool> m_doPresel {
59  this, "DoPresel", false, "is this preselection rather than main decision?"};
60 
61 };
62 
63 #endif
TrigJetHypoAlg.h
TrigJetHypoAlg
Implements jet selection for the HLT framework.
Definition: TrigJetHypoAlg.h:21
TrigJetHypoAlg::m_jetsKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
Definition: TrigJetHypoAlg.h:53
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:58
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:581
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
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:50
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