CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
pf2pat::GenericPFJetSelectorDefinition Struct Reference

#include <GenericPFJetSelectorDefinition.h>

Inheritance diagram for pf2pat::GenericPFJetSelectorDefinition:
pf2pat::PFJetSelectorDefinition

Public Member Functions

 GenericPFJetSelectorDefinition (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
void select (const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
 
- Public Member Functions inherited from pf2pat::PFJetSelectorDefinition
const_iterator begin () const
 
const_iterator end () const
 
 PFJetSelectorDefinition ()
 
const containerselected () const
 
size_t size () const
 

Private Attributes

StringCutObjectSelector
< reco::PFJet
selector_
 

Additional Inherited Members

- Public Types inherited from pf2pat::PFJetSelectorDefinition
typedef reco::PFJetCollection collection
 
typedef
boost::transform_iterator
< Pointer,
container::const_iterator > 
const_iterator
 
typedef std::vector< reco::PFJetcontainer
 
typedef edm::Handle< collectionHandleToCollection
 
- Protected Attributes inherited from pf2pat::PFJetSelectorDefinition
container selected_
 

Detailed Description

Definition at line 13 of file GenericPFJetSelectorDefinition.h.

Constructor & Destructor Documentation

pf2pat::GenericPFJetSelectorDefinition::GenericPFJetSelectorDefinition ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 15 of file GenericPFJetSelectorDefinition.h.

15  :
16  selector_( cfg.getParameter< std::string >( "cut" ) ) { }
T getParameter(std::string const &) const
StringCutObjectSelector< reco::PFJet > selector_

Member Function Documentation

void pf2pat::GenericPFJetSelectorDefinition::select ( const HandleToCollection hc,
const edm::Event e,
const edm::EventSetup s 
)
inline

Definition at line 18 of file GenericPFJetSelectorDefinition.h.

References relval_steps::key, pf2pat::PFJetSelectorDefinition::selected_, and selector_.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().

20  {
21  selected_.clear();
22 
23  unsigned key=0;
24  for( collection::const_iterator pfc = hc->begin();
25  pfc != hc->end(); ++pfc, ++key) {
26 
27  if( selector_(*pfc) ) {
28  selected_.push_back( reco::PFJet(*pfc) );
29  reco::CandidatePtr ptrToMother( hc, key );
30  selected_.back().setSourceCandidatePtr( ptrToMother );
31 
32  }
33  }
34  }
Jets made from PFObjects.
Definition: PFJet.h:21
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
StringCutObjectSelector< reco::PFJet > selector_
susybsm::HSCParticleCollection hc
Definition: classes.h:25

Member Data Documentation

StringCutObjectSelector<reco::PFJet> pf2pat::GenericPFJetSelectorDefinition::selector_
private

Definition at line 37 of file GenericPFJetSelectorDefinition.h.

Referenced by select().