CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions
HiGenEvtSelectorFactory Class Reference

#include <HiGenEvtSelectorFactory.h>

Public Member Functions

 HiGenEvtSelectorFactory ()
 
virtual ~HiGenEvtSelectorFactory ()
 

Static Public Member Functions

static BaseHiGenEvtSelectorget (std::string, const edm::ParameterSet &)
 

Detailed Description

Definition at line 5 of file HiGenEvtSelectorFactory.h.

Constructor & Destructor Documentation

◆ HiGenEvtSelectorFactory()

HiGenEvtSelectorFactory::HiGenEvtSelectorFactory ( )
inline

Definition at line 7 of file HiGenEvtSelectorFactory.h.

7 { ; }

◆ ~HiGenEvtSelectorFactory()

virtual HiGenEvtSelectorFactory::~HiGenEvtSelectorFactory ( )
inlinevirtual

Definition at line 8 of file HiGenEvtSelectorFactory.h.

8 { ; }

Member Function Documentation

◆ get()

BaseHiGenEvtSelector * HiGenEvtSelectorFactory::get ( std::string  filterType,
const edm::ParameterSet pset 
)
static

Definition at line 9 of file HiGenEvtSelectorFactory.cc.

References gather_cfg::cout, bJpsiMuMuTrigSettings_cff::filterType, and muonDTDigis_cfi::pset.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), gen::PyquenHadronizer::PyquenHadronizer(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().

9  {
10  if (filterType == "None") {
11  return new BaseHiGenEvtSelector(pset);
12  } else if (filterType == "EcalGenEvtSelector") {
13  return new EcalGenEvtSelector(pset);
14  } else if (filterType == "EcalGenEvtSelectorFrag") {
15  return new EcalGenEvtSelectorFrag(pset);
16  } else if (filterType == "MultiCandGenEvtSelector") {
17  return new MultiCandGenEvtSelector(pset);
18  } else if (filterType == "PartonHadronDecayGenEvtSelector") {
20  } else if (filterType == "HadronDecayGenEvtSelector") {
21  return new HadronDecayGenEvtSelector(pset);
22  }
23 
24  std::cout << "Skimmer not recognized. Fail!" << std::endl;
25  return nullptr;
26 }