BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/ranlux_fort.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "EvtGenModels/ranlxd.h"

Go to the source code of this file.

Functions

int rlxdinit_ (int *lux, int *seed)
 
int ranlxdf_ (double vec[], int *lvec)
 
int rlxdgetf_ (int *state)
 
int rlxdresetf_ (int *state1)
 
int rlxd_sizef_ (int *n)
 

Function Documentation

◆ ranlxdf_()

int ranlxdf_ ( double  vec[],
int *  lvec 
)

Definition at line 15 of file BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/ranlux_fort.c.

16{ int lvec1,k;
17 lvec1=*lvec;
18 // printf("\n%d\n",lvec1);
19 ranlxd(vec,lvec1);
20 // for (k=0;k<lvec1;k++)
21 // { printf("%d\t",k); printf("%12.9f\n",vec[k]); }
22
23}

◆ rlxd_sizef_()

int rlxd_sizef_ ( int *  n)

Definition at line 42 of file BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/ranlux_fort.c.

43{ int n1;
44 n1=rlxd_size();
45 *n=n1;
46/* printf("n1= "); printf("%d\t",n1); */
47}
const Int_t n
int n1
Definition: SD0Tag.cxx:54

◆ rlxdgetf_()

int rlxdgetf_ ( int *  state)

Definition at line 26 of file BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/ranlux_fort.c.

27{ int k;
28rlxd_get(state);
29/* printf("========\n");
30 for (k=0;k<=rlxd_size();k++)
31 {printf("%d\t",k); printf("%d\n",state[k]);}; */
32}

◆ rlxdinit_()

int rlxdinit_ ( int *  lux,
int *  seed 
)

Definition at line 6 of file BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/ranlux_fort.c.

7{ int lux1,seed1;
8 lux1=*lux;seed1=*seed;
9/* printf("%d\t",lux1);
10 printf("%d\n\n",seed1); */
11 rlxd_init(lux1,seed1);
12}

◆ rlxdresetf_()

int rlxdresetf_ ( int *  state1)

Definition at line 34 of file BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/ranlux_fort.c.

35{ int k;
36rlxd_reset(state1);
37/* printf("========\n");
38 for (k=0;k<=rlxd_size();k++)
39 {printf("%d\t",k); printf("%d\n",state1[k]);}; */
40}