ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkTrigger
src
TriggerGenericObjectThinningTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// TriggerGenericObjectThinningTool.h, (c) ATLAS Detector software
8
9
//Thin collection based if a trigger has passed or not
10
//Just save an empty collection
11
12
#ifndef DERIVATIONFRAMEWORK_TRIGGERGENERICOBJECTTHINNINGTOOL_H
13
#define DERIVATIONFRAMEWORK_TRIGGERGENERICOBJECTTHINNINGTOOL_H
14
15
#include <string>
16
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
#include "
TrigDecisionTool/TrigDecisionTool.h
"
19
20
21
#include "
DerivationFrameworkInterfaces/IThinningTool.h
"
22
#include "GaudiKernel/ToolHandle.h"
23
#include "
xAODBase/IParticleContainer.h
"
24
#include "
StoreGate/ThinningHandleKey.h
"
25
26
#include "
xAODBase/IParticleContainer.h
"
27
28
namespace
DerivationFramework
{
29
30
class
TriggerGenericObjectThinningTool
:
public
extends<AthAlgTool, IThinningTool> {
31
public
:
32
TriggerGenericObjectThinningTool
(
const
std::string& t,
const
std::string& n,
const
IInterface* p);
33
~TriggerGenericObjectThinningTool
();
34
virtual
StatusCode
initialize
()
override
;
35
virtual
StatusCode
finalize
()
override
;
36
virtual
StatusCode
doThinning
(
const
EventContext& ctx)
const override
;
37
38
private
:
39
StringProperty
m_streamName
40
{
this
,
"StreamName"
,
""
,
"Name of the stream being thinned"
};
41
SG::ThinningHandleKey<xAOD::IParticleContainer>
m_SGKey
42
{
this
,
"ContainerName"
,
""
,
""
};
43
44
private
:
45
Gaudi::Property<std::vector<std::string>>
m_triggerListAND
{
this
,
"TriggerListAND"
, {}};
46
Gaudi::Property<std::vector<std::string>>
m_triggerListOR
{
this
,
"TriggerListOR"
, {}};
47
Gaudi::Property<std::vector<std::string>>
m_triggerListORHLTOnly
{
this
,
"TriggerListORHLTOnly"
, {},
"Decision is based on HLT only (unseeded triggers)"
};
48
PublicToolHandle<Trig::TrigDecisionTool>
m_trigDec
{
this
,
"TrigDecisionTool"
,
"Trig::TrigDecisionTool/TrigDecisionTool"
};
49
50
bool
eventPassedFilter
()
const
;
51
};
52
}
53
54
#endif
// DERIVATIONFRAMEWORK_TRIGGERSKIMMINGTOOL_H
AthAlgTool.h
IThinningTool.h
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
TrigDecisionTool.h
DerivationFramework::TriggerGenericObjectThinningTool::doThinning
virtual StatusCode doThinning(const EventContext &ctx) const override
Definition
TriggerGenericObjectThinningTool.cxx:67
DerivationFramework::TriggerGenericObjectThinningTool::m_triggerListOR
Gaudi::Property< std::vector< std::string > > m_triggerListOR
Definition
TriggerGenericObjectThinningTool.h:46
DerivationFramework::TriggerGenericObjectThinningTool::~TriggerGenericObjectThinningTool
~TriggerGenericObjectThinningTool()
Definition
TriggerGenericObjectThinningTool.cxx:45
DerivationFramework::TriggerGenericObjectThinningTool::TriggerGenericObjectThinningTool
TriggerGenericObjectThinningTool(const std::string &t, const std::string &n, const IInterface *p)
Definition
TriggerGenericObjectThinningTool.cxx:37
DerivationFramework::TriggerGenericObjectThinningTool::eventPassedFilter
bool eventPassedFilter() const
Definition
TriggerGenericObjectThinningTool.cxx:5
DerivationFramework::TriggerGenericObjectThinningTool::m_trigDec
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
Definition
TriggerGenericObjectThinningTool.h:48
DerivationFramework::TriggerGenericObjectThinningTool::finalize
virtual StatusCode finalize() override
Definition
TriggerGenericObjectThinningTool.cxx:60
DerivationFramework::TriggerGenericObjectThinningTool::m_triggerListAND
Gaudi::Property< std::vector< std::string > > m_triggerListAND
Definition
TriggerGenericObjectThinningTool.h:45
DerivationFramework::TriggerGenericObjectThinningTool::m_SGKey
SG::ThinningHandleKey< xAOD::IParticleContainer > m_SGKey
Definition
TriggerGenericObjectThinningTool.h:42
DerivationFramework::TriggerGenericObjectThinningTool::m_streamName
StringProperty m_streamName
Definition
TriggerGenericObjectThinningTool.h:40
DerivationFramework::TriggerGenericObjectThinningTool::m_triggerListORHLTOnly
Gaudi::Property< std::vector< std::string > > m_triggerListORHLTOnly
Definition
TriggerGenericObjectThinningTool.h:47
DerivationFramework::TriggerGenericObjectThinningTool::initialize
virtual StatusCode initialize() override
Definition
TriggerGenericObjectThinningTool.cxx:49
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition
ThinningHandleKey.h:39
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0