herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
Sampling
exsample
adaption_info.h
1
// -*- C++ -*-
2
//
3
// adaption_info.h is part of ExSample -- A Library for Sampling Sudakov-Type Distributions
4
//
5
// Copyright (C) 2008-2019 Simon Platzer -- simon.plaetzer@desy.de, The Herwig Collaboration
6
//
7
// ExSample is licenced under version 3 of the GPL, see COPYING for details.
8
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
9
//
10
//
11
#ifndef EXSAMPLE_adaption_info_h_included
12
#define EXSAMPLE_adaption_info_h_included
13
14
namespace
exsample {
15
18
struct
adaption_info
{
19
21
adaption_info
()
22
:
dimension
(0),
lower_left
(),
upper_right
(),
23
presampling_points
(100000),
24
histo_depth
(2),
adapt
(),
freeze_grid
(0),
25
maxtry
(200000),
efficiency_threshold
(.9),
26
gain_threshold
(.1) {}
27
29
std::size_t
dimension
;
30
32
std::vector<double>
lower_left
;
33
35
std::vector<double>
upper_right
;
36
38
unsigned
long
presampling_points
;
39
41
std::size_t
histo_depth
;
42
44
std::vector<bool>
adapt
;
45
47
unsigned
long
freeze_grid
;
48
50
unsigned
long
maxtry
;
51
53
double
efficiency_threshold
;
54
56
double
gain_threshold
;
57
59
template
<
class
OStream>
60
void
put
(OStream& os)
const
;
61
63
template
<
class
IStream>
64
void
get
(IStream& is);
65
66
};
67
68
}
69
70
#include "adaption_info.icc"
71
72
#endif
// EXSAMPLE_adaption_info_h_included
exsample::adaption_info
adaption_info is a container for parameters relevant to sampling and adaption.
Definition:
adaption_info.h:18
exsample::adaption_info::adaption_info
adaption_info()
the default constructor
Definition:
adaption_info.h:21
exsample::adaption_info::presampling_points
unsigned long presampling_points
the number of presampling points
Definition:
adaption_info.h:38
exsample::adaption_info::get
void get(IStream &is)
get from istream
exsample::adaption_info::lower_left
std::vector< double > lower_left
the lower left corner of the function's support
Definition:
adaption_info.h:32
exsample::adaption_info::maxtry
unsigned long maxtry
the maximum number of misses allowed
Definition:
adaption_info.h:50
exsample::adaption_info::dimension
std::size_t dimension
the phasespace dimension
Definition:
adaption_info.h:29
exsample::adaption_info::freeze_grid
unsigned long freeze_grid
the number of accepted events after the grid is frozen
Definition:
adaption_info.h:47
exsample::adaption_info::upper_right
std::vector< double > upper_right
the upper right corner of the function's support
Definition:
adaption_info.h:35
exsample::adaption_info::histo_depth
std::size_t histo_depth
use 2^histo_depth bins in efficiency histograms
Definition:
adaption_info.h:41
exsample::adaption_info::gain_threshold
double gain_threshold
a minimum gain for splits to be performed
Definition:
adaption_info.h:56
exsample::adaption_info::adapt
std::vector< bool > adapt
indicate which dimensions should be adapted
Definition:
adaption_info.h:44
exsample::adaption_info::put
void put(OStream &os) const
put to ostream
exsample::adaption_info::efficiency_threshold
double efficiency_threshold
the efficiency threshold below which splits are considered
Definition:
adaption_info.h:53
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6