Previous topic

I3Modules

Next topic

Scripts

This Page

Services

Found in subdirectory python/services of this project.

class icecube.examples.services.ConstantService(value)

Bases: icecube.phys_services.I3RandomService

Dummy example implementation of a service. Implements I3RandomService but actually just supplies a constant no matter what it is asked.

Binomial(ntot, prob)
Exp(tau)
Gaus(mean, stddev)
Integer(imax)
Poisson(x1)
PoissonD(x1, x2)

Eh, this one is over in project phys_services.

class icecube.phys_services.I3RandomService

Bases: Boost.Python.instance

base class for python impls

binomial((I3RandomService)arg1, (int)arg2, (float)arg3) → int :
C++ signature :
int binomial(I3RandomServiceWrapper {lvalue},int,double)
exp((I3RandomService)arg1, (float)arg2) → float :
C++ signature :
double exp(I3RandomServiceWrapper {lvalue},double)
from_context((I3Context)arg1, (str)arg2) → I3RandomServiceBase :
C++ signature :
boost::shared_ptr<I3RandomService> from_context(I3Context,std::string)
gaus((I3RandomService)arg1, (float)arg2, (float)arg3) → float :
C++ signature :
double gaus(I3RandomServiceWrapper {lvalue},double,double)
integer((I3RandomService)arg1, (int)arg2) → int :
C++ signature :
unsigned int integer(I3RandomServiceWrapper {lvalue},unsigned int)
poisson((I3RandomService)arg1, (float)arg2) → int :
C++ signature :
int poisson(I3RandomServiceWrapper {lvalue},double)
poisson_d((I3RandomService)arg1, (float)arg2) → float :
C++ signature :
double poisson_d(I3RandomServiceWrapper {lvalue},double)
put_in_context((I3RandomServiceBase)arg1, (I3Context)arg2, (str)arg3) → bool :
C++ signature :
bool put_in_context(boost::shared_ptr<I3RandomService>,I3Context {lvalue},std::string)
uniform((I3RandomService)arg1, (float)arg2) → float :
C++ signature :
double uniform(I3RandomServiceWrapper {lvalue},double)

uniform( (I3RandomService)arg1, (float)arg2, (float)arg3) -> float :

C++ signature :
double uniform(I3RandomServiceWrapper {lvalue},double,double)