ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkTools
DerivationFrameworkTools
GenericObjectThinning.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// GenericObjectThinning.h, (c) ATLAS Detector software
8
9
#ifndef DERIVATIONFRAMEWORK_GENERICOBJECTTHINNING_H
10
#define DERIVATIONFRAMEWORK_GENERICOBJECTTHINNING_H
11
12
#include <string>
13
#include <vector>
14
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
#include "
DerivationFrameworkInterfaces/IThinningTool.h
"
17
#include "GaudiKernel/ToolHandle.h"
18
#include "
xAODBase/IParticleContainer.h
"
19
#include "
StoreGate/ThinningHandleKey.h
"
20
21
#include "
xAODBase/IParticleContainer.h
"
22
#include "
ExpressionEvaluation/ExpressionParserUser.h
"
23
24
namespace
DerivationFramework
{
25
26
class
GenericObjectThinning
:
public
extends<ExpressionParserUser<AthAlgTool>, IThinningTool> {
27
public
:
28
GenericObjectThinning
(
const
std::string& t,
const
std::string& n,
const
IInterface* p);
29
~GenericObjectThinning
();
30
virtual
StatusCode
initialize
()
override
;
31
virtual
StatusCode
finalize
()
override
;
32
virtual
StatusCode
doThinning
(
const
EventContext& ctx)
const override
;
33
34
private
:
35
StringProperty
m_streamName
36
{
this
,
"StreamName"
,
""
,
"Name of the stream being thinned"
};
37
SG::ThinningHandleKey<xAOD::IParticleContainer>
m_SGKey
38
{
this
,
"ContainerName"
,
""
,
""
};
39
40
//Expression for object thinning selection
41
std::string
m_selectionString
;
42
43
//Counters
44
mutable
std::atomic<unsigned int>
m_ntot
,
m_npass
;
45
};
46
}
47
48
#endif
// DERIVATIONFRAMEWORK_GENERICOBJECTTHINNING_H
AthAlgTool.h
ExpressionParserUser.h
IThinningTool.h
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
DerivationFramework::GenericObjectThinning::m_SGKey
SG::ThinningHandleKey< xAOD::IParticleContainer > m_SGKey
Definition
GenericObjectThinning.h:38
DerivationFramework::GenericObjectThinning::finalize
virtual StatusCode finalize() override
Definition
GenericObjectThinning.cxx:53
DerivationFramework::GenericObjectThinning::~GenericObjectThinning
~GenericObjectThinning()
Definition
GenericObjectThinning.cxx:29
DerivationFramework::GenericObjectThinning::m_ntot
std::atomic< unsigned int > m_ntot
Definition
GenericObjectThinning.h:44
DerivationFramework::GenericObjectThinning::m_streamName
StringProperty m_streamName
Definition
GenericObjectThinning.h:36
DerivationFramework::GenericObjectThinning::m_npass
std::atomic< unsigned int > m_npass
Definition
GenericObjectThinning.h:44
DerivationFramework::GenericObjectThinning::m_selectionString
std::string m_selectionString
Definition
GenericObjectThinning.h:41
DerivationFramework::GenericObjectThinning::GenericObjectThinning
GenericObjectThinning(const std::string &t, const std::string &n, const IInterface *p)
Definition
GenericObjectThinning.cxx:17
DerivationFramework::GenericObjectThinning::doThinning
virtual StatusCode doThinning(const EventContext &ctx) const override
Definition
GenericObjectThinning.cxx:62
DerivationFramework::GenericObjectThinning::initialize
virtual StatusCode initialize() override
Definition
GenericObjectThinning.cxx:33
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