source: trunk/examples/novice/gemc/src/MPHBaseClass.cc @ 1309

Last change on this file since 1309 was 807, checked in by garnier, 16 years ago

update

File size: 403 bytes
Line 
1// %%%%%%%%%%%%%
2// gemc headers
3// %%%%%%%%%%%%%
4#include "MPHBaseClass.h"
5
6using namespace std;
7
8MPHBaseClass *GetMPHClass (map<string, MPHB_Factory> MProcessHit_Map, string HCname)
9{
10 if(MProcessHit_Map.find(HCname) == MProcessHit_Map.end())
11 {
12  cout << endl << endl << "  >>> WARNING: " << HCname << " NOT FOUND IN  ProcessHit Map." << endl;
13  return NULL;
14 }
15
16 return MProcessHit_Map[HCname]();
17}
Note: See TracBrowser for help on using the repository browser.