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 #include "GeneratorInterface/HiGenCommon/interface/PartonHadronDecayGenEvtSelector.h"
00006 #include "GeneratorInterface/HiGenCommon/interface/HadronDecayGenEvtSelector.h"
00007
00008 BaseHiGenEvtSelector* HiGenEvtSelectorFactory::get(std::string filterType, const edm::ParameterSet& pset){
00009 if(filterType == "None"){
00010 return new BaseHiGenEvtSelector(pset);
00011 }else if(filterType == "EcalGenEvtSelector"){
00012 return new EcalGenEvtSelector(pset);
00013 }else if(filterType == "MultiCandGenEvtSelector"){
00014 return new MultiCandGenEvtSelector(pset);
00015 }else if(filterType == "PartonHadronDecayGenEvtSelector"){
00016 return new PartonHadronDecayGenEvtSelector(pset);
00017 }else if(filterType == "HadronDecayGenEvtSelector"){
00018 return new HadronDecayGenEvtSelector(pset);
00019 }
00020
00021 std::cout<<"Skimmer not recognized. Fail!"<<std::endl;
00022 return NULL;
00023 }
00024
00025