CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
PFDisplacedVertexFinder.cc File Reference
#include <memory>
#include "RecoParticleFlow/PFTracking/interface/PFDisplacedVertexFinder.h"
#include "RecoParticleFlow/PFTracking/interface/PFTrackAlgoTools.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 "RecoVertex/KalmanVertexFit/interface/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 680 of file PFDisplacedVertexFinder.cc.

References PFDisplacedVertexFinder::displacedVertices(), PFDisplacedVertexHelper::Dump(), PFDisplacedVertexFinder::helper_, mps_fire::i, eostools::move(), submitPVResolutionJobs::out, PFDisplacedVertexFinder::ratio_, PFDisplacedVertexFinder::sigmacut_, and PFDisplacedVertexFinder::t_ini_.

680  {
681  if (!out)
682  return out;
683  out << setprecision(3) << setw(5) << endl;
684  out << "" << endl;
685  out << " ====================================== " << endl;
686  out << " ====== Displaced Vertex Finder ======= " << endl;
687  out << " ====================================== " << endl;
688  out << " " << endl;
689 
690  a.helper_.Dump();
691  out << "" << endl
692  << " Adaptive Vertex Fitter parameters are :" << endl
693  << " sigmacut = " << a.sigmacut_ << " T_ini = " << a.t_ini_ << " ratio = " << a.ratio_ << endl
694  << endl;
695 
696  const std::unique_ptr<reco::PFDisplacedVertexCollection>& displacedVertices_ = std::move(a.displacedVertices());
697 
698  if (!displacedVertices_.get()) {
699  out << "displacedVertex already transfered" << endl;
700  } else {
701  out << "Number of displacedVertices found : " << displacedVertices_->size() << endl << endl;
702 
703  int i = -1;
704 
705  for (PFDisplacedVertexFinder::IDV idv = displacedVertices_->begin(); idv != displacedVertices_->end(); idv++) {
706  i++;
707  out << i << " ";
708  idv->Dump();
709  out << "" << endl;
710  }
711  }
712 
713  return out;
714 }
const std::unique_ptr< reco::PFDisplacedVertexCollection > & displacedVertices() const
void Dump(std::ostream &out=std::cout) const
def move
Definition: eostools.py:511
double sigmacut_
Adaptive Vertex Fitter parameters.
reco::PFDisplacedVertexCollection::iterator IDV
PFDisplacedVertexHelper helper_