14#define PoPI_metaStableIndexChars "metaStableIndex"
31 m_pidIndex( SIZE_MAX ) {
34 ParseIdInfo idInfo( supportedNucleusAliases[ID( )] );
36 setIntid( 1000 * ( 1000 * (idInfo.index( ) + 500) + idInfo.Z( ) ) + idInfo.A( ) );
55void Alias::toXMLList( std::vector<std::string> &a_XMLList, std::string
const &a_indent1 )
const {
57 std::string header = a_indent1 +
"<particle id=\"" +
ID( ) +
"\" pid=\"" + m_pid +
"\"/>";
58 a_XMLList.push_back( std::move( header ) );
79 int intid2 =
intidHelper(
false, m_class, 1000 * idInfo.
Z( ) + idInfo.
A( ) );
80 setIntid( intid2 + 1000000 * idInfo.
index( ) );
103 std::string header = a_indent1 +
"<metaStable id=\"" +
ID( ) +
"\" pid=\"" +
pid( ) +
"\" metaStableIndex=\"" + indexStr +
"\"/>";
104 a_XMLList.push_back( std::move( header ) );
#define PoPI_metaStableIndexChars
Alias(HAPI::Node const &a_node, Database *a_DB, Particle_class a_class=Particle_class::alias)
void toXMLList(std::vector< std::string > &a_XMLList, std::string const &a_indent1) const
std::string const & pid(void) const
std::string const & ID(void) const
std::size_t addToDatabase(Database *a_DB)
IDBase(std::string const &a_id, Particle_class a_class)
std::string argumentsToString(char const *a_format,...)
std::map< std::string, std::string > supportedNucleusAliases
int intidHelper(bool a_isAnti, Particle_class a_family, int a_SSSSSSS)