CMS 3D CMS Logo

ConversionVertexFinder Class Reference

Author:
N.
More...

#include <RecoEgamma/EgammaPhotonAlgos/interface/ConversionVertexFinder.h>

List of all members.

Public Member Functions

 ConversionVertexFinder ()
TransientVertex run (std::vector< reco::TransientTrack > pair)
 ~ConversionVertexFinder ()


Detailed Description

Author:
N.

Marinelli - Univ. of Notre Dame

Version:

Definition at line 26 of file ConversionVertexFinder.h.


Constructor & Destructor Documentation

ConversionVertexFinder::ConversionVertexFinder (  ) 

Definition at line 21 of file ConversionVertexFinder.cc.

References LogDebug.

00021                                                { 
00022   
00023   LogDebug("ConversionVertexFinder") << "ConversionVertexFinder CTOR  " <<  "\n";  
00024 
00025 }

ConversionVertexFinder::~ConversionVertexFinder (  ) 

Definition at line 27 of file ConversionVertexFinder.cc.

References LogDebug.

00027                                                 {
00028 
00029   LogDebug("ConversionVertexFinder") << "ConversionVertexFinder DTOR " <<  "\n";  
00030     
00031 }


Member Function Documentation

TransientVertex ConversionVertexFinder::run ( std::vector< reco::TransientTrack pair  ) 

Definition at line 34 of file ConversionVertexFinder.cc.

References e, cms::Exception::explainSelf(), LogDebug, and KalmanVertexFitter::vertex().

Referenced by ConvertedPhotonProducer::buildCollections(), and SoftConversionProducer::produce().

00034                                                                                 {
00035   LogDebug("ConversionVertexFinder") << "ConversionVertexFinder run pair size " << pair.size() <<  "\n";  
00036   
00037   //for ( std::vector<reco::TransientTrack>::const_iterator iTk=pair.begin(); iTk!=pair.end(); ++iTk) {
00038   // LogDebug("ConversionVertexFinder") << "  ConversionVertexFinder  Tracks in the pair  charge " << iTk->charge() << " Num of RecHits " << iTk->recHitsSize() << " inner momentum " << iTk->track().innerMomentum() << "\n";  
00039   //}
00040 
00041 
00042   reco::Vertex theVertex;  
00043   KalmanVertexFitter fitter(true);
00044   TransientVertex transientVtx;
00045 
00046   const string metname =  "ConversionVertexFinder| ConversionVertexFinder";
00047   try{
00048 
00049     transientVtx = fitter.vertex(pair); 
00050 
00051   }  catch ( cms::Exception& e ) {
00052 
00053 
00054     edm::LogWarning(metname) << "cms::Exception caught in ConversionVertexFinder::run\n"
00055                              << e.explainSelf();
00056     
00057   }
00058   
00059 
00060   return transientVtx;
00061 
00062     
00063     
00064 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:49 2009 for CMSSW by  doxygen 1.5.4