9 #ifndef IMPATOM_CHARGED_H
10 #define IMPATOM_CHARGED_H
12 #include <IMP/atom/atom_config.h>
16 #include <IMP/internal/constants.h>
21 IMPATOM_BEGIN_NAMESPACE
41 p->add_attribute(get_charge_key(), charge);
50 "Particle must already be an XYZ particle");
51 p->add_attribute(get_charge_key(), charge);
59 return XYZ::particle_is_instance(p)
60 && p->has_attribute(get_charge_key());