5#ifndef RATESANALYSIS_JZCOMBINEWEIGHT_H
6#define RATESANALYSIS_JZCOMBINEWEIGHT_H 1
11#include "GaudiKernel/PropertyHolder.h"
13#include <nlohmann/json.hpp>
21 using extends::extends;
24 virtual StatusCode
getValue(
double& value)
const override;
27 std::size_t
getIndex(
double value)
const;
31 this,
"JetCollectionHS",
"AntiKt4TruthJets",
"Name of the hard-scatter jet collection"};
33 this,
"JetCollectionPU",
"InTimeAntiKt4TruthJets",
"Name of the pile-up jet collection"};
35 this,
"WeightsFile",
"",
"Path to the weights file"};
37 this,
"Binning", {},
"Pt binning used to define categories"};
39 this,
"WeightsName", {},
"Weights to be calculated - their product is used"};
This class provides the weight used to combine JZ sliced samples by querying JSON.
Gaudi::Property< std::string > m_weightsFile
virtual StatusCode getValue(double &value) const override
Gaudi::Property< std::vector< double > > m_binning
Gaudi::Property< std::vector< std::string > > m_weightsName
Gaudi::Property< std::string > m_jetCollectionHS
std::size_t getIndex(double value) const
virtual StatusCode initialize() override
This class provides the weight used to combine JZ sliced samples by querying JSON.
nlohmann::json m_weightsMap
Gaudi::Property< std::string > m_jetCollectionPU