8 using namespace HEPREP;
19 if (
type == NULL) cerr <<
"HepRepInstance cannot be created without a HepRepType." << endl;
26 if (
type == NULL) cerr <<
"HepRepInstance cannot be created without a HepRepType." << endl;
33 for (vector<HepRepInstance*>::iterator i1 =
instances.begin(); i1 !=
instances.end(); i1++) {
36 for (vector<HepRepPoint*>::iterator i2 =
points.begin(); i2 !=
points.end(); i2++) {
42 cerr <<
"DefaultHepRepInstance::overlay(HepRepInstance * instance) not implemented." << endl;
46 cerr <<
"DefaultHepRepInstance::copy(HepRepTypeTree*, HepRepInstance*, HepRepSelectFilter*) not implemented." << endl;
51 cerr <<
"DefaultHepRepInstance::copy(HepRepTypeTree*, HepRepInstanceTree*, HepRepSelectFilter*) not implemented." << endl;
76 cerr <<
"DefaultHepRepInstance::removeInstance(HepRepInstance*) not implemented." << endl;
DefaultHepRepInstance(HEPREP::HepRepInstance *parent, HEPREP::HepRepType *type)
virtual HepRepAttValue * getAttValue(std::string name)=0
std::vector< HEPREP::HepRepInstance * > getInstances()
std::vector< HEPREP::HepRepInstance * > instances
HEPREP::HepRepAttValue * getAttValueFromNode(std::string lowerCaseName)
HEPREP::HepRepInstance * parent
HEPREP::HepRepAttValue * getAttValue(std::string name)
HEPREP::HepRepInstance * getSuperInstance()
virtual void addInstance(HepRepInstance *instance)=0
void addInstance(HEPREP::HepRepInstance *instance)
std::vector< HEPREP::HepRepPoint * > getPoints()
const XML_Char int const XML_Char * value
void addPoint(HEPREP::HepRepPoint *point)
std::vector< HEPREP::HepRepPoint * > points
void overlay(HEPREP::HepRepInstance *instance)
HEPREP::HepRepType * getType()
HEPREP::HepRepInstance * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepInstance *parent, HEPREP::HepRepSelectFilter *filter)
static MCTruthManager * instance
HEPREP::HepRepType * type
virtual void addInstance(HepRepInstance *instance)=0
void removeInstance(HEPREP::HepRepInstance *instance)