#include <MinuitParameterSet.h>
|
static MinuitParameterSet * | _defaultMinuitParameterSet =0 |
|
static const char | ntpNameChars [] = { 'p', 'm', 's', '_', '_', '_', '_', '_', '_', '\0'} |
|
static const char | prtNameChars [] = { '+', '-', '*', '>', ',', '(', ')', '[', ']', '\0'} |
|
Definition at line 20 of file MinuitParameterSet.h.
◆ CovMatrix
◆ MinuitParameterSet() [1/2]
MinuitParameterSet::MinuitParameterSet |
( |
| ) |
|
◆ MinuitParameterSet() [2/2]
◆ add()
◆ addToEnd()
Definition at line 47 of file MinuitParameterSet.cpp.
50 if(0 == parPtr)
return false;
52 cout <<
"MinuitParameterSet::add " 53 <<
" adding parPtr " << parPtr->
name() << endl;
57 cout <<
"MinuitParameterSet::add " 58 <<
" already have parPtr " << parPtr->
name() << endl;
virtual bool setParSetIndex(int psetIndex)=0
std::vector< IMinuitParameter * > _parPtrList
virtual const std::string & name() const =0
virtual bool setParSet(MinuitParameterSet *ps)=0
◆ covMatrix()
◆ deleteListAndObjects()
void MinuitParameterSet::deleteListAndObjects |
( |
| ) |
|
◆ deleteListKeepObjects()
void MinuitParameterSet::deleteListKeepObjects |
( |
| ) |
|
◆ fillNtp()
void MinuitParameterSet::fillNtp |
( |
TFile *& |
ntpFile, |
|
|
TNtupleD *& |
ntp |
|
) |
| const |
Definition at line 179 of file MinuitParameterSet.cpp.
182 cout <<
"hello from MinuitParameterSet::fillNtp " << endl;
183 cout <<
" you called me with: " << ntp << endl;
187 if(dbThis) cout <<
"got an ntuple ptr: " << ntp << endl;
188 Double_t* array =
new Double_t[
size()*4];
189 if(dbThis) cout <<
"made array" << endl;
191 for(
unsigned int i=0; i <
size(); i++){
197 Double_t pull=-9999.0;
204 cout <<
"checking how ntuple behaves with GetEntries()" << endl;
205 cout <<
" ntp->GetEntries() = " << ntp->GetEntries() << endl;
207 if(dbThis)cout <<
"filled the array, now putting this into the ntp" << endl;
209 if(dbThis)cout <<
"filled into the ntuple, now deleting array" << endl;
211 if(dbThis)cout <<
"done. returning" << endl;
virtual double meanInit() const =0
virtual int iFixInit() const =0
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
virtual double err() const =0
TNtupleD * makeNewNtpForOwner(TFile *&ntpFile) const
◆ findParPtr()
int MINT::MinuitParameterSet::findParPtr |
( |
std::string |
name | ) |
|
|
inline |
Definition at line 67 of file MinuitParameterSet.h.
68 for(
unsigned int i=0; i <this->
size(); i++){
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
bool A_is_in_B(const std::string &a, const std::string &b)
◆ getDefaultSet()
◆ getFloating()
Definition at line 37 of file MinuitParameterSet.cpp.
39 for(
unsigned int i=0; i<
size(); i++){
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
bool add(IMinuitParameter *parPtr)
◆ getParPtr() [1/4]
◆ getParPtr() [2/4]
◆ getParPtr() [3/4]
Definition at line 52 of file MinuitParameterSet.h.
53 for(
unsigned int i=0; i <this->
size(); i++){
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
bool A_is_in_B(const std::string &a, const std::string &b)
◆ getParPtr() [4/4]
const IMinuitParameter* MINT::MinuitParameterSet::getParPtr |
( |
std::string |
name | ) |
const |
|
inline |
Definition at line 59 of file MinuitParameterSet.h.
60 for(
unsigned int i=0; i <this->
size(); i++){
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
bool A_is_in_B(const std::string &a, const std::string &b)
◆ makeNewNtpForOwner()
TNtupleD * MinuitParameterSet::makeNewNtpForOwner |
( |
TFile *& |
ntpFile | ) |
const |
Definition at line 122 of file MinuitParameterSet.cpp.
125 cout <<
"Hello from MinuitParameterSet::makeNewNtpForOwner" << endl;
128 if(0 == ntpFile) ntpFile =
new TFile(
"MinuitParameterSetFile.root" 131 TNtupleD* ntp =
new TNtupleD(
"MinuitParameterSetNtp" 132 ,
"MinuitParameterSetNtp" std::string ntpNames() const
◆ ntpNames()
std::string MinuitParameterSet::ntpNames |
( |
| ) |
const |
Definition at line 152 of file MinuitParameterSet.cpp.
156 for(
unsigned int i=0; i <
size(); i++){
161 name = ((string) (TString(name).ReplaceAll(
"GS",
"")));
162 name = ((string) (TString(name).ReplaceAll(
"Lass",
"")));
163 name = ((string) (TString(name).ReplaceAll(
"RhoOmega",
"")));
164 if(str !=
"") str +=
":";
165 str += (name +
"_mean" +
":"); n++;
166 str += (name +
"_init" +
":"); n++;
167 str += (name +
"_err:"); n++;
168 str += (name +
"_pull"); n++;
171 cout <<
"MinuitParameterSet::ntpNames():" 172 <<
" made " << n <<
" names " << str << endl;
173 cout <<
" this becomes: prtToNtpName(str) " virtual int iFixInit() const =0
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
static std::string prtToNtpName(const std::string &s_in)
◆ print()
void MinuitParameterSet::print |
( |
std::ostream & |
os = std::cout | ) |
const |
Definition at line 216 of file MinuitParameterSet.cpp.
217 for(
unsigned int i=0; i <
size(); i++){
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
virtual void print(std::ostream &os=std::cout) const =0
◆ printResultVsInput()
void MinuitParameterSet::printResultVsInput |
( |
std::ostream & |
os = std::cout | ) |
const |
Definition at line 231 of file MinuitParameterSet.cpp.
232 os <<
"\n ======== MinuitParameterSet::(FitResult - StartValue)/error ========\n";
233 for(
unsigned int i=0; i < this->
size(); i++){
239 os <<
"\n ====================================================================" virtual void printResultVsInput(std::ostream &os=std::cout) const =0
virtual int iFixInit() const =0
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
◆ printVariable()
void MinuitParameterSet::printVariable |
( |
std::ostream & |
os = std::cout | ) |
const |
Definition at line 223 of file MinuitParameterSet.cpp.
224 for(
unsigned int i=0; i <
size(); i++){
virtual int iFixInit() const =0
IMinuitParameter * getParPtr(unsigned int i)
unsigned int size() const
virtual void print(std::ostream &os=std::cout) const =0
◆ prtToNtpName()
std::string MinuitParameterSet::prtToNtpName |
( |
const std::string & |
s_in | ) |
|
|
staticprotected |
Definition at line 137 of file MinuitParameterSet.cpp.
139 for(
unsigned int i=1; i <
s.size(); i++){
141 if(
s[i-1] ==
'-' &&
s[i] ==
'>'){
142 s[i-1] =
't';
s[i] =
'o';
static const char prtNameChars[]
static const char ntpNameChars[]
◆ setAllIndices()
bool MinuitParameterSet::setAllIndices |
( |
| ) |
|
|
protected |
◆ setCovMatrix()
bool MinuitParameterSet::setCovMatrix |
( |
const CovMatrix & |
covMatrix | ) |
|
Set the covariance matrix.
Definition at line 243 of file MinuitParameterSet.cpp.
245 cout <<
"WARNING: MiniutParameterSet::setCovMatrix: given matrix has the wrong size!" << endl ;
246 cout <<
"N. parameters: " <<
size() <<
", matrix is " <<
covMatrix.GetNcols() <<
"x" unsigned int size() const
const CovMatrix & covMatrix() const
Get the covariance matrix.
◆ size()
unsigned int MinuitParameterSet::size |
( |
| ) |
const |
◆ unregister()
Definition at line 71 of file MinuitParameterSet.cpp.
74 cout <<
"WARNING in MinuitParameterSet::unregister" 75 <<
" parPtr you want to unregister is not part of this list!" 80 parPtr->setParSetIndex(-9999);
std::vector< IMinuitParameter * > _parPtrList
◆ _covMatrix
CovMatrix MINT::MinuitParameterSet::_covMatrix |
|
protected |
◆ _defaultMinuitParameterSet
◆ _parPtrList
◆ ntpNameChars
const char MinuitParameterSet::ntpNameChars = { 'p', 'm', 's', '_', '_', '_', '_', '_', '_', '\0'} |
|
staticprotected |
◆ prtNameChars
const char MinuitParameterSet::prtNameChars = { '+', '-', '*', '>', ',', '(', ')', '[', ']', '\0'} |
|
staticprotected |
The documentation for this class was generated from the following files: