ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetRecTools
JetRecTools
ConstitTimeCutTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JETRECTOOLS_CONSTITTIMECUTTOOL_H
6
#define JETRECTOOLS_CONSTITTIMECUTTOOL_H
7
8
// \class ConstitTimeCutTool
9
// \author Jennifer Roloff
10
// \date October 2016
11
//
12
// This tool places cuts on constituents based on their timing information
13
14
15
#include "
JetRecTools/JetConstituentModifierBase.h
"
16
#include "
xAODBase/IParticleContainer.h
"
17
#include "
AthContainers/CurrentContext.h
"
18
#include "
AsgDataHandles/ReadDecorHandleKey.h
"
19
20
#include "
xAODCaloEvent/CaloClusterContainer.h
"
21
#include "
xAODPFlow/FlowElementContainer.h
"
22
23
#include <string>
24
25
class
ConstitTimeCutTool
:
public
JetConstituentModifierBase
{
26
ASG_TOOL_CLASS
(
ConstitTimeCutTool
,
IJetConstituentModifier
)
27
28
public
:
29
30
ConstitTimeCutTool
(
const
std::string& name);
31
32
// Check that the configuration is sane
33
StatusCode
initialize
()
override
final
;
34
35
private
:
36
StatusCode
process_impl
(
xAOD::IParticleContainer
* cont,
const
EventContext& ctx)
const
override
final
;
37
StatusCode
applyTimingCut
(
xAOD::IParticle
* part,
const
float
& time,
const
float
& quality,
const
float
& lambda_center)
const
;
38
39
// CaloCluster decorations
40
SG::ReadDecorHandleKey<xAOD::CaloClusterContainer>
41
m_clusterLarQKey
{
42
this
,
43
"ClusterLarQKey"
,
44
"AVG_LAR_Q"
,
45
"AVG_LAR_Q decoration"
46
};
47
48
SG::ReadDecorHandleKey<xAOD::CaloClusterContainer>
49
m_clusterLambdaKey
{
50
this
,
51
"ClusterLambdaKey"
,
52
"CENTER_LAMBDA"
,
53
"CENTER_LAMBDA decoration"
54
};
55
56
// FlowElement decorations
57
SG::ReadDecorHandleKey<xAOD::FlowElementContainer>
58
m_feTimingKey
{
59
this
,
60
"FETimingKey"
,
61
"TIMING"
,
62
"TIMING decoration"
63
};
64
65
SG::ReadDecorHandleKey<xAOD::FlowElementContainer>
66
m_feLarQKey
{
67
this
,
68
"FELarQKey"
,
69
"AVG_LAR_Q"
,
70
"AVG_LAR_Q decoration"
71
};
72
73
SG::ReadDecorHandleKey<xAOD::FlowElementContainer>
74
m_feLambdaKey
{
75
this
,
76
"FELambdaKey"
,
77
"CENTER_LAMBDA"
,
78
"CENTER_LAMBDA decoration"
79
};
80
81
// Properties.
82
float
m_lambdaCalDivide
;
83
float
m_qualityCut
;
84
float
m_timeCutLargeQ
;
85
float
m_timeCutSmallQ
;
86
float
m_etaMax
;
87
88
};
89
90
91
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
CurrentContext.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
CaloClusterContainer.h
FlowElementContainer.h
JetConstituentModifierBase.h
ConstitTimeCutTool::m_feLarQKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_feLarQKey
Definition
ConstitTimeCutTool.h:66
ConstitTimeCutTool::m_feTimingKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_feTimingKey
Definition
ConstitTimeCutTool.h:58
ConstitTimeCutTool::m_clusterLarQKey
SG::ReadDecorHandleKey< xAOD::CaloClusterContainer > m_clusterLarQKey
Definition
ConstitTimeCutTool.h:41
ConstitTimeCutTool::m_qualityCut
float m_qualityCut
Definition
ConstitTimeCutTool.h:83
ConstitTimeCutTool::ConstitTimeCutTool
ConstitTimeCutTool(const std::string &name)
Definition
ConstitTimeCutTool.cxx:15
ConstitTimeCutTool::m_etaMax
float m_etaMax
Definition
ConstitTimeCutTool.h:86
ConstitTimeCutTool::m_lambdaCalDivide
float m_lambdaCalDivide
Definition
ConstitTimeCutTool.h:82
ConstitTimeCutTool::m_timeCutLargeQ
float m_timeCutLargeQ
Definition
ConstitTimeCutTool.h:84
ConstitTimeCutTool::initialize
StatusCode initialize() override final
Dummy implementation of the initialisation function.
Definition
ConstitTimeCutTool.cxx:25
ConstitTimeCutTool::process_impl
StatusCode process_impl(xAOD::IParticleContainer *cont, const EventContext &ctx) const override final
Definition
ConstitTimeCutTool.cxx:58
ConstitTimeCutTool::applyTimingCut
StatusCode applyTimingCut(xAOD::IParticle *part, const float &time, const float &quality, const float &lambda_center) const
Definition
ConstitTimeCutTool.cxx:124
ConstitTimeCutTool::m_clusterLambdaKey
SG::ReadDecorHandleKey< xAOD::CaloClusterContainer > m_clusterLambdaKey
Definition
ConstitTimeCutTool.h:49
ConstitTimeCutTool::m_timeCutSmallQ
float m_timeCutSmallQ
Definition
ConstitTimeCutTool.h:85
ConstitTimeCutTool::m_feLambdaKey
SG::ReadDecorHandleKey< xAOD::FlowElementContainer > m_feLambdaKey
Definition
ConstitTimeCutTool.h:74
IJetConstituentModifier
Definition
IJetConstituentModifier.h:17
JetConstituentModifierBase::JetConstituentModifierBase
JetConstituentModifierBase(const std::string &name)
Definition
JetConstituentModifierBase.cxx:16
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::IParticleContainer
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
Definition
xAOD/xAODBase/xAODBase/IParticleContainer.h:32
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0