21#include "EvtGenBase/EvtPatches.hh"
28#include "EvtGenBase/EvtParticle.hh"
29#include "EvtGenBase/EvtRandom.hh"
30#include "EvtGenBase/EvtModel.hh"
31#include "EvtGenBase/EvtPDL.hh"
32#include "EvtGenBase/EvtDecayParm.hh"
33#include "EvtGenBase/EvtDecayBase.hh"
34#include "EvtGenBase/EvtParticleDecayList.hh"
35#include "EvtGenBase/EvtParser.hh"
36#include "EvtGenBase/EvtReport.hh"
49 if ( _modelNameHash.find(model_name)!=_modelNameHash.end() ) {
50 model=_modelNameHash[model_name];
54 report(
ERROR,
"EvtGen") <<
"Did not find the right model:"
55 <<model_name.c_str()<<
"\n";
59 return model->
clone();
66 std::string modelName;
69 _modelNameHash[modelName]=prototype;
77 _commandNameHash[commandName]=prototype;
85 if ( _modelNameHash.find(model_name)!=_modelNameHash.end() ) {
94 if ( _commandNameHash.find(cmd)!=_commandNameHash.end() ) {
103 if ( _commandNameHash.find(cmd)!=_commandNameHash.end() ) {
104 model=_commandNameHash[cmd];
ostream & report(Severity severity, const char *facility)
virtual EvtDecayBase * clone()=0
virtual void getName(std::string &name)=0
virtual void command(std::string cmd)
virtual std::string commandName()
EvtDecayBase * getFcn(std::string model_name)
void storeCommand(std::string cmd, std::string cnfgstr)
void Register(EvtDecayBase *prototype)
int isModel(std::string name)
int isCommand(std::string cmd)