CMS 3D CMS Logo

PATPrimaryVertexSelector.h
Go to the documentation of this file.
1 #ifndef PatAlgos_PATPrimaryVertexSelector_H_
2 #define PatAlgos_PATPrimaryVertexSelector_H_
3 
22 
24 public:
26  typedef std::vector<const reco::Vertex*> container;
27  typedef container::const_iterator const_iterator;
30  const_iterator begin() const { return selected_.begin(); }
32  const_iterator end() const { return selected_.end(); }
34  void select(const edm::Handle<collection>&, const edm::Event&, const edm::EventSetup&);
36  size_t size() const { return selected_.size(); }
38  bool operator()(const reco::Vertex*, const reco::Vertex*) const;
39 
40 private:
42  void getVertexVariables(const reco::Vertex&, unsigned int&, double&) const;
44  bool acceptTrack(const reco::Track&) const;
45 
46 private:
48  unsigned int multiplicityCut_;
49  float ptSumCut_;
50  float trackEtaCut_;
51  float chi2Cut_;
52  float dr2Cut_;
53  float dzCut_;
54 };
55 
56 #endif
PATPrimaryVertexSelector::collection
reco::VertexCollection collection
Definition: PATPrimaryVertexSelector.h:25
Handle.h
PATPrimaryVertexSelector::begin
const_iterator begin() const
needed for use with an ObjectSelector
Definition: PATPrimaryVertexSelector.h:30
PATPrimaryVertexSelector::select
void select(const edm::Handle< collection > &, const edm::Event &, const edm::EventSetup &)
needed for use with an ObjectSelector
Definition: PATPrimaryVertexSelector.cc:17
PATPrimaryVertexSelector::dr2Cut_
float dr2Cut_
cut on the normalized chi2
Definition: PATPrimaryVertexSelector.h:52
PATPrimaryVertexSelector::dzCut_
float dzCut_
cut on the (squared) transverse position
Definition: PATPrimaryVertexSelector.h:53
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
PATPrimaryVertexSelector::acceptTrack
bool acceptTrack(const reco::Track &) const
track selection
PATPrimaryVertexSelector::ptSumCut_
float ptSumCut_
minimum multiplicity of (selected) associated tracks
Definition: PATPrimaryVertexSelector.h:49
edm::Handle
Definition: AssociativeIterator.h:50
PATPrimaryVertexSelector::trackEtaCut_
float trackEtaCut_
minimum pt sum o (selected) associated tracks
Definition: PATPrimaryVertexSelector.h:50
PATPrimaryVertexSelector
Definition: PATPrimaryVertexSelector.h:23
PATPrimaryVertexSelector::end
const_iterator end() const
needed for use with an ObjectSelector
Definition: PATPrimaryVertexSelector.h:32
PATPrimaryVertexSelector::chi2Cut_
float chi2Cut_
eta cut used for the track selection
Definition: PATPrimaryVertexSelector.h:51
PATPrimaryVertexSelector::getVertexVariables
void getVertexVariables(const reco::Vertex &, unsigned int &, double &) const
access to track-related vertex quantities (multiplicity and pt-sum)
Definition: PATPrimaryVertexSelector.cc:46
PATPrimaryVertexSelector::multiplicityCut_
unsigned int multiplicityCut_
container of selected vertices
Definition: PATPrimaryVertexSelector.h:48
reco::Track
Definition: Track.h:27
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
PATPrimaryVertexSelector::container
std::vector< const reco::Vertex * > container
Definition: PATPrimaryVertexSelector.h:26
PATPrimaryVertexSelector::operator()
bool operator()(const reco::Vertex *, const reco::Vertex *) const
operator used in sorting the selected vertices
Definition: PATPrimaryVertexSelector.cc:36
edm::EventSetup
Definition: EventSetup.h:58
PATPrimaryVertexSelector::size
size_t size() const
needed for use with an ObjectSelector
Definition: PATPrimaryVertexSelector.h:36
looper.cfg
cfg
Definition: looper.py:296
VertexFwd.h
Vertex.h
EventSetup.h
PATPrimaryVertexSelector::const_iterator
container::const_iterator const_iterator
Definition: PATPrimaryVertexSelector.h:27
ConsumesCollector.h
edm::Event
Definition: Event.h:73
PATPrimaryVertexSelector::PATPrimaryVertexSelector
PATPrimaryVertexSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Definition: PATPrimaryVertexSelector.cc:6
PATPrimaryVertexSelector::selected_
container selected_
Definition: PATPrimaryVertexSelector.h:47
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
reco::Vertex
Definition: Vertex.h:35