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 #ifndef DataFormats_CTPPSReco_CTPPSTimingLocalTrack
12 #define DataFormats_CTPPSReco_CTPPSTimingLocalTrack
13 
16 
17 //----------------------------------------------------------------------------------------------------
18 
20 public:
22  CTPPSTimingLocalTrack(const math::XYZPoint& pos0, const math::XYZPoint& pos0_sigma, float t, float t_sigma);
23 
24  enum class CheckDimension { x, y, all };
26  float tolerance = 0.1f,
28 
29  //--- spatial get'ters
30 
31  inline float x0() const { return pos0_.x(); }
32  inline float x0Sigma() const { return pos0_sigma_.x(); }
33 
34  inline float y0() const { return pos0_.y(); }
35  inline float y0Sigma() const { return pos0_sigma_.y(); }
36 
37  inline float z0() const { return pos0_.z(); }
38  inline float z0Sigma() const { return pos0_sigma_.z(); }
39 
40  inline int numberOfHits() const { return num_hits_; }
41  inline int numberOfPlanes() const { return num_planes_; }
42 
43  //--- spatial set'ters
44 
45  inline void setPosition(const math::XYZPoint& pos0) { pos0_ = pos0; }
46  inline void setPositionSigma(const math::XYZPoint& pos0_sigma) { pos0_sigma_ = pos0_sigma; }
47 
48  inline void setNumOfHits(int num_hits) { num_hits_ = num_hits; }
49  inline void setNumOfPlanes(int num_planes) { num_planes_ = num_planes; }
50 
51  //--- validity related members
52 
53  inline bool isValid() const { return valid_; }
54  inline void setValid(bool valid) { valid_ = valid; }
55 
56  //--- temporal get'ters
57 
58  inline float time() const { return t_; }
59  inline float timeSigma() const { return t_sigma_; }
60 
61  //--- temporal set'ters
62 
63  inline void setTime(float t) { t_ = t; }
64  inline void setTimeSigma(float t_sigma) { t_sigma_ = t_sigma; }
65 
66 private:
67  //--- spatial information
68 
73 
75  int num_hits_;
76 
79 
81  bool valid_;
82 
83  //--- timing information
84  float t_;
85  float t_sigma_;
86 };
87 
89 bool operator<(const CTPPSTimingLocalTrack& lhs, const CTPPSTimingLocalTrack& rhs);
90 
91 #endif
CTPPSTimingLocalTrack::y0Sigma
float y0Sigma() const
Definition: CTPPSTimingLocalTrack.h:41
CTPPSTimingLocalTrack::setValid
void setValid(bool valid)
Definition: CTPPSTimingLocalTrack.h:60
CTPPSTimingLocalTrack::setPosition
void setPosition(const math::XYZPoint &pos0)
Definition: CTPPSTimingLocalTrack.h:51
CTPPSTimingLocalTrack::containsHit
bool containsHit(const CTPPSTimingRecHit &recHit, float tolerance=0.1f, CheckDimension check=CheckDimension::all) const
Definition: CTPPSTimingLocalTrack.cc:27
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
CTPPSTimingLocalTrack::timeSigma
float timeSigma() const
Definition: CTPPSTimingLocalTrack.h:65
CTPPSTimingLocalTrack
Definition: CTPPSTimingLocalTrack.h:18
CTPPSTimingLocalTrack::setNumOfHits
void setNumOfHits(int num_hits)
Definition: CTPPSTimingLocalTrack.h:54
CTPPSTimingLocalTrack::CTPPSTimingLocalTrack
CTPPSTimingLocalTrack()
Definition: CTPPSTimingLocalTrack.cc:17
CTPPSTimingLocalTrack::z0Sigma
float z0Sigma() const
Definition: CTPPSTimingLocalTrack.h:44
CTPPSTimingLocalTrack::setTimeSigma
void setTimeSigma(float t_sigma)
Definition: CTPPSTimingLocalTrack.h:70
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
CTPPSTimingLocalTrack::setTime
void setTime(float t)
Definition: CTPPSTimingLocalTrack.h:69
CTPPSTimingLocalTrack::pos0_sigma_
math::XYZPoint pos0_sigma_
error on the initial track position
Definition: CTPPSTimingLocalTrack.h:78
CTPPSTimingLocalTrack::z0
float z0() const
Definition: CTPPSTimingLocalTrack.h:43
RPCNoise_example.check
check
Definition: RPCNoise_example.py:71
CTPPSTimingLocalTrack::time
float time() const
Definition: CTPPSTimingLocalTrack.h:64
CTPPSTimingLocalTrack::num_hits_
int num_hits_
number of hits participating in the track
Definition: CTPPSTimingLocalTrack.h:81
CTPPSTimingLocalTrack::CheckDimension
CheckDimension
Definition: CTPPSTimingLocalTrack.h:30
CTPPSTimingLocalTrack::pos0_
math::XYZPoint pos0_
initial track position
Definition: CTPPSTimingLocalTrack.h:76
CTPPSTimingRecHit.h
CTPPSTimingLocalTrack::CheckDimension::all
CTPPSTimingLocalTrack::setPositionSigma
void setPositionSigma(const math::XYZPoint &pos0_sigma)
Definition: CTPPSTimingLocalTrack.h:52
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
CTPPSTimingLocalTrack::numberOfPlanes
int numberOfPlanes() const
Definition: CTPPSTimingLocalTrack.h:47
CTPPSTimingLocalTrack::num_planes_
int num_planes_
number of planes participating in the track
Definition: CTPPSTimingLocalTrack.h:84
tolerance
const double tolerance
Definition: HGCalGeomParameters.cc:26
CTPPSTimingLocalTrack::t_sigma_
float t_sigma_
Definition: CTPPSTimingLocalTrack.h:91
CTPPSTimingLocalTrack::t_
float t_
Definition: CTPPSTimingLocalTrack.h:90
operator<
bool operator<(const CTPPSTimingLocalTrack &lhs, const CTPPSTimingLocalTrack &rhs)
Comparison operator.
Definition: CTPPSTimingLocalTrack.cc:51
CTPPSTimingLocalTrack::isValid
bool isValid() const
Definition: CTPPSTimingLocalTrack.h:59
CTPPSTimingLocalTrack::x0
float x0() const
Definition: CTPPSTimingLocalTrack.h:37
CTPPSTimingLocalTrack::y0
float y0() const
Definition: CTPPSTimingLocalTrack.h:40
CTPPSTimingLocalTrack::setNumOfPlanes
void setNumOfPlanes(int num_planes)
Definition: CTPPSTimingLocalTrack.h:55
Point3D.h
CTPPSTimingLocalTrack::CheckDimension::y
RunInfoPI::valid
Definition: RunInfoPayloadInspectoHelper.h:16
CTPPSTimingLocalTrack::CheckDimension::x
CTPPSTimingRecHit
Reconstructed hit in timing detectors.
Definition: CTPPSTimingRecHit.h:13
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
CTPPSTimingLocalTrack::x0Sigma
float x0Sigma() const
Definition: CTPPSTimingLocalTrack.h:38
CTPPSTimingLocalTrack::valid_
bool valid_
fit valid?
Definition: CTPPSTimingLocalTrack.h:87
CTPPSTimingLocalTrack::numberOfHits
int numberOfHits() const
Definition: CTPPSTimingLocalTrack.h:46