ATLAS Offline Software
Loading...
Searching...
No Matches
DecisionUnpackerStandalone.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGDECISIONTOOL_DECISIONUNPACKERSTANDALONE_H
8#define TRIGDECISIONTOOL_DECISIONUNPACKERSTANDALONE_H
9
10// Trigger configuration include(s):
14
15// Local include(s):
18
19// xAOD include(s):
22
24
25// Forward declaration(s):
26namespace HLT {
27 class TrigNavStructure;
28}
29
30
31namespace TrigConf {
32 class ITrigConfigTool;
33}
34
35namespace Trig {
36
37 // Forward declaration(s):
38 class DecisionObjectHandleStandalone;
39
42
43 public:
49
52
54 virtual StatusCode
55 unpackDecision( const EventContext& ctx,
56 std::unordered_map< std::string, const LVL1CTP::Lvl1Item* >& itemsByName,
57 std::map< CTPID, LVL1CTP::Lvl1Item >& itemsCache,
58 std::unordered_map< std::string, const HLT::Chain* >& l2chainsByName,
59 std::map< CHAIN_COUNTER, HLT::Chain >& l2chainsCache,
60 std::unordered_map< std::string, const HLT::Chain* >& efchainsByName,
61 std::map< CHAIN_COUNTER, HLT::Chain >& efchainsCache,
62 char& bgCode,
63 bool unpackHLT ) const override;
65 virtual StatusCode unpackNavigation( const EventContext& ctx,
66 HLT::TrigNavStructure* nav ) const override;
67
68 private:
70 StatusCode unpackItems( const xAOD::TrigDecision& trigDec,
71 std::map< CTPID, LVL1CTP::Lvl1Item >& itemsCache,
72 std::unordered_map< std::string,
73 const LVL1CTP::Lvl1Item*>& itemsByName ) const;
74
76 StatusCode unpackChains( std::map< unsigned, HLT::Chain >& cache,
77 const std::vector< uint32_t >& raw,
78 const std::vector< uint32_t >& passedThrough,
79 const std::vector< uint32_t >& prescaled,
80 const std::vector< uint32_t >& resurrected,
81 std::unordered_map< std::string,
82 const HLT::Chain* >& output ) const;
83
88
89 }; // class DecisionUnpackerStandalone
90
91} // namespace Trig
92
93#endif // TRIGDECISIONTOOL_DECISIONUNPACKERSTANDALONE_H
Property holding a SG store/key/clid from which a ReadHandle is made.
This class represents one chain of signatures, i.e.
Definition Chain.h:64
Property holding a SG store/key/clid from which a ReadHandle is made.
Interface for dual-use tools that provide trigger configuration information.
virtual StatusCode unpackDecision(const EventContext &ctx, std::unordered_map< std::string, const LVL1CTP::Lvl1Item * > &itemsByName, std::map< CTPID, LVL1CTP::Lvl1Item > &itemsCache, std::unordered_map< std::string, const HLT::Chain * > &l2chainsByName, std::map< CHAIN_COUNTER, HLT::Chain > &l2chainsCache, std::unordered_map< std::string, const HLT::Chain * > &efchainsByName, std::map< CHAIN_COUNTER, HLT::Chain > &efchainsCache, char &bgCode, bool unpackHLT) const override
Function unpacking the payload of the trigger decision.
StatusCode unpackChains(std::map< unsigned, HLT::Chain > &cache, const std::vector< uint32_t > &raw, const std::vector< uint32_t > &passedThrough, const std::vector< uint32_t > &prescaled, const std::vector< uint32_t > &resurrected, std::unordered_map< std::string, const HLT::Chain * > &output) const
Function unpacking the decision of the HLT chains.
virtual StatusCode unpackNavigation(const EventContext &ctx, HLT::TrigNavStructure *nav) const override
Function unpacking the payload of the trigger navigation.
StatusCode unpackItems(const xAOD::TrigDecision &trigDec, std::map< CTPID, LVL1CTP::Lvl1Item > &itemsCache, std::unordered_map< std::string, const LVL1CTP::Lvl1Item * > &itemsByName) const
Function unpacking the decision of the LVL1 items.
const SG::ReadHandleKey< xAOD::TrigNavigation > * m_navikey
Key of the trigger navigation object in the event.
DecisionUnpackerStandalone(const SG::ReadHandleKey< xAOD::TrigDecision > *, const SG::ReadHandleKey< xAOD::TrigNavigation > *navikey)
Constructor with arguments.
DecisionUnpackerStandalone & operator=(const DecisionUnpackerStandalone &)=delete
DecisionUnpackerStandalone(const DecisionUnpackerStandalone &)=delete
const SG::ReadHandleKey< xAOD::TrigDecision > * m_deckey
Key of the trigger decision object in the event.
Logger()=default
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
The common trigger namespace for trigger analysis tools.
TrigDecision_v1 TrigDecision
Define the latest version of the trigger decision class.