BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcAliRecHit Class Reference

#include <MdcAliRecHit.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 getRawTime () 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
 

Detailed Description

Definition at line 15 of file MdcAliRecHit.h.

Member Function Documentation

◆ getCellid()

int MdcAliRecHit::getCellid ( ) const
inline

Definition at line 21 of file MdcAliRecHit.h.

21{ return m_cellid; }

Referenced by ResiAlign::fillHist().

◆ getChisqAdd()

double MdcAliRecHit::getChisqAdd ( ) const
inline

Definition at line 41 of file MdcAliRecHit.h.

41{ return m_chisqadd; }

Referenced by setRecHit().

◆ getCpa()

double MdcAliRecHit::getCpa ( ) const
inline

Definition at line 47 of file MdcAliRecHit.h.

47{ return m_Cpa; }

◆ getDmeas()

double MdcAliRecHit::getDmeas ( ) const
inline

Definition at line 27 of file MdcAliRecHit.h.

27{ return m_dmeas; }

◆ getDocaExc()

double MdcAliRecHit::getDocaExc ( ) const
inline

Definition at line 25 of file MdcAliRecHit.h.

25{ return m_docaExc; }

◆ getDocaInc()

double MdcAliRecHit::getDocaInc ( ) const
inline

Definition at line 24 of file MdcAliRecHit.h.

24{ return m_docaInc; }

Referenced by MilleAlign::fillHist().

◆ getDr()

double MdcAliRecHit::getDr ( ) const
inline

Definition at line 45 of file MdcAliRecHit.h.

45{ return m_Dr; }

◆ getDz()

double MdcAliRecHit::getDz ( ) const
inline

Definition at line 48 of file MdcAliRecHit.h.

48{ return m_Dz; }

◆ getEntra()

double MdcAliRecHit::getEntra ( ) const
inline

Definition at line 40 of file MdcAliRecHit.h.

40{ return m_entra; }

Referenced by setKalHit(), and setRecHit().

◆ getErrDmeas()

double MdcAliRecHit::getErrDmeas ( ) const
inline

Definition at line 28 of file MdcAliRecHit.h.

28{ return m_errdmeas; }

◆ getFi0()

double MdcAliRecHit::getFi0 ( ) const
inline

Definition at line 46 of file MdcAliRecHit.h.

46{ return m_Fi0; }

◆ getLayid()

int MdcAliRecHit::getLayid ( ) const
inline

Definition at line 20 of file MdcAliRecHit.h.

20{ return m_layid; }

Referenced by ResiAlign::fillHist().

◆ getLR()

int MdcAliRecHit::getLR ( ) const
inline

Definition at line 22 of file MdcAliRecHit.h.

22{ return m_lr; }

Referenced by MilleAlign::fillHist(), and ResiAlign::fillHist().

◆ getQhit()

double MdcAliRecHit::getQhit ( ) const
inline

Definition at line 38 of file MdcAliRecHit.h.

38{ return m_qhit; }

◆ getRawTime()

double MdcAliRecHit::getRawTime ( ) const
inline

Definition at line 36 of file MdcAliRecHit.h.

36{ return m_rawtime; } /* excluding TOF */

◆ getResiExc()

double MdcAliRecHit::getResiExc ( ) const
inline

Definition at line 33 of file MdcAliRecHit.h.

33{ return m_resiExc; }

◆ getResiExcLR()

double MdcAliRecHit::getResiExcLR ( ) const
inline

Definition at line 34 of file MdcAliRecHit.h.

34{ return m_resilrExc; }

Referenced by ResiAlign::fillHist().

◆ getResiInc()

double MdcAliRecHit::getResiInc ( ) const
inline

Definition at line 30 of file MdcAliRecHit.h.

30{ return m_resiInc; }

◆ getResiIncLR()

double MdcAliRecHit::getResiIncLR ( ) const
inline

Definition at line 31 of file MdcAliRecHit.h.

31{ return m_resilrInc; }

Referenced by ResiAlign::fillHist().

◆ getStat()

int MdcAliRecHit::getStat ( ) const
inline

Definition at line 23 of file MdcAliRecHit.h.

23{ return m_stat; }

Referenced by setRecHit().

◆ getTanl()

double MdcAliRecHit::getTanl ( ) const
inline

Definition at line 49 of file MdcAliRecHit.h.

49{ return m_Tanl; }

◆ getTdrift()

double MdcAliRecHit::getTdrift ( ) const
inline

Definition at line 37 of file MdcAliRecHit.h.

37{ return m_tdrift; }

◆ getTof()

double MdcAliRecHit::getTof ( ) const
inline

Definition at line 43 of file MdcAliRecHit.h.

43{ return m_tof; }

Referenced by setKalHit().

◆ getZhit()

double MdcAliRecHit::getZhit ( ) const
inline

Definition at line 39 of file MdcAliRecHit.h.

39{ return m_zhit; }

Referenced by ResiAlign::fillHist(), setKalHit(), and setRecHit().

◆ setKalHit()

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

Definition at line 75 of file MdcAliRecHit.cxx.

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

Referenced by MdcAliRecTrk::setKalTrk().

◆ setRecHit()

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

Definition at line 16 of file MdcAliRecHit.cxx.

16 {
17 IMessageSvc *msgSvc;
18 Gaudi::svcLocator()->service("MessageSvc", msgSvc);
19 MsgStream log(msgSvc, "MdcAliRecHit");
20 log << MSG::DEBUG << "MdcAliRecHit::setRecHit()" << endreq;
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 << endreq;
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 m_dmeas = (*it_hit) -> getDriftDistLeft();
41 m_errdmeas = (*it_hit) -> getErrDriftDistLeft();
42 }else{
43 m_dmeas = (*it_hit) -> getDriftDistRight();
44 m_errdmeas = (*it_hit) -> getErrDriftDistRight();
45 }
46
47 m_rawtime = (*it_hit) -> getTdc();
48 m_tdrift = (*it_hit) -> getDriftT();
49
50 m_qhit = (*it_hit) -> getAdc();
51 m_zhit = (*it_hit) -> getZhit();
52 m_entra = (*it_hit) -> getEntra();
53 m_chisqadd = (*it_hit) -> getChisqAdd();
54
55 double flen = (*it_hit) -> getFltLen(); // cm
56 m_tof = flen / 30.0;
57
58 // the following is for cm to mm
59 m_docaInc *= m_df;
60 m_docaExc *= m_df;
61 m_dmeas *= m_df;
62 m_errdmeas *= m_df;
63 m_zhit *= m_df;
64 m_qhit *= m_qf;
65
66 m_resiInc = fabs(m_dmeas) - fabs(m_docaInc);
67 if( 0 == m_lr ) m_resilrInc = -1.0 * m_resiInc;//for recon of pat
68 else m_resilrInc = m_resiInc;
69
70 m_resiExc = fabs(m_dmeas) - fabs(m_docaExc);
71 if( 0 == m_lr ) m_resilrExc = -1.0 * m_resiExc;
72 else m_resilrExc = m_resiExc;
73}
int getStat() const
Definition: MdcAliRecHit.h:23
double getChisqAdd() const
Definition: MdcAliRecHit.h:41
bool getDoca(double trkpar[], double wpos[], double &doca, double whitPos[], double zini)
Definition: Alignment.cxx:366

Referenced by MdcAliRecTrk::setRecTrk().


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