ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
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
10
#include <
AnaAlgorithm/AnaReentrantAlgorithm.h
>
11
#include <
AsgDataHandles/ReadHandleKey.h
>
12
#include <
AsgDataHandles/WriteDecorHandleKey.h
>
13
#include <
AsgTools/PropertyWrapper.h
>
14
15
16
#include <
xAODEventInfo/EventInfo.h
>
17
#include "
xAODTruth/TruthEventContainer.h
"
18
19
#include <vector>
20
21
namespace
LHAPDF
{
22
class
PDF;
23
}
24
25
26
namespace
CP
27
{
29
class
PDFReweightAlg
:
public
EL::AnaReentrantAlgorithm
30
{
31
public
:
32
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
33
virtual
StatusCode
initialize
()
final
;
34
virtual
StatusCode
execute
(
const
EventContext &ctx)
const
final
;
35
36
private
:
37
38
SG::ReadHandleKey<xAOD::EventInfo>
m_EventInfoKey
{
39
this
,
"EventInfoKey"
,
"EventInfo"
,
"EventInfo container to dump"
};
40
41
SG::ReadHandleKey<xAOD::TruthEventContainer>
m_TruthEventKey
{
42
this
,
"TruthEvents"
,
"TruthEvents"
,
"TruthEvent container to read"
};
43
44
LHAPDF::PDF*
m_p0
=
nullptr
;
45
std::vector<LHAPDF::PDF*>
m_p1_vars
;
46
Gaudi::Property<std::string>
m_inPDF
{
this
,
"inPDFName"
,
""
};
47
Gaudi::Property<std::vector<std::string>>
m_outPDF
{
this
,
"outPDFName"
, {}};
48
Gaudi::Property<std::string>
m_additionalPdfPath
{
this
,
"additionalPdfPath"
,
""
};
49
std::vector<SG::WriteDecorHandleKey<xAOD::EventInfo>>
m_reweightKeys
;
50
};
51
52
}
53
#endif
AnaReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
PropertyWrapper.h
TruthEventContainer.h
CP::PDFReweightAlg
An algorithm for the PDF reweighting.
Definition
PDFReweightAlg.h:30
CP::PDFReweightAlg::m_EventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Definition
PDFReweightAlg.h:38
CP::PDFReweightAlg::m_p0
LHAPDF::PDF * m_p0
Definition
PDFReweightAlg.h:44
CP::PDFReweightAlg::initialize
virtual StatusCode initialize() final
Definition
PDFReweightAlg.cxx:18
CP::PDFReweightAlg::m_p1_vars
std::vector< LHAPDF::PDF * > m_p1_vars
Definition
PDFReweightAlg.h:45
CP::PDFReweightAlg::m_additionalPdfPath
Gaudi::Property< std::string > m_additionalPdfPath
Definition
PDFReweightAlg.h:48
CP::PDFReweightAlg::m_outPDF
Gaudi::Property< std::vector< std::string > > m_outPDF
Definition
PDFReweightAlg.h:47
CP::PDFReweightAlg::m_inPDF
Gaudi::Property< std::string > m_inPDF
Definition
PDFReweightAlg.h:46
CP::PDFReweightAlg::m_reweightKeys
std::vector< SG::WriteDecorHandleKey< xAOD::EventInfo > > m_reweightKeys
Definition
PDFReweightAlg.h:49
CP::PDFReweightAlg::m_TruthEventKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_TruthEventKey
Definition
PDFReweightAlg.h:41
CP::PDFReweightAlg::execute
virtual StatusCode execute(const EventContext &ctx) const final
Definition
PDFReweightAlg.cxx:44
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaReentrantAlgorithm.cxx:29
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
LHAPDF
Definition
PDFReweightAlg.h:21
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0