Range1.h
Go to the documentation of this file.
1 //__________________________________________________________________________
2 /*!
3 
4 \class genie::Range1F_t
5 \brief A simple [min,max] interval for floats.
6 
7 \class genie::Range1D_t
8 \brief A simple [min,max] interval for doubles.
9 
10 \class genie::Range1I_t
11 \brief A simple [min,max] interval for integers.
12 
13 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
14  University of Liverpool & STFC Rutherford Appleton Lab
15 
16 \created May 06, 2004
17 
18 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
19  For the full text of the license visit http://copyright.genie-mc.org
20  or see $GENIE/LICENSE
21 */
22 //__________________________________________________________________________
23 
24 #ifndef _RANGE_1_T_H_
25 #define _RANGE_1_T_H_
26 
27 namespace genie {
28 
29 class Range1F_t
30 {
31 public:
32  Range1F_t (void);
33  Range1F_t (float _min, float _max);
34  Range1F_t (const Range1F_t & r);
35  ~Range1F_t (void);
36 
37  void Copy (const Range1F_t & r);
38 
39  float min;
40  float max;
41 };
42 
43 class Range1D_t
44 {
45 public:
46  Range1D_t (void);
47  Range1D_t (double _min, double _max);
48  Range1D_t (const Range1D_t & r);
49  ~Range1D_t (void);
50 
51  void Copy (const Range1D_t & r);
52 
53  double min;
54  double max;
55 };
56 
57 class Range1I_t
58 {
59 public:
60  Range1I_t (void);
61  Range1I_t (int _min, int _max);
62  Range1I_t (const Range1I_t & r);
63  ~Range1I_t (void);
64 
65  void Copy (const Range1I_t & r);
66 
67  int min;
68  int max;
69 };
70 
71 
72 
73 } // genie namespace
74 
75 #endif // _RANGE_1_T_H_
76 
A simple [min,max] interval for integers.
Definition: Range1.h:57
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
A simple [min,max] interval for doubles.
Definition: Range1.h:43
A simple [min,max] interval for floats.
Definition: Range1.h:29
~Range1F_t(void)
Definition: Range1.cxx:43
double max
Definition: Range1.h:54
Range1F_t(void)
Definition: Range1.cxx:22
void Copy(const Range1F_t &r)
Definition: Range1.cxx:48
TRandom3 r(0)
double min
Definition: Range1.h:53