ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
HeavyIonRec
HIJetRec
Root
HIJetClusterSubtractorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// HIJetClusterSubtractorTool.h
6
7
#ifndef HIJETREC_HIJETCLUSTERSUBTRACTORTOOL_H
8
#define HIJETREC_HIJETCLUSTERSUBTRACTORTOOL_H
9
23
24
#include "
HIJetRec/HIJetSubtractorToolBase.h
"
25
#include <map>
26
#include "
AsgTools/AsgTool.h
"
27
28
29
class
TH3F;
30
31
class
HIJetClusterSubtractorTool
:
public
HIJetSubtractorToolBase
32
{
33
ASG_TOOL_CLASS
(
HIJetClusterSubtractorTool
,
IHISubtractorTool
);
34
35
// FIX
36
//needs lookup for static geometric factors!
37
38
public
:
43
HIJetClusterSubtractorTool
(
const
std::string& myname);
44
virtual
void
subtract
(
xAOD::IParticle::FourMom_t
&,
const
xAOD::IParticle
*,
const
xAOD::HIEventShapeContainer
*,
const
HIEventShapeIndex
*,
const
ToolHandle<IHIUEModulatorTool>&,
const
xAOD::HIEventShape
* eshape)
const override
;
45
virtual
void
subtractWithMoments
(
xAOD::CaloCluster
*,
const
xAOD::HIEventShapeContainer
*,
const
HIEventShapeIndex
*
index
,
const
ToolHandle<IHIUEModulatorTool>&,
const
xAOD::HIEventShape
* eshape )
const override
;
46
virtual
void
updateUsingCluster
(
xAOD::HIEventShapeContainer
* shape,
const
HIEventShapeIndex
*
index
,
const
xAOD::CaloCluster
* cl)
const override
;
47
48
virtual
StatusCode
initialize
()
override
;
49
virtual
StatusCode
initializeTool
();
50
51
private
:
52
53
bool
m_init
;
54
55
float
getWeight
(
float
eta
,
float
phi
,
int
sample)
const
;
56
float
getWeightEta
(
float
eta
,
float
phi
,
int
sample)
const
;
57
float
getWeightPhi
(
float
eta
,
float
phi
,
int
sample)
const
;
58
void
updateSlice
(
xAOD::HIEventShape
* slice,
float
ET,
float
phi0,
float
area_cluster)
const
;
59
60
Gaudi::Property< std::string >
m_inputFile
{
this
,
"InputFile"
,
"cluster.geo.HIJING_2018.root"
,
"File containing cluster geometric moments."
};
61
62
Gaudi::Property< std::string >
m_configDir
{
this
,
"ConfigDir"
,
"HIJetCorrection/"
,
"Directory containing configuration file."
};
63
64
TH3F*
m_h3W
;
65
TH3F*
m_h3Eta
;
66
TH3F*
m_h3Phi
;
67
68
Gaudi::Property< bool >
m_useSamplings
{
this
,
"UseSamplings"
,
true
,
"Boolean for samplings use"
};
69
70
};
71
72
#endif
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
AsgTool.h
HIJetSubtractorToolBase.h
HIEventShapeIndex
Definition
HIEventShapeIndex.h:16
HIJetClusterSubtractorTool::m_init
bool m_init
Definition
HIJetClusterSubtractorTool.h:53
HIJetClusterSubtractorTool::subtractWithMoments
virtual void subtractWithMoments(xAOD::CaloCluster *, const xAOD::HIEventShapeContainer *, const HIEventShapeIndex *index, const ToolHandle< IHIUEModulatorTool > &, const xAOD::HIEventShape *eshape) const override
Definition
HIJetClusterSubtractorTool.cxx:162
HIJetClusterSubtractorTool::m_configDir
Gaudi::Property< std::string > m_configDir
Definition
HIJetClusterSubtractorTool.h:62
HIJetClusterSubtractorTool::HIJetClusterSubtractorTool
HIJetClusterSubtractorTool(const std::string &myname)
Implements method defined in base First argument is reference to four vector that is updated to refle...
Definition
HIJetClusterSubtractorTool.cxx:17
HIJetClusterSubtractorTool::m_h3Phi
TH3F * m_h3Phi
Definition
HIJetClusterSubtractorTool.h:66
HIJetClusterSubtractorTool::updateSlice
void updateSlice(xAOD::HIEventShape *slice, float ET, float phi0, float area_cluster) const
Definition
HIJetClusterSubtractorTool.cxx:235
HIJetClusterSubtractorTool::m_h3Eta
TH3F * m_h3Eta
Definition
HIJetClusterSubtractorTool.h:65
HIJetClusterSubtractorTool::ASG_TOOL_CLASS
ASG_TOOL_CLASS(HIJetClusterSubtractorTool, IHISubtractorTool)
HIJetClusterSubtractorTool::m_inputFile
Gaudi::Property< std::string > m_inputFile
Definition
HIJetClusterSubtractorTool.h:60
HIJetClusterSubtractorTool::updateUsingCluster
virtual void updateUsingCluster(xAOD::HIEventShapeContainer *shape, const HIEventShapeIndex *index, const xAOD::CaloCluster *cl) const override
Method to update the shape based on a given cluster two sets of indices are passed by reference and u...
Definition
HIJetClusterSubtractorTool.cxx:124
HIJetClusterSubtractorTool::getWeightPhi
float getWeightPhi(float eta, float phi, int sample) const
Definition
HIJetClusterSubtractorTool.cxx:230
HIJetClusterSubtractorTool::initializeTool
virtual StatusCode initializeTool()
Definition
HIJetClusterSubtractorTool.cxx:169
HIJetClusterSubtractorTool::m_h3W
TH3F * m_h3W
Definition
HIJetClusterSubtractorTool.h:64
HIJetClusterSubtractorTool::subtract
virtual void subtract(xAOD::IParticle::FourMom_t &, const xAOD::IParticle *, const xAOD::HIEventShapeContainer *, const HIEventShapeIndex *, const ToolHandle< IHIUEModulatorTool > &, const xAOD::HIEventShape *eshape) const override
Abstract method where particle itself is not modified IParticle::FourMom_t containing kinematics afte...
Definition
HIJetClusterSubtractorTool.cxx:26
HIJetClusterSubtractorTool::getWeight
float getWeight(float eta, float phi, int sample) const
Definition
HIJetClusterSubtractorTool.cxx:222
HIJetClusterSubtractorTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
HIJetClusterSubtractorTool.cxx:215
HIJetClusterSubtractorTool::m_useSamplings
Gaudi::Property< bool > m_useSamplings
Definition
HIJetClusterSubtractorTool.h:68
HIJetClusterSubtractorTool::getWeightEta
float getWeightEta(float eta, float phi, int sample) const
Definition
HIJetClusterSubtractorTool.cxx:226
HIJetSubtractorToolBase::HIJetSubtractorToolBase
HIJetSubtractorToolBase(const std::string &myname)
Definition
HIJetSubtractorToolBase.cxx:9
IHISubtractorTool
Abstract interface for tools that implement constituent based subtraction.
Definition
IHISubtractorTool.h:31
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:69
index
Definition
index.py:1
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
xAOD::HIEventShapeContainer
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.
Definition
HIEventShapeContainer.h:17
xAOD::HIEventShape
HIEventShape_v2 HIEventShape
Definition of the latest event info version.
Definition
HIEventShape.h:16
Generated on
for ATLAS Offline Software by
1.17.0