ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAnalysis
TrigDecisionMaker
src
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
10
#include "
TrigDecisionMaker/ILvl1ResultAccessTool.h
"
11
#include "
TrigConfData/L1PrescalesSet.h
"
12
#include "
TrigT1Interfaces/CPRoIDecoder.h
"
13
#include "
TrigT1Interfaces/JEPRoIDecoder.h
"
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
80
LVL1::JEPRoIDecoder
m_jepDecoder
;
81
LVL1::CPRoIDecoder
m_cpDecoder
;
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
AthAlgTool.h
CPRoIDecoder.h
ILvl1ResultAccessTool.h
JEPRoIDecoder.h
L1PrescalesSet.h
HLT::Lvl1ResultAccessTool::m_cpDecoder
LVL1::CPRoIDecoder m_cpDecoder
Definition
Lvl1ResultAccessTool.h:81
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::makeLvl1ItemConfig
virtual std::vector< std::unique_ptr< LVL1CTP::Lvl1Item > > makeLvl1ItemConfig(const EventContext &context) const override
Definition
Lvl1ResultAccessTool.cxx:36
HLT::Lvl1ResultAccessTool::initialize
virtual StatusCode initialize() override
Definition
Lvl1ResultAccessTool.cxx:22
HLT::Lvl1ResultAccessTool::m_l1PrescaleSetInputKey
SG::ReadCondHandleKey< TrigConf::L1PrescalesSet > m_l1PrescaleSetInputKey
access to L1Prescales
Definition
Lvl1ResultAccessTool.h:84
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
HLT::Lvl1ResultAccessTool::m_jepDecoder
LVL1::JEPRoIDecoder m_jepDecoder
Definition
Lvl1ResultAccessTool.h:80
HLT::Lvl1ResultAccessTool::m_l1ResultKey
SG::WriteHandleKey< LVL1CTP::Lvl1Result > m_l1ResultKey
Definition
Lvl1ResultAccessTool.h:86
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
HLT::Lvl1ResultAccessTool::Lvl1ResultAccessTool
Lvl1ResultAccessTool(const std::string &name, const std::string &type, const IInterface *parent)
std Gaudi constructor
Definition
Lvl1ResultAccessTool.cxx:15
LVL1CTP::Lvl1Item
Definition
Lvl1Item.h:32
LVL1CTP::Lvl1Result
Definition
Lvl1Result.h:30
LVL1::CPRoIDecoder
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
Definition
CPRoIDecoder.h:32
LVL1::JEPRoIDecoder
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
Definition
JEPRoIDecoder.h:28
ROIB::RoIBResult
Class holding the LVL1 RoIB result build by the RoIBuilder.
Definition
RoIBResult.h:47
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
LVL1CTP
Definition
Lvl1ResultAccessTool.h:20
type
Generated on
for ATLAS Offline Software by
1.17.0