Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:34

0001 #ifndef TrackingTools_PatternTools_trackingParametersAtClosestApproachToBeamSpot_h
0002 #define TrackingTools_PatternTools_trackingParametersAtClosestApproachToBeamSpot_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     TrackingTools/PatternTools
0006 // Class  :     trackingParametersAtClosestApproachToBeamSpot
0007 //
0008 /**\function trackingParametersAtClosestApproachToBeamSpot "TrackingTools/PatternTools/interface/trackingParametersAtClosestApproachToBeamSpot.h"
0009 
0010  Description: Given the momentum and origin of a particle, calculate the tracking parameters at its closest approach to the beam spot
0011 
0012  Usage:
0013    Value of first in return value is true if parameters were properly calculated.
0014 */
0015 //
0016 // Original Author:  Christopher Jones
0017 //         Created:  Fri, 02 Jan 2015 19:32:32 GMT
0018 //
0019 
0020 // system include files
0021 
0022 // user include files
0023 #include "MagneticField/Engine/interface/MagneticField.h"
0024 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
0025 #include "DataFormats/GeometryVector/interface/Basic3DVector.h"
0026 #include "DataFormats/TrackReco/interface/TrackBase.h"
0027 
0028 // forward declarations
0029 
0030 namespace reco {
0031   std::pair<bool, reco::TrackBase::ParameterVector> trackingParametersAtClosestApproachToBeamSpot(
0032       const Basic3DVector<double>& vertex,
0033       const Basic3DVector<double>& momAtVtx,
0034       float charge,
0035       const MagneticField& magField,
0036       const BeamSpot& bs);
0037 }
0038 
0039 #endif