ATLAS Offline Software
TrigEventInfoRecorderAlg.h
Go to the documentation of this file.
1  // -*- C++ -*-
2 /*
3  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #ifndef TRIGEVENTINFOALG_H
7 #define TRIGEVENTINFOALG_H
8 
11 #include "GaudiKernel/ToolHandle.h"
18 
19 
21 
22  public:
23 
24  TrigEventInfoRecorderAlg(const std::string & name, ISvcLocator* pSvcLocator);
25  virtual StatusCode initialize() override;
26  virtual StatusCode execute(const EventContext& ctx) const override;
27 
28  // Custom functions
29  StatusCode decorateWithEventInfo(const EventContext& ctx, xAOD::TrigComposite* trigEI) const;
30 
31  // Other functionalities may be added adding similar functions or defining a derived class
32 
33  private:
34 
35  // WRITE HANDLE KEY FOR OUTPUT CONTAINER
37 
42 
43  // Configurations
44  Gaudi::Property<bool> m_decoratePFlowInfo {
45  this, "decoratePFlowInfo", false, "Flag to enable PFlow event info decoration"};
46  Gaudi::Property<bool> m_decorateEMTopoInfo {
47  this, "decorateEMTopoInfo", false, "Flag to enable EMTopo event info decoration"};
48  Gaudi::Property<bool> m_renounceAll {
49  this, "renounceAll", false, "Flag to renounce all input dependencies and sweep up what is there."};
50  // Event Info ReadHandleKeys
51  ToolHandle<ILumiBlockMuTool> m_lumiBlockMuTool{this, "LuminosityTool", "LumiBlockMuTool/LumiBlockMuTool", "Luminosity Tool"};
52  SG::ReadHandleKey<xAOD::EventShape> m_rhoKeyPF{this, "RhoKey_PFlow", "HLT_Kt4EMPFlowEventShape"}; // name of the density key: TOPO, PFLOW, etc
53  SG::ReadHandleKey<xAOD::EventShape> m_rhoKeyEMT{this, "RhoKey_EMTopo", "HLT_Kt4EMTopoEventShape"}; // name of the density key: TOPO, PFLOW, etc
54  SG::ReadHandleKey<xAOD::VertexContainer> m_PrimaryVxInputName{ this,"primaryVertexInputName","HLT_IDVertex_FS","Input Vertex Collection" };
55 
56  // OTHER PURPOSES to follow
57 
58 
59 };
60 #endif
61 
TrigEventInfoRecorderAlg::m_muDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_muDecor
Definition: TrigEventInfoRecorderAlg.h:40
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TrigEventInfoRecorderAlg::m_rhoKeyEMT
SG::ReadHandleKey< xAOD::EventShape > m_rhoKeyEMT
Definition: TrigEventInfoRecorderAlg.h:53
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
EventShape.h
TrigEventInfoRecorderAlg::m_rhoDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_rhoDecor
Definition: TrigEventInfoRecorderAlg.h:38
TrigEventInfoRecorderAlg::m_rhoEMTDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_rhoEMTDecor
Definition: TrigEventInfoRecorderAlg.h:39
TrigEventInfoRecorderAlg::m_lumiBlockMuTool
ToolHandle< ILumiBlockMuTool > m_lumiBlockMuTool
Definition: TrigEventInfoRecorderAlg.h:51
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TrigEventInfoRecorderAlg::m_decoratePFlowInfo
Gaudi::Property< bool > m_decoratePFlowInfo
Definition: TrigEventInfoRecorderAlg.h:44
TrigEventInfoRecorderAlg
Definition: TrigEventInfoRecorderAlg.h:20
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TrigEventInfoRecorderAlg::m_numPVDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_numPVDecor
Definition: TrigEventInfoRecorderAlg.h:41
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
TrigEventInfoRecorderAlg::m_decorateEMTopoInfo
Gaudi::Property< bool > m_decorateEMTopoInfo
Definition: TrigEventInfoRecorderAlg.h:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigEventInfoRecorderAlg::m_TrigEventInfoKey
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_TrigEventInfoKey
Definition: TrigEventInfoRecorderAlg.h:36
TrigEventInfoRecorderAlg::decorateWithEventInfo
StatusCode decorateWithEventInfo(const EventContext &ctx, xAOD::TrigComposite *trigEI) const
Definition: TrigEventInfoRecorderAlg.cxx:70
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
TrigCompositeContainer.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ILumiBlockMuTool.h
TrigEventInfoRecorderAlg::m_renounceAll
Gaudi::Property< bool > m_renounceAll
Definition: TrigEventInfoRecorderAlg.h:48
VertexContainer.h
TrigEventInfoRecorderAlg::TrigEventInfoRecorderAlg
TrigEventInfoRecorderAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigEventInfoRecorderAlg.cxx:13
TrigEventInfoRecorderAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: TrigEventInfoRecorderAlg.cxx:47
TrigEventInfoRecorderAlg::m_PrimaryVxInputName
SG::ReadHandleKey< xAOD::VertexContainer > m_PrimaryVxInputName
Definition: TrigEventInfoRecorderAlg.h:54
TrigEventInfoRecorderAlg::m_rhoKeyPF
SG::ReadHandleKey< xAOD::EventShape > m_rhoKeyPF
Definition: TrigEventInfoRecorderAlg.h:52
TrigEventInfoRecorderAlg::initialize
virtual StatusCode initialize() override
Definition: TrigEventInfoRecorderAlg.cxx:19