-
Notifications
You must be signed in to change notification settings - Fork 32
DetermineElementType
dstoeckel edited this page Mar 16, 2015
·
2 revisions
Determining an atom's type is trivial with the help of the class PTE:
#include <BALL/KERNEL/PTE.h>
if (atom.getElement() == PTE[Element::C])
{
std::cout << "This is a carbon atom!" << std::endl;
// the next line should print
// Element symbol: C
std::cout << "Element symbol: " << atom.getElement().getSymbol() << std::endl;
}