X-Git-Url: http://git.treefish.org/~alex/phys/u1casc.git/blobdiff_plain/6052af63901b02f958d6c286aecbc23f574b48a7..60721a3c620a58110d73e6ef36cb9548a9df11b8:/u1casc-flux/sim.hpp diff --git a/u1casc-flux/sim.hpp b/u1casc-flux/sim.hpp index 7fd59af..496a28d 100644 --- a/u1casc-flux/sim.hpp +++ b/u1casc-flux/sim.hpp @@ -24,10 +24,11 @@ public: double WF(int nom, int denom, int iflav); int iPlaq(int i, int j); double I(int p); - + void _newParas(); + private: + void _resetConfig(); void _makeSweep(); - void _newParas(); gsl_rng* rangsl; int lineSweep(); int lineUpdate(int x, int vardir); @@ -92,7 +93,7 @@ sim::sim(o815 *_O815) : o815::sim( _O815, } void sim::_makeSweep() -{ +{ lineSweep(); for( int x=0; xparaQ)["beta"]; Mu[0] = (*O815->paraQ)["muone"]; Mu[1] = (*O815->paraQ)["mutwo"]; +} - memset(confMem, 0, sizeof(int)*lsize4*(2*4+2*4+6)); +void sim::_resetConfig() { + memset(confMem, 0, confmemSize); } int sim::lineSweep()