ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetRecTools
JetRecTools
ConstituentSubtractorTool.h
Go to the documentation of this file.
1
// this file is -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
14
15
#ifndef CALOCLUSTERCONSTITUENTSUBSTRACTOR_H
16
#define CALOCLUSTERCONSTITUENTSUBSTRACTOR_H
17
18
#include "
xAODEventInfo/EventInfo.h
"
19
#include "
xAODBase/IParticleContainer.h
"
20
#include "
xAODCaloEvent/CaloClusterContainer.h
"
21
22
#include "
AsgTools/AsgTool.h
"
23
#include "
JetRecTools/JetConstituentModifierBase.h
"
24
#include "
AsgDataHandles/ReadHandleKey.h
"
25
#include "
AsgTools/PropertyWrapper.h
"
26
#include "fastjet/FunctionOfPseudoJet.hh"
27
#include "TH1.h"
28
#include "TH2.h"
29
30
class
ConstituentSubtractorTool
:
public
JetConstituentModifierBase
{
31
ASG_TOOL_CLASS
(
ConstituentSubtractorTool
,
IJetConstituentModifier
)
32
public
:
33
34
ConstituentSubtractorTool
(
const
std::string & name);
35
36
// Check that the configuration is sane
37
StatusCode
initialize
();
38
39
private
:
40
// Implement the correction
41
StatusCode
process_impl
(
xAOD::IParticleContainer
* cont)
const
;
42
44
SG::ReadHandleKey<xAOD::EventInfo>
m_eventinfokey
{
"EventInfo"
};
45
46
Gaudi::Property<float>
m_maxDeltaR
= {
this
,
"MaxDeltaR"
,0.25,
""
};
47
Gaudi::Property<float>
m_alpha
= {
this
,
"Alpha"
,0.,
""
};
48
Gaudi::Property<float>
m_ghostArea
= {
this
,
"GhostArea"
,0.01,
""
};
49
Gaudi::Property<float>
m_maxEta
= {
this
,
"MaxEta"
,5.5,
""
};
50
51
Gaudi::Property<float>
m_maxRapForRhoComputation
= {
this
,
"MaxRapForRhoComputation"
, 2.0,
""
};
52
Gaudi::Property<float>
m_gridSize
= {
this
,
"GridSize"
, 0.5,
""
};
// grid size (not area) for GridMedianBackgroundEstimator
53
Gaudi::Property<bool>
m_commonBgeForRhoAndRhom
= {
this
,
"CommonBgeForRhoAndRhom"
,
false
,
""
};
54
Gaudi::Property<bool>
m_doRapidityRescaling
= {
this
,
"DoRapidityRescaling"
,
false
,
""
};
55
Gaudi::Property<bool>
m_doRapidityPhiRescaling
= {
this
,
"DoRapidityPhiRescaling"
,
false
,
""
};
56
Gaudi::Property<std::string>
m_rescalingFileName
= {
this
,
"RescalingFileName"
,
""
,
""
};
57
Gaudi::Property<std::string>
m_rescalingHistogramName
= {
this
,
"RescalingHistogramName"
,
""
,
""
};
58
59
Gaudi::Property<bool>
m_ignoreChargedPFOs
= {
this
,
"IgnoreChargedPFO"
,0.,
"Option to disregard cPFOs in the weight calculation"
};
60
61
std::unique_ptr<fastjet::FunctionOfPseudoJet<double> >
m_rescaling
=
nullptr
;
62
std::unique_ptr<TH1D>
m_hist
=
nullptr
;
63
std::unique_ptr<TH2D>
m_hist2D
=
nullptr
;
64
65
66
67
};
68
69
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CaloClusterContainer.h
JetConstituentModifierBase.h
PropertyWrapper.h
ConstituentSubtractorTool::m_commonBgeForRhoAndRhom
Gaudi::Property< bool > m_commonBgeForRhoAndRhom
Definition
ConstituentSubtractorTool.h:53
ConstituentSubtractorTool::m_ignoreChargedPFOs
Gaudi::Property< bool > m_ignoreChargedPFOs
Definition
ConstituentSubtractorTool.h:59
ConstituentSubtractorTool::m_maxRapForRhoComputation
Gaudi::Property< float > m_maxRapForRhoComputation
Definition
ConstituentSubtractorTool.h:51
ConstituentSubtractorTool::m_maxEta
Gaudi::Property< float > m_maxEta
Definition
ConstituentSubtractorTool.h:49
ConstituentSubtractorTool::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition
ConstituentSubtractorTool.cxx:30
ConstituentSubtractorTool::m_rescalingHistogramName
Gaudi::Property< std::string > m_rescalingHistogramName
Definition
ConstituentSubtractorTool.h:57
ConstituentSubtractorTool::m_alpha
Gaudi::Property< float > m_alpha
Definition
ConstituentSubtractorTool.h:47
ConstituentSubtractorTool::m_rescalingFileName
Gaudi::Property< std::string > m_rescalingFileName
Definition
ConstituentSubtractorTool.h:56
ConstituentSubtractorTool::m_hist2D
std::unique_ptr< TH2D > m_hist2D
Definition
ConstituentSubtractorTool.h:63
ConstituentSubtractorTool::m_hist
std::unique_ptr< TH1D > m_hist
Definition
ConstituentSubtractorTool.h:62
ConstituentSubtractorTool::m_rescaling
std::unique_ptr< fastjet::FunctionOfPseudoJet< double > > m_rescaling
Definition
ConstituentSubtractorTool.h:61
ConstituentSubtractorTool::m_ghostArea
Gaudi::Property< float > m_ghostArea
Definition
ConstituentSubtractorTool.h:48
ConstituentSubtractorTool::process_impl
StatusCode process_impl(xAOD::IParticleContainer *cont) const
Definition
ConstituentSubtractorTool.cxx:104
ConstituentSubtractorTool::ConstituentSubtractorTool
ConstituentSubtractorTool(const std::string &name)
Definition
ConstituentSubtractorTool.cxx:26
ConstituentSubtractorTool::m_doRapidityPhiRescaling
Gaudi::Property< bool > m_doRapidityPhiRescaling
Definition
ConstituentSubtractorTool.h:55
ConstituentSubtractorTool::m_maxDeltaR
Gaudi::Property< float > m_maxDeltaR
Definition
ConstituentSubtractorTool.h:46
ConstituentSubtractorTool::m_eventinfokey
SG::ReadHandleKey< xAOD::EventInfo > m_eventinfokey
Handle to EventInfo. This is used to get the evt&run number to set the Ghost area random seeds.
Definition
ConstituentSubtractorTool.h:44
ConstituentSubtractorTool::m_gridSize
Gaudi::Property< float > m_gridSize
Definition
ConstituentSubtractorTool.h:52
ConstituentSubtractorTool::m_doRapidityRescaling
Gaudi::Property< bool > m_doRapidityRescaling
Definition
ConstituentSubtractorTool.h:54
IJetConstituentModifier
Definition
IJetConstituentModifier.h:16
JetConstituentModifierBase::JetConstituentModifierBase
JetConstituentModifierBase(const std::string &name)
Definition
JetConstituentModifierBase.cxx:14
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
xAOD::IParticleContainer
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
Definition
xAOD/xAODBase/xAODBase/IParticleContainer.h:32
IParticleContainer.h
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0