CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 private:
41  void getVertexVariables (const reco::Vertex&, unsigned int&, double&) const;
43  bool acceptTrack (const reco::Track&) const;
44 
45 private:
47  unsigned int multiplicityCut_;
48  float ptSumCut_;
49  float trackEtaCut_;
50  float chi2Cut_;
51  float dr2Cut_;
52  float dzCut_;
53 };
54 
55 #endif
56 
float dr2Cut_
cut on the normalized chi2
reco::VertexCollection collection
unsigned int multiplicityCut_
container of selected vertices
tuple cfg
Definition: looper.py:259
container::const_iterator const_iterator
const_iterator end() const
needed for use with an ObjectSelector
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
bool acceptTrack(const reco::Track &) const
track selection
void getVertexVariables(const reco::Vertex &, unsigned int &, double &) const
access to track-related vertex quantities (multiplicity and pt-sum)
PATPrimaryVertexSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
std::vector< const reco::Vertex * > container
void select(const edm::Handle< collection > &, const edm::Event &, const edm::EventSetup &)
needed for use with an ObjectSelector
float dzCut_
cut on the (squared) transverse position
float trackEtaCut_
minimum pt sum o (selected) associated tracks
size_t size() const
needed for use with an ObjectSelector
float ptSumCut_
minimum multiplicity of (selected) associated tracks
float chi2Cut_
eta cut used for the track selection
bool operator()(const reco::Vertex *, const reco::Vertex *) const
operator used in sorting the selected vertices
const_iterator begin() const
needed for use with an ObjectSelector