Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:01

0001 /****************************************************************************
0002  *
0003  * This is a part of CTPPS offline software.
0004  * Authors:
0005  *   Laurent Forthomme (laurent.forthomme@cern.ch)
0006  *   Nicola Minafra (nicola.minafra@cern.ch)
0007  *   Mateusz Szpyrka (mateusz.szpyrka@cern.ch)
0008  *
0009  ****************************************************************************/
0010 
0011 #include "DataFormats/CTPPSReco/interface/CTPPSDiamondLocalTrack.h"
0012 
0013 //--- constructors
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 //--- interface member functions
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 }