ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigGenericAlgs
src
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
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
#include "
xAODEventShape/EventShape.h
"
11
#include "GaudiKernel/ToolHandle.h"
12
#include "
StoreGate/WriteHandleKey.h
"
13
#include "
StoreGate/WriteDecorHandleKey.h
"
14
#include "
StoreGate/ReadHandleKey.h
"
15
#include "
xAODTrigger/TrigCompositeContainer.h
"
16
#include "
LumiBlockComps/ILumiBlockMuTool.h
"
17
#include "
xAODTracking/VertexContainer.h
"
18
19
20
class
TrigEventInfoRecorderAlg
:
public
AthReentrantAlgorithm
{
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
36
SG::WriteHandleKey<xAOD::TrigCompositeContainer>
m_TrigEventInfoKey
{
this
,
"trigEventInfoKey"
,
"Undefined"
};
37
38
SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer>
m_rhoDecor
{
this
,
"RhoPFlowDecor"
,
m_TrigEventInfoKey
,
"JetDensityEMPFlow"
};
39
SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer>
m_rhoEMTDecor
{
this
,
"RhoEMTopoDecor"
,
m_TrigEventInfoKey
,
"JetDensityEMTopo"
};
40
SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer>
m_muDecor
{
this
,
"AvgMuDecor"
,
m_TrigEventInfoKey
,
"AvgMu"
};
41
SG::WriteDecorHandleKey<xAOD::TrigCompositeContainer>
m_numPVDecor
{
this
,
"NumPVDecor"
,
m_TrigEventInfoKey
,
"NumPV"
};
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
AthReentrantAlgorithm.h
EventShape.h
ILumiBlockMuTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TrigCompositeContainer.h
VertexContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
TrigEventInfoRecorderAlg::m_decoratePFlowInfo
Gaudi::Property< bool > m_decoratePFlowInfo
Definition
TrigEventInfoRecorderAlg.h:44
TrigEventInfoRecorderAlg::m_rhoKeyPF
SG::ReadHandleKey< xAOD::EventShape > m_rhoKeyPF
Definition
TrigEventInfoRecorderAlg.h:52
TrigEventInfoRecorderAlg::m_rhoDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_rhoDecor
Definition
TrigEventInfoRecorderAlg.h:38
TrigEventInfoRecorderAlg::initialize
virtual StatusCode initialize() override
Definition
TrigEventInfoRecorderAlg.cxx:19
TrigEventInfoRecorderAlg::m_lumiBlockMuTool
ToolHandle< ILumiBlockMuTool > m_lumiBlockMuTool
Definition
TrigEventInfoRecorderAlg.h:51
TrigEventInfoRecorderAlg::m_TrigEventInfoKey
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_TrigEventInfoKey
Definition
TrigEventInfoRecorderAlg.h:36
TrigEventInfoRecorderAlg::m_PrimaryVxInputName
SG::ReadHandleKey< xAOD::VertexContainer > m_PrimaryVxInputName
Definition
TrigEventInfoRecorderAlg.h:54
TrigEventInfoRecorderAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TrigEventInfoRecorderAlg.cxx:47
TrigEventInfoRecorderAlg::m_rhoEMTDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_rhoEMTDecor
Definition
TrigEventInfoRecorderAlg.h:39
TrigEventInfoRecorderAlg::m_muDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_muDecor
Definition
TrigEventInfoRecorderAlg.h:40
TrigEventInfoRecorderAlg::m_numPVDecor
SG::WriteDecorHandleKey< xAOD::TrigCompositeContainer > m_numPVDecor
Definition
TrigEventInfoRecorderAlg.h:41
TrigEventInfoRecorderAlg::m_decorateEMTopoInfo
Gaudi::Property< bool > m_decorateEMTopoInfo
Definition
TrigEventInfoRecorderAlg.h:46
TrigEventInfoRecorderAlg::m_renounceAll
Gaudi::Property< bool > m_renounceAll
Definition
TrigEventInfoRecorderAlg.h:48
TrigEventInfoRecorderAlg::m_rhoKeyEMT
SG::ReadHandleKey< xAOD::EventShape > m_rhoKeyEMT
Definition
TrigEventInfoRecorderAlg.h:53
TrigEventInfoRecorderAlg::decorateWithEventInfo
StatusCode decorateWithEventInfo(const EventContext &ctx, xAOD::TrigComposite *trigEI) const
Definition
TrigEventInfoRecorderAlg.cxx:70
TrigEventInfoRecorderAlg::TrigEventInfoRecorderAlg
TrigEventInfoRecorderAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TrigEventInfoRecorderAlg.cxx:13
xAOD::TrigComposite
TrigComposite_v1 TrigComposite
Declare the latest version of the class.
Definition
TrigComposite.h:16
Generated on
for ATLAS Offline Software by
1.17.0