|
|
Go to the documentation of this file.
27 wtAverage_(wtAverage),
28 divmeth_(zOffset, ntrkMin, useError,
zSeparation, wtAverage),
48 for (
unsigned int i = 0;
i <
trks.size();
i++) {
49 double vz =
trks[
i]->vz();
63 std::vector<PVCluster>
in;
64 std::pair<std::vector<PVCluster>, std::vector<const reco::Track *> >
out;
68 std::map<const reco::Track *, reco::TrackRef> mapa;
70 for (
unsigned int i = 0;
i <
trks.size(); ++
i) {
71 double vz =
trks[
i]->vz();
74 std::vector<const reco::Track *>
temp;
83 edm::LogInfo(
"DivisiveVertexFinder") <<
"size of input vector of clusters " <<
in.size();
84 for (
unsigned int i = 0;
i <
in.size(); ++
i) {
86 <<
"Track " <<
i <<
" addr " <<
in[
i].tracks()[0] <<
" dz " <<
in[
i].tracks()[0]->dz(
bs) <<
" +- "
87 <<
in[
i].tracks()[0]->dzError() <<
" prodID " << mapa[
in[
i].tracks()[0]].id() <<
" dz from RefTrack "
88 << mapa[
in[
i].tracks()[0]]->dz(
bs) <<
" +- " << mapa[
in[
i].tracks()[0]]->dzError();
97 edm::LogInfo(
"DivisiveVertexFinder") <<
" DivisiveClusterizer1D found " <<
out.first.size() <<
" vertexes";
100 for (
unsigned int iv = 0;
iv <
out.first.size(); ++
iv) {
102 err(2, 2) =
out.first[
iv].position().error() *
out.first[
iv].position().error();
107 <<
" DivisiveClusterizer1D vertex " <<
iv <<
" has " <<
out.first[
iv].tracks().size()
108 <<
" tracks and a position of " <<
v.z() <<
" +- " <<
std::sqrt(
v.covariance(2, 2));
109 for (
unsigned int itrk = 0; itrk <
out.first[
iv].tracks().size(); ++itrk) {
constexpr bool isNotFinite(T x)
math::Error< dimension >::type Error
covariance error matrix (3x3)
bool findVertexesAlt(const reco::TrackRefVector &trks, reco::VertexCollection &vertexes, const math::XYZPoint &bs)
std::vector< Vertex > VertexCollection
collection of Vertex objects
Log< level::Info, false > LogInfo
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)
Cluster1D< reco::Track > PVCluster
void setBeamSpot(const math::XYZPoint &bs)
PVClusterComparer * pvComparer_
XYZPointD XYZPoint
point in space with cartesian internal representation
math::XYZPoint Point
point in the space
bool findVertexes(const reco::TrackRefVector &trks, reco::VertexCollection &vertexes)
Run the divisive algorithm and return a vector of vertexes for the input track collection.
pixeltemp::DivisiveClusterizer1D< reco::Track > divmeth_
We use Wolfgang's templated class that implements the actual divisive method.