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  ts_index_( 0 ), mh_( 0 )
17 {}
18 
20  float t, float t_sigma, int oot_idx, int mult_hits ) :
21  CTPPSTimingLocalTrack( pos0, pos0_sigma, t, t_sigma ), ts_index_( oot_idx ), mh_( mult_hits )
22 {}
23 
24 //--- interface member functions
25 
26 bool
28 {
29  if ( !CTPPSTimingLocalTrack::containsHit( recHit, tolerance ) )
30  return false;
31 
32  return ( recHit.getOOTIndex() == ts_index_ ||
34 }
int ts_index_
Time slice index.
Reconstructed hit in diamond detectors.
const double tolerance
int getOOTIndex() const
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