ATLAS Offline Software
Loading...
Searching...
No Matches
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Gaudi::Property< bool > m_decoratePFlowInfo
SG::ReadHandleKey< xAOD::EventShape > m_rhoKeyPF
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_rhoDecor
virtual StatusCode initialize() override
ToolHandle< ILumiBlockMuTool > m_lumiBlockMuTool
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_TrigEventInfoKey
SG::ReadHandleKey< xAOD::VertexContainer > m_PrimaryVxInputName
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_rhoEMTDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_muDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_numPVDecor
Gaudi::Property< bool > m_decorateEMTopoInfo
Gaudi::Property< bool > m_renounceAll
SG::ReadHandleKey< xAOD::EventShape > m_rhoKeyEMT
StatusCode decorateWithEventInfo(const EventContext &ctx, xAOD::TrigComposite *trigEI) const
TrigEventInfoRecorderAlg(const std::string &name, ISvcLocator *pSvcLocator)
TrigComposite_v1 TrigComposite
Declare the latest version of the class.