ATLAS Offline Software
Loading...
Searching...
No Matches
RIO_OnTrackErrorScaling Class Reference

#include <RIO_OnTrackErrorScaling.h>

Inheritance diagram for RIO_OnTrackErrorScaling:
Collaboration diagram for RIO_OnTrackErrorScaling:

Public Types

enum  Type {
  Pixel = 0 , SCT = 1 , TRT = 2 , MuonEtaPhi = 3 ,
  Unknown = 99
}

Public Member Functions

 RIO_OnTrackErrorScaling ()
virtual ~RIO_OnTrackErrorScaling ()
virtual CLID clid () const
std::vector< std::vector< double > > & params ()
const std::vector< std::vector< double > > & params () const
virtual bool postProcess ()
virtual Type type () const

Protected Member Functions

void checkParameters (const char *label, unsigned int n_paramter_sets, const char *const *param_names, unsigned int n_paramters) const
 Convenience function to check whether the number of parameters is correct.

Private Attributes

std::vector< std::vector< double > > m_params

Detailed Description

Definition at line 13 of file RIO_OnTrackErrorScaling.h.

Member Enumeration Documentation

◆ Type

Constructor & Destructor Documentation

◆ RIO_OnTrackErrorScaling()

RIO_OnTrackErrorScaling::RIO_OnTrackErrorScaling ( )
default

◆ ~RIO_OnTrackErrorScaling()

RIO_OnTrackErrorScaling::~RIO_OnTrackErrorScaling ( )
virtualdefault

Member Function Documentation

◆ checkParameters()

void RIO_OnTrackErrorScaling::checkParameters ( const char * label,
unsigned int n_paramter_sets,
const char *const * param_names,
unsigned int n_paramters ) const
protected

Convenience function to check whether the number of parameters is correct.

Parameters
labela label for the error scaling class in case an error is issued.
n_paramter_setsthe number of parameter sets
param_namesthe names of the parameter sets
n_paramtersthe number of parameters per set.

Definition at line 14 of file RIO_OnTrackErrorScaling.cxx.

18{
19 if (params().size() != n_paramter_sets ) {
20 std::stringstream message;
21 message << label << ": Expecting parameters for 2 parameters for";
22 for (unsigned int idx=0; idx < n_paramter_sets; ++idx) {
23 message << " " << param_names[idx];
24 }
25 message << " But got " << params().size() << ".";
26 throw std::runtime_error( message.str() );
27 }
28 for (unsigned int idx=0; idx<params().size(); ++idx) {
29 if (params()[idx].size() != n_paramters) {
30 assert( idx < n_paramter_sets );
31 std::stringstream message;
32 message << label << ": Expected 2 parameters for " << param_names[idx] << " but got " << params()[idx].size()
33 << ".";
34 throw std::runtime_error( message.str() );
35 }
36 }
37}
std::vector< std::vector< double > > & params()
std::string label(const std::string &format, int i)
Definition label.h:19

◆ clid()

◆ params() [1/2]

std::vector< std::vector< double > > & RIO_OnTrackErrorScaling::params ( )
inline

Definition at line 29 of file RIO_OnTrackErrorScaling.h.

29{ return m_params; }
std::vector< std::vector< double > > m_params

◆ params() [2/2]

const std::vector< std::vector< double > > & RIO_OnTrackErrorScaling::params ( ) const
inline

Definition at line 30 of file RIO_OnTrackErrorScaling.h.

30{ return m_params; }

◆ postProcess()

virtual bool RIO_OnTrackErrorScaling::postProcess ( )
inlinevirtual

◆ type()

virtual Type RIO_OnTrackErrorScaling::type ( ) const
inlinevirtual

Member Data Documentation

◆ m_params

std::vector<std::vector<double> > RIO_OnTrackErrorScaling::m_params
private

Definition at line 47 of file RIO_OnTrackErrorScaling.h.


The documentation for this class was generated from the following files: