ATLAS Offline Software
RandBinomialFixedP.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 namespace CLHEP {
6 
7 inline RandBinomialFixedP::RandBinomialFixedP(HepRandomEngine & anEngine, long n,
8  double p, long Nmaxlookup )
9 : RandBinomial( anEngine, n, p ) {initLookupTable(Nmaxlookup,p);}
10 
11 inline RandBinomialFixedP::RandBinomialFixedP(HepRandomEngine * anEngine, long n,
12  double p, long Nmaxlookup )
13 : RandBinomial( anEngine, n, p ) {initLookupTable(Nmaxlookup,p);}
14 
15 inline double RandBinomialFixedP::operator()() {
16  return fire( localEngine.get(), defaultN );
17 }
18 
19 inline double RandBinomialFixedP::operator()( long n ) {
20  return fire( localEngine.get(), n );
21 }
22 
23 inline double RandBinomialFixedP::fire() {
24  return fire( localEngine.get(), defaultN );
25 }
26 
27 inline double RandBinomialFixedP::fire( long n ) {
28  return fire( localEngine.get(), n );
29 }
30 
31 } // namespace CLHEP