ATLAS Offline Software
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):
13 #include "GaudiKernel/ToolHandle.h"
14 #include "GaudiKernel/ServiceHandle.h"
15 
16 // Trigger include(s):
19 
20 // Local include(s):
22 #include "EventInfo/TriggerInfo.h"
23 
24 namespace xAODMaker {
25 
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"};
63  "TrigConf::xAODConfigSvc/xAODConfigSvc"};
64 
65  }; // class TrigDecisionCnvTool
66 
67 } // namespace xAODMaker
68 
69 #endif // XAODTRIGGERCNV_TRIGDECISIONCNVTOOL_H
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAODMaker::TrigDecisionCnvTool::initialize
virtual StatusCode initialize() override
Function initialising the tool.
Definition: TrigDecisionCnvTool.cxx:86
athena.value
value
Definition: athena.py:122
TrigDecisionTool.h
TriggerInfo.h
This class contains trigger related information.
xAODMaker
Definition: StoreGateSvc.h:72
TrigDec::TrigDecision
The TrigDecision is an object which merges trigger informations from various levels.
Definition: Trigger/TrigEvent/TrigDecisionEvent/TrigDecisionEvent/TrigDecision.h:61
IHLTConfigSvc.h
ITrigDecisionCnvTool.h
xAODMaker::TrigDecisionCnvTool
Implementation of the ITrigDecisionCnvTool interface.
Definition: TrigDecisionCnvTool.h:36
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
xAODMaker::TrigDecisionCnvTool::m_trigconf
ServiceHandle< TrigConf::IHLTConfigSvc > m_trigconf
Connection to the HLT configuration.
Definition: TrigDecisionCnvTool.h:62
xAODMaker::TrigDecisionCnvTool::TrigDecisionCnvTool
TrigDecisionCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition: TrigDecisionCnvTool.cxx:72
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
TriggerInfo
This class contains trigger related information.
Definition: TriggerInfo.h:77
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
xAODMaker::ITrigDecisionCnvTool
Interface for the tool creating xAOD::TrigDecision from an AOD.
Definition: ITrigDecisionCnvTool.h:42
xAODMaker::TrigDecisionCnvTool::~TrigDecisionCnvTool
virtual ~TrigDecisionCnvTool()
Definition: TrigDecisionCnvTool.cxx:82
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAODMaker::TrigDecisionCnvTool::m_tdt
PublicToolHandle< Trig::TrigDecisionTool > m_tdt
Connection to the TrigDecisionTool.
Definition: TrigDecisionCnvTool.h:59
AthAlgTool
Definition: AthAlgTool.h:26
xAOD::TrigDecision_v1
Interface to the raw trigger decision information of the event.
Definition: TrigDecision_v1.h:44
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:248
ServiceHandle< TrigConf::IHLTConfigSvc >