CMS 3D CMS Logo

CTPPSDiamondLocalTrack.cc
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of CTPPS offline software.
4  * Authors:
5  * Laurent Forthomme (laurent.forthomme@cern.ch)
6  * Nicola Minafra (nicola.minafra@cern.ch)
7  * Mateusz Szpyrka (mateusz.szpyrka@cern.ch)
8  *
9  ****************************************************************************/
10 
12 
13 //--- constructors
14 
16 
18  const math::XYZPoint& pos0, const math::XYZPoint& pos0_sigma, float t, float t_sigma, int oot_idx, int mult_hits)
19  : CTPPSTimingLocalTrack(pos0, pos0_sigma, t, t_sigma), ts_index_(oot_idx), mh_(mult_hits) {}
20 
21 //--- interface member functions
22 
24  if (!CTPPSTimingLocalTrack::containsHit(recHit, tolerance))
25  return false;
26 
27  return (recHit.ootIndex() == ts_index_ ||
29 }
int ts_index_
Time slice index.
Reconstructed hit in diamond detectors.
const double tolerance
int mh_
Multiple hits counter.
bool containsHit(const CTPPSDiamondRecHit &recHit, float tolerance=0.1) const
bool containsHit(const CTPPSTimingRecHit &recHit, float tolerance=0.1f, CheckDimension check=CheckDimension::all) const
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
static constexpr int TIMESLICE_WITHOUT_LEADING