-
Notifications
You must be signed in to change notification settings - Fork 1
/
CustomRand.hxx
46 lines (35 loc) · 956 Bytes
/
CustomRand.hxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Central class for different randomizers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#ifndef CustomRand_H
#define CustomRand_H
#include "TF1.h"
#include "TF2.h"
#include "TF3.h"
#include "TRandom3.h"
class CustomRand
{
TRandom3 * r;
TF1 * PhiRand;
TF1 * ThetaRand;
TF1 * ERand;
TF3 * VertexRand;
bool PartSet = false;
bool VertSet = false;
public:
double Phi();
double Theta();
double E();
CustomRand(const char * fname,
double ERange[2], double ThetaRange[2],
double PhiRange[2]);
CustomRand(const char * fname,
double VRange[6]);
CustomRand(const char * fname,
double ERange[2], double ThetaRange[2],
double PhiRange[2], int demp_seed);
/* CustomRand(double ERange[2], double PhiRange[2], */
/* bouble PhiRange[2], */
/* double VRange[6]); */
};
#endif