Jpp
19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
software
JGeometry2D
JGeometry2DTestkit.hh
Go to the documentation of this file.
1
#ifndef __JGEOMETRY2DTESTKIT__
2
#define __JGEOMETRY2DTESTKIT__
3
4
#include "TRandom3.h"
5
6
#include "
JGeometry2D/JPosition2D.hh
"
7
#include "
JMath/JRandom.hh
"
8
#include "
JMath/JConstants.hh
"
9
10
/**
11
* \author mdejong
12
*/
13
14
namespace
JGEOMETRY2D
{}
15
namespace
JPP
{
using namespace
JGEOMETRY2D
; }
16
17
namespace
JGEOMETRY2D
{
18
19
using
JMATH::PI
;
20
using
JMATH::getRandom
;
21
22
23
/**
24
* Randomize position.
25
*
26
* \param p pointer to valid object
27
*/
28
inline
void
randomize
(
JPosition2D
* p)
29
{
30
new
(p)
JPosition2D
(getRandom<double>(-1.0, +1.0),
31
getRandom<double>(-1.0, +1.0));
32
};
33
}
34
35
#endif
JConstants.hh
Mathematical constants.
JRandom.hh
Definition of random value generator.
JPosition2D.hh
JGEOMETRY2D::JPosition2D
Data structure for position in two dimensions.
Definition
JPosition2D.hh:33
JGEOMETRY2D
Auxiliary classes and methods for 2D geometrical objects and operations.
Definition
JAngle2D.hh:19
JGEOMETRY2D::randomize
void randomize(JPosition2D *p)
Randomize position.
Definition
JGeometry2DTestkit.hh:28
JMATH::getRandom
T getRandom()
Get random value.
Definition
JMath/JRandom.hh:113
JMATH::PI
static const double PI
Mathematical constants.
Definition
JMath/JConstants.hh:20
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition
JAAnetToolkit.hh:43
Generated by
1.12.0