Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:06:59

0001 
0002 #include "GeneratorInterface/HiGenCommon/interface/HiGenEvtSelectorFactory.h"
0003 #include "GeneratorInterface/HiGenCommon/interface/EcalGenEvtSelector.h"
0004 #include "GeneratorInterface/HiGenCommon/interface/EcalGenEvtSelectorFrag.h"
0005 #include "GeneratorInterface/HiGenCommon/interface/MultiCandGenEvtSelector.h"
0006 #include "GeneratorInterface/HiGenCommon/interface/PartonHadronDecayGenEvtSelector.h"
0007 #include "GeneratorInterface/HiGenCommon/interface/HadronDecayGenEvtSelector.h"
0008 
0009 BaseHiGenEvtSelector* HiGenEvtSelectorFactory::get(std::string filterType, const edm::ParameterSet& pset) {
0010   if (filterType == "None") {
0011     return new BaseHiGenEvtSelector(pset);
0012   } else if (filterType == "EcalGenEvtSelector") {
0013     return new EcalGenEvtSelector(pset);
0014   } else if (filterType == "EcalGenEvtSelectorFrag") {
0015     return new EcalGenEvtSelectorFrag(pset);
0016   } else if (filterType == "MultiCandGenEvtSelector") {
0017     return new MultiCandGenEvtSelector(pset);
0018   } else if (filterType == "PartonHadronDecayGenEvtSelector") {
0019     return new PartonHadronDecayGenEvtSelector(pset);
0020   } else if (filterType == "HadronDecayGenEvtSelector") {
0021     return new HadronDecayGenEvtSelector(pset);
0022   }
0023 
0024   std::cout << "Skimmer not recognized. Fail!" << std::endl;
0025   return nullptr;
0026 }