46 printf(
"Make amplitude\n" );
48 for ( i = 0; i < vv.size(); i++ ) printf(
"%s\n", vv[i].
c_str() );
57 if ( vv[0] ==
"PHASESPACE" )
64 else if ( vv[0] ==
"RESONANCE" )
76 if (
_verbose ) printf(
"Particles %s form resonance %s\n", vv[1].
c_str(), vv[2].
c_str() );
81 if ( resId.
getId() == -1 )
84 switch ( atoi( vv[2].
c_str() ) )
113 mR = strtod( vv[3].
c_str(), 0 );
114 gR = strtod( vv[4].
c_str(), 0 );
130 if ( vv[3] !=
"ANGULAR" )
134 printf(
"Setting m(%s)=%s g(%s)=%s\n", vv[2].
c_str(), vv[3].
c_str(), vv[2].
c_str(),
137 mR = strtod( vv[3].
c_str(), 0 );
138 gR = strtod( vv[4].
c_str(), 0 );
145 if ( vv[++i] !=
"ANGULAR" )
148 printf(
"%s instead of ANGULAR\n", vv[i].
c_str() );
152 if (
_verbose ) printf(
"Angle is measured between particles %s\n", vv[i].
c_str() );
156 assert( vv[++i] ==
"TYPE" );
157 std::string
type = vv[++i];
158 if (
_verbose ) printf(
"Propagator type %s\n", vv[i].
c_str() );
166 else if (
type ==
"RBW_ZEMACH" )
172 else if (
type ==
"RBW_KUEHN" )
178 else if (
type ==
"RBW_CLEO" )
188 if ( i < vv.size() - 1 )
190 if ( vv[i + 1] ==
"DVFF" )
193 if ( vv[++i] ==
"BLATTWEISSKOPF" )
196 double R = strtod( vv[++i].
c_str(), 0 );
203 if ( i < vv.size() - 1 )
205 if ( vv[i + 1] ==
"BVFF" )
208 if ( vv[++i] ==
"BLATTWEISSKOPF" )
212 double R = strtod( vv[++i].
c_str(), 0 );
231 _amp->addOwnedTerm( c, amp );
232 _pc->addOwnedTerm(
abs2( c ), pdf );