CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions

HiGenEvtSelectorFactory Class Reference

#include <HiGenEvtSelectorFactory.h>

List of all members.

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.

{;}
virtual HiGenEvtSelectorFactory::~HiGenEvtSelectorFactory ( ) [inline, virtual]

Definition at line 8 of file HiGenEvtSelectorFactory.h.

{;}

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.

                                                                                                   {
   if(filterType == "None"){
     return new BaseHiGenEvtSelector(pset);
   }else if(filterType == "EcalGenEvtSelector"){
     return new EcalGenEvtSelector(pset);
   }else if(filterType == "EcalGenEvtSelectorFrag"){
     return new EcalGenEvtSelectorFrag(pset);
   }else if(filterType == "MultiCandGenEvtSelector"){
     return new MultiCandGenEvtSelector(pset);
   }else if(filterType == "PartonHadronDecayGenEvtSelector"){
     return new PartonHadronDecayGenEvtSelector(pset);
   }else if(filterType == "HadronDecayGenEvtSelector"){
     return new HadronDecayGenEvtSelector(pset);
   }

   std::cout<<"Skimmer not recognized. Fail!"<<std::endl;
   return NULL;
}