ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/VertexFitInterface/src/HisInterface.cc
Revision: 1.2
Committed: Thu Sep 4 13:55:29 2008 UTC (16 years, 8 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.1: +5 -1 lines
Log Message:
Introduce mithep namespace whereever apropriate.

File Contents

# User Rev Content
1 loizides 1.2 // $Id:$
2    
3     #include <TMath.h>
4 paus 1.1 #include "MitEdm/DataFormats/interface/Types.h"
5     #include "MitEdm/VertexFitInterface/interface/TrackParameters.h"
6     #include "MitEdm/VertexFitInterface/interface/HisInterface.h"
7    
8     using namespace reco;
9     using namespace mitedm;
10 loizides 1.2 using namespace mithep;
11 paus 1.1
12 loizides 1.2 //--------------------------------------------------------------------------------------------------
13 paus 1.1 HisInterface::HisInterface(const Track *trk1, const Track *trk2, const double bField) :
14     his_(0)
15     {
16     // Create the CMS track parameters
17     TrackParameters cmsTrk1(trk1);
18     TrackParameters cmsTrk2(trk2);
19     // Extract from them the MVF track parameters
20     TrackParameters hisTrk1 = cmsTrk1.mvfTrack();
21     TrackParameters hisTrk2 = cmsTrk2.mvfTrack();
22     // Initialize the corresponding momentum vector
23     const TVector3 momTrk1(trk1->px(),trk1->py(),trk1->pz());
24     const TVector3 momTrk2(trk2->px(),trk2->py(),trk2->pz());
25     // Finally setup the intersection object
26     his_ = new HelixIntersector(hisTrk1.pars(),&momTrk1, hisTrk2.pars(),&momTrk2);
27     }
28    
29     HisInterface::~HisInterface()
30     {
31     delete his_;
32     }