ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
HeavyIonRec
HIJetRec
Root
HIJetSubtractorToolBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
HIJetRec/HIJetSubtractorToolBase.h
"
6
#include "
HIJetRec/HIJetRecDefs.h
"
7
#include <TVector2.h>
8
9
HIJetSubtractorToolBase::HIJetSubtractorToolBase
(
const
std::string& myname) :
asg
::
AsgTool
(myname),
10
m_shape
(nullptr),
11
m_index
(nullptr),
12
m_modulator
(nullptr)
13
{
14
#ifndef XAOD_STANDALONE
15
//should not need this due to ASG_TOOL_CLASS macro since
16
//athena only calls 3 arg constructor which explicitly declares athena interface?
17
declareInterface<IHISubtractorTool>(
this
);
18
#endif
19
20
}
21
22
23
void
HIJetSubtractorToolBase::setSubtractedEtaPhi
(
float
E,
float
&
eta
,
float
&
phi
,
float
eta0,
float
phi0,
float
sig)
const
24
{
25
phi
=TVector2::Phi_mpi_pi(
phi
);
26
if
(!
HIJetRec::inTowerBoundary
(eta0,phi0,
eta
,
phi
))
27
{
28
eta
=eta0;
29
phi
=phi0;
30
}
31
else
if
( E <
minEnergyForMoments
() || ( (sig > 0) && sig <
minEnergySigForMoments
() ) )
32
{
33
eta
=eta0;
34
phi
=phi0;
35
}
36
37
}
38
39
StatusCode
HIJetSubtractorToolBase::configureEvent
(
const
xAOD::HIEventShapeContainer
* shape,
const
HIEventShapeIndex
*
index
,
const
IHIUEModulatorTool
* modulator)
40
{
41
setShape
(shape);
42
setIndex
(
index
);
43
setModulator
(modulator);
44
return
StatusCode::SUCCESS;
45
46
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
HIJetRecDefs.h
HIJetSubtractorToolBase.h
HIEventShapeIndex
Definition
HIEventShapeIndex.h:16
HIJetSubtractorToolBase::minEnergyForMoments
float minEnergyForMoments() const
Definition
HIJetSubtractorToolBase.h:30
HIJetSubtractorToolBase::setSubtractedEtaPhi
void setSubtractedEtaPhi(float E, float &eta, float &phi, float eta0, float phi0, float sig) const
Definition
HIJetSubtractorToolBase.cxx:23
HIJetSubtractorToolBase::setModulator
void setModulator(const IHIUEModulatorTool *mod)
Definition
HIJetSubtractorToolBase.h:40
HIJetSubtractorToolBase::HIJetSubtractorToolBase
HIJetSubtractorToolBase(const std::string &myname)
Definition
HIJetSubtractorToolBase.cxx:9
HIJetSubtractorToolBase::m_index
const HIEventShapeIndex * m_index
Definition
HIJetSubtractorToolBase.h:52
HIJetSubtractorToolBase::m_shape
const xAOD::HIEventShapeContainer * m_shape
Definition
HIJetSubtractorToolBase.h:51
HIJetSubtractorToolBase::setIndex
void setIndex(const HIEventShapeIndex *ind)
Definition
HIJetSubtractorToolBase.h:39
HIJetSubtractorToolBase::m_modulator
const IHIUEModulatorTool * m_modulator
Definition
HIJetSubtractorToolBase.h:53
HIJetSubtractorToolBase::configureEvent
virtual StatusCode configureEvent(const xAOD::HIEventShapeContainer *shape, const HIEventShapeIndex *index, const IHIUEModulatorTool *modulator)
Definition
HIJetSubtractorToolBase.cxx:39
HIJetSubtractorToolBase::setShape
void setShape(const xAOD::HIEventShapeContainer *s)
Definition
HIJetSubtractorToolBase.h:38
HIJetSubtractorToolBase::minEnergySigForMoments
float minEnergySigForMoments() const
Definition
HIJetSubtractorToolBase.h:31
IHIUEModulatorTool
Abstract interface for tools that can provide UE modulation given an HIEventShape.
Definition
IHIUEModulatorTool.h:25
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition
AsgTool.cxx:58
HIJetRec::inTowerBoundary
bool inTowerBoundary(float eta0, float phi0, float eta, float phi)
Definition
HIJetRecDefs.h:29
asg
Definition
DataHandleTestTool.h:28
index
Definition
index.py:1
xAOD::HIEventShapeContainer
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.
Definition
HIEventShapeContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0