CMS 3D CMS Logo

CTPPSDiamondLocalTrack.h
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 
11 #ifndef DataFormats_CTPPSReco_CTPPSDiamondLocalTrack
12 #define DataFormats_CTPPSReco_CTPPSDiamondLocalTrack
13 
17 
18 //----------------------------------------------------------------------------------------------------
19 
21 {
22  public:
24  CTPPSDiamondLocalTrack( const math::XYZPoint& pos0, const math::XYZPoint& pos0_sigma,
25  float t, float t_sigma, int oot_idx, int mult_hits );
26 
27  bool containsHit( const CTPPSDiamondRecHit& recHit, float tolerance = 0.1 ) const;
28 
29  //--- temporal set'ters
30 
31  inline void setOOTIndex( int i ) { ts_index_ = i; }
32  inline int getOOTIndex() const { return ts_index_; }
33 
34  inline void setMultipleHits( int i ) { mh_ = i; }
35  inline int getMultipleHits() const { return mh_; }
36 
37  private:
39  int ts_index_;
41  int mh_;
42 };
43 
44 #endif
45 
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
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12