ATLAS Offline Software
Loading...
Searching...
No Matches
PDFReweightAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef ASG_ANALYSIS_ALGORITHMS__PDFREWEIGHT__ALG_H
8#define ASG_ANALYSIS_ALGORITHMS__PDFREWEIGHT__ALG_H
9
14
15
18
19#include <memory>
20#include <vector>
21
22namespace LHAPDF{
23 class PDF;
24}
25
26
27namespace CP
28{
31 {
32 public:
34 virtual StatusCode initialize() final;
35 virtual StatusCode execute(const EventContext &ctx) const final;
36
37 private:
38
41 {
42 void operator() (const LHAPDF::PDF *pdf) const;
43 };
44 using PDFPtr = std::unique_ptr<const LHAPDF::PDF, PDFDeleter>;
45
47 this, "EventInfoKey", "EventInfo", "EventInfo container to dump"};
48
50 this, "TruthEvents", "TruthEvents", "TruthEvent container to read"};
51
53 std::vector<PDFPtr> m_p1_vars;
54 Gaudi::Property<std::string> m_inPDF {this, "inPDFName", ""};
55 Gaudi::Property<std::vector<std::string>> m_outPDF {this, "outPDFName", {}};
56 Gaudi::Property<std::string> m_additionalPdfPath {this, "additionalPdfPath", ""};
57 std::vector<SG::WriteDecorHandleKey<xAOD::EventInfo>> m_reweightKeys;
58 };
59
60}
61#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
An algorithm for the PDF reweighting.
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
virtual StatusCode initialize() final
Gaudi::Property< std::string > m_additionalPdfPath
std::unique_ptr< const LHAPDF::PDF, PDFDeleter > PDFPtr
Gaudi::Property< std::vector< std::string > > m_outPDF
std::vector< PDFPtr > m_p1_vars
Gaudi::Property< std::string > m_inPDF
std::vector< SG::WriteDecorHandleKey< xAOD::EventInfo > > m_reweightKeys
SG::ReadHandleKey< xAOD::TruthEventContainer > m_TruthEventKey
virtual StatusCode execute(const EventContext &ctx) const final
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.
deleter for the LHAPDF::PDF objects, defined where the type is complete
void operator()(const LHAPDF::PDF *pdf) const