/usr/include/root/Math/MCParameters.h is in libroot-math-mathmore-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | // @(#)root/mathmore:$Id$
// Author: Magdalena Slawinska 08/2007
/**********************************************************************
* *
* Copyright (c) 2004 ROOT Foundation, CERN/PH-SFT *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this library (see file COPYING); if not, write *
* to the Free Software Foundation, Inc., 59 Temple Place, Suite *
* 330, Boston, MA 02111-1307 USA, or contact the author. *
* *
**********************************************************************/
#ifndef ROOT_Math_MCParameters
#define ROOT_Math_MCParameters
#include <cstring> // for size_t
namespace ROOT {
namespace Math {
class IOptions;
/**
structures collecting parameters
for VEGAS multidimensional integration
FOr implementation of default parameters see file
mathmore/src/GSLMCIntegrationWorkspace.h
@ingroup MCIntegration
*/
struct VegasParameters{
double alpha;
size_t iterations;
int stage;
int mode;
int verbose;
// constructor of default parameters
VegasParameters() { SetDefaultValues(); }
// construct from GenAlgoOptions
// parameter not specified are ignored
VegasParameters(const ROOT::Math::IOptions & opt);
void SetDefaultValues();
VegasParameters & operator=(const ROOT::Math::IOptions & opt);
/// convert to options (return object is managed by the user)
ROOT::Math::IOptions * operator() () const;
};
/**
structures collecting parameters
for MISER multidimensional integration
@ingroup MCIntegration
*/
struct MiserParameters{
double estimate_frac;
size_t min_calls;
size_t min_calls_per_bisection;
double alpha;
double dither;
// constructor of default parameters
// needs dimension since min_calls = 16 * dim
MiserParameters(size_t dim=10) { SetDefaultValues(dim); }
void SetDefaultValues(size_t dim=10);
// construct from GenAlgoOptions
// parameter not specified are ignored
MiserParameters(const ROOT::Math::IOptions & opt, size_t dim = 10);
MiserParameters & operator=(const ROOT::Math::IOptions & opt);
/// convert to options (return object is managed by the user)
ROOT::Math::IOptions * operator() () const;
};
struct PlainParameters{
};
} // namespace Math
} // namespace ROOT
#endif
|