6 #include "cheprep/DefaultHepRepFactory.h"
7 #include "cheprep/DefaultHepRepPoint.h"
8 #include "cheprep/DefaultHepRepInstance.h"
9 #include "cheprep/DefaultHepRepInstanceTree.h"
10 #include "cheprep/DefaultHepRepType.h"
11 #include "cheprep/DefaultHepRepTypeTree.h"
12 #include "cheprep/DefaultHepRep.h"
13 #include "cheprep/DefaultHepRepAction.h"
14 #include "cheprep/DefaultHepRepTreeID.h"
26 DefaultHepRepFactory::DefaultHepRepFactory() {
29 DefaultHepRepFactory::~DefaultHepRepFactory() {
32 HepRepReader* DefaultHepRepFactory::createHepRepReader (istream*) {
33 cerr <<
"DefaultHepRepFactory::createHepRepReader not implemented" << endl;
37 HepRepReader* DefaultHepRepFactory::createHepRepReader (std::string) {
38 cerr <<
"DefaultHepRepFactory::createHepRepReader not implemented" << endl;
42 HepRepWriter* DefaultHepRepFactory::createHepRepWriter(ostream*,
bool,
bool) {
43 cerr <<
"DefaultHepRepFactory::createHepRepWriter not implemented" << endl;
47 HepRepPoint* DefaultHepRepFactory::createHepRepPoint (HepRepInstance*
instance,
48 double x,
double y,
double z) {
49 return new DefaultHepRepPoint(instance, x, y, z);
52 HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstance* parent, HepRepType* type) {
53 return new DefaultHepRepInstance(parent, type);
56 HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstanceTree* parent, HepRepType* type) {
57 return new DefaultHepRepInstance(parent, type);
60 HepRepTreeID* DefaultHepRepFactory::createHepRepTreeID (
string name,
string version,
string qualifier) {
61 return new DefaultHepRepTreeID(name, version, qualifier);
64 HepRepAction* DefaultHepRepFactory::createHepRepAction (
string name,
string expression) {
65 return new DefaultHepRepAction(name, expression);
68 HepRepInstanceTree* DefaultHepRepFactory::createHepRepInstanceTree (
string name,
string version,
69 HepRepTreeID* typeTreeID) {
70 return new DefaultHepRepInstanceTree(name, version, typeTreeID);
73 HepRepType* DefaultHepRepFactory::createHepRepType (HepRepType* parent,
string name) {
74 return new DefaultHepRepType(parent, name);
77 HepRepType* DefaultHepRepFactory::createHepRepType (HepRepTypeTree* parent,
string name) {
78 return new DefaultHepRepType(parent, name);
81 HepRepTypeTree* DefaultHepRepFactory::createHepRepTypeTree (HepRepTreeID* treeID) {
82 return new DefaultHepRepTypeTree(treeID);
85 HepRep* DefaultHepRepFactory::createHepRep () {
86 return new DefaultHepRep();
const G4double x[NPOINTSGL]
static MCTruthManager * instance