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

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 46 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< TRTRIO_OnTrackErrorScaling >::create
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 TRTRIO_OnTrackErrorScalingKit::nParametres ( ) const
inlineoverridevirtual

Implements RIO_OnTrackErrorScalingKit.

Definition at line 50 of file RIO_OnTrackErrorScalingIDKits.cxx.

50  {
52  }

◆ paramNames()

virtual const char* const* TRTRIO_OnTrackErrorScalingKit::paramNames ( ) const
inlineoverridevirtual

Implements RIO_OnTrackErrorScalingKit.

Definition at line 53 of file RIO_OnTrackErrorScalingIDKits.cxx.

53  {
55  }

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