ATLAS Offline Software
TrigDecisionCnvAlg.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: TrigDecisionCnvAlg.h 578517 2014-01-15 13:48:04Z krasznaa $
8 #ifndef XAODTRIGGERCNV_TRIGDECISIONCNVALG_H
9 #define XAODTRIGGERCNV_TRIGDECISIONCNVALG_H
10 
11 // System include(s):
12 #include <string>
13 
14 // Gaudi/Athena include(s):
16 #include "GaudiKernel/ToolHandle.h"
17 
18 // EDM include(s):
22 
23 #include "EventInfo/EventInfo.h"
24 #include "EventInfo/TriggerInfo.h"
25 
26 // Local include(s):
28 
29 namespace xAODMaker {
30 
43 
44  public:
46  TrigDecisionCnvAlg( const std::string& name, ISvcLocator* svcLoc );
47  virtual ~TrigDecisionCnvAlg();
48 
50  virtual StatusCode initialize() override;
52  virtual StatusCode execute(const EventContext& ctx) const override;
53 
54  private:
55 
56  SG::ReadHandleKey<EventInfo> m_eventInfoKey{this, "EventInfoKey", "EventInfo", "StoreGate key of the legacy event info object"};
57  SG::ReadHandleKey<TrigDec::TrigDecision> m_aodKey{this, "AODKey", "TrigDecision", "StoreGate key of the input object"};
58  SG::WriteHandleKey<xAOD::TrigDecision> m_xaodKey{this, "xAODKey", "xTrigDecision", "StoreGate key for the output object"};
59 
60  ToolHandle< ITrigDecisionCnvTool > m_cnvTool{this, "CnvTool", "xAODMaker::TrigDecisionCnvTool/TrigDecisionCnvTool", "Handle to the converter tool"};
61 
62  }; // class TrigDecisionCnvAlg
63 
64 } // namespace xAODMaker
65 
66 #endif // XAODTRIGGERCNV_TRIGDECISIONCNVALG_H
TrigDecision.h
TrigDecisionAuxInfo.h
TriggerInfo.h
This class contains trigger related information.
xAODMaker::TrigDecisionCnvAlg::m_eventInfoKey
SG::ReadHandleKey< EventInfo > m_eventInfoKey
Definition: TrigDecisionCnvAlg.h:56
SG::ReadHandleKey< EventInfo >
xAODMaker
Definition: StoreGateSvc.h:72
xAODMaker::TrigDecisionCnvAlg::m_cnvTool
ToolHandle< ITrigDecisionCnvTool > m_cnvTool
Definition: TrigDecisionCnvAlg.h:60
xAODMaker::TrigDecisionCnvAlg::m_aodKey
SG::ReadHandleKey< TrigDec::TrigDecision > m_aodKey
Definition: TrigDecisionCnvAlg.h:57
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ITrigDecisionCnvTool.h
xAODMaker::TrigDecisionCnvAlg::TrigDecisionCnvAlg
TrigDecisionCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition: TrigDecisionCnvAlg.cxx:14
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
TrigDecision.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODMaker::TrigDecisionCnvAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition: TrigDecisionCnvAlg.cxx:24
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODMaker::TrigDecisionCnvAlg::m_xaodKey
SG::WriteHandleKey< xAOD::TrigDecision > m_xaodKey
Definition: TrigDecisionCnvAlg.h:58
xAODMaker::TrigDecisionCnvAlg::~TrigDecisionCnvAlg
virtual ~TrigDecisionCnvAlg()
Definition: TrigDecisionCnvAlg.cxx:20
xAODMaker::TrigDecisionCnvAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition: TrigDecisionCnvAlg.cxx:42
xAODMaker::TrigDecisionCnvAlg
Algorithm for creating xAOD::TrigDecision objects.
Definition: TrigDecisionCnvAlg.h:42