BOSS 8.0.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
27#include <iostream>
28
29extern "C" {
30extern double begran_( int* );
31}
32
33extern "C" {
34extern double phoran_( int* ); // Photos
35}
36
37extern "C" {
38extern double pyr_( int* ); // pythia
39}
40extern "C" {
41extern float rlu_( int* ); // jetset74
42}
43extern "C" {
44extern void ranlxdf_( double vec[], int* lvec );
45}
46
47void ranlxdf_( double vec[], int* lvec ) {
48 int k;
49 for ( k = 0; k < *lvec; k++ ) { vec[k] = EvtRandom::Flat(); }
50}
51
52double begran_( int* ) { return EvtRandom::Flat(); }
53
54double phoran_( int* ) { return EvtRandom::Flat(); }
55
56float rlu_( int* dummy ) {
57 float rdm = EvtRandom::Flat();
58 // std::cout<<"rlu_ ================= "<<rdm<<std::endl;
59 return rdm;
60}
61
62double pyr_( int* ) { return EvtRandom::Flat(); }
dble_vec_t vec[12]
float rlu_(int *)
double pyr_(int *)
void ranlxdf_(double vec[], int *lvec)
double begran_(int *)
double phoran_(int *)
static double Flat()
Definition EvtRandom.cc:69