56 fLower =
new std::vector<Double_t>( l->size() );
57 fUpper =
new std::vector<Double_t>( u->size() );
60 for (
UInt_t ivar=0; ivar<l->size(); ivar++) {
61 (*fLower)[ivar] =
Double_t((*l)[ivar]);
62 (*fUpper)[ivar] =
Double_t((*u)[ivar]);
69 fLower =
new std::vector<Double_t>( nvar );
70 fUpper =
new std::vector<Double_t>( nvar );
73 for (
int ivar=0; ivar<nvar; ivar++) {
74 (*fLower)[ivar] = l[ivar];
75 (*fUpper)[ivar] = u[ivar];
82 fLower =
new std::vector<Double_t>( nvar );
83 fUpper =
new std::vector<Double_t>( nvar );
86 for (
int ivar=0; ivar<nvar; ivar++) {
95 fLower =
new std::vector<Double_t>(1);
96 fUpper =
new std::vector<Double_t>(1);
105 fLower =
new std::vector<Double_t>(1);
106 fUpper =
new std::vector<Double_t>(1);
115 fLower =
new std::vector<Double_t>( *V.
fLower );
116 fUpper =
new std::vector<Double_t>( *V.
fUpper );
124 if (fOwnerShip) this->Delete();
130 if (
NULL != fLower) {
delete fLower; fLower =
NULL; }
131 if (
NULL != fUpper) {
delete fUpper; fUpper =
NULL; }
144 for (
UInt_t ivar=0; ivar<fLower->size(); ivar++) {
145 Double_t lo = 0.5*((*fLower)[ivar]*(1.0 +
f) + (*fUpper)[ivar]*(1.0 -
f));
146 Double_t up = 0.5*((*fLower)[ivar]*(1.0 -
f) + (*fUpper)[ivar]*(1.0 +
f));
147 (*fLower)[ivar] = lo;
148 (*fUpper)[ivar] = up;
156 for (
UInt_t ivar=0; ivar<fLower->size(); ivar++) {
157 fLogger <<
kINFO <<
"... Volume: var: " << ivar <<
"\t(fLower, fUpper) = ("
158 << (*fLower)[ivar] <<
"\t " << (*fUpper)[ivar] <<
")"<<
Endl;
std::vector< Double_t > * fLower
MsgLogger & Endl(MsgLogger &ml)
std::vector< Double_t > * fUpper
void ScaleInterval(Double_t f)
Volume(std::vector< Float_t > *l, std::vector< Float_t > *u=0)