CMS 3D CMS Logo

CTPPSTimingLocalTrack.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 
12 #ifndef DataFormats_CTPPSReco_CTPPSTimingLocalTrack
13 #define DataFormats_CTPPSReco_CTPPSTimingLocalTrack
14 
17 
18 //----------------------------------------------------------------------------------------------------
19 
21 {
22  public:
24  CTPPSTimingLocalTrack( const math::XYZPoint& pos0, const math::XYZPoint& pos0_sigma,
25  float t, float t_sigma );
26 
27  enum class CheckDimension { x, y, all };
29 
30  //--- spatial get'ters
31 
32  inline float getX0() const { return pos0_.x(); }
33  inline float getX0Sigma() const { return pos0_sigma_.x(); }
34 
35  inline float getY0() const { return pos0_.y(); }
36  inline float getY0Sigma() const { return pos0_sigma_.y(); }
37 
38  inline float getZ0() const { return pos0_.z(); }
39  inline float getZ0Sigma() const { return pos0_sigma_.z(); }
40 
41  inline int getNumOfHits() const { return num_hits_; }
42  inline int getNumOfPlanes() const { return num_planes_; }
43 
44  //--- spatial set'ters
45 
46  inline void setPosition( const math::XYZPoint& pos0 ) { pos0_ = pos0; }
47  inline void setPositionSigma( const math::XYZPoint& pos0_sigma ) { pos0_sigma_ = pos0_sigma; }
48 
49  inline void setNumOfHits( int num_hits ) { num_hits_ = num_hits; }
50  inline void setNumOfPlanes( int num_planes ) { num_planes_ = num_planes; }
51 
52  //--- validity related members
53 
54  inline bool isValid() const { return valid_; }
55  inline void setValid( bool valid ) { valid_ = valid; }
56 
57  //--- temporal get'ters
58 
59  inline float getT() const { return t_; }
60  inline float getTSigma() const { return t_sigma_; }
61 
62  //--- temporal set'ters
63 
64  inline void setT( float t ) { t_ = t; }
65  inline void setTSigma( float t_sigma ) { t_sigma_ = t_sigma; }
66 
67  private:
68  //--- spatial information
69 
74 
76  int num_hits_;
77 
80 
82  bool valid_;
83 
84  //--- timing information
85  float t_;
86  float t_sigma_;
87 };
88 
90 bool operator<( const CTPPSTimingLocalTrack& lhs, const CTPPSTimingLocalTrack& rhs );
91 
92 #endif
93 
Reconstructed hit in timing detectors.
const double tolerance
void setNumOfPlanes(int num_planes)
math::XYZPoint pos0_sigma_
error on the initial track position
void setTSigma(float t_sigma)
bool containsHit(const CTPPSTimingRecHit &recHit, float tolerance=0.1f, CheckDimension check=CheckDimension::all) const
double f[11][100]
bool operator<(const CTPPSTimingLocalTrack &lhs, const CTPPSTimingLocalTrack &rhs)
Comparison operator.
int num_hits_
number of hits participating in the track
void setPosition(const math::XYZPoint &pos0)
math::XYZPoint pos0_
initial track position
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
int num_planes_
number of planes participating in the track
void setNumOfHits(int num_hits)
def check(config)
Definition: trackerTree.py:14
void setPositionSigma(const math::XYZPoint &pos0_sigma)