BOSS
7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtInclusiveGenRandom.cc
Go to the documentation of this file.
1
//*********************************************
2
//
3
// Environment:
4
// This software is part of models developed at BES collaboration
5
// based on the EvtGen framework. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/BesCopyright
9
// Copyright (A) 2007 Ping Rong-Gang @IHEP
10
//
11
// Module: EvtRlu.cc
12
//
13
// Description: to unify the random engine
14
// Rlu in lund_crm1_evtgen.F as EvtGen
15
// pyr in pythia model
16
// tauola random engine is redifined with rlu(0), see tauola2.4.F
17
// If the unified engine is set by user, then the Flat is replaced with uers' engine
18
// See EvtGen.cc
19
// Modification history:
20
//
21
// Ping R.-G. Nov., 2007 Module created
22
//
23
//------------------------------------------------------------------------
24
25
#include "
EvtGenBase/EvtRandom.hh
"
26
#include "
EvtGenBase/EvtRandomEngine.hh
"
27
#include<iostream>
28
29
extern
"C"
{
30
extern
double
begran_
(
int
*);
31
}
32
33
extern
"C"
{
34
extern
double
phoran_
(
int
*);
//Photos
35
}
36
37
extern
"C"
{
38
extern
double
pyr_
(
int
*);
//pythia
39
}
40
41
42
extern
"C"
{
43
extern
double
rlu_
(
int
*);
//jetset74
44
}
45
46
extern
"C"
{
47
extern
void
ranlxdf_
(
double
vec
[],
int
* lvec);
48
}
49
50
void
ranlxdf_
(
double
vec
[],
int
* lvec)
51
{
52
int
k;
53
for
(k = 0; k<*lvec;k++)
54
{
55
vec
[k]=
EvtRandom::Flat
();
56
}
57
}
58
59
60
double
begran_
(
int
*){
61
return
EvtRandom::Flat
();
62
}
63
64
double
phoran_
(
int
*){
65
return
EvtRandom::Flat
();
66
}
67
68
69
double
rlu_
(
int
*){
70
double
rdm=
EvtRandom::Flat
();
71
// std::cout<<"rlu_ = "<<rdm<<std::endl;
72
return
rdm;
73
}
74
75
76
double
pyr_
(
int
*){
77
return
EvtRandom::Flat
();
78
}
vec
dble_vec_t vec[12]
Definition:
BesEvtGen/BesEvtGen-00-04-26/src/phokhara/PHOKHARA/ranlxd.c:382
pyr_
double pyr_(int *)
Definition:
EvtInclusiveGenRandom.cc:76
ranlxdf_
void ranlxdf_(double vec[], int *lvec)
Definition:
EvtInclusiveGenRandom.cc:50
begran_
double begran_(int *)
Definition:
EvtInclusiveGenRandom.cc:60
phoran_
double phoran_(int *)
Definition:
EvtInclusiveGenRandom.cc:64
rlu_
double rlu_(int *)
Definition:
EvtInclusiveGenRandom.cc:69
EvtRandomEngine.hh
EvtRandom.hh
EvtRandom::Flat
static double Flat()
Definition:
EvtRandom.cc:74
source
Generator
BesEvtGen
BesEvtGen-00-04-26
src
EvtGen
EvtGenModels
EvtInclusiveGenRandom.cc
Generated by
1.9.6