Go to the documentation of this file.00001
00002 #include "GeneratorInterface/HiGenCommon/interface/HiGenEvtSelectorFactory.h"
00003 #include "GeneratorInterface/HiGenCommon/interface/EcalGenEvtSelector.h"
00004 #include "GeneratorInterface/HiGenCommon/interface/MultiCandGenEvtSelector.h"
00005
00006 BaseHiGenEvtSelector* HiGenEvtSelectorFactory::get(std::string filterType, const edm::ParameterSet& pset){
00007 if(filterType == "None"){
00008 return new BaseHiGenEvtSelector(pset);
00009 }else if(filterType == "EcalGenEvtSelector"){
00010 return new EcalGenEvtSelector(pset);
00011 }else if(filterType == "MultiCandGenEvtSelector"){
00012 return new MultiCandGenEvtSelector(pset);
00013 }
00014
00015 std::cout<<"Skimmer not recognized. Fail!"<<std::endl;
00016 return NULL;
00017 }
00018
00019