Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DefaultHepRepInstanceTree.h
Go to the documentation of this file.
1// Copyright FreeHEP, 2005.
2#ifndef CHEPREP_DEFAULTHEPREPINSTANCETREE_H
3#define CHEPREP_DEFAULTHEPREPINSTANCETREE_H 1
4
5#include "cheprep/config.h"
6
7#include <string>
8#include <vector>
9#include <set>
10
11#include "HEPREP/HepRep.h"
15#include "HEPREP/HepRepWriter.h"
16#include "HEPREP/HepRepTreeID.h"
17
18#include "DefaultHepRepTreeID.h"
19
20/**
21 * @author Mark Donszelmann
22 */
23namespace cheprep {
24
26
27 private:
28 HEPREP::HepRepTreeID* typeTree;
29 std::vector<HEPREP::HepRepInstance*> instances;
30 std::vector<HEPREP::HepRepTreeID*> instanceTrees;
31
32 public:
33 DefaultHepRepInstanceTree(std::string name, std::string version, HEPREP::HepRepTreeID* typeTree);
35
36 void overlay(HEPREP::HepRepInstanceTree * instanceTree);
38 void addInstance(HEPREP::HepRepInstance* instance);
40 std::vector<HEPREP::HepRepInstance*> getInstances();
43 std::vector<HEPREP::HepRepTreeID*> getInstanceTreeList();
44};
45
46} // cheprep
47
48
49#endif
std::vector< HEPREP::HepRepInstance * > getInstances()
void overlay(HEPREP::HepRepInstanceTree *instanceTree)
void removeInstance(HEPREP::HepRepInstance *instance)
std::vector< HEPREP::HepRepTreeID * > getInstanceTreeList()
void addInstance(HEPREP::HepRepInstance *instance)
HEPREP::HepRepInstanceTree * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepSelectFilter *filter)
void addInstanceTree(HEPREP::HepRepTreeID *treeID)