1#include "MdcCalibAlg/MdcCalRecHit.h"
3#include "GaudiKernel/MsgStream.h"
4#include "GaudiKernel/IMessageSvc.h"
5#include "GaudiKernel/StatusCode.h"
6#include "GaudiKernel/ISvcLocator.h"
7#include "GaudiKernel/Bootstrap.h"
8#include "GaudiKernel/SmartDataPtr.h"
9#include "GaudiKernel/IDataProviderSvc.h"
13const double MdcCalRecHit::m_df = 10.0;
14const double MdcCalRecHit::m_qf = 1.0;
18 Gaudi::svcLocator()->service(
"MessageSvc",
msgSvc);
19 MsgStream log(
msgSvc,
"MdcCalRecHit");
20 log << MSG::DEBUG <<
"MdcCalRecHit::setRecHit()" << endreq;
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();
36 m_docaInc = (*it_hit) -> getDoca();
37 m_docaExc = m_docaInc;
40 m_dmeas = (*it_hit) -> getDriftDistLeft();
41 m_errdmeas = (*it_hit) -> getErrDriftDistLeft();
43 m_dmeas = (*it_hit) -> getDriftDistRight();
44 m_errdmeas = (*it_hit) -> getErrDriftDistRight();
47 m_tdc = (*it_hit) ->
getTdc();
48 m_tdrift = (*it_hit) -> getDriftT();
50 m_qhit = (*it_hit) -> getAdc();
51 m_zhit = (*it_hit) ->
getZhit();
55 double flen = (*it_hit) -> getFltLen();
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;
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;
77 Gaudi::svcLocator()->service(
"MessageSvc",
msgSvc);
78 MsgStream log(
msgSvc,
"MdcCalRecHit");
79 log << MSG::DEBUG <<
"MdcCalRecHit::setKalHit()" << endreq;
84 identifier = (*it_hit) -> getMdcId();
85 m_layid = mdcid.
layer(identifier);
86 m_cellid = mdcid.
wire(identifier);
89 m_lr = (*it_hit) -> getFlagLR();
90 if(-1 == m_lr) m_lr = 0;
92 m_docaInc = (*it_hit) -> getDocaIncl();
93 m_docaExc = (*it_hit) -> getDocaExcl();
99 m_dmeas = (*it_hit) -> getDD();
102 m_tdc = (*it_hit) ->
getTdc();
103 m_tdrift = (*it_hit) -> getDT();
105 m_qhit = (*it_hit) -> getAdc();
106 m_zhit = (*it_hit) ->
getZhit();
109 m_tof = (*it_hit) ->
getTof();
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();
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;
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;
double getChisqAdd() const
void setKalHit(HelixSegRefVec::iterator it_hit)
void setRecHit(HitRefVec::iterator it_hit)
static int layer(const Identifier &id)
Values of different levels (failure returns 0)
static int wire(const Identifier &id)