X-Git-Url: http://git.treefish.org/~alex/phys/u1casc.git/blobdiff_plain/83f20c4a1509e09d4836e2e15fc8e142950e15ec..868c33e6512844908fe6c906f33cf0af3be48525:/u1casc-flux/sim.hpp?ds=sidebyside 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()