CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
PFDisplacedVertexFinder.cc File Reference
#include "RecoParticleFlow/PFTracking/interface/PFDisplacedVertexFinder.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "RecoVertex/VertexPrimitives/interface/TransientVertex.h"
#include "RecoVertex/AdaptiveVertexFit/interface/AdaptiveVertexFitter.h"
#include "RecoVertex/KalmanVertexFit/interface/KalmanVertexSmoother.h"
#include "PhysicsTools/RecoAlgos/plugins/KalmanVertexFitter.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/CommonDetUnit/interface/TrackingGeometry.h"
#include "MagneticField/Engine/interface/MagneticField.h"
#include "TMath.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const PFDisplacedVertexFinder &a)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const PFDisplacedVertexFinder a 
)

Definition at line 796 of file PFDisplacedVertexFinder.cc.

References PFDisplacedVertexFinder::displacedVertices(), PFDisplacedVertexHelper::Dump(), PFDisplacedVertexFinder::helper_, i, dbtoconf::out, PFDisplacedVertexFinder::ratio_, PFDisplacedVertexFinder::sigmacut_, and PFDisplacedVertexFinder::t_ini_.

796  {
797 
798  if(! out) return out;
799  out << setprecision(3) << setw(5) << endl;
800  out << "" << endl;
801  out << " ====================================== " << endl;
802  out << " ====== Displaced Vertex Finder ======= " << endl;
803  out << " ====================================== " << endl;
804  out << " " << endl;
805 
806  a.helper_.Dump();
807  out << "" << endl
808  << " Adaptive Vertex Fitter parameters are :"<< endl
809  << " sigmacut = " << a.sigmacut_ << " T_ini = "
810  << a.t_ini_ << " ratio = " << a.ratio_ << endl << endl;
811 
812  const std::auto_ptr< reco::PFDisplacedVertexCollection >& displacedVertices_
813  = a.displacedVertices();
814 
815 
816  if(!displacedVertices_.get() ) {
817  out<<"displacedVertex already transfered"<<endl;
818  }
819  else{
820 
821  out<<"Number of displacedVertices found : "<< displacedVertices_->size()<<endl<<endl;
822 
823  int i = -1;
824 
825  for(PFDisplacedVertexFinder::IDV idv = displacedVertices_->begin();
826  idv != displacedVertices_->end(); idv++){
827  i++;
828  out << i << " "; idv->Dump(); out << "" << endl;
829  }
830  }
831 
832  return out;
833 }
int i
Definition: DBlmapReader.cc:9
void Dump(std::ostream &out=std::cout) const
const std::auto_ptr< reco::PFDisplacedVertexCollection > & displacedVertices() const
tuple out
Definition: dbtoconf.py:99
double sigmacut_
Adaptive Vertex Fitter parameters.
reco::PFDisplacedVertexCollection::iterator IDV
PFDisplacedVertexHelper helper_