CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( )
inline

Definition at line 7 of file HiGenEvtSelectorFactory.h.

7 {;}
virtual HiGenEvtSelectorFactory::~HiGenEvtSelectorFactory ( )
inlinevirtual

Definition at line 8 of file HiGenEvtSelectorFactory.h.

8 {;}

Member Function Documentation

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

Definition at line 9 of file HiGenEvtSelectorFactory.cc.

References gather_cfg::cout, and NULL.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and gen::PyquenHadronizer::PyquenHadronizer().

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"){
19  return new PartonHadronDecayGenEvtSelector(pset);
20  }else if(filterType == "HadronDecayGenEvtSelector"){
21  return new HadronDecayGenEvtSelector(pset);
22  }
23 
24  std::cout<<"Skimmer not recognized. Fail!"<<std::endl;
25  return NULL;
26 }
#define NULL
Definition: scimark2.h:8
tuple cout
Definition: gather_cfg.py:145