ATLAS Offline Software
Tracking
TrkTools
TrkRIO_OnTrackCreator
src
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
*/
4
#include "
RIO_OnTrackErrorScalingKit.h
"
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
Generated on Thu Nov 7 2024 21:24:45 for ATLAS Offline Software by
1.8.18