ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
11#include "GaudiKernel/PropertyHolder.h"
12
13#include <nlohmann/json.hpp>
14
18
19class 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
This class provides the weight used to reweight pileup (mu) distribution by querying JSON.
Gaudi::Property< std::string > m_weightsFile
nlohmann::json m_weightsMap
virtual StatusCode initialize() override
virtual StatusCode getValue(double &value) const override