12 DCCit it = dcs.begin();
13 DCCit it_end = dcs.end();
14 for (; it != it_end; ++it) {
16 double rhit = it->r() < 0. ? -it->r() : it->r();
17 if (dline < 0.) dline *= -1.;
19 double res = dline - rhit;
52 unsigned int index = 0;
53 for (; it != it_end; ++it, ++
index) {
55 double rhit = it->r() < 0. ? -it->r() : it->r();
56 if (dline < 0.) dline *= -1.;
58 double res = dline - rhit;
69 matchDC(dcOnTrack,
res, dline,
true,
false, usePrecise);
70 }
else if (recoverMdtHits) {
71 matchDC(dcOnTrack,
res, dline,
false,
false, usePrecise);
73 matchDC(dcOnTrack,
res, dline,
false,
true, usePrecise);
76 matchDC(dcOnTrack,
res, dline,
false,
false, usePrecise);
91 if (dcOnTrack.
id().
ml() == 0)
119 if (residual < 0.) residual *= -1.;
123 default:
return false;
std::pair< std::vector< unsigned int >, bool > res
class representing a drift circle meaurement on segment
void state(DCOnTrackState st)
set DCOnTrack state
@ OutOfTime
delta electron
@ OutsideRoad
inside road but too far to be on track
@ CloseDC
too large drift time
void errorTrack(double error)
set track error
const MdtId & id() const
access to identifier
double dr() const
access to error drift radius
double drPrecise() const
access to precise error drift radius
const DriftState & driftState() const
access to drift state
@ LateHit
drift time compatible with drift spectrum
@ InTime
drift time too small to be compatible with drift spectrum
ResidualWithLine m_resWithLine
unsigned int m_outOfTimes
void matchDC(DCOnTrack &dc, double &res, double &dline, bool forceOnTrack=false, bool forceOffTrack=false, bool usePreciseErrors=false)
unsigned int m_showerHits
const DCOnTrackVec & match(const DCVec &dcs)
bool select(double residual, double error) const
unsigned int m_matchDifference
unsigned int m_passedTubes
DCOnTrackVec m_dcOnTrackVec
const std::string selection
Function object to check whether two Segments are sub/super sets or different.
DCOnTrackVec::const_iterator DCOnTrackCit
std::vector< bool > HitSelection
DCVec::const_iterator DCCit
std::vector< DriftCircle > DCVec
std::vector< DCOnTrack > DCOnTrackVec