ATLAS Offline Software
Loading...
Searching...
No Matches
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
28public:
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
39 StatusCode initialize();
40
41protected:
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
58
59 // this is needed to distribute the algorithm to the workers
60 //ClassDef(VoronoiWeightTool, 1);
61};
62
63#endif //> !VORONOIWEIGHTTOOL_VORONOIWEIGHTTOOL_H
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
JetConstituentModifierBase(const std::string &name)
VoronoiWeightTool(const std::string &name)
StatusCode initialize()
Dummy implementation of the initialisation function.
StatusCode makeVoronoiParticles(std::vector< fastjet::PseudoJet > &particles, std::vector< std::pair< fastjet::PseudoJet, std::vector< float > > > &) const
void spreadPt(std::vector< std::pair< fastjet::PseudoJet, std::vector< float > > > &correctedptvec, float spreadr=0.4, float alpha=2) const
StatusCode process_impl(xAOD::IParticleContainer *cont) const
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.