ATLAS Offline Software
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 
23 
24 #include "fastjet/PseudoJet.hh"
25 
28 public:
29 
30  // // this is a standard constructor
31  // VoronoiWeightTool ();
32  // Constructor with parameters:
33  VoronoiWeightTool(const std::string& name);
34 
35  // Destructor:
37 
38  // Check that the configuration is sane
40 
41 protected:
42  // Implement the correction
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
58 
59  // this is needed to distribute the algorithm to the workers
60  //ClassDef(VoronoiWeightTool, 1);
61 };
62 
63 #endif //> !VORONOIWEIGHTTOOL_VORONOIWEIGHTTOOL_H
VoronoiWeightTool::m_doSpread
bool m_doSpread
Definition: VoronoiWeightTool.h:50
JetConstituentModifierBase.h
VoronoiWeightTool::VoronoiWeightTool
VoronoiWeightTool(const std::string &name)
Definition: VoronoiWeightTool.cxx:76
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
Definition: VoronoiWeightTool.h:26
VoronoiWeightTool::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: VoronoiWeightTool.cxx:89
VoronoiWeightTool::~VoronoiWeightTool
~VoronoiWeightTool()
IJetConstituentModifier
Definition: IJetConstituentModifier.h:16
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
JetConstituentModifierBase
Definition: JetConstituentModifierBase.h:22
VoronoiWeightTool::m_ignoreChargedPFOs
bool m_ignoreChargedPFOs
Definition: VoronoiWeightTool.h:57
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
LArG4FSStartPointFilter.particles
list particles
Definition: LArG4FSStartPointFilter.py:84
VoronoiWeightTool::m_nSigma
int m_nSigma
Definition: VoronoiWeightTool.h:52
VoronoiWeightTool::m_maxArea
float m_maxArea
Definition: VoronoiWeightTool.h:54
VoronoiWeightTool::makeVoronoiParticles
StatusCode makeVoronoiParticles(std::vector< fastjet::PseudoJet > &particles, std::vector< std::pair< fastjet::PseudoJet, std::vector< float > > > &) const
Definition: VoronoiWeightTool.cxx:213
VoronoiWeightTool::process_impl
StatusCode process_impl(xAOD::IParticleContainer *cont) const
Definition: VoronoiWeightTool.cxx:108