BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcCalRecHit Class Reference

#include <MdcCalRecHit.h>

Public Member Functions

void setRecHit (HitRefVec::iterator it_hit)
void setKalHit (HelixSegRefVec::iterator it_hit)
int getLayid () const
int getCellid () const
int getLR () const
int getStat () const
double getDocaInc () const
double getDocaExc () const
double getDmeas () const
double getErrDmeas () const
double getResiInc () const
double getResiIncLR () const
double getResiExc () const
double getResiExcLR () const
double getTdc () const
double getTdrift () const
double getQhit () const
double getZhit () const
double getEntra () const
double getChisqAdd () const
double getTof () const
double getDr () const
double getFi0 () const
double getCpa () const
double getDz () const
double getTanl () const
HepVector getHelix () const
HepSymMatrix getHelixErr () const

Detailed Description

Definition at line 17 of file MdcCalRecHit.h.

Member Function Documentation

◆ getCellid()

int MdcCalRecHit::getCellid ( ) const
inline

◆ getChisqAdd()

double MdcCalRecHit::getChisqAdd ( ) const
inline

Definition at line 44 of file MdcCalRecHit.h.

44{ return m_chisqadd; }

◆ getCpa()

double MdcCalRecHit::getCpa ( ) const
inline

Definition at line 50 of file MdcCalRecHit.h.

50{ return m_Cpa; }

◆ getDmeas()

double MdcCalRecHit::getDmeas ( ) const
inline

◆ getDocaExc()

double MdcCalRecHit::getDocaExc ( ) const
inline

Definition at line 28 of file MdcCalRecHit.h.

28{ return m_docaExc; }

Referenced by MdcCalib::fillHist(), T0MdcCalib::fillHist(), and WrMdcCalib::fillHist().

◆ getDocaInc()

double MdcCalRecHit::getDocaInc ( ) const
inline

◆ getDr()

double MdcCalRecHit::getDr ( ) const
inline

Definition at line 48 of file MdcCalRecHit.h.

48{ return m_Dr; }

◆ getDz()

double MdcCalRecHit::getDz ( ) const
inline

Definition at line 51 of file MdcCalRecHit.h.

51{ return m_Dz; }

◆ getEntra()

double MdcCalRecHit::getEntra ( ) const
inline

Definition at line 43 of file MdcCalRecHit.h.

43{ return m_entra; }

Referenced by GrXtMdcCalib::fillHist(), MdcCalib::fillHist(), XtInteMdcCalib::fillHist(), and XtMdcCalib::fillHist().

◆ getErrDmeas()

double MdcCalRecHit::getErrDmeas ( ) const
inline

Definition at line 31 of file MdcCalRecHit.h.

31{ return m_errdmeas; }

◆ getFi0()

double MdcCalRecHit::getFi0 ( ) const
inline

Definition at line 49 of file MdcCalRecHit.h.

49{ return m_Fi0; }

◆ getHelix()

HepVector MdcCalRecHit::getHelix ( ) const
inline

Definition at line 53 of file MdcCalRecHit.h.

53{ return m_helix; }

◆ getHelixErr()

HepSymMatrix MdcCalRecHit::getHelixErr ( ) const
inline

Definition at line 54 of file MdcCalRecHit.h.

54{ return m_helixerr; }

◆ getLayid()

◆ getLR()

◆ getQhit()

double MdcCalRecHit::getQhit ( ) const
inline

Definition at line 41 of file MdcCalRecHit.h.

41{ return m_qhit; }

Referenced by MdcCalib::fillHist(), PreT0MdcCalib::fillHist(), and QtMdcCalib::fillHist().

◆ getResiExc()

double MdcCalRecHit::getResiExc ( ) const
inline

Definition at line 36 of file MdcCalRecHit.h.

36{ return m_resiExc; }

Referenced by MdcCalib::fillHist(), T0MdcCalib::fillHist(), and WrMdcCalib::fillHist().

◆ getResiExcLR()

double MdcCalRecHit::getResiExcLR ( ) const
inline

Definition at line 37 of file MdcCalRecHit.h.

37{ return m_resilrExc; }

Referenced by MdcCalib::fillHist().

◆ getResiInc()

double MdcCalRecHit::getResiInc ( ) const
inline

◆ getResiIncLR()

double MdcCalRecHit::getResiIncLR ( ) const
inline

Definition at line 34 of file MdcCalRecHit.h.

34{ return m_resilrInc; }

Referenced by MdcCalib::fillHist().

◆ getStat()

int MdcCalRecHit::getStat ( ) const
inline

Definition at line 25 of file MdcCalRecHit.h.

25{ return m_stat; }

Referenced by MdcCalib::fillHist(), T0MdcCalib::fillHist(), WrMdcCalib::fillHist(), and XtMdcCalib::fillHist().

◆ getTanl()

double MdcCalRecHit::getTanl ( ) const
inline

Definition at line 52 of file MdcCalRecHit.h.

52{ return m_Tanl; }

◆ getTdc()

double MdcCalRecHit::getTdc ( ) const
inline

Definition at line 39 of file MdcCalRecHit.h.

39{ return m_tdc; }

Referenced by MdcCalib::fillHist(), and PreT0MdcCalib::fillHist().

◆ getTdrift()

double MdcCalRecHit::getTdrift ( ) const
inline

◆ getTof()

double MdcCalRecHit::getTof ( ) const
inline

Definition at line 46 of file MdcCalRecHit.h.

46{ return m_tof; }

Referenced by PreT0MdcCalib::fillHist().

◆ getZhit()

double MdcCalRecHit::getZhit ( ) const
inline

Definition at line 42 of file MdcCalRecHit.h.

42{ return m_zhit; }

Referenced by MdcCalib::fillHist(), PreT0MdcCalib::fillHist(), and Wr2dMdcCalib::fillHist().

◆ setKalHit()

void MdcCalRecHit::setKalHit ( HelixSegRefVec::iterator it_hit)

Definition at line 78 of file MdcCalRecHit.cxx.

78 {
79 IMessageSvc* msgSvc;
80 Gaudi::svcLocator()->service( "MessageSvc", msgSvc );
81 MsgStream log( msgSvc, "MdcCalRecHit" );
82 log << MSG::DEBUG << "MdcCalRecHit::setKalHit()" << endmsg;
83
84 Identifier identifier;
85 MdcID mdcid;
86
87 identifier = ( *it_hit )->getMdcId();
88 m_layid = mdcid.layer( identifier );
89 m_cellid = mdcid.wire( identifier );
90 m_stat = 1;
91
92 m_lr = ( *it_hit )->getFlagLR();
93 if ( -1 == m_lr ) m_lr = 0; // definition not same as MdcRecHit
94
95 m_docaInc = ( *it_hit )->getDocaIncl();
96 m_docaExc = ( *it_hit )->getDocaExcl();
97 if ( 1 == m_lr )
98 {
99 m_docaInc *= -1.0;
100 m_docaExc *= -1.0;
101 }
102
103 m_dmeas = ( *it_hit )->getDD();
104 m_errdmeas = 0.013;
105
106 m_tdc = ( *it_hit )->getTdc();
107 m_tdrift = ( *it_hit )->getDT();
108
109 m_qhit = ( *it_hit )->getAdc();
110 m_zhit = ( *it_hit )->getZhit();
111 m_entra = ( *it_hit )->getEntra();
112 m_chisqadd = 0.0;
113 m_tof = ( *it_hit )->getTof();
114
115 m_Dr = ( *it_hit )->getDrExcl();
116 m_Fi0 = ( *it_hit )->getFi0Excl();
117 m_Cpa = ( *it_hit )->getCpaExcl();
118 m_Dz = ( *it_hit )->getDzExcl();
119 m_Tanl = ( *it_hit )->getTanlExcl();
120 m_helix = ( *it_hit )->getHelixExcl();
121 m_helixerr = ( *it_hit )->getErrorExcl();
122
123 // the following is for cm to mm
124 m_docaInc *= m_df;
125 m_docaExc *= m_df;
126 m_dmeas *= m_df;
127 m_errdmeas *= m_df;
128 m_zhit *= m_df;
129 m_qhit *= m_qf;
130
131 m_resiInc = fabs( m_dmeas ) - fabs( m_docaInc );
132 if ( 0 == m_lr ) m_resilrInc = -1.0 * m_resiInc;
133 else m_resilrInc = m_resiInc;
134
135 m_resiExc = fabs( m_dmeas ) - fabs( m_docaExc );
136 if ( 0 == m_lr ) m_resilrExc = -1.0 * m_resiExc;
137 else m_resilrExc = m_resiExc;
138}
IMessageSvc * msgSvc()
static int layer(const Identifier &id)
Values of different levels (failure returns 0).
Definition MdcID.cxx:47
static int wire(const Identifier &id)
Definition MdcID.cxx:52

Referenced by MdcCalRecTrk::setKalTrk().

◆ setRecHit()

void MdcCalRecHit::setRecHit ( HitRefVec::iterator it_hit)

Definition at line 16 of file MdcCalRecHit.cxx.

16 {
17 IMessageSvc* msgSvc;
18 Gaudi::svcLocator()->service( "MessageSvc", msgSvc );
19 MsgStream log( msgSvc, "MdcCalRecHit" );
20 log << MSG::DEBUG << "MdcCalRecHit::setRecHit()" << endmsg;
21
22 Identifier identifier;
23 MdcID mdcid;
24
25 // log << MSG::DEBUG << "hit Id: " << (*it_hit)->getId()
26 // << " hits drift time " << (*it_hit)->getDriftT()
27 // << " hits doca " << (*it_hit)->getDoca()
28 // << endmsg;
29
30 identifier = ( *it_hit )->getMdcId();
31 m_layid = mdcid.layer( identifier );
32 m_cellid = mdcid.wire( identifier );
33 m_lr = ( *it_hit )->getFlagLR();
34 m_stat = ( *it_hit )->getStat();
35
36 m_docaInc = ( *it_hit )->getDoca();
37 m_docaExc = m_docaInc;
38
39 if ( 0 == m_lr )
40 {
41 m_dmeas = ( *it_hit )->getDriftDistLeft();
42 m_errdmeas = ( *it_hit )->getErrDriftDistLeft();
43 }
44 else
45 {
46 m_dmeas = ( *it_hit )->getDriftDistRight();
47 m_errdmeas = ( *it_hit )->getErrDriftDistRight();
48 }
49
50 m_tdc = ( *it_hit )->getTdc();
51 m_tdrift = ( *it_hit )->getDriftT();
52
53 m_qhit = ( *it_hit )->getAdc();
54 m_zhit = ( *it_hit )->getZhit();
55 m_entra = ( *it_hit )->getEntra();
56 m_chisqadd = ( *it_hit )->getChisqAdd();
57
58 double flen = ( *it_hit )->getFltLen(); // cm
59 m_tof = flen / 30.0;
60
61 // the following is for cm to mm
62 m_docaInc *= m_df;
63 m_docaExc *= m_df;
64 m_dmeas *= m_df;
65 m_errdmeas *= m_df;
66 m_zhit *= m_df;
67 m_qhit *= m_qf;
68
69 m_resiInc = fabs( m_dmeas ) - fabs( m_docaInc );
70 if ( 0 == m_lr ) m_resilrInc = -1.0 * m_resiInc;
71 else m_resilrInc = m_resiInc;
72
73 m_resiExc = fabs( m_dmeas ) - fabs( m_docaExc );
74 if ( 0 == m_lr ) m_resilrExc = -1.0 * m_resiExc;
75 else m_resilrExc = m_resiExc;
76}

Referenced by MdcCalRecTrk::setRecTrk().


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