25 class TestCrossSectionHandler;
35 std::vector<int>::const_iterator it =
resfind.begin();
36 for (; it !=
resfind.end(); ++it) {
51 std::vector<double>::const_iterator it =
vars_.begin();
52 for (; it !=
vars_.end(); ++it) {
53 initpar.push_back(*it);
64 const std::vector<double>& parCrossSection,
65 const std::vector<int>& parCrossSectionOrder,
66 const std::vector<int>&
resfind) {
70 double thisStep[] = {0.001, 0.001, 0.001, 0.001, 0.001};
71 TString thisParName[] = {
"cross section var 1",
72 "cross section var 2",
73 "cross section var 3",
74 "cross section var 4",
75 "cross section var 5"};
76 double thisMini[] = {0., 0., 0., 0., 0.};
77 double thisMaxi[] = {1000., 1000., 1000., 1000., 1000.};
82 ind[iPar] = parCrossSectionOrder[iPar];
86 for (
unsigned int iPar = 0; iPar <
parNum_; ++iPar) {
87 Start[iPar] =
vars_[iPar];
88 Step[iPar] = thisStep[iPar];
89 Mini[iPar] = thisMini[iPar];
90 Maxi[iPar] = thisMaxi[iPar];
91 parname[iPar] = thisParName[iPar];
98 const std::vector<int>&
resfind,
99 const std::vector<int>& parfix,
102 const unsigned int shift) {
104 unsigned int freeParNum = 0;
110 if (freeParNum > 0) {
111 freeParNum = freeParNum - 1;
113 for (
unsigned int i = 0;
i < freeParNum; ++
i) {
135 for (
unsigned int i = 0;
i <
parNum_ + 1; ++
i) {
137 norm += partialProduct[
i];
139 for (
unsigned int i = 0;
i <
parNum_ + 1; ++
i) {
142 delete[] partialProduct;
145 std::vector<double> allRelativeCrossSections;
146 std::vector<int>::const_iterator it =
resfind.begin();
147 int smallerVectorIndex = 0;
148 for (; it !=
resfind.end(); ++it) {
150 allRelativeCrossSections.push_back(0.);
153 ++smallerVectorIndex;
157 return allRelativeCrossSections;
187 for (
unsigned int iVar = 0; iVar <
parNum_; ++iVar) {