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
DefaultHepRepTypeTree.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DefaultHepRepTypeTree.cc
1
// Copyright FreeHEP, 2005.
2
3
#include <iostream>
4
5
#include "
cheprep/DefaultHepRepTypeTree.h
"
6
7
using namespace
std;
8
using namespace
HEPREP;
9
13
namespace
cheprep {
14
15
DefaultHepRepTypeTree::DefaultHepRepTypeTree(
HepRepTreeID
* typeTree)
16
:
DefaultHepRepTreeID
(typeTree->
getName
(), typeTree->getVersion()) {
17
delete
typeTree;
18
}
19
20
DefaultHepRepTypeTree::~DefaultHepRepTypeTree
() {
21
for
(vector<HepRepType*>::iterator i1 =
types
.begin(); i1 !=
types
.end(); i1++) {
22
delete
(*i1);
23
}
24
}
25
26
HepRepTypeTree
*
DefaultHepRepTypeTree::copy
() {
27
cerr <<
"DefaultHepRepTypeTree::copy() not implemented."
<< endl;
28
return
NULL;
29
}
30
31
void
DefaultHepRepTypeTree::addType
(
HepRepType
* type) {
32
// FIXME should check if type already exists
33
types
.push_back(type);
34
}
35
36
vector<HepRepType*>
DefaultHepRepTypeTree::getTypeList
() {
37
return
types
;
38
}
39
40
HepRepType
*
DefaultHepRepTypeTree::getType
(
string
/*typeName*/
) {
41
cerr <<
"DefaultHepRepTypeTree::getType(string) not implemented."
<< endl;
42
return
NULL;
43
}
44
45
}
// cheprep
geant4
tree
geant4-10.6-release
source
visualization
HepRep
src
DefaultHepRepTypeTree.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:55
using
1.8.2 with
ECCE GitHub integration