Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DefaultHepRep.cc
Go to the documentation of this file.
1// Copyright FreeHEP, 2005.
2
4
5using namespace std;
6using namespace HEPREP;
7
8/**
9 * @author Mark Donszelmann
10 */
11namespace cheprep {
12
14}
15
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
31 return layers;
32}
33
34void DefaultHepRep::addLayer(string layer) {
35 layers.push_back(layer);
36}
37
39 // FIXME check if already exist
40 typeTrees.push_back(typeTree);
41}
42
44 cerr << "DefaultHepRep::removeTypeTree(HepRepTypeTree*) not implemented." << endl;
45}
46
48 cerr << "DefaultHepRep::getTypeTree(string, string) not implemented." << endl;
49 return NULL;
50}
51
52vector<HepRepTypeTree*> DefaultHepRep::getTypeTreeList() {
53 return typeTrees;
54}
55
57 // FIXME check if already exist
58 instanceTrees.push_back(instanceTree);
59}
60
62 cerr << "DefaultHepRep::overlayInstanceTree(HepRepInstanceTree * instanceTree) not implemented." << endl;
63}
64
66 cerr << "DefaultHepRep::removeInstanceTree(HepRepInstanceTree*) not implemented." << endl;
67}
68
70 cerr << "DefaultHepRep::getInstanceTreeTop(string, string) not implemented." << endl;
71 return NULL;
72}
73
75 vector<string>) {
76 cerr << "DefaultHepRep::getInstances(string, string, vector<string>) not implemented." << endl;
77 return NULL;
78}
79
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
94 return NULL;
95}
96
97vector<HepRepInstanceTree*> DefaultHepRep::getInstanceTreeList() {
98 return instanceTrees;
99}
100
101} // cheprep
102
std::vector< std::string > getLayerOrder()
std::string checkForException()
std::vector< HEPREP::HepRepInstanceTree * > getInstanceTreeList()
HEPREP::HepRepInstanceTree * getInstancesAfterAction(std::string name, std::string version, std::vector< std::string > typeNames, std::vector< HEPREP::HepRepAction * > actions, bool getPoints, bool getDrawAtts, bool getNonDrawAtts, std::vector< std::string > invertAtts)
void addInstanceTree(HEPREP::HepRepInstanceTree *instanceTree)
HEPREP::HepRepTypeTree * getTypeTree(std::string name, std::string version)
HEPREP::HepRepInstanceTree * getInstances(std::string name, std::string version, std::vector< std::string > typeNames)
void addTypeTree(HEPREP::HepRepTypeTree *typeTree)
void overlayInstanceTree(HEPREP::HepRepInstanceTree *instanceTree)
std::vector< HEPREP::HepRepTypeTree * > getTypeTreeList()
void removeTypeTree(HEPREP::HepRepTypeTree *typeTree)
HEPREP::HepRep * copy(HEPREP::HepRepSelectFilter *filter)
HEPREP::HepRepInstanceTree * getInstanceTreeTop(std::string name, std::string version)
void removeInstanceTree(HEPREP::HepRepInstanceTree *instanceTree)
void addLayer(std::string layer)