#include <CrossSectionHandler.h>
|
void | addParameters (std::vector< double > &initpar) |
| Inputs the vars in a vector. More...
|
|
| CrossSectionHandler (const std::vector< double > &crossSection, const std::vector< int > &resfind) |
|
unsigned int | parNum () |
|
std::vector< double > | relativeCrossSections (const double *variables, const std::vector< int > &resfind) |
| Perform a variable transformation from N-1 to relative cross sections. More...
|
|
bool | releaseParameters (TMinuit &rmin, const std::vector< int > &resfind, const std::vector< int > &parfix, const int *ind, const int iorder, const unsigned int shift) |
| Use the information in resfind, parorder and parfix to release the N-1 variables. More...
|
|
void | setParameters (double *Start, double *Step, double *Mini, double *Maxi, int *ind, TString *parname, const std::vector< double > &parCrossSection, const std::vector< int > &parCrossSectionOrder, const std::vector< int > &resfind) |
| Initializes the arrays needed by Minuit. More...
|
|
Definition at line 27 of file CrossSectionHandler.h.
CrossSectionHandler::CrossSectionHandler |
( |
const std::vector< double > & |
crossSection, |
|
|
const std::vector< int > & |
resfind |
|
) |
| |
|
inline |
void CrossSectionHandler::addParameters |
( |
std::vector< double > & |
initpar | ) |
|
|
inline |
void CrossSectionHandler::computeRelativeCrossSections |
( |
const std::vector< double > & |
crossSection, |
|
|
const std::vector< int > & |
resfind |
|
) |
| |
|
inlineprotected |
Initializes the relative cross sections for the range of resonances in [minRes, maxRes]. (note that both minRes and maxRes are included).
Also sets the lock on resonances. If only one of the resonances in the range is fitted its relative cross section will be 1 and it will not be fitted. If there are more than one only those that are fitted will have the relative cross section parameters unlocked during the fit.
Definition at line 166 of file CrossSectionHandler.h.
void CrossSectionHandler::imposeConstraint |
( |
| ) |
|
|
inlineprotected |
Change of variables so that we move from N to N-1 variables using the constraint that Sum(x_i) = 1.
Definition at line 185 of file CrossSectionHandler.h.
unsigned int CrossSectionHandler::parNum |
( |
| ) |
|
|
inline |
std::vector<double> CrossSectionHandler::relativeCrossSections |
( |
const double * |
variables, |
|
|
const std::vector< int > & |
resfind |
|
) |
| |
|
inline |
Perform a variable transformation from N-1 to relative cross sections.
Definition at line 121 of file CrossSectionHandler.h.
bool CrossSectionHandler::releaseParameters |
( |
TMinuit & |
rmin, |
|
|
const std::vector< int > & |
resfind, |
|
|
const std::vector< int > & |
parfix, |
|
|
const int * |
ind, |
|
|
const int |
iorder, |
|
|
const unsigned int |
shift |
|
) |
| |
|
inline |
Use the information in resfind, parorder and parfix to release the N-1 variables.
Definition at line 94 of file CrossSectionHandler.h.
void CrossSectionHandler::setParameters |
( |
double * |
Start, |
|
|
double * |
Step, |
|
|
double * |
Mini, |
|
|
double * |
Maxi, |
|
|
int * |
ind, |
|
|
TString * |
parname, |
|
|
const std::vector< double > & |
parCrossSection, |
|
|
const std::vector< int > & |
parCrossSectionOrder, |
|
|
const std::vector< int > & |
resfind |
|
) |
| |
|
inline |
friend class TestCrossSectionHandler |
|
friend |
unsigned int CrossSectionHandler::numberOfResonances_ |
|
protected |
unsigned int CrossSectionHandler::parNum_ |
|
protected |
std::vector<double> CrossSectionHandler::relativeCrossSectionVec_ |
|
protected |
std::vector<double> CrossSectionHandler::vars_ |
|
protected |