33 #ifndef ROOT_TMVA_MsgLogger
57 fLower =
new std::vector<Double_t>( l->size() );
58 fUpper =
new std::vector<Double_t>( u->size() );
61 for (
UInt_t ivar=0; ivar<l->size(); ivar++) {
62 (*fLower)[ivar] =
Double_t((*l)[ivar]);
63 (*fUpper)[ivar] =
Double_t((*u)[ivar]);
70 fLower =
new std::vector<Double_t>( nvar );
71 fUpper =
new std::vector<Double_t>( nvar );
74 for (
int ivar=0; ivar<nvar; ivar++) {
75 (*fLower)[ivar] = l[ivar];
76 (*fUpper)[ivar] = u[ivar];
83 fLower =
new std::vector<Double_t>( nvar );
84 fUpper =
new std::vector<Double_t>( nvar );
87 for (
int ivar=0; ivar<nvar; ivar++) {
96 fLower =
new std::vector<Double_t>(1);
97 fUpper =
new std::vector<Double_t>(1);
106 fLower =
new std::vector<Double_t>(1);
107 fUpper =
new std::vector<Double_t>(1);
116 fLower =
new std::vector<Double_t>( *V.
fLower );
117 fUpper =
new std::vector<Double_t>( *V.
fUpper );
125 if (fOwnerShip) this->Delete();
131 if (
NULL != fLower) {
delete fLower; fLower =
NULL; }
132 if (
NULL != fUpper) {
delete fUpper; fUpper =
NULL; }
145 for (
UInt_t ivar=0; ivar<fLower->size(); ivar++) {
146 Double_t lo = 0.5*((*fLower)[ivar]*(1.0 +
f) + (*fUpper)[ivar]*(1.0 -
f));
147 Double_t up = 0.5*((*fLower)[ivar]*(1.0 -
f) + (*fUpper)[ivar]*(1.0 +
f));
148 (*fLower)[ivar] = lo;
149 (*fUpper)[ivar] = up;
157 for (
UInt_t ivar=0; ivar<fLower->size(); ivar++) {
158 fLogger <<
kINFO <<
"... Volume: var: " << ivar <<
"\t(fLower, fUpper) = ("
159 << (*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)