BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen/bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/ranlux_fort.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "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 14 of file BesEvtGen/bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/ranlux_fort.c.

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

◆ rlxd_sizef_()

int rlxd_sizef_ ( int *  n)

Definition at line 39 of file BesEvtGen/bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/ranlux_fort.c.

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

◆ rlxdgetf_()

int rlxdgetf_ ( int *  state)

Definition at line 23 of file BesEvtGen/bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/ranlux_fort.c.

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

◆ rlxdinit_()

int rlxdinit_ ( int *  lux,
int *  seed 
)

Definition at line 6 of file BesEvtGen/bak-BesEvtGen-00-04-08/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 31 of file BesEvtGen/bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/ranlux_fort.c.

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