ATLAS Offline Software
Loading...
Searching...
No Matches
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):
23
24namespace 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,
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
63 "TrigConf::xAODConfigSvc/xAODConfigSvc"};
64
65 }; // class TrigDecisionCnvTool
66
67} // namespace xAODMaker
68
69#endif // XAODTRIGGERCNV_TRIGDECISIONCNVTOOL_H
This class contains trigger related information.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
The TrigDecision is an object which merges trigger informations from various levels.
This class contains trigger related information.
Definition TriggerInfo.h:77
Interface for the tool creating xAOD::TrigDecision from an AOD.
TrigDecisionCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
ServiceHandle< TrigConf::IHLTConfigSvc > m_trigconf
Connection to the HLT configuration.
virtual StatusCode initialize() override
Function initialising the tool.
static StatusCode setBit(std::vector< uint32_t > &bitset, uint32_t chainId, bool value=true)
Function setting the status of one bit in a bitset.
virtual StatusCode convert(const TrigDec::TrigDecision *aod, xAOD::TrigDecision *xaod, const TriggerInfo *level1TriggerInfo) const final
Function filling an xAOD::TrigDecision object with information.
PublicToolHandle< Trig::TrigDecisionTool > m_tdt
Connection to the TrigDecisionTool.
TrigDecision_v1 TrigDecision
Define the latest version of the trigger decision class.