Geant4 9.6.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 * @version $Id: DefaultHepRep.cc,v 1.9 2005-06-02 21:28:45 duns Exp $
11 */
12namespace cheprep {
13
15}
16
18 for (vector<HepRepTypeTree*>::iterator i1 = typeTrees.begin(); i1 != typeTrees.end(); i1++) {
19 delete (*i1);
20 }
21 for (vector<HepRepInstanceTree*>::iterator i2 = instanceTrees.begin(); i2 != instanceTrees.end(); i2++) {
22 delete (*i2);
23 }
24}
25
27 cerr << "DefaultHepRep::copy(HepRepSelectFilter*) not implemented." << endl;
28 return NULL;
29}
30
32 return layers;
33}
34
35void DefaultHepRep::addLayer(string layer) {
36 layers.push_back(layer);
37}
38
40 // FIXME check if already exist
41 typeTrees.push_back(typeTree);
42}
43
45 cerr << "DefaultHepRep::removeTypeTree(HepRepTypeTree*) not implemented." << endl;
46}
47
49 cerr << "DefaultHepRep::getTypeTree(string, string) not implemented." << endl;
50 return NULL;
51}
52
53vector<HepRepTypeTree*> DefaultHepRep::getTypeTreeList() {
54 return typeTrees;
55}
56
58 // FIXME check if already exist
59 instanceTrees.push_back(instanceTree);
60}
61
63 cerr << "DefaultHepRep::overlayInstanceTree(HepRepInstanceTree * instanceTree) not implemented." << endl;
64}
65
67 cerr << "DefaultHepRep::removeInstanceTree(HepRepInstanceTree*) not implemented." << endl;
68}
69
71 cerr << "DefaultHepRep::getInstanceTreeTop(string, string) not implemented." << endl;
72 return NULL;
73}
74
76 vector<string>) {
77 cerr << "DefaultHepRep::getInstances(string, string, vector<string>) not implemented." << endl;
78 return NULL;
79}
80
82 string,
83 string,
84 vector<string>,
85 vector<HepRepAction*>,
86 bool,
87 bool,
88 bool,
89 vector<string>) {
90 cerr << "DefaultHepRep::getInstancesAfterAction(string, string, vector<string>, vector<HepRepAction*>, bool, bool, bool, vector<string>) not implemented." << endl;
91 return NULL;
92}
93
95 return NULL;
96}
97
98vector<HepRepInstanceTree*> DefaultHepRep::getInstanceTreeList() {
99 return instanceTrees;
100}
101
102} // cheprep
103
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)