ATLAS Offline Software
Loading...
Searching...
No Matches
PMGSherpa22VJetsWeightTool.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: PMGSherpa22VJetsWeightTool.h 764400 2016-07-26 17:47:39Z tripiana $
8#ifndef PMGTOOLS_PMGSHERPA22VJETSWEIGHTTOOL_H
9#define PMGTOOLS_PMGSHERPA22VJETSWEIGHTTOOL_H
10
11// System include(s):
12#include <array>
13
14// Infrastructure include(s):
15#include "AsgTools/AsgTool.h"
16
17// Interface include(s):
19
29
30namespace PMGTools {
31
33 public asg::AsgTool {
34
35 public:
36 //constructor for athena can be created using special macro
38
39
40 PMGSherpa22VJetsWeightTool( const std::string& name =
41 "PMGSherpa22VJetsWeightTool" );
42
45
47 virtual StatusCode initialize() override final;
48
50
53
62 virtual double getWeight() const override;
63
65
68
70 double getSherpa22VJets_NJetCorrection( size_t ntag ) const;
73 double
74 getSherpa22VJets_NJetCorrection( const std::string &jetcontainer ) const;
76 size_t getSherpa22VJets_NJet( const std::string &jetcontainer ) const;
77
79
80 private:
82 static const size_t NJET_CORRECTION_BINS = 9;
84 std::array< double, NJET_CORRECTION_BINS > m_corrFactors;
85
88
93
95
96 }; // class PMGSherpa22VJetsWeightTool
97
98} //namespace PMGTools
99
100#endif //> !PMGTOOLS_PMGSHERPA22VJETSWEIGHTTOOL_H
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Interface for tools that want to calculate a weight from different event information.
Definition IWeightTool.h:21
virtual double getWeight() const override
Sherpa 2.2 V+jets jet multiplicity reweight to fix issue from scale settings used in pTV sliced sampl...
std::string m_truthJetContainer
The truth jet container to use for the calculation.
size_t getSherpa22VJets_NJet(const std::string &jetcontainer) const
Function returns number of jets required for correction.
std::string m_truthParticleContainer
The truth particle container to use for the calculation.
std::array< double, NJET_CORRECTION_BINS > m_corrFactors
Correction factors used in the weight calculation.
double getSherpa22VJets_NJetCorrection(size_t ntag) const
Return correction for given jet multiplicity.
PMGSherpa22VJetsWeightTool(const std::string &name="PMGSherpa22VJetsWeightTool")
Standard tool constructor, with name.
virtual StatusCode initialize() override final
Initialize is required by AsgTool base class.
static const size_t NJET_CORRECTION_BINS
Number of jet multiplicities that we have a correction for.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Tool providing sample cross-sections and k-factors etc.