#include <TRTRIO_OnTrackErrorScaling.h>
|
| 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.
|
|
| std::vector< std::vector< double > > | m_params |
Definition at line 8 of file TRTRIO_OnTrackErrorScaling.h.
◆ ETRTErrorScalingRegions
◆ Type
◆ checkParameters()
| void RIO_OnTrackErrorScaling::checkParameters |
( |
const char * | label, |
|
|
unsigned int | n_paramter_sets, |
|
|
const char *const * | param_names, |
|
|
unsigned int | n_paramters ) const |
|
protectedinherited |
Convenience function to check whether the number of parameters is correct.
- Parameters
-
| label | a label for the error scaling class in case an error is issued. |
| n_paramter_sets | the number of parameter sets |
| param_names | the names of the parameter sets |
| n_paramters | the number of parameters per set. |
Definition at line 14 of file RIO_OnTrackErrorScaling.cxx.
18{
19 if (
params().size() != n_paramter_sets ) {
21 message <<
label <<
": Expecting parameters for 2 parameters for";
22 for (
unsigned int idx=0;
idx < n_paramter_sets; ++
idx) {
24 }
26 throw std::runtime_error(
message.str() );
27 }
29 if (
params()[idx].size() != n_paramters) {
30 assert( idx < n_paramter_sets );
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)
◆ clid()
| CLID TRTRIO_OnTrackErrorScaling::clid |
( |
| ) |
const |
|
finaloverridevirtual |
◆ getScaledCovariance()
| Amg::MatrixX TRTRIO_OnTrackErrorScaling::getScaledCovariance |
( |
Amg::MatrixX && | cov_input, |
|
|
bool | is_endcap, |
|
|
double | mu ) const |
Definition at line 48 of file TRTRIO_OnTrackErrorScaling.cxx.
51{
56 newCov(0,0) *= square(
a);
57 newCov(0,0) += square(b);
58 newCov(0,0) *= (1. +
mu *
c);
59 return newCov;
60}
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
◆ paramNames()
| const char *const * TRTRIO_OnTrackErrorScaling::paramNames |
( |
| ) |
|
|
inlinestatic |
◆ params() [1/2]
| std::vector< std::vector< double > > & RIO_OnTrackErrorScaling::params |
( |
| ) |
|
|
inlineinherited |
◆ params() [2/2]
| const std::vector< std::vector< double > > & RIO_OnTrackErrorScaling::params |
( |
| ) |
const |
|
inlineinherited |
◆ postProcess()
| bool TRTRIO_OnTrackErrorScaling::postProcess |
( |
| ) |
|
|
finaloverridevirtual |
Reimplemented from RIO_OnTrackErrorScaling.
Definition at line 20 of file TRTRIO_OnTrackErrorScaling.cxx.
20 {
23 message <<
" TRTRIO_OnTrackErrorScaling: Expecting parameters for et least 2 parameters for";
26 }
29 throw std::runtime_error(
message.str() );
30 }
32 if (
params()[idx].size() != 3) {
33 if (
params()[idx].size() == 2) {
35 }
36 else {
39 message <<
" TRTRIO_OnTrackErrorScaling: Expected 2 or 3 parameters for " <<
s_names[
idx] <<
" but got " <<
params()[
idx].size()
40 << ".";
41 throw std::runtime_error(
message.str() );
42 }
43 }
44 }
45 return true;
46}
std::atomic< const char * > ClassID_traits< ViewVector< DV > >::s_name
◆ type()
| virtual Type TRTRIO_OnTrackErrorScaling::type |
( |
| ) |
const |
|
inlinefinaloverridevirtual |
◆ m_params
| std::vector<std::vector<double> > RIO_OnTrackErrorScaling::m_params |
|
privateinherited |
◆ s_names
| const char *const TRTRIO_OnTrackErrorScaling::s_names |
|
staticprotected |
◆ s_type
The documentation for this class was generated from the following files: