herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
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
14namespace exsample {
15
19
23 presampling_points(100000),
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
54
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
adaption_info is a container for parameters relevant to sampling and adaption.
Definition: adaption_info.h:18
adaption_info()
the default constructor
Definition: adaption_info.h:21
unsigned long presampling_points
the number of presampling points
Definition: adaption_info.h:38
void get(IStream &is)
get from istream
std::vector< double > lower_left
the lower left corner of the function's support
Definition: adaption_info.h:32
unsigned long maxtry
the maximum number of misses allowed
Definition: adaption_info.h:50
std::size_t dimension
the phasespace dimension
Definition: adaption_info.h:29
unsigned long freeze_grid
the number of accepted events after the grid is frozen
Definition: adaption_info.h:47
std::vector< double > upper_right
the upper right corner of the function's support
Definition: adaption_info.h:35
std::size_t histo_depth
use 2^histo_depth bins in efficiency histograms
Definition: adaption_info.h:41
double gain_threshold
a minimum gain for splits to be performed
Definition: adaption_info.h:56
std::vector< bool > adapt
indicate which dimensions should be adapted
Definition: adaption_info.h:44
void put(OStream &os) const
put to ostream
double efficiency_threshold
the efficiency threshold below which splits are considered
Definition: adaption_info.h:53