CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_2_9/src/RecoParticleFlow/PFTracking/src/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 776 of file PFDisplacedVertexFinder.cc.

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

                                                                          {

  if(! out) return out;
  out << setprecision(3) << setw(5) << endl;
  out << "" << endl;
  out << " ====================================== " << endl;  
  out << " ====== Displaced Vertex Finder ======= " << endl;
  out << " ====================================== " << endl;  
  out << " " << endl;  

  a.helper_.Dump();
  out << "" << endl 
      << " Adaptive Vertex Fitter parameters are :"<< endl 
      << " sigmacut = " << a.sigmacut_ << " T_ini = " 
      << a.t_ini_ << " ratio = " << a.ratio_ << endl << endl; 

  const std::auto_ptr< reco::PFDisplacedVertexCollection >& displacedVertices_
    = a.displacedVertices(); 


  if(!displacedVertices_.get() ) {
    out<<"displacedVertex already transfered"<<endl;
  }
  else{

    out<<"Number of displacedVertices found : "<< displacedVertices_->size()<<endl<<endl;

    int i = -1;

    for(PFDisplacedVertexFinder::IDV idv = displacedVertices_->begin(); 
        idv != displacedVertices_->end(); idv++){
      i++;
      out << i << " "; idv->Dump(); out << "" << endl;
    }
  }
 
  return out;
}