ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultHepRep.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DefaultHepRep.cc
1 // Copyright FreeHEP, 2005.
2 
4 
5 using namespace std;
6 using namespace HEPREP;
7 
11 namespace cheprep {
12 
13 DefaultHepRep::DefaultHepRep() {
14 }
15 
16 DefaultHepRep::~DefaultHepRep() {
17  for (vector<HepRepTypeTree*>::iterator i1 = typeTrees.begin(); i1 != typeTrees.end(); i1++) {
18  delete (*i1);
19  }
20  for (vector<HepRepInstanceTree*>::iterator i2 = instanceTrees.begin(); i2 != instanceTrees.end(); i2++) {
21  delete (*i2);
22  }
23 }
24 
26  cerr << "DefaultHepRep::copy(HepRepSelectFilter*) not implemented." << endl;
27  return NULL;
28 }
29 
30 vector<string> DefaultHepRep::getLayerOrder() {
31  return layers;
32 }
33 
34 void DefaultHepRep::addLayer(string layer) {
35  layers.push_back(layer);
36 }
37 
38 void DefaultHepRep::addTypeTree(HepRepTypeTree* typeTree) {
39  // FIXME check if already exist
40  typeTrees.push_back(typeTree);
41 }
42 
43 void DefaultHepRep::removeTypeTree(HepRepTypeTree*) {
44  cerr << "DefaultHepRep::removeTypeTree(HepRepTypeTree*) not implemented." << endl;
45 }
46 
47 HepRepTypeTree* DefaultHepRep::getTypeTree(string, string) {
48  cerr << "DefaultHepRep::getTypeTree(string, string) not implemented." << endl;
49  return NULL;
50 }
51 
52 vector<HepRepTypeTree*> DefaultHepRep::getTypeTreeList() {
53  return typeTrees;
54 }
55 
56 void DefaultHepRep::addInstanceTree(HepRepInstanceTree* instanceTree) {
57  // FIXME check if already exist
58  instanceTrees.push_back(instanceTree);
59 }
60 
61 void DefaultHepRep::overlayInstanceTree(HepRepInstanceTree *) {
62  cerr << "DefaultHepRep::overlayInstanceTree(HepRepInstanceTree * instanceTree) not implemented." << endl;
63 }
64 
65 void DefaultHepRep::removeInstanceTree(HepRepInstanceTree*) {
66  cerr << "DefaultHepRep::removeInstanceTree(HepRepInstanceTree*) not implemented." << endl;
67 }
68 
69 HepRepInstanceTree* DefaultHepRep::getInstanceTreeTop(string, string) {
70  cerr << "DefaultHepRep::getInstanceTreeTop(string, string) not implemented." << endl;
71  return NULL;
72 }
73 
74 HepRepInstanceTree* DefaultHepRep::getInstances(string, string,
75  vector<string>) {
76  cerr << "DefaultHepRep::getInstances(string, string, vector<string>) not implemented." << endl;
77  return NULL;
78 }
79 
80 HepRepInstanceTree* DefaultHepRep::getInstancesAfterAction(
81  string,
82  string,
83  vector<string>,
84  vector<HepRepAction*>,
85  bool,
86  bool,
87  bool,
88  vector<string>) {
89  cerr << "DefaultHepRep::getInstancesAfterAction(string, string, vector<string>, vector<HepRepAction*>, bool, bool, bool, vector<string>) not implemented." << endl;
90  return NULL;
91 }
92 
93 string DefaultHepRep::checkForException() {
94  return NULL;
95 }
96 
97 vector<HepRepInstanceTree*> DefaultHepRep::getInstanceTreeList() {
98  return instanceTrees;
99 }
100 
101 } // cheprep
102