CMS 3D CMS Logo

DivisiveVertexFinder.h
Go to the documentation of this file.
1 #ifndef RecoPixelVertexing_DivisiveVertexFinder_h
2 #define RecoPixelVertexing_DivisiveVertexFinder_h
3 
24 #include <vector>
29 //#include "CommonTools/Clustering1D/interface/DivisiveClusterizer1D.h"
31 
33 
35 public:
37  double track_pt_max,
38  double track_chi2_max,
39  double track_prob_min,
40  double zOffset = 5.0,
41  int ntrkMin = 5,
42  bool useError = true,
43  double zSeparation = 0.05,
44  bool wtAverage = true,
45  int verbosity = 0);
47 
49  bool findVertexes(const reco::TrackRefVector &trks, // input
50  reco::VertexCollection &vertexes); // output
51  bool findVertexesAlt(const reco::TrackRefVector &trks, // input
53  const math::XYZPoint &bs); // output
54 private:
57  int ntrkMin_;
59 
62  // DivisiveClusterizer1D< reco::Track > divmeth_;
63 
64  // How loud should I be?
65  int verbose_;
66 
68 };
69 #endif
bool findVertexesAlt(const reco::TrackRefVector &trks, reco::VertexCollection &vertexes, const math::XYZPoint &bs)
PVClusterComparer * pvComparer_
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
bool findVertexes(const reco::TrackRefVector &trks, reco::VertexCollection &vertexes)
Run the divisive algorithm and return a vector of vertexes for the input track collection.
const int verbosity
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
DivisiveVertexFinder(double track_pt_min, double track_pt_max, double track_chi2_max, double track_prob_min, double zOffset=5.0, int ntrkMin=5, bool useError=true, double zSeparation=0.05, bool wtAverage=true, int verbosity=0)
double zOffset_
Cuts on vertex formation and other options.
pixeltemp::DivisiveClusterizer1D< reco::Track > divmeth_
We use Wolfgang&#39;s templated class that implements the actual divisive method.