ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DefaultHepRepInstanceTree.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DefaultHepRepInstanceTree.cc
1
// Copyright FreeHEP, 2005.
2
3
#include "
cheprep/DefaultHepRepInstanceTree.h
"
4
5
using namespace
std;
6
using namespace
HEPREP;
7
11
namespace
cheprep {
12
13
DefaultHepRepInstanceTree::DefaultHepRepInstanceTree(
string
aName,
string
aVersion,
HepRepTreeID
* aTypeTree)
14
:
DefaultHepRepTreeID
(aName, aVersion), typeTree(aTypeTree) {
15
}
16
17
DefaultHepRepInstanceTree::~DefaultHepRepInstanceTree
() {
18
for
(vector<HepRepInstance*>::iterator i1 =
instances
.begin(); i1 !=
instances
.end(); i1++) {
19
delete
(*i1);
20
}
21
instances
.clear();
22
}
23
24
void
DefaultHepRepInstanceTree::overlay
(
HepRepInstanceTree
*) {
25
cerr <<
"DefaultHepRepInstanceTree::overlay(HepRepInstanceTree * instanceTree) not implemented."
<< endl;
26
}
27
28
HepRepInstanceTree
*
DefaultHepRepInstanceTree::copy
(
HepRepTypeTree
*,
HepRepSelectFilter
*) {
29
cerr <<
"DefaultHepRepInstanceTree::copy(HepRepTypeTree*, HepRepSelectFilter*) not implemented."
<< endl;
30
return
NULL;
31
}
32
33
void
DefaultHepRepInstanceTree::addInstance
(
HepRepInstance
*
instance
) {
34
instances
.push_back(instance);
35
}
36
37
void
DefaultHepRepInstanceTree::removeInstance
(
HepRepInstance
*) {
38
cerr <<
"DefaultHepRepInstanceTree::removeInstance(HepRepInstance*) not implemented."
<< endl;
39
}
40
41
vector<HepRepInstance*>
DefaultHepRepInstanceTree::getInstances
() {
42
return
instances
;
43
}
44
45
void
DefaultHepRepInstanceTree::addInstanceTree
(
HepRepTreeID
* treeID) {
46
instanceTrees
.push_back(treeID);
47
}
48
49
HepRepTreeID
*
DefaultHepRepInstanceTree::getTypeTree
() {
50
return
typeTree
;
51
}
52
53
vector<HepRepTreeID*>
DefaultHepRepInstanceTree::getInstanceTreeList
() {
54
return
instanceTrees
;
55
}
56
57
}
// cheprep
58
geant4
tree
geant4-10.6-release
source
visualization
HepRep
src
DefaultHepRepInstanceTree.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:54
using
1.8.2 with
ECCE GitHub integration