Definition at line 72 of file ParticleScaleFactorTool.h.
◆ getHist()
Definition at line 224 of file ParticleScaleFactorTool.cxx.
224 {
225
226 std::pair<CP::SystematicVariation,TH1*>
result(CP::SystematicVariation(
""),0);
227 for(
auto& s :
hists) {
228 if(
s.first.basename()!=
set.basename())
continue;
230 else {
231 if(
set.parameter()*
s.first.parameter()>0)
result =
s;
232 }
233 }
235
236 auto it =
hists.find(CP::SystematicVariation(
""));
237 if (it !=
hists.end()){
239 } else {
240 throw std::runtime_error("ParticleScaleFactorTool::Hists::getHist: hist not found!");
241 }
243}
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
std::map< CP::SystematicVariation, TH1 * > hists
◆ axisFuncs
| std::vector<std::function<double(const xAOD::IParticle&)> > ParticleScaleFactorTool::Hists::axisFuncs |
◆ hists
The documentation for this struct was generated from the following files: