#include "RecoParticleFlow/PFTracking/interface/PFDisplacedVertexCandidateFinder.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "MagneticField/Engine/interface/MagneticField.h"
Go to the source code of this file.
Functions | |
ostream & | operator<< (std::ostream &out, const PFDisplacedVertexCandidateFinder &a) |
ostream& operator<< | ( | std::ostream & | out, |
const PFDisplacedVertexCandidateFinder & | a | ||
) |
Definition at line 398 of file PFDisplacedVertexCandidateFinder.cc.
References PFDisplacedVertexCandidateFinder::dxy_, PFDisplacedVertexCandidateFinder::eventTracks_, PFDisplacedVertexCandidateFinder::nChi2_max_, dbtoconf::out, Pi, PFDisplacedVertexCandidateFinder::pt_min_, PFDisplacedVertexCandidateFinder::pt_min_prim_, PFDisplacedVertexCandidateFinder::pvtx_, mathSSE::sqrt(), and PFDisplacedVertexCandidateFinder::vertexCandidates().
{ if(! out) return out; out<<"====== Particle Flow Block Algorithm ======= "; out<<endl; out<<"number of unassociated elements : "<<a.eventTracks_.size()<<endl; out<<endl; out << " Tracks selection based on " << std::endl; out << " pvtx_ = " << a.pvtx_ << std::endl; out << " fabs(dxy) < " << a.dxy_ << " and pt < "<< a.pt_min_prim_ << std::endl; out << " nChi2 < " << a.nChi2_max_ << " and pt < "<< a.pt_min_ << std::endl; out<<endl; for(PFDisplacedVertexCandidateFinder::IEC ie = a.eventTracks_.begin(); ie != a.eventTracks_.end(); ie++) { double pt = (*ie).get()->pt(); math::XYZPoint Pi = (*ie).get()->innerPosition(); math::XYZPoint Po = (*ie).get()->outerPosition(); double innermost_radius = sqrt(Pi.x()*Pi.x() + Pi.y()*Pi.y() + Pi.z()*Pi.z()); double outermost_radius = sqrt(Po.x()*Po.x() + Po.y()*Po.y() + Po.z()*Po.z()); double innermost_rho = sqrt(Pi.x()*Pi.x() + Pi.y()*Pi.y()); double outermost_rho = sqrt(Po.x()*Po.x() + Po.y()*Po.y()); out<<"ie = " << (*ie).key() <<" pt = " << pt <<" innermost hit radius = " << innermost_radius << " rho = " << innermost_rho <<" outermost hit radius = " << outermost_radius << " rho = " << outermost_rho <<endl; } const std::auto_ptr< reco::PFDisplacedVertexCandidateCollection >& vertexCandidates = a.vertexCandidates(); if(!vertexCandidates.get() ) { out<<"vertexCandidates already transfered"<<endl; } else { out<<"number of vertexCandidates : "<<vertexCandidates->size()<<endl; out<<endl; for(PFDisplacedVertexCandidateFinder::IBC ib=vertexCandidates->begin(); ib != vertexCandidates->end(); ib++) ib->Dump(); } return out; }