BOSS
7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtRanFor.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: EvtRanFor.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
4
//
5
// Description:
6
// subroutine emcranfor_.
7
// Provides FORTRAN calable interface to EvtRandom::Flat()
8
// Can be used as EVTRANFOR instead of RANLUX in FORTRAN programs
9
// or as evtranfor_ instead of ranlux_ in C/C++ programs.
10
// No header file is provided, as C++ programs should use EvtRandom
11
//
12
// Environment:
13
// Software developed for the BaBar Detector at the SLAC B-Factory.
14
//
15
// Author List:
16
// Sven Menke
17
//
18
// Copyright Information: See EvtGen/COPYRIGHT
19
//
20
//------------------------------------------------------------------------
21
#include "EvtGenBase/EvtPatches.hh"
22
#include <stdlib.h>
23
#include <stdio.h>
24
#include <math.h>
25
#include <iostream>
26
#include "EvtGenBase/EvtRandom.hh"
27
extern
"C"
{
28
void
evtranfor_
(
float
*rvec,
int
*len)
29
{
30
for
(
int
i=0;i<*len;i++)
31
rvec[i] =
EvtRandom::Flat
();
32
}
33
}
34
evtranfor_
void evtranfor_(float *rvec, int *len)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtRanFor.cc:28
EvtRandom::Flat
static double Flat()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtRandom.cc:74
source
Generator
BesEvtGen
bak-BesEvtGen-00-04-08
src
EvtGen
EvtGenBase
EvtRanFor.cc
Generated by
1.9.6