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)
 
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 12 of file GenericPFJetSelectorDefinition.h.

Constructor & Destructor Documentation

pf2pat::GenericPFJetSelectorDefinition::GenericPFJetSelectorDefinition ( const edm::ParameterSet cfg)
inline

Definition at line 14 of file GenericPFJetSelectorDefinition.h.

14  :
15  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 17 of file GenericPFJetSelectorDefinition.h.

References combine::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().

19  {
20  selected_.clear();
21 
22  unsigned key=0;
23  for( collection::const_iterator pfc = hc->begin();
24  pfc != hc->end(); ++pfc, ++key) {
25 
26  if( selector_(*pfc) ) {
27  selected_.push_back( reco::PFJet(*pfc) );
28  reco::CandidatePtr ptrToMother( hc, key );
29  selected_.back().setSourceCandidatePtr( ptrToMother );
30 
31  }
32  }
33  }
Jets made from PFObjects.
Definition: PFJet.h:22
StringCutObjectSelector< reco::PFJet > selector_
list key
Definition: combine.py:13

Member Data Documentation

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

Definition at line 36 of file GenericPFJetSelectorDefinition.h.

Referenced by select().