CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
CgemAliRecTrk Class Reference

#include <CgemAliRecTrk.h>

Public Member Functions

 ~CgemAliRecTrk ()
 
void setRecTrk (RecMdcTrackCol::iterator it_trk)
 
void setKalTrk (RecMdcKalTrackCol::iterator it_trk)
 
int getStat () const
 
double getDr () const
 
double getPhi0 () const
 
double getKappa () const
 
double getDz () const
 
double getTanLamda () const
 
HepVector getHelix () const
 
HepSymMatrix getHelixErr () const
 
double getPt () const
 
double getP () const
 
double getChisq () const
 
int getNHits () const
 
const int getNcluster () const
 
CgemAliRecHitgetRecHit (int index) const
 

Detailed Description

Definition at line 21 of file CgemAliRecTrk.h.

Constructor & Destructor Documentation

◆ ~CgemAliRecTrk()

CgemAliRecTrk::~CgemAliRecTrk ( )

Definition at line 13 of file CgemAliRecTrk.cxx.

13 {
14 unsigned int i;
15 for(i=0; i<m_rechit.size(); i++){
16 delete m_rechit[i];
17 }
18 m_rechit.clear();
19}

Member Function Documentation

◆ getChisq()

double CgemAliRecTrk::getChisq ( ) const
inline

Definition at line 37 of file CgemAliRecTrk.h.

37{ return m_chisq; }

◆ getDr()

double CgemAliRecTrk::getDr ( ) const
inline

Definition at line 28 of file CgemAliRecTrk.h.

28{ return m_dr; }

◆ getDz()

double CgemAliRecTrk::getDz ( ) const
inline

Definition at line 31 of file CgemAliRecTrk.h.

31{ return m_dz; }

◆ getHelix()

HepVector CgemAliRecTrk::getHelix ( ) const
inline

Definition at line 33 of file CgemAliRecTrk.h.

33{ return m_helix; }

Referenced by CgemMilleAlign::fillHist().

◆ getHelixErr()

HepSymMatrix CgemAliRecTrk::getHelixErr ( ) const
inline

Definition at line 34 of file CgemAliRecTrk.h.

34{ return m_helixerr; }

Referenced by CgemMilleAlign::fillHist().

◆ getKappa()

double CgemAliRecTrk::getKappa ( ) const
inline

Definition at line 30 of file CgemAliRecTrk.h.

30{ return m_kappa; }

◆ getNcluster()

const int CgemAliRecTrk::getNcluster ( ) const
inline

Definition at line 39 of file CgemAliRecTrk.h.

39{ return m_ncluster; }

Referenced by setRecTrk().

◆ getNHits()

int CgemAliRecTrk::getNHits ( ) const
inline

Definition at line 38 of file CgemAliRecTrk.h.

38{ return m_nhits; }

◆ getP()

double CgemAliRecTrk::getP ( ) const
inline

Definition at line 36 of file CgemAliRecTrk.h.

36{ return m_p; }

◆ getPhi0()

double CgemAliRecTrk::getPhi0 ( ) const
inline

Definition at line 29 of file CgemAliRecTrk.h.

29{ return m_phi0; }

◆ getPt()

double CgemAliRecTrk::getPt ( ) const
inline

Definition at line 35 of file CgemAliRecTrk.h.

35{ return m_pt; }

◆ getRecHit()

CgemAliRecHit * CgemAliRecTrk::getRecHit ( int index) const
inline

Definition at line 40 of file CgemAliRecTrk.h.

40{ return m_rechit[index]; }

◆ getStat()

int CgemAliRecTrk::getStat ( ) const
inline

Definition at line 27 of file CgemAliRecTrk.h.

27{return m_stat;}

Referenced by CgemMilleAlign::fillHist().

◆ getTanLamda()

double CgemAliRecTrk::getTanLamda ( ) const
inline

Definition at line 32 of file CgemAliRecTrk.h.

32{ return m_tanl; }

◆ setKalTrk()

void CgemAliRecTrk::setKalTrk ( RecMdcKalTrackCol::iterator it_trk)

Definition at line 59 of file CgemAliRecTrk.cxx.

59 {
60 IMessageSvc *msgSvc;
61 Gaudi::svcLocator()->service("MessageSvc", msgSvc);
62 MsgStream log(msgSvc, "CgemAliRecTrk");
63 log << MSG::DEBUG << "CgemAliRecTrk::setKalTrk()" << endreq;
64
65 int m_pid = 1;
69
70 m_stat = 0;
71 m_dr = (*it_trk)->dr();
72 m_phi0 = (*it_trk)->fi0();
73 m_kappa = (*it_trk)->kappa();
74 m_dz = (*it_trk)->dz();
75 m_tanl = (*it_trk)->tanl();
76 m_chisq = (*it_trk)->chi2();
77
78 m_dr *= 10.0; // cm -> mm
79 m_dz *= 10.0; // cm -> mm
80
81 m_pt = 1.0 / fabs(m_kappa);
82 m_p = m_pt * sqrt( m_tanl * m_tanl + 1.0 );
83
84 HelixSegRefVec gothelixsegs = (*it_trk)->getVecHelixSegs();
85 HelixSegRefVec::iterator it_hit = gothelixsegs.begin();
86 CgemAliRecHit* rechit;
87
88 int k = 0;
89 m_nhits = k;
90}
SmartRefVector< RecMdcKalHelixSeg > HelixSegRefVec
IMessageSvc * msgSvc()
static void setPidType(PidType pidType)

◆ setRecTrk()

void CgemAliRecTrk::setRecTrk ( RecMdcTrackCol::iterator it_trk)

Definition at line 21 of file CgemAliRecTrk.cxx.

21 {
22 IMessageSvc *msgSvc;
23 Gaudi::svcLocator()->service("MessageSvc", msgSvc);
24 MsgStream log(msgSvc, "CgemAliRecTrk");
25 log << MSG::DEBUG << "CgemAliRecTrk::setRecTrk()" << endreq;
26
27 m_stat = (*it_trk) -> stat();
28 m_dr = (*it_trk) -> helix(0);
29 m_phi0 = (*it_trk) -> helix(1);
30 m_kappa = (*it_trk) -> helix(2);
31 m_dz = (*it_trk) -> helix(3);
32 m_tanl = (*it_trk) -> helix(4);
33
34 m_helix = (*it_trk)->helix();
35 m_helixerr = (*it_trk)->err();
36
37 m_chisq = (*it_trk) -> chi2();
38 m_nhits = (*it_trk) -> getNhits();
39 m_ncluster = (*it_trk) -> getNcluster();
40
41 if(m_kappa < 0.01){ // no magnetic field
42 m_pt = 0.0;
43 m_p = 0.0;
44 }else{
45 m_pt = 1.0 / m_kappa;
46 m_p = m_pt * sqrt(m_tanl * m_tanl + 1.0);
47 }
48
49 ClusterRefVec gothits = (*it_trk) -> getVecClusters();
50 ClusterRefVec::iterator it_hit = gothits.begin();
51 CgemAliRecHit* rechit;
52 for(; it_hit != gothits.end(); it_hit++){
53 rechit = new CgemAliRecHit();
54 rechit->setRecHit(it_hit);
55 m_rechit.push_back(rechit);
56 }
57}
SmartRefVector< RecCgemCluster > ClusterRefVec
Definition RecMdcTrack.h:28
void setRecHit(ClusterRefVec::iterator it_hit)
const int getNcluster() const

The documentation for this class was generated from the following files: