/usr/include/CLHEP/Random/RandBinomial.icc is in libclhep-dev 2.1.4.1-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | // $Id: RandBinomial.icc,v 1.3 2010/06/16 17:24:53 garren Exp $
// -*- C++ -*-
//
// -----------------------------------------------------------------------
// HEP Random
// --- RandBinomial ---
// inlined functions implementation file
// -----------------------------------------------------------------------
// =======================================================================
// Gabriele Cosmo - Created: 18th August 1998
// =======================================================================
namespace CLHEP {
inline RandBinomial::RandBinomial(HepRandomEngine & anEngine, long n,
double p )
: HepRandom ( ), localEngine( &anEngine, do_nothing_deleter() ),
defaultN(n), defaultP(p) {}
inline RandBinomial::RandBinomial(HepRandomEngine * anEngine, long n,
double p )
: HepRandom ( ), localEngine( anEngine),
defaultN(n), defaultP(p) {}
inline double RandBinomial::shoot() {
return shoot( 1, 0.5 );
}
inline double RandBinomial::shoot( HepRandomEngine* anEngine ) {
return shoot( anEngine, 1, 0.5 );
}
inline double RandBinomial::operator()() {
return fire( defaultN, defaultP );
}
inline double RandBinomial::operator()( long n, double p ) {
return fire( n, p );
}
inline double RandBinomial::fire() {
return fire( defaultN, defaultP );
}
} // namespace CLHEP
|