Block with residual and pull information.
More...
#include <MuonInsideOutValidationNtuple.h>
|
| typedef std::pair< std::reference_wrapper< std::vector< int > * >, std::string > | IntBlock |
| typedef std::pair< std::reference_wrapper< std::vector< unsigned int > * >, std::string > | UnsignedIntBlock |
| typedef std::pair< std::reference_wrapper< std::vector< float > * >, std::string > | FloatBlock |
| typedef std::pair< MuonValidationBlockBase *, std::string > | SubBlock |
|
| | MuonValidationResidualBlock () |
| void | fill (const Trk::MeasurementBase &hit, const MuonSystemExtension::Intersection &intersection, Trk::ParamDefs par) |
| void | fill (float pos_, float err_, const MuonSystemExtension::Intersection &intersection, Trk::ParamDefs par) |
| void | fill (float pos_, float err_, float expos_, float expos_err_, int status=1) |
| void | fillResPull (float res_, float pull_, int status=1) |
| void | fillResPull (float res_, float pull_, float err_, float expos_err_, int status=1) |
| void | addBlock (std::vector< int > *&block, std::string name) |
| void | addBlock (std::vector< unsigned int > *&block, std::string name) |
| void | addBlock (std::vector< float > *&block, std::string name) |
| void | addBlock (MuonValidationBlockBase *block, std::string name) |
| void | init (const std::string &prefix, TTree *, bool write=true) |
| void | clear () |
Block with residual and pull information.
Definition at line 133 of file MuonInsideOutValidationNtuple.h.
◆ FloatBlock
◆ IntBlock
◆ SubBlock
◆ UnsignedIntBlock
◆ MuonValidationResidualBlock()
| Muon::MuonValidationResidualBlock::MuonValidationResidualBlock |
( |
| ) |
|
Definition at line 98 of file MuonInsideOutValidationNtuple.cxx.
98 {
106 }
void addBlock(std::vector< int > *&block, std::string name)
std::vector< float > * pos
std::vector< int > * expos_errstatus
std::vector< float > * residual
std::vector< float > * expos
std::vector< float > * expos_err
std::vector< float > * err
std::vector< float > * pull
◆ addBlock() [1/4]
◆ addBlock() [2/4]
| void Muon::MuonValidationBlockBase::addBlock |
( |
std::vector< float > *& | block, |
|
|
std::string | name ) |
|
inlineinherited |
Definition at line 39 of file MuonInsideOutValidationNtuple.h.
std::vector< FloatBlock > floatBlocks
std::pair< std::reference_wrapper< std::vector< float > * >, std::string > FloatBlock
◆ addBlock() [3/4]
| void Muon::MuonValidationBlockBase::addBlock |
( |
std::vector< int > *& | block, |
|
|
std::string | name ) |
|
inlineinherited |
Definition at line 37 of file MuonInsideOutValidationNtuple.h.
std::vector< IntBlock > intBlocks
std::pair< std::reference_wrapper< std::vector< int > * >, std::string > IntBlock
◆ addBlock() [4/4]
| void Muon::MuonValidationBlockBase::addBlock |
( |
std::vector< unsigned int > *& | block, |
|
|
std::string | name ) |
|
inlineinherited |
Definition at line 38 of file MuonInsideOutValidationNtuple.h.
std::pair< std::reference_wrapper< std::vector< unsigned int > * >, std::string > UnsignedIntBlock
std::vector< UnsignedIntBlock > unsignedIntBlocks
◆ clear()
| void Muon::MuonValidationBlockBase::clear |
( |
| ) |
|
|
inherited |
◆ fill() [1/3]
Definition at line 136 of file MuonInsideOutValidationNtuple.h.
136 {
140 }
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
std::vector< std::string > intersection(std::vector< std::string > &v1, std::vector< std::string > &v2)
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
void fill(const Trk::MeasurementBase &hit, const MuonSystemExtension::Intersection &intersection, Trk::ParamDefs par)
◆ fill() [2/3]
◆ fill() [3/3]
| void Muon::MuonValidationResidualBlock::fill |
( |
float | pos_, |
|
|
float | err_, |
|
|
float | expos_, |
|
|
float | expos_err_, |
|
|
int | status = 1 ) |
|
inline |
Definition at line 149 of file MuonInsideOutValidationNtuple.h.
149 {
150
151 float res = pos_ - expos_;
152 float err2 = err_*err_ + expos_err_*expos_err_;
153 float pull_ =
res/sqrt(err2);
154
156 pull->push_back(pull_);
157 pos->push_back(pos_);
158 err->push_back(err_);
159 expos->push_back(expos_);
162 }
std::pair< std::vector< unsigned int >, bool > res
◆ fillResPull() [1/2]
| void Muon::MuonValidationResidualBlock::fillResPull |
( |
float | res_, |
|
|
float | pull_, |
|
|
float | err_, |
|
|
float | expos_err_, |
|
|
int | status = 1 ) |
|
inline |
◆ fillResPull() [2/2]
| void Muon::MuonValidationResidualBlock::fillResPull |
( |
float | res_, |
|
|
float | pull_, |
|
|
int | status = 1 ) |
|
inline |
◆ init()
| void Muon::MuonValidationBlockBase::init |
( |
const std::string & | prefix, |
|
|
TTree * | tree, |
|
|
bool | write = true ) |
|
inherited |
Definition at line 28 of file MuonInsideOutValidationNtuple.cxx.
28 {
29
30
33 if( write ){
34 entry.first.get() =
new std::vector<int>();
36 }else{
37 tree->SetBranchAddress( (prefix +
entry.second).c_str(), &
entry.first.get());
38 }
39 }
40 }
41
44 if( write ){
45 entry.first.get() =
new std::vector<unsigned int>();
47 }else{
48 tree->SetBranchAddress( (prefix +
entry.second).c_str(), &
entry.first.get());
49 }
50 }
51 }
52
55 if( write ){
56 entry.first.get() =
new std::vector<float>();
58 }else{
59 tree->SetBranchAddress( (prefix +
entry.second).c_str(), &
entry.first.get());
60 }
61 }
62 }
63
66 }
67
68 }
◆ err
| std::vector<float>* Muon::MuonValidationResidualBlock::err = nullptr |
◆ expos
| std::vector<float>* Muon::MuonValidationResidualBlock::expos = nullptr |
◆ expos_err
| std::vector<float>* Muon::MuonValidationResidualBlock::expos_err = nullptr |
◆ expos_errstatus
| std::vector<int>* Muon::MuonValidationResidualBlock::expos_errstatus = nullptr |
◆ floatBlocks
| std::vector< FloatBlock > Muon::MuonValidationBlockBase::floatBlocks |
|
inherited |
◆ intBlocks
| std::vector< IntBlock > Muon::MuonValidationBlockBase::intBlocks |
|
inherited |
◆ pos
| std::vector<float>* Muon::MuonValidationResidualBlock::pos = nullptr |
◆ pull
| std::vector<float>* Muon::MuonValidationResidualBlock::pull = nullptr |
◆ residual
| std::vector<float>* Muon::MuonValidationResidualBlock::residual = nullptr |
◆ subBlocks
| std::vector< SubBlock > Muon::MuonValidationBlockBase::subBlocks |
|
inherited |
◆ unsignedIntBlocks
| std::vector< UnsignedIntBlock > Muon::MuonValidationBlockBase::unsignedIntBlocks |
|
inherited |
The documentation for this struct was generated from the following files: