3 #include "cheprep/DefaultHepRepInstanceTree.h"
14 DefaultHepRepInstanceTree::DefaultHepRepInstanceTree(
string aName,
string aVersion, HepRepTreeID* aTypeTree)
15 : DefaultHepRepTreeID(aName, aVersion), typeTree(aTypeTree) {
18 DefaultHepRepInstanceTree::~DefaultHepRepInstanceTree() {
19 for (vector<HepRepInstance*>::iterator i1 = instances.begin(); i1 != instances.end(); i1++) {
25 void DefaultHepRepInstanceTree::overlay(HepRepInstanceTree *) {
26 cerr <<
"DefaultHepRepInstanceTree::overlay(HepRepInstanceTree * instanceTree) not implemented." << endl;
30 cerr <<
"DefaultHepRepInstanceTree::copy(HepRepTypeTree*, HepRepSelectFilter*) not implemented." << endl;
34 void DefaultHepRepInstanceTree::addInstance(HepRepInstance*
instance) {
35 instances.push_back(instance);
38 void DefaultHepRepInstanceTree::removeInstance(HepRepInstance*) {
39 cerr <<
"DefaultHepRepInstanceTree::removeInstance(HepRepInstance*) not implemented." << endl;
42 vector<HepRepInstance*> DefaultHepRepInstanceTree::getInstances() {
46 void DefaultHepRepInstanceTree::addInstanceTree(HepRepTreeID* treeID) {
47 instanceTrees.push_back(treeID);
50 HepRepTreeID* DefaultHepRepInstanceTree::getTypeTree() {
54 vector<HepRepTreeID*> DefaultHepRepInstanceTree::getInstanceTreeList() {
void copy(std::vector< T > &main, const std::vector< T > &data)
static MCTruthManager * instance