|
EvtGen
2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
|
Go to the documentation of this file. 35 _mother( mother ), _dau( dau ) 53 string::size_type i = s.find_first_not_of( " " ); 54 string::size_type j = s.find_first_of( " ", i ); 56 if ( i == string::npos ) { 58 << "No non-space character found" << endl; 62 if ( j == string::npos ) { 64 << "No space before -> found" << endl; 68 _mother = string( s, i, j - i ); 70 i = s.find_first_not_of( " ", j ); 71 j = s.find_first_of( "->", j ); 74 << "Multiple mothers?" << i << "," << j << endl; 80 i = s.find_first_not_of( " ", j ); 81 j = s.find_first_of( " ", i ); 83 if ( i == string::npos ) 85 if ( j == string::npos ) { 86 _dau.push_back( string( s, i, s.size() - i + 1 ) ); 89 _dau.push_back( string( s, i, j - i ) ); 106 assert( 0 <= i && i < ( int) _dau.size() ); 107 return _dau[i].c_str(); 112 string ret = _mother + string( " -> " ); 114 for ( size_t i = 0; i < _dau.size() - 1; i++ ) { 115 ret += string( _dau[i] ) + string( " " ); 123 os << _mother.c_str() << " ->"; 124 for ( size_t i = 0; i < _dau.size(); i++ ) { 125 os << " " << _dau[i].c_str();
ostream & operator<<(ostream &os, const EvtDecayMode &mode)
EvtDecayMode(const char *decay)
std::vector< std::string > _dau
std::string q(EvtCyclic3::Pair i) const
std::ostream & print(std::ostream &) const
const char * dau(int i) const
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=0)
std::string dal(EvtCyclic3::Pair i, EvtCyclic3::Pair j) const
std::string m(EvtCyclic3::Pair i) const
const char * mother() const
Index other(Index i, Index j)
|