ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
ParticleScaleFactorTool::Hists Struct Reference
Collaboration diagram for ParticleScaleFactorTool::Hists:

Public Member Functions

const std::pair< CP::SystematicVariation, TH1 * > getHist (const CP::SystematicVariation &set) const
 

Public Attributes

std::map< CP::SystematicVariation, TH1 * > hists
 
std::vector< std::function< double(const xAOD::IParticle &)> > axisFuncs
 

Detailed Description

Definition at line 72 of file ParticleScaleFactorTool.h.

Member Function Documentation

◆ getHist()

const std::pair< CP::SystematicVariation, TH1 * > ParticleScaleFactorTool::Hists::getHist ( const CP::SystematicVariation set) const

Definition at line 222 of file ParticleScaleFactorTool.cxx.

222  {
223  //find hist that matches basename and take the one that has the closest parameter value
224  std::pair<CP::SystematicVariation,TH1*> result(CP::SystematicVariation(""),0);
225  for(auto& s : hists) {
226  if(s.first.basename()!=set.basename()) continue;
227  if(!result.second) {result = s;}
228  else {
229  if(set.parameter()*s.first.parameter()>0) result = s;
230  }
231  }
232  if(result.second) return result;
233  //return nominal
234  auto it = hists.find(CP::SystematicVariation(""));
235  result = *it; return result;
236  //return it->second;
237 }

Member Data Documentation

◆ axisFuncs

std::vector<std::function<double(const xAOD::IParticle&)> > ParticleScaleFactorTool::Hists::axisFuncs

Definition at line 75 of file ParticleScaleFactorTool.h.

◆ hists

std::map<CP::SystematicVariation,TH1*> ParticleScaleFactorTool::Hists::hists

Definition at line 73 of file ParticleScaleFactorTool.h.


The documentation for this struct was generated from the following files:
ParticleScaleFactorTool::Hists::hists
std::map< CP::SystematicVariation, TH1 * > hists
Definition: ParticleScaleFactorTool.h:73
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
get_generator_info.result
result
Definition: get_generator_info.py:21
skel.it
it
Definition: skel.GENtoEVGEN.py:396
CP::SystematicVariation
Definition: SystematicVariation.h:47
CxxUtils::set
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.
Definition: bitmask.h:232