ATLAS Offline Software
RIO_OnTrackErrorScalingKit.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
5 
6 size_t RIO_OnTrackErrorScalingKit::getParamIndex(const std::string &name) const {
7  const char* const* param_names = paramNames();
8  for(size_t idx=0; idx<nParametres(); ++idx) {
9  if (strcmp(param_names[idx],name.c_str())==0) return idx;
10  }
11  std::stringstream message;
12  message << "RIO_OnTrackErrorScaling parameter " << name << " not found.";
13  throw std::runtime_error(message.str());
14  return nParametres();
15 }
16 
RIO_OnTrackErrorScalingKit::nParametres
virtual unsigned int nParametres() const =0
RIO_OnTrackErrorScalingKit::getParamIndex
virtual size_t getParamIndex(const std::string &name) const
Definition: RIO_OnTrackErrorScalingKit.cxx:6
ReweightUtils.message
message
Definition: ReweightUtils.py:15
RIO_OnTrackErrorScalingKit::paramNames
virtual const char *const * paramNames() const =0
RIO_OnTrackErrorScalingKit.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69