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