/usr/include/CLHEP/Random/RandLandau.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 47 48 49 50 51 52 53 54 55 | // $Id: RandLandau.icc,v 1.3 2010/06/16 17:24:53 garren Exp $
// -*- C++ -*-
//
// -----------------------------------------------------------------------
// HEP Random
// --- RandLandau ---
// inlined functions implementation file
// -----------------------------------------------------------------------
// This file is part of Geant4 (simulation toolkit for HEP).
// =======================================================================
// Gabriele Cosmo - Created: 19th August 1998
// M Fischler - Added some inline methods that had been in the .cc file,
// which are shells for calls to transform(r): 30 Sep 1999
// =======================================================================
// Constructors
// ------------
namespace CLHEP {
RandLandau::RandLandau(HepRandomEngine & anEngine )
: HepRandom(), localEngine(&anEngine, do_nothing_deleter())
{}
RandLandau::RandLandau(HepRandomEngine * anEngine )
: HepRandom(), localEngine(anEngine)
{}
// Getting a Landau deviate - static methods
// -------------------------------------------
double RandLandau::shoot()
{
HepRandomEngine* anEngine = HepRandom::getTheEngine();
return transform (anEngine->flat());
}
double RandLandau::shoot( HepRandomEngine* anotherEngine )
{
return transform (anotherEngine->flat());
}
// Getting a Landau deviate - instance methods
// ---------------------------------------------
double RandLandau::fire() {
return transform(localEngine->flat());
}
double RandLandau::operator()() {
return transform(localEngine->flat());
}
} // namespace CLHEP
|