BOSS 7.0.1
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
 
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

Member Function Documentation

◆ getCellid() [1/2]

int MdcCalRecHit::getCellid ( ) const
inline

Definition at line 24 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

24{ return m_cellid; }

◆ getCellid() [2/2]

int MdcCalRecHit::getCellid ( ) const
inline

Definition at line 24 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

24{ return m_cellid; }

◆ getChisqAdd() [1/2]

double MdcCalRecHit::getChisqAdd ( ) const
inline

Definition at line 45 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

45{ return m_chisqadd; }

Referenced by setRecHit().

◆ getChisqAdd() [2/2]

double MdcCalRecHit::getChisqAdd ( ) const
inline

Definition at line 45 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

45{ return m_chisqadd; }

◆ getCpa() [1/2]

double MdcCalRecHit::getCpa ( ) const
inline

Definition at line 51 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

51{ return m_Cpa; }

◆ getCpa() [2/2]

double MdcCalRecHit::getCpa ( ) const
inline

Definition at line 51 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

51{ return m_Cpa; }

◆ getDmeas() [1/2]

double MdcCalRecHit::getDmeas ( ) const
inline

Definition at line 31 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

31{ return m_dmeas; }

Referenced by MdcCalib::fillHist().

◆ getDmeas() [2/2]

double MdcCalRecHit::getDmeas ( ) const
inline

Definition at line 31 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

31{ return m_dmeas; }

◆ getDocaExc() [1/2]

double MdcCalRecHit::getDocaExc ( ) const
inline

Definition at line 29 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

29{ return m_docaExc; }

◆ getDocaExc() [2/2]

double MdcCalRecHit::getDocaExc ( ) const
inline

Definition at line 29 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

29{ return m_docaExc; }

◆ getDocaInc() [1/2]

double MdcCalRecHit::getDocaInc ( ) const
inline

Definition at line 28 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

28{ return m_docaInc; }

◆ getDocaInc() [2/2]

double MdcCalRecHit::getDocaInc ( ) const
inline

Definition at line 28 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

28{ return m_docaInc; }

◆ getDr() [1/2]

double MdcCalRecHit::getDr ( ) const
inline

Definition at line 49 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

49{ return m_Dr; }

◆ getDr() [2/2]

double MdcCalRecHit::getDr ( ) const
inline

Definition at line 49 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

49{ return m_Dr; }

◆ getDz() [1/2]

double MdcCalRecHit::getDz ( ) const
inline

Definition at line 52 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

52{ return m_Dz; }

◆ getDz() [2/2]

double MdcCalRecHit::getDz ( ) const
inline

Definition at line 52 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

52{ return m_Dz; }

◆ getEntra() [1/2]

double MdcCalRecHit::getEntra ( ) const
inline

Definition at line 44 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

44{ return m_entra; }

Referenced by setKalHit(), and setRecHit().

◆ getEntra() [2/2]

double MdcCalRecHit::getEntra ( ) const
inline

Definition at line 44 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

44{ return m_entra; }

◆ getErrDmeas() [1/2]

double MdcCalRecHit::getErrDmeas ( ) const
inline

Definition at line 32 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

32{ return m_errdmeas; }

◆ getErrDmeas() [2/2]

double MdcCalRecHit::getErrDmeas ( ) const
inline

Definition at line 32 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

32{ return m_errdmeas; }

◆ getFi0() [1/2]

double MdcCalRecHit::getFi0 ( ) const
inline

Definition at line 50 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

50{ return m_Fi0; }

◆ getFi0() [2/2]

double MdcCalRecHit::getFi0 ( ) const
inline

Definition at line 50 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

50{ return m_Fi0; }

◆ getHelix() [1/2]

HepVector MdcCalRecHit::getHelix ( ) const
inline

Definition at line 54 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

54{ return m_helix; }

◆ getHelix() [2/2]

HepVector MdcCalRecHit::getHelix ( ) const
inline

Definition at line 54 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

54{ return m_helix; }

◆ getHelixErr() [1/2]

HepSymMatrix MdcCalRecHit::getHelixErr ( ) const
inline

Definition at line 55 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

55{ return m_helixerr; }

◆ getHelixErr() [2/2]

HepSymMatrix MdcCalRecHit::getHelixErr ( ) const
inline

Definition at line 55 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

55{ return m_helixerr; }

◆ getLayid() [1/2]

int MdcCalRecHit::getLayid ( ) const
inline

Definition at line 23 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

23{ return m_layid; }

◆ getLayid() [2/2]

int MdcCalRecHit::getLayid ( ) const
inline

Definition at line 23 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

23{ return m_layid; }

◆ getLR() [1/2]

int MdcCalRecHit::getLR ( ) const
inline

Definition at line 25 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

25{ return m_lr; }

◆ getLR() [2/2]

int MdcCalRecHit::getLR ( ) const
inline

Definition at line 25 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

25{ return m_lr; }

◆ getQhit() [1/2]

double MdcCalRecHit::getQhit ( ) const
inline

Definition at line 42 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

42{ return m_qhit; }

◆ getQhit() [2/2]

double MdcCalRecHit::getQhit ( ) const
inline

Definition at line 42 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

42{ return m_qhit; }

◆ getResiExc() [1/2]

double MdcCalRecHit::getResiExc ( ) const
inline

Definition at line 37 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

37{ return m_resiExc; }

◆ getResiExc() [2/2]

double MdcCalRecHit::getResiExc ( ) const
inline

Definition at line 37 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

37{ return m_resiExc; }

◆ getResiExcLR() [1/2]

double MdcCalRecHit::getResiExcLR ( ) const
inline

Definition at line 38 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

38{ return m_resilrExc; }

◆ getResiExcLR() [2/2]

double MdcCalRecHit::getResiExcLR ( ) const
inline

Definition at line 38 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

38{ return m_resilrExc; }

◆ getResiInc() [1/2]

double MdcCalRecHit::getResiInc ( ) const
inline

Definition at line 34 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

34{ return m_resiInc; }

◆ getResiInc() [2/2]

double MdcCalRecHit::getResiInc ( ) const
inline

Definition at line 34 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

34{ return m_resiInc; }

◆ getResiIncLR() [1/2]

double MdcCalRecHit::getResiIncLR ( ) const
inline

Definition at line 35 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

35{ return m_resilrInc; }

◆ getResiIncLR() [2/2]

double MdcCalRecHit::getResiIncLR ( ) const
inline

Definition at line 35 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

35{ return m_resilrInc; }

◆ getStat() [1/2]

int MdcCalRecHit::getStat ( ) const
inline

Definition at line 26 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

26{ return m_stat; }

Referenced by setRecHit().

◆ getStat() [2/2]

int MdcCalRecHit::getStat ( ) const
inline

Definition at line 26 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

26{ return m_stat; }

◆ getTanl() [1/2]

double MdcCalRecHit::getTanl ( ) const
inline

Definition at line 53 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

53{ return m_Tanl; }

◆ getTanl() [2/2]

double MdcCalRecHit::getTanl ( ) const
inline

Definition at line 53 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

53{ return m_Tanl; }

◆ getTdc() [1/2]

double MdcCalRecHit::getTdc ( ) const
inline

Definition at line 40 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

40{ return m_tdc; }

Referenced by setKalHit(), and setRecHit().

◆ getTdc() [2/2]

double MdcCalRecHit::getTdc ( ) const
inline

Definition at line 40 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

40{ return m_tdc; }

◆ getTdrift() [1/2]

double MdcCalRecHit::getTdrift ( ) const
inline

Definition at line 41 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

41{ return m_tdrift; }

◆ getTdrift() [2/2]

double MdcCalRecHit::getTdrift ( ) const
inline

Definition at line 41 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

41{ return m_tdrift; }

◆ getTof() [1/2]

double MdcCalRecHit::getTof ( ) const
inline

Definition at line 47 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

47{ return m_tof; }

Referenced by setKalHit().

◆ getTof() [2/2]

double MdcCalRecHit::getTof ( ) const
inline

Definition at line 47 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

47{ return m_tof; }

◆ getZhit() [1/2]

double MdcCalRecHit::getZhit ( ) const
inline

Definition at line 43 of file InstallArea/include/MdcCalibAlg/MdcCalibAlg/MdcCalRecHit.h.

43{ return m_zhit; }

Referenced by setKalHit(), and setRecHit().

◆ getZhit() [2/2]

double MdcCalRecHit::getZhit ( ) const
inline

Definition at line 43 of file Mdc/MdcCalibAlg/MdcCalibAlg-00-09-02/MdcCalibAlg/MdcCalRecHit.h.

43{ return m_zhit; }

◆ setKalHit() [1/2]

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

Definition at line 75 of file MdcCalRecHit.cxx.

75 {
76 IMessageSvc *msgSvc;
77 Gaudi::svcLocator()->service("MessageSvc", msgSvc);
78 MsgStream log(msgSvc, "MdcCalRecHit");
79 log << MSG::DEBUG << "MdcCalRecHit::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 if(1 == m_lr){
95 m_docaInc *= -1.0;
96 m_docaExc *= -1.0;
97 }
98
99 m_dmeas = (*it_hit) -> getDD();
100 m_errdmeas = 0.013;
101
102 m_tdc = (*it_hit) -> getTdc();
103 m_tdrift = (*it_hit) -> getDT();
104
105 m_qhit = (*it_hit) -> getAdc();
106 m_zhit = (*it_hit) -> getZhit();
107 m_entra = (*it_hit) -> getEntra();
108 m_chisqadd = 0.0;
109 m_tof = (*it_hit) -> getTof();
110
111 m_Dr = (*it_hit) -> getDrExcl();
112 m_Fi0 = (*it_hit) -> getFi0Excl();
113 m_Cpa = (*it_hit) -> getCpaExcl();
114 m_Dz = (*it_hit) -> getDzExcl();
115 m_Tanl = (*it_hit) -> getTanlExcl();
116 m_helix = (*it_hit)->getHelixExcl();
117 m_helixerr = (*it_hit)->getErrorExcl();
118
119 // the following is for cm to mm
120 m_docaInc *= m_df;
121 m_docaExc *= m_df;
122 m_dmeas *= m_df;
123 m_errdmeas *= m_df;
124 m_zhit *= m_df;
125 m_qhit *= m_qf;
126
127 m_resiInc = fabs(m_dmeas) - fabs(m_docaInc);
128 if( 0 == m_lr ) m_resilrInc = -1.0 * m_resiInc;
129 else m_resilrInc = m_resiInc;
130
131 m_resiExc = fabs(m_dmeas) - fabs(m_docaExc);
132 if( 0 == m_lr ) m_resilrExc = -1.0 * m_resiExc;
133 else m_resilrExc = m_resiExc;
134
135}
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 MdcCalRecTrk::setKalTrk().

◆ setKalHit() [2/2]

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

◆ setRecHit() [1/2]

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()" << 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_tdc = (*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;
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}
bool getDoca(double trkpar[], double wpos[], double &doca, double whitPos[], double zini)
Definition: Alignment.cxx:366

Referenced by MdcCalRecTrk::setRecTrk().

◆ setRecHit() [2/2]

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

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