ATLAS Offline Software
Public Member Functions | List of all members
PixelRIO_OnTrackErrorScalingRun1Kit Class Referenceabstract
Inheritance diagram for PixelRIO_OnTrackErrorScalingRun1Kit:
Collaboration diagram for PixelRIO_OnTrackErrorScalingRun1Kit:

Public Member Functions

virtual unsigned int nParametres () const override
 
virtual const char *constparamNames () const override
 
virtual std::unique_ptr< RIO_OnTrackErrorScalingcreate () const override
 
virtual std::unique_ptr< RIO_OnTrackErrorScalingcreate () const =0
 
virtual size_t getParamIndex (const std::string &name) const
 

Detailed Description

Definition at line 23 of file RIO_OnTrackErrorScalingIDKits.cxx.

Member Function Documentation

◆ create() [1/2]

virtual std::unique_ptr<RIO_OnTrackErrorScaling> RIO_OnTrackErrorScalingKit::create ( ) const
pure virtualinherited

◆ create() [2/2]

virtual std::unique_ptr<RIO_OnTrackErrorScaling> RIO_OnTrackErrorScalingSpecialisedKit< PixelRIO_OnTrackErrorScaling >::create ( ) const
inlineoverridevirtualinherited

Definition at line 27 of file RIO_OnTrackErrorScalingKit.h.

27  {
28  std::unique_ptr<RIO_OnTrackErrorScaling> error_scaling( new T);
29  error_scaling->params().resize(this->nParametres());
30  return error_scaling;
31  }

◆ getParamIndex()

size_t RIO_OnTrackErrorScalingKit::getParamIndex ( const std::string &  name) const
virtualinherited

Definition at line 6 of file RIO_OnTrackErrorScalingKit.cxx.

6  {
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 }

◆ nParametres()

virtual unsigned int PixelRIO_OnTrackErrorScalingRun1Kit::nParametres ( ) const
inlineoverridevirtual

Reimplemented from PixelRIO_OnTrackErrorScalingKit.

Definition at line 27 of file RIO_OnTrackErrorScalingIDKits.cxx.

27  {
29  }

◆ paramNames()

virtual const char* const* PixelRIO_OnTrackErrorScalingKit::paramNames ( ) const
inlineoverridevirtualinherited

Implements RIO_OnTrackErrorScalingKit.

Definition at line 16 of file RIO_OnTrackErrorScalingIDKits.cxx.

16  {
18  }

The documentation for this class was generated from the following file:
RIO_OnTrackErrorScalingKit::nParametres
virtual unsigned int nParametres() const =0
ReweightUtils.message
message
Definition: ReweightUtils.py:15
PixelRIO_OnTrackErrorScaling::kPixIBLPhi
@ kPixIBLPhi
Definition: PixelRIO_OnTrackErrorScaling.h:27
RIO_OnTrackErrorScalingKit::paramNames
virtual const char *const * paramNames() const =0
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
PixelRIO_OnTrackErrorScaling::paramNames
static const char *const * paramNames()
Definition: PixelRIO_OnTrackErrorScaling.h:32
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35