ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkInDet
DerivationFrameworkInDet
TrackMeasurementThinning.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
// TrackMeasurementThinning.h, (c) ATLAS Detector software
8
9
#ifndef DERIVATIONFRAMEWORK_TRACKMEASUREMENTTHINNING_H
10
#define DERIVATIONFRAMEWORK_TRACKMEASUREMENTTHINNING_H
11
12
#include <string>
13
#include <atomic>
14
15
// Gaudi & Athena basics
16
#include "
StoreGate/ThinningHandleKey.h
"
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
#include "GaudiKernel/ServiceHandle.h"
19
20
// DerivationFramework includes
21
#include "
xAODTracking/TrackMeasurementValidationContainer.h
"
22
#include "
DerivationFrameworkInterfaces/IThinningTool.h
"
23
24
#include "
ExpressionEvaluation/ExpressionParserUser.h
"
25
26
namespace
DerivationFramework
{
27
32
class
TrackMeasurementThinning
:
public
extends<ExpressionParserUser<AthAlgTool>, IThinningTool> {
33
34
public
:
36
TrackMeasurementThinning
(
const
std::string& t,
const
std::string& n,
const
IInterface* p );
37
39
virtual
~TrackMeasurementThinning
();
40
41
// Athena algtool's Hooks
42
virtual
StatusCode
initialize
()
override
;
43
virtual
StatusCode
finalize
()
override
;
44
46
virtual
StatusCode
doThinning
(
const
EventContext& ctx)
const override
;
47
48
private
:
49
Gaudi::Property<std::string>
m_selectionString
50
{
this
,
"SelectionString"
,
""
,
""
};
51
52
mutable
std::atomic<unsigned int>
m_ntot
{};
53
mutable
std::atomic<unsigned int>
m_npass
{};
54
StringProperty
m_streamName
55
{
this
,
"StreamName"
,
""
,
"Name of the stream being thinned"
};
56
57
SG::ThinningHandleKey<xAOD::TrackMeasurementValidationContainer>
m_SGKey
58
{
this
,
"TrackMeasurementValidationKey"
,
"PixelClusters"
,
""
};
59
};
60
61
}
62
63
64
#endif
AthAlgTool.h
ExpressionParserUser.h
IThinningTool.h
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
TrackMeasurementValidationContainer.h
DerivationFramework::TrackMeasurementThinning::m_ntot
std::atomic< unsigned int > m_ntot
Definition
TrackMeasurementThinning.h:52
DerivationFramework::TrackMeasurementThinning::initialize
virtual StatusCode initialize() override
Definition
TrackMeasurementThinning.cxx:29
DerivationFramework::TrackMeasurementThinning::finalize
virtual StatusCode finalize() override
Definition
TrackMeasurementThinning.cxx:47
DerivationFramework::TrackMeasurementThinning::m_npass
std::atomic< unsigned int > m_npass
Definition
TrackMeasurementThinning.h:53
DerivationFramework::TrackMeasurementThinning::m_streamName
StringProperty m_streamName
Definition
TrackMeasurementThinning.h:55
DerivationFramework::TrackMeasurementThinning::m_SGKey
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > m_SGKey
Definition
TrackMeasurementThinning.h:58
DerivationFramework::TrackMeasurementThinning::~TrackMeasurementThinning
virtual ~TrackMeasurementThinning()
Destructor.
DerivationFramework::TrackMeasurementThinning::m_selectionString
Gaudi::Property< std::string > m_selectionString
Definition
TrackMeasurementThinning.h:50
DerivationFramework::TrackMeasurementThinning::TrackMeasurementThinning
TrackMeasurementThinning(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition
TrackMeasurementThinning.cxx:18
DerivationFramework::TrackMeasurementThinning::doThinning
virtual StatusCode doThinning(const EventContext &ctx) const override
Check that the current event passes this filter.
Definition
TrackMeasurementThinning.cxx:56
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition
ThinningHandleKey.h:39
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
Generated on
for ATLAS Offline Software by
1.17.0