CMS 3D CMS Logo

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::PFJetselector_
 

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

Constructor & Destructor Documentation

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

Definition at line 17 of file GenericPFJetSelectorDefinition.h.

17  :
18  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 20 of file GenericPFJetSelectorDefinition.h.

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

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

Member Data Documentation

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

Definition at line 39 of file GenericPFJetSelectorDefinition.h.

Referenced by select().