BOSS
6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
DifIndepPar.cxx
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: DifIndepPar.cxx,v 1.2 2009/12/23 02:59:56 zhangy Exp $
4
//
5
// Description:
6
// Class Implementation for |DifIndepPar|
7
// What do i do ?
8
// Environment:
9
// Software developed for the BaBar Detector at the SLAC B-Factory.
10
//
11
// Author List:
12
// A. Snyder
13
//
14
// Copyright Information:
15
// Copyright (C) 1996 SLAC
16
//
17
// History:
18
// Migration for BESIII MDC
19
//
20
//------------------------------------------------------------------------
21
//#include "BaBar/BaBar.h"
22
23
#include "
MdcRecoUtil/DifIndepPar.h
"
24
#include "
MdcRecoUtil/DifNumber.h
"
25
#include "
MdcRecoUtil/DifArray.h
"
26
using
std::endl;
27
using
std::ostream;
28
29
DifIndepPar::DifIndepPar
(
int
ndim):
30
parvec(ndim,0),
31
parcov(ndim,1)
32
{}
33
34
DifIndepPar::DifIndepPar
(
const
HepVector& a):
35
parvec(a),
36
parcov(nPar(),1)
37
{}
38
39
DifIndepPar::DifIndepPar
(
const
DifIndepPar
& rhs):
40
parvec(rhs.parameter()),
41
parcov(rhs.covariance())
42
{}
43
44
DifArray
DifIndepPar::difParameters
()
const
{
45
DifArray
pars(
nPar
(),
nPar
());
46
for
(
int
i=1; i<=
nPar
(); i++){
47
pars(i)=
difPar
(i);
48
}
49
return
pars;
50
}
51
52
DifIndepPar::DifIndepPar
(
const
HepVector& pvec,
const
HepSymMatrix& pcov) :
53
parvec(pvec), parcov(pcov) {
54
}
55
//void DifIndepPar::setDerives(){
56
// for(int i=0; i<nPar(); i++){
57
// _parameters[i].zeroDerivatives();
58
// _parameters[i].setDerivative(i+1,1.0);
59
// _parameters[i].setIndepPar(this);
60
// }
61
//}
62
63
DifNumber
DifIndepPar::difPar
(
int
i)
const
{
64
return
DifNumber
(parvec(i),i,
this
);
65
}
66
67
//--------------------------------------
68
void
69
DifIndepPar::print
(ostream& os)
const
{
70
//--------------------------------------
71
os <<
"DifIndepPar Parameter Vector = "
<< parvec;
72
}
73
74
//--------------------------------------
75
void
76
DifIndepPar::printAll
(ostream& os)
const
{
77
//--------------------------------------
78
os <<
"DifIndepPar Parameter Vector = "
<< parvec << endl;
79
os <<
"DifIndepPar Covariance Matrix = "
<< parcov << endl;
80
}
DifArray.h
DifIndepPar.h
DifNumber.h
DifArray
Definition:
DifArray.h:36
DifIndepPar
Definition:
DifIndepPar.h:39
DifIndepPar::DifIndepPar
DifIndepPar(int n)
Definition:
DifIndepPar.cxx:29
DifIndepPar::print
void print(std::ostream &os=std::cout) const
Definition:
DifIndepPar.cxx:69
DifIndepPar::difParameters
DifArray difParameters() const
Definition:
DifIndepPar.cxx:44
DifIndepPar::nPar
int nPar() const
Definition:
DifIndepPar.h:55
DifIndepPar::printAll
void printAll(std::ostream &os=std::cout) const
Definition:
DifIndepPar.cxx:76
DifIndepPar::difPar
DifNumber difPar(int i) const
Definition:
DifIndepPar.cxx:63
DifNumber
Definition:
DifNumber.h:42
source
Reconstruction
MdcPatRec
MdcRecoUtil
MdcRecoUtil-00-01-08
src
DifIndepPar.cxx
Generated by
1.9.6