ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/VertexFitInterface/src/HisInterface.cc
Revision: 1.3
Committed: Sat Sep 27 05:48:26 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008, Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a, Mit_006, Mit_005, Mit_004
Changes since 1.2: +6 -2 lines
Log Message:
Cleanup

File Contents

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