ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigCost
RatesAnalysis
src
PileupProfileWeight.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef RATESANALYSIS_PILEUPPROFILEWEIGHT_H
6
#define RATESANALYSIS_PILEUPPROFILEWEIGHT_H 1
7
8
#include "
RatesAnalysis/IAdditionalWeight.h
"
9
10
#include "
AthenaBaseComps/AthAlgTool.h
"
11
#include "GaudiKernel/PropertyHolder.h"
12
13
#include <nlohmann/json.hpp>
14
18
19
class
PileupProfileWeight
:
public
extends<AthAlgTool, IAdditionalWeight> {
20
public
:
21
using
extends::extends;
22
23
virtual
StatusCode
initialize
()
override
;
24
virtual
StatusCode
getValue
(
double
& value)
const override
;
25
26
private
:
27
Gaudi::Property<std::string>
m_weightsFile
{
this
,
"WeightsFile"
,
""
,
"Path to the weights file"
};
28
nlohmann::json
m_weightsMap
;
29
};
30
31
#endif
AthAlgTool.h
IAdditionalWeight.h
PileupProfileWeight
This class provides the weight used to reweight pileup (mu) distribution by querying JSON.
Definition
PileupProfileWeight.h:19
PileupProfileWeight::m_weightsFile
Gaudi::Property< std::string > m_weightsFile
Definition
PileupProfileWeight.h:27
PileupProfileWeight::m_weightsMap
nlohmann::json m_weightsMap
Definition
PileupProfileWeight.h:28
PileupProfileWeight::initialize
virtual StatusCode initialize() override
Definition
PileupProfileWeight.cxx:11
PileupProfileWeight::getValue
virtual StatusCode getValue(double &value) const override
Definition
PileupProfileWeight.cxx:22
Generated on
for ATLAS Offline Software by
1.17.0