142 using namespace reco;
155 std::vector<VTX> recoVertices;
159 std::map<unsigned int, Measurement1D> cachedIP;
160 for(
typename std::vector<VTX>::const_iterator sv = secondaryVertices.begin();
161 sv != secondaryVertices.end(); ++sv) {
163 GlobalPoint ssv(sv->position().x(),sv->position().y(),sv->position().z());
167 std::vector<reco::TransientTrack> selTracks;
168 for(
unsigned int itrack = 0; itrack <
selectedTracks.size(); itrack++){
174 if(cachedIP.find(itrack)!=cachedIP.end()) {
175 ipv=cachedIP[itrack];
178 cachedIP[itrack]=ipvp.second;
184 if(! tsos.isValid())
continue;
186 GlobalError refPointErr = tsos.cartesianError().position();
201 selTracks.push_back(tt);
210 selTracks.push_back(tt);
226 std::cout <<
"t : " << itrack <<
" ref " << ref.key() <<
" w: " << w
237 std::cout <<
" . t : " << itrack <<
" ref " << ref.key()<<
" w: " << w
239 <<
" pvip: " << ipv.
significance() <<
" " << ipv.
value() <<
" dr: " << dR << std::endl;
245 if(selTracks.size() >= 2)
248 singleFitVertex = theAdaptiveFitter.vertex(selTracks,ssv);
249 if(singleFitVertex.
isValid()) { recoVertices.push_back(VTX(singleFitVertex));
252 const VTX & extVertex = recoVertices.back();
reco::Vertex::Point convertPos(const GlobalPoint &p)
void setBeamSpot(const reco::BeamSpot &beamSpot)
reco::Vertex::Error convertError(const GlobalError &ge)
bool trackFilterArbitrator(const reco::TransientTrack &track) const
const MagneticField * field() const
const Point & position() const
position
double residualX(int position) const
double deltaR2(const T1 &t1, const T2 &t2)
double deltaR(double eta1, double eta2, double phi1, double phi2)
double significance() const
const Track & track() const
float trackWeight(const reco::Vertex &sv, const reco::TransientTrack &track)
double residualY(int position) const
TrajectoryStateOnSurface impactPointState() const
Global3DVector GlobalVector