13 m_rate1( 0 ), m_rate2( 0 ),
14 m_names{
"Random0",
"Random1",
15 "Random2",
"Random3" },
16 m_cuts{ 0xffffff, 0xffffff, 0xffffff,
23 float ucut = abs(
cut);
24 return ( 0x1000000 / ( ucut + 1 ) );
30 cout <<
indent <<
"Random "; printNameIdV();
32 if( m_cuts[0]!=0xffffffff ||
33 m_cuts[1]!=0xffffffff ||
34 m_cuts[2]!=0xffffffff ||
35 m_cuts[3]!=0xffffffff )
37 for(
int i=0;
i<4;
i++) {
41 cout <<
indent <<
" Rate 1: " << m_rate1 << endl;
42 cout <<
indent <<
" Rate 2: " << m_rate2 << endl;
50 if( m_cuts[0]!=0xffffffff ||
51 m_cuts[1]!=0xffffffff ||
52 m_cuts[2]!=0xffffffff ||
53 m_cuts[3]!=0xffffffff )
55 indent(xmlfile,indentLevel, indentWidth)
57 <<
"name0=\""<< m_names[0] <<
"\" cut0=\"" << m_cuts[0] <<
"\" "
58 <<
"name1=\""<< m_names[1] <<
"\" cut1=\"" << m_cuts[1] <<
"\" "
59 <<
"name2=\""<< m_names[2] <<
"\" cut2=\"" << m_cuts[2] <<
"\" "
60 <<
"name3=\""<< m_names[3] <<
"\" cut3=\"" << m_cuts[3] <<
"\"/>" << endl;
62 indent(xmlfile,indentLevel, indentWidth)
63 <<
"<Random name=\"" <<
name() <<
"\" rate1=\"" << m_rate1
64 <<
"\" rate2=\"" << m_rate2
65 <<
"\" seed1=\"1\" seed2=\"1\"/>" << endl;