CMS 3D CMS Logo

PFJetSelectorDefinition.h
Go to the documentation of this file.
1 #ifndef CommonTools_ParticleFlow_PFJetSelectorDefinition
2 #define CommonTools_ParticleFlow_PFJetSelectorDefinition
3 
6 #include "boost/iterator/transform_iterator.hpp"
7 
8 namespace pf2pat {
9 
11  public:
14  typedef std::vector<reco::PFJet> container;
15 
16  struct Pointer {
17  const reco::PFJet* operator()(const reco::PFJet& c) const { return &c; }
18  };
19 
20  typedef boost::transform_iterator<Pointer, container::const_iterator> const_iterator;
21 
23 
24  const_iterator begin() const { return const_iterator(selected_.begin()); }
25 
26  const_iterator end() const { return const_iterator(selected_.end()); }
27 
28  size_t size() const { return selected_.size(); }
29 
30  const container& selected() const { return selected_; }
31 
32  protected:
34  };
35 } // namespace pf2pat
36 
37 #endif
pf2pat::PFJetSelectorDefinition::begin
const_iterator begin() const
Definition: PFJetSelectorDefinition.h:24
pf2pat
Definition: ElectronIDPFCandidateSelectorDefinition.h:22
pf2pat::PFJetSelectorDefinition::selected
const container & selected() const
Definition: PFJetSelectorDefinition.h:30
PFJet.h
PFJetCollection.h
pf2pat::PFJetSelectorDefinition::container
std::vector< reco::PFJet > container
Definition: PFJetSelectorDefinition.h:14
pf2pat::PFJetSelectorDefinition::const_iterator
boost::transform_iterator< Pointer, container::const_iterator > const_iterator
Definition: PFJetSelectorDefinition.h:20
pf2pat::PFJetSelectorDefinition::HandleToCollection
edm::Handle< collection > HandleToCollection
Definition: PFJetSelectorDefinition.h:13
edm::Handle
Definition: AssociativeIterator.h:50
pf2pat::PFJetSelectorDefinition::selected_
container selected_
Definition: PFJetSelectorDefinition.h:33
pf2pat::PFJetSelectorDefinition::collection
reco::PFJetCollection collection
Definition: PFJetSelectorDefinition.h:12
pf2pat::PFJetSelectorDefinition
Definition: PFJetSelectorDefinition.h:10
pf2pat::PFJetSelectorDefinition::size
size_t size() const
Definition: PFJetSelectorDefinition.h:28
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
pf2pat::PFJetSelectorDefinition::Pointer::operator()
const reco::PFJet * operator()(const reco::PFJet &c) const
Definition: PFJetSelectorDefinition.h:17
reco::PFJetCollection
std::vector< PFJet > PFJetCollection
collection of PFJet objects
Definition: PFJetCollection.h:14
reco::PFJet
Jets made from PFObjects.
Definition: PFJet.h:20
pf2pat::PFJetSelectorDefinition::Pointer
Definition: PFJetSelectorDefinition.h:16
pf2pat::PFJetSelectorDefinition::PFJetSelectorDefinition
PFJetSelectorDefinition()
Definition: PFJetSelectorDefinition.h:22
pf2pat::PFJetSelectorDefinition::end
const_iterator end() const
Definition: PFJetSelectorDefinition.h:26