ATLAS Offline Software
Loading...
Searching...
No Matches
PDFWeight.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// Author: Danilo Ferreira de Lima <dferreir@cern.ch>
9
10#ifndef PDFWEIGHT_H
11#define PDFWEIGHT_H
12
13// Include the base class
15
16namespace LHAPDF {
17class PDF;
18}
19
21 {
24
25 public:
27 PDFWeight( const std::string& name );
28
30 virtual ~PDFWeight() {};
31
32 StatusCode initialize() override;
33
35 virtual double evaluate( const xAOD::IParticle* part ) const override;
36
38 virtual double getWeight() const override;
39
40
41 private:
42 //internal function "computing" the weight
43 double computeWeight(const xAOD::EventInfo*) const;
44
45 std::string m_pdfName;
47 std::string m_eventInfoName;
48 float m_weight;
49
50 LHAPDF::PDF* m_pdf = 0;
51
53};
54
55#endif //> !PDFWEIGHT_H
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Interface for tools that want to calculate a quantity from an xAOD::IParticle.
Interface for tools that want to calculate a weight from different event information.
Definition IWeightTool.h:21
std::string m_eventInfoName
Definition PDFWeight.h:47
double computeWeight(const xAOD::EventInfo *) const
Definition PDFWeight.cxx:52
float m_weight
Definition PDFWeight.h:48
virtual double getWeight() const override
returns: the value that was calculated from the usual Athena storegate
virtual double evaluate(const xAOD::IParticle *part) const override
returns: the value that was calculated from the xAOD::IParticle (composite built event object for ins...
Definition PDFWeight.cxx:44
std::string m_pdfName
Definition PDFWeight.h:45
int m_index
Definition PDFWeight.h:52
virtual ~PDFWeight()
Default destructor.
Definition PDFWeight.h:30
std::string m_truthEventContainerName
Definition PDFWeight.h:46
StatusCode initialize() override
Usual initialize method of the framework.
Definition PDFWeight.cxx:27
LHAPDF::PDF * m_pdf
Definition PDFWeight.h:50
PDFWeight(const std::string &name)
Create a proper constructor for Athena.
Definition PDFWeight.cxx:17
WeightToolBase(const std::string &name)
Create a proper constructor for Athena.
Class providing the definition of the 4-vector interface.
EventInfo_v1 EventInfo
Definition of the latest event info version.