ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkCalo
DerivationFrameworkCalo
JetCaloClusterThinning.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
// JetCaloClusterThinning.h, (c) ATLAS Detector software
7
// @author Danilo E. Ferreira de Lima <dferreir@cern.ch>
9
10
#ifndef DERIVATIONFRAMEWORKCALO_JETCALOCLUSTERTHINNING_H
11
#define DERIVATIONFRAMEWORKCALO_JETCALOCLUSTERTHINNING_H
12
13
#include "
AthenaBaseComps/AthAlgTool.h
"
14
#include "
DerivationFrameworkInterfaces/IThinningTool.h
"
15
#include "
StoreGate/ReadHandleKey.h
"
16
#include "
StoreGate/ThinningHandleKey.h
"
17
#include "
xAODCaloEvent/CaloCluster.h
"
18
#include "
xAODCaloEvent/CaloClusterContainer.h
"
19
#include "
xAODJet/Jet.h
"
20
#include "
xAODJet/JetContainer.h
"
21
#include <atomic>
22
#include <string>
23
24
#include "
ExpressionEvaluation/ExpressionParserUser.h
"
25
26
namespace
DerivationFramework
{
27
28
class
JetCaloClusterThinning
29
:
public
extends<ExpressionParserUser<AthAlgTool>, IThinningTool>
30
{
31
public
:
32
JetCaloClusterThinning
(
const
std::string& t,
33
const
std::string& n,
34
const
IInterface* p);
35
virtual
~JetCaloClusterThinning
();
36
virtual
StatusCode
initialize
()
override
;
37
virtual
StatusCode
finalize
()
override
;
38
virtual
StatusCode
doThinning
(
const
EventContext& ctx)
const override
;
39
40
private
:
41
mutable
std::atomic<unsigned int>
m_ntotTopo
,
42
m_npassTopo
;
//, m_ntotFrwd, m_npassFrwd;
43
44
StringProperty
m_streamName
{
this
,
45
"StreamName"
,
46
""
,
47
"Name of the stream being thinned"
};
48
SG::ThinningHandleKey<xAOD::CaloClusterContainer>
49
m_TopoClSGKey
{
this
,
"TopoClCollectionSGKey"
,
"CaloCalTopoCluster"
,
""
};
50
SG::ReadHandleKey<xAOD::JetContainer>
51
m_sgKey
{
this
,
"SGKey"
,
""
,
"SG key of jet container to thin"
};
52
53
Gaudi::Property<std::vector<std::string>>
m_addClusterSGKey
{
this
,
"AdditionalClustersKey"
, {},
""
};
54
SG::ThinningHandleKey<xAOD::CaloClusterContainer>
m_tmpAddClusterKey
{
this
,
"TmpAddClustersKey"
,
"LCOriginTopoClusters"
,
""
};
55
std::vector<SG::ThinningHandleKey<xAOD::CaloClusterContainer>>
m_addClusterKeys
;
56
57
std::string
m_selectionString
;
58
59
void
setJetClustersMask
(std::vector<bool>&,
const
xAOD::JetContainer
*&)
const
;
60
void
setJetClustersMask
(std::vector<bool>&, std::vector<const xAOD::Jet*>&)
const
;
61
62
};
63
64
}
65
66
#endif
// DERIVATIONFRAMEWORK_JETCALOCLUSTERTHINNING_H
AthAlgTool.h
CaloClusterContainer.h
CaloCluster.h
Jet.h
ExpressionParserUser.h
IThinningTool.h
JetContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
DerivationFramework::JetCaloClusterThinning::m_npassTopo
std::atomic< unsigned int > m_npassTopo
Definition
JetCaloClusterThinning.h:42
DerivationFramework::JetCaloClusterThinning::finalize
virtual StatusCode finalize() override
Definition
JetCaloClusterThinning.cxx:73
DerivationFramework::JetCaloClusterThinning::setJetClustersMask
void setJetClustersMask(std::vector< bool > &, std::vector< const xAOD::Jet * > &) const
DerivationFramework::JetCaloClusterThinning::m_sgKey
SG::ReadHandleKey< xAOD::JetContainer > m_sgKey
Definition
JetCaloClusterThinning.h:51
DerivationFramework::JetCaloClusterThinning::m_TopoClSGKey
SG::ThinningHandleKey< xAOD::CaloClusterContainer > m_TopoClSGKey
Definition
JetCaloClusterThinning.h:49
DerivationFramework::JetCaloClusterThinning::doThinning
virtual StatusCode doThinning(const EventContext &ctx) const override
Definition
JetCaloClusterThinning.cxx:84
DerivationFramework::JetCaloClusterThinning::JetCaloClusterThinning
JetCaloClusterThinning(const std::string &t, const std::string &n, const IInterface *p)
Definition
JetCaloClusterThinning.cxx:22
DerivationFramework::JetCaloClusterThinning::m_addClusterSGKey
Gaudi::Property< std::vector< std::string > > m_addClusterSGKey
Definition
JetCaloClusterThinning.h:53
DerivationFramework::JetCaloClusterThinning::setJetClustersMask
void setJetClustersMask(std::vector< bool > &, const xAOD::JetContainer *&) const
DerivationFramework::JetCaloClusterThinning::m_selectionString
std::string m_selectionString
Definition
JetCaloClusterThinning.h:57
DerivationFramework::JetCaloClusterThinning::m_addClusterKeys
std::vector< SG::ThinningHandleKey< xAOD::CaloClusterContainer > > m_addClusterKeys
Definition
JetCaloClusterThinning.h:55
DerivationFramework::JetCaloClusterThinning::initialize
virtual StatusCode initialize() override
Definition
JetCaloClusterThinning.cxx:39
DerivationFramework::JetCaloClusterThinning::m_streamName
StringProperty m_streamName
Definition
JetCaloClusterThinning.h:44
DerivationFramework::JetCaloClusterThinning::m_tmpAddClusterKey
SG::ThinningHandleKey< xAOD::CaloClusterContainer > m_tmpAddClusterKey
Definition
JetCaloClusterThinning.h:54
DerivationFramework::JetCaloClusterThinning::~JetCaloClusterThinning
virtual ~JetCaloClusterThinning()
DerivationFramework::JetCaloClusterThinning::m_ntotTopo
std::atomic< unsigned int > m_ntotTopo
Definition
JetCaloClusterThinning.h:41
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition
ThinningHandleKey.h:39
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0