ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetRecTools
JetRecTools
VoronoiWeightTool.h
Go to the documentation of this file.
1
// this file is -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// VoronoiWeightTool.h
8
9
#ifndef VORONOIWEIGHTTOOL_VORONOIWEIGHTTOOL_H
10
#define VORONOIWEIGHTTOOL_VORONOIWEIGHTTOOL_H 1
11
20
21
#include "
JetRecTools/JetConstituentModifierBase.h
"
22
#include "
xAODBase/IParticleContainer.h
"
23
24
#include "fastjet/PseudoJet.hh"
25
26
class
VoronoiWeightTool
:
public
JetConstituentModifierBase
{
27
ASG_TOOL_CLASS
(
VoronoiWeightTool
,
IJetConstituentModifier
)
28
public
:
29
30
// // this is a standard constructor
31
// VoronoiWeightTool ();
32
// Constructor with parameters:
33
VoronoiWeightTool
(
const
std::string& name);
34
35
// Destructor:
36
~VoronoiWeightTool
();
37
38
// Check that the configuration is sane
39
StatusCode
initialize
();
40
41
protected
:
42
// Implement the correction
43
StatusCode
process_impl
(
xAOD::IParticleContainer
* cont)
const
;
44
45
// methods used in the analysis
46
StatusCode
makeVoronoiParticles
(std::vector<fastjet::PseudoJet>& particles, std::vector< std::pair<fastjet::PseudoJet,std::vector<float> > >&)
const
;
47
void
spreadPt
(std::vector< std::pair< fastjet::PseudoJet,std::vector<float> > >& correctedptvec,
float
spreadr=0.4,
float
alpha=2)
const
;
48
49
// Whether to apply Voronoi spreading
50
bool
m_doSpread
=
true
;
51
// Whether to apply Nsigma suppression
52
int
m_nSigma
= 0;
53
// Maximum area to subtract
54
float
m_maxArea
= 1e9;
55
56
// Option to disregard cPFOs in the weight calculation
57
bool
m_ignoreChargedPFOs
=
true
;
58
59
// this is needed to distribute the algorithm to the workers
60
//ClassDef(VoronoiWeightTool, 1);
61
};
62
63
#endif
//> !VORONOIWEIGHTTOOL_VORONOIWEIGHTTOOL_H
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
JetConstituentModifierBase.h
IJetConstituentModifier
Definition
IJetConstituentModifier.h:16
JetConstituentModifierBase::JetConstituentModifierBase
JetConstituentModifierBase(const std::string &name)
Definition
JetConstituentModifierBase.cxx:14
VoronoiWeightTool::m_nSigma
int m_nSigma
Definition
VoronoiWeightTool.h:52
VoronoiWeightTool::~VoronoiWeightTool
~VoronoiWeightTool()
VoronoiWeightTool::m_doSpread
bool m_doSpread
Definition
VoronoiWeightTool.h:50
VoronoiWeightTool::VoronoiWeightTool
VoronoiWeightTool(const std::string &name)
Definition
VoronoiWeightTool.cxx:76
VoronoiWeightTool::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition
VoronoiWeightTool.cxx:89
VoronoiWeightTool::m_maxArea
float m_maxArea
Definition
VoronoiWeightTool.h:54
VoronoiWeightTool::m_ignoreChargedPFOs
bool m_ignoreChargedPFOs
Definition
VoronoiWeightTool.h:57
VoronoiWeightTool::makeVoronoiParticles
StatusCode makeVoronoiParticles(std::vector< fastjet::PseudoJet > &particles, std::vector< std::pair< fastjet::PseudoJet, std::vector< float > > > &) const
Definition
VoronoiWeightTool.cxx:213
VoronoiWeightTool::spreadPt
void spreadPt(std::vector< std::pair< fastjet::PseudoJet, std::vector< float > > > &correctedptvec, float spreadr=0.4, float alpha=2) const
Definition
VoronoiWeightTool.cxx:255
VoronoiWeightTool::process_impl
StatusCode process_impl(xAOD::IParticleContainer *cont) const
Definition
VoronoiWeightTool.cxx:108
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