ATLAS Offline Software
Lvl1ResultAccessTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGDECISIONMAKER_LVL1RESULTACCESSTOOL_H
6 #define TRIGDECISIONMAKER_LVL1RESULTACCESSTOOL_H
7 
9 
14 
15 #include <vector>
16 #include <bitset>
17 #include <string>
18 
19 // forward declarations
20 namespace LVL1CTP {
21  class Lvl1Result;
22  class Lvl1Item;
23 }
24 
25 namespace HLT {
26 
39  class Lvl1ResultAccessTool : public extends<AthAlgTool, ILvl1ResultAccessTool>
40  {
41  public:
42 
43  Lvl1ResultAccessTool(const std::string& name, const std::string& type,
44  const IInterface* parent);
45 
46  virtual StatusCode initialize() override;
47 
48  virtual std::vector< std::unique_ptr<LVL1CTP::Lvl1Item>> makeLvl1ItemConfig(const EventContext& context) const override;
49 
53  virtual bool isCalibrationEvent(const ROIB::RoIBResult& result) const override;
54 
55 
63  virtual
64  std::vector< const LVL1CTP::Lvl1Item* >
65  createL1Items(const std::vector< std::unique_ptr<LVL1CTP::Lvl1Item> >& lvl1ItemConfig,
66  const ROIB::RoIBResult& result,
67  LVL1CTP::Lvl1Result const** lvl1ResultOut = nullptr) const override;
68 
74  virtual
75  std::bitset<3> lvl1EMTauJetOverflow(const ROIB::RoIBResult& result) override;
76 
77  private:
78 
79  // L1 decoders
82 
84  SG::ReadCondHandleKey<TrigConf::L1PrescalesSet> m_l1PrescaleSetInputKey{ this, "L1Prescales", "L1Prescales", "L1 prescales set"};
85 
86  SG::WriteHandleKey<LVL1CTP::Lvl1Result> m_l1ResultKey{ this, "L1Result", "L1Result", "L1 result"};
87  };
88 } // end namespace
89 
90 
91 #endif
get_generator_info.result
result
Definition: get_generator_info.py:21
ROIB::RoIBResult
Class holding the LVL1 RoIB result build by the RoIBuilder.
Definition: RoIBResult.h:47
HLT::Lvl1ResultAccessTool::createL1Items
virtual std::vector< const LVL1CTP::Lvl1Item * > createL1Items(const std::vector< std::unique_ptr< LVL1CTP::Lvl1Item > > &lvl1ItemConfig, const ROIB::RoIBResult &result, LVL1CTP::Lvl1Result const **lvl1ResultOut=nullptr) const override
Extract LVL1 items from given RoIBResult.
Definition: Lvl1ResultAccessTool.cxx:100
LVL1::JEPRoIDecoder
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
Definition: JEPRoIDecoder.h:33
CPRoIDecoder.h
HLT::Lvl1ResultAccessTool::initialize
virtual StatusCode initialize() override
Definition: Lvl1ResultAccessTool.cxx:22
L1PrescalesSet.h
HLT::Lvl1ResultAccessTool::isCalibrationEvent
virtual bool isCalibrationEvent(const ROIB::RoIBResult &result) const override
checks if we have calibration items fired in this event
Definition: Lvl1ResultAccessTool.cxx:71
HLT::Lvl1ResultAccessTool::m_l1ResultKey
SG::WriteHandleKey< LVL1CTP::Lvl1Result > m_l1ResultKey
Definition: Lvl1ResultAccessTool.h:86
ILvl1ResultAccessTool.h
LVL1CTP::Lvl1Item
Definition: Lvl1Item.h:37
SG::WriteHandleKey< LVL1CTP::Lvl1Result >
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
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
HLT::Lvl1ResultAccessTool::lvl1EMTauJetOverflow
virtual std::bitset< 3 > lvl1EMTauJetOverflow(const ROIB::RoIBResult &result) override
Check if there was an overflow in the TOB transmission to CMX.
Definition: Lvl1ResultAccessTool.cxx:173
JEPRoIDecoder.h
HLT::Lvl1ResultAccessTool::Lvl1ResultAccessTool
Lvl1ResultAccessTool(const std::string &name, const std::string &type, const IInterface *parent)
std Gaudi constructor
Definition: Lvl1ResultAccessTool.cxx:15
LVL1CTP::Lvl1Result
Definition: Lvl1Result.h:32
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::ReadCondHandleKey< TrigConf::L1PrescalesSet >
HLT::Lvl1ResultAccessTool
Definition: Lvl1ResultAccessTool.h:40
LVL1::CPRoIDecoder
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
Definition: CPRoIDecoder.h:37
HLT::Lvl1ResultAccessTool::m_l1PrescaleSetInputKey
SG::ReadCondHandleKey< TrigConf::L1PrescalesSet > m_l1PrescaleSetInputKey
access to L1Prescales
Definition: Lvl1ResultAccessTool.h:84
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1CTP
Definition: Lvl1ResultAccessTool.h:20
HLT::Lvl1ResultAccessTool::m_jepDecoder
LVL1::JEPRoIDecoder m_jepDecoder
Definition: Lvl1ResultAccessTool.h:80
HLT::Lvl1ResultAccessTool::m_cpDecoder
LVL1::CPRoIDecoder m_cpDecoder
Definition: Lvl1ResultAccessTool.h:81
HLT::Lvl1ResultAccessTool::makeLvl1ItemConfig
virtual std::vector< std::unique_ptr< LVL1CTP::Lvl1Item > > makeLvl1ItemConfig(const EventContext &context) const override
Definition: Lvl1ResultAccessTool.cxx:36