ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTriggerCnv
src
TrigDecisionCnvTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef XAODTRIGGERCNV_TRIGDECISIONCNVTOOL_H
6
#define XAODTRIGGERCNV_TRIGDECISIONCNVTOOL_H
7
8
// System include(s):
9
#include <vector>
10
11
// Gaudi/Athena include(s):
12
#include "
AthenaBaseComps/AthAlgTool.h
"
13
#include "GaudiKernel/ToolHandle.h"
14
#include "GaudiKernel/ServiceHandle.h"
15
16
// Trigger include(s):
17
#include "
TrigDecisionTool/TrigDecisionTool.h
"
18
#include "
TrigConfInterfaces/IHLTConfigSvc.h
"
19
20
// Local include(s):
21
#include "
xAODTriggerCnv/ITrigDecisionCnvTool.h
"
22
#include "
EventInfo/TriggerInfo.h
"
23
24
namespace
xAODMaker
{
25
35
class
TrigDecisionCnvTool
:
public
AthAlgTool
,
36
public
virtual
ITrigDecisionCnvTool
{
37
38
public
:
40
TrigDecisionCnvTool
(
const
std::string&
type
,
const
std::string& name,
41
const
IInterface* parent );
42
43
virtual
~TrigDecisionCnvTool
();
44
46
virtual
StatusCode
initialize
()
override
;
47
49
virtual
StatusCode
convert
(
const
TrigDec::TrigDecision
* aod,
50
xAOD::TrigDecision
* xaod,
51
const
TriggerInfo
* level1TriggerInfo )
const
final
;
52
53
private
:
55
static
StatusCode
setBit
( std::vector< uint32_t >& bitset,
56
uint32_t chainId,
bool
value =
true
);
57
59
PublicToolHandle< Trig::TrigDecisionTool >
m_tdt
{
this
,
"TrigDecisionTool"
,
60
"Trig::TrigDecisionTool/TrigDecisionTool"
};
61
62
ServiceHandle< TrigConf::IHLTConfigSvc >
m_trigconf
{
this
,
"TrigConfigSvc"
,
63
"TrigConf::xAODConfigSvc/xAODConfigSvc"
};
64
65
};
// class TrigDecisionCnvTool
66
67
}
// namespace xAODMaker
68
69
#endif
// XAODTRIGGERCNV_TRIGDECISIONCNVTOOL_H
AthAlgTool.h
IHLTConfigSvc.h
ITrigDecisionCnvTool.h
TrigDecisionTool.h
TriggerInfo.h
This class contains trigger related information.
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
ServiceHandle< TrigConf::IHLTConfigSvc >
TrigDec::TrigDecision
The TrigDecision is an object which merges trigger informations from various levels.
Definition
Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:47
TriggerInfo
This class contains trigger related information.
Definition
TriggerInfo.h:77
xAODMaker::ITrigDecisionCnvTool
Interface for the tool creating xAOD::TrigDecision from an AOD.
Definition
ITrigDecisionCnvTool.h:42
xAODMaker::TrigDecisionCnvTool::TrigDecisionCnvTool
TrigDecisionCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition
TrigDecisionCnvTool.cxx:72
xAODMaker::TrigDecisionCnvTool::m_trigconf
ServiceHandle< TrigConf::IHLTConfigSvc > m_trigconf
Connection to the HLT configuration.
Definition
TrigDecisionCnvTool.h:62
xAODMaker::TrigDecisionCnvTool::initialize
virtual StatusCode initialize() override
Function initialising the tool.
Definition
TrigDecisionCnvTool.cxx:86
xAODMaker::TrigDecisionCnvTool::setBit
static StatusCode setBit(std::vector< uint32_t > &bitset, uint32_t chainId, bool value=true)
Function setting the status of one bit in a bitset.
Definition
TrigDecisionCnvTool.cxx:247
xAODMaker::TrigDecisionCnvTool::~TrigDecisionCnvTool
virtual ~TrigDecisionCnvTool()
Definition
TrigDecisionCnvTool.cxx:82
xAODMaker::TrigDecisionCnvTool::convert
virtual StatusCode convert(const TrigDec::TrigDecision *aod, xAOD::TrigDecision *xaod, const TriggerInfo *level1TriggerInfo) const final
Function filling an xAOD::TrigDecision object with information.
Definition
TrigDecisionCnvTool.cxx:108
xAODMaker::TrigDecisionCnvTool::m_tdt
PublicToolHandle< Trig::TrigDecisionTool > m_tdt
Connection to the TrigDecisionTool.
Definition
TrigDecisionCnvTool.h:59
xAODMaker
Definition
StoreGateSvc.h:70
xAOD::TrigDecision
TrigDecision_v1 TrigDecision
Define the latest version of the trigger decision class.
Definition
Event/xAOD/xAODTrigger/xAODTrigger/TrigDecision.h:16
type
Generated on
for ATLAS Offline Software by
1.17.0