BOSS 7.0.4
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"
26using std::endl;
27using std::ostream;
28
30 parvec(ndim,0),
31 parcov(ndim,1)
32{}
33
34DifIndepPar::DifIndepPar(const HepVector& a):
35 parvec(a),
36 parcov(nPar(),1)
37{}
38
40 parvec(rhs.parameter()),
41 parcov(rhs.covariance())
42{}
43
45 DifArray pars(nPar(),nPar());
46 for(int i=1; i<=nPar(); i++){
47 pars(i)=difPar(i);
48 }
49 return pars;
50}
51
52DifIndepPar::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
64 return DifNumber(parvec(i),i,this);
65}
66
67//--------------------------------------
68void
69DifIndepPar::print(ostream& os) const {
70//--------------------------------------
71 os << "DifIndepPar Parameter Vector = " << parvec;
72}
73
74//--------------------------------------
75void
76DifIndepPar::printAll(ostream& os) const {
77//--------------------------------------
78 os << "DifIndepPar Parameter Vector = " << parvec << endl;
79 os << "DifIndepPar Covariance Matrix = " << parcov << endl;
80}
DifIndepPar(int n)
Definition: DifIndepPar.cxx:29
void print(std::ostream &os=std::cout) const
DifArray difParameters() const
Definition: DifIndepPar.cxx:44
void printAll(std::ostream &os=std::cout) const
DifNumber difPar(int i) const
Definition: DifIndepPar.cxx:63
double precision pisqo6 parameter(pi=3.14159265358979d0, pisq=pi *pi, pisqo6=pisq/6d0) double precision zip