File indexing completed on 2024-04-06 12:04:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "DataFormats/CTPPSReco/interface/CTPPSDiamondLocalTrack.h"
0012
0013
0014
0015 CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack() : ts_index_(0), mh_(0) {}
0016
0017 CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack(
0018 const math::XYZPoint& pos0, const math::XYZPoint& pos0_sigma, float t, float t_sigma, int oot_idx, int mult_hits)
0019 : CTPPSTimingLocalTrack(pos0, pos0_sigma, t, t_sigma), ts_index_(oot_idx), mh_(mult_hits) {}
0020
0021
0022
0023 bool CTPPSDiamondLocalTrack::containsHit(const CTPPSDiamondRecHit& recHit, float tolerance) const {
0024 if (!CTPPSTimingLocalTrack::containsHit(recHit, tolerance))
0025 return false;
0026
0027 return (recHit.ootIndex() == ts_index_ ||
0028 recHit.ootIndex() == ts_index_ + CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING);
0029 }