ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecoTools
IsolationTool
IsolationTool
IsolationHelper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef IsolationTool_IsolationHelper_H
6
#define IsolationTool_IsolationHelper_H
7
8
#include "
AsgTools/AsgTool.h
"
9
#include "
AsgTools/ToolHandle.h
"
10
#include "
IsolationTool/IIsolationHelper.h
"
11
#include "
xAODPrimitives/IsolationType.h
"
12
#include <
xAODPrimitives/IsolationCorrection.h
>
13
#include <
xAODPrimitives/IsolationCorrectionHelper.h
>
14
#include <
xAODBase/IParticle.h
>
15
#include <
xAODEventShape/EventShape.h
>
16
#include "
xAODCore/ShallowCopy.h
"
17
18
namespace
CP
{
19
20
class
IsolationHelper
:
public
asg::AsgTool
,
21
public
virtual
IIsolationHelper
{
23
ASG_TOOL_CLASS
(
IsolationHelper
,
IIsolationHelper
)
24
public
:
25
// this is a standard constructor
26
IsolationHelper
(
const
std::string&
name
);
27
virtual
~IsolationHelper
(){};
28
30
virtual
StatusCode
initialize
();
31
33
virtual
StatusCode
finalize
();
34
35
bool
isolation
(
float
& value,
const
xAOD::IParticle
& par,
xAOD::Iso::IsolationType
type
)
const
;
36
bool
isolation
(
float
& value,
const
xAOD::IParticle
& par,
xAOD::Iso::IsolationType
type
,
const
xAOD::Iso::IsolationCaloCorrectionBitset
& corrMask)
const
;
37
bool
correctionBitset
(
xAOD::Iso::IsolationCaloCorrectionBitset
& mask,
const
xAOD::IParticle
& par,
xAOD::Iso::IsolationType
type
)
const
;
38
bool
isolation
(
float
& value,
const
xAOD::IParticle
& par,
xAOD::Iso::IsolationType
type
,
const
std::vector<xAOD::Iso::IsolationCaloCorrection>& corrs)
const
;
39
bool
correction
(
float
& value,
const
xAOD::IParticle
& par,
xAOD::Iso::IsolationType
type
,
const
xAOD::Iso::IsolationCaloCorrectionBitset
& corrMask)
const
;
40
bool
getPileupCorrection
(
float
& value,
const
xAOD::IParticle
& par,
xAOD::Iso::IsolationType
type
,
xAOD::Iso::IsolationCaloCorrectionBitset
corrMask)
const
;
41
bool
getPileupCorrection
(
float
& value,
const
xAOD::IParticle
& par,
xAOD::Iso::IsolationType
type
,
float
coreArea
)
const
;
42
bool
updateIsolation
(
xAOD::MuonContainer
*& copy,
xAOD::ShallowAuxContainer
*& copyaux, std::vector<xAOD::Iso::IsolationType>&
types
,
xAOD::Iso::IsolationCaloCorrectionBitset
corrMask, std::string muonkey,
bool
recordSG)
const
;
43
44
private
:
45
bool
correction
(
float
& value,
const
xAOD::IParticle
& par,
xAOD::Iso::IsolationType
type
,
xAOD::Iso::IsolationCaloCorrection
corr,
const
xAOD::Iso::IsolationCaloCorrectionBitset
& corrMask)
const
;
46
47
float
m_coreCone
;
48
//xAOD::Iso::IsolationTrackCorrectionBitsetHelper m_trkIsoBitHeler;
49
50
};
51
52
}
53
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
EventShape.h
IParticle.h
IsolationCorrection.h
IIsolationHelper.h
IsolationCorrectionHelper.h
IsolationType.h
ShallowCopy.h
ToolHandle.h
CP::IIsolationHelper
Definition
IIsolationHelper.h:22
CP::IsolationHelper::initialize
virtual StatusCode initialize()
initialize
Definition
IsolationHelper.cxx:29
CP::IsolationHelper::IsolationHelper
IsolationHelper(const std::string &name)
Create a constructor for Athena.
Definition
IsolationHelper.cxx:18
CP::IsolationHelper::finalize
virtual StatusCode finalize()
finalize
Definition
IsolationHelper.cxx:33
CP::IsolationHelper::correction
bool correction(float &value, const xAOD::IParticle &par, xAOD::Iso::IsolationType type, const xAOD::Iso::IsolationCaloCorrectionBitset &corrMask) const
Definition
IsolationHelper.cxx:74
CP::IsolationHelper::m_coreCone
float m_coreCone
Definition
IsolationHelper.h:47
CP::IsolationHelper::getPileupCorrection
bool getPileupCorrection(float &value, const xAOD::IParticle &par, xAOD::Iso::IsolationType type, xAOD::Iso::IsolationCaloCorrectionBitset corrMask) const
Definition
IsolationHelper.cxx:148
CP::IsolationHelper::correctionBitset
bool correctionBitset(xAOD::Iso::IsolationCaloCorrectionBitset &mask, const xAOD::IParticle &par, xAOD::Iso::IsolationType type) const
Definition
IsolationHelper.cxx:49
CP::IsolationHelper::~IsolationHelper
virtual ~IsolationHelper()
Definition
IsolationHelper.h:27
CP::IsolationHelper::isolation
bool isolation(float &value, const xAOD::IParticle &par, xAOD::Iso::IsolationType type) const
Definition
IsolationHelper.cxx:38
CP::IsolationHelper::updateIsolation
bool updateIsolation(xAOD::MuonContainer *©, xAOD::ShallowAuxContainer *©aux, std::vector< xAOD::Iso::IsolationType > &types, xAOD::Iso::IsolationCaloCorrectionBitset corrMask, std::string muonkey, bool recordSG) const
Definition
IsolationHelper.cxx:118
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::ShallowAuxContainer
Class creating a shallow copy of an existing auxiliary container.
Definition
ShallowAuxContainer.h:50
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::Iso::IsolationCaloCorrectionBitset
std::bitset< 32 > IsolationCaloCorrectionBitset
typedef of the bit word used to encode the corrections used to calculate the isolation
Definition
Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:114
xAOD::Iso::IsolationType
IsolationType
Overall enumeration for isolation types in xAOD files.
Definition
IsolationType.h:26
xAOD::Iso::coreArea
@ coreArea
area used to calculate this correction
Definition
Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:96
xAOD::Iso::IsolationCaloCorrection
IsolationCaloCorrection
Enumeration for different ways of correcting isolation in xAOD files.
Definition
Event/xAOD/xAODPrimitives/xAODPrimitives/IsolationCorrection.h:18
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
xAOD::types
static const EventInfo_v1::Accessor< std::vector< std::string > > types("streamTagTypes")
xAOD::MuonContainer
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
Definition
Event/xAOD/xAODMuon/xAODMuon/MuonContainer.h:14
type
Generated on
for ATLAS Offline Software by
1.17.0