CMS 3D CMS Logo

TotemRPUVPattern.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TOTEM offline software.
4 * Authors:
5 * Jan Kašpar (jan.kaspar@gmail.com)
6 *
7 ****************************************************************************/
8 
9 #ifndef DataFormats_CTPPSReco_TotemRPUVPattern
10 #define DataFormats_CTPPSReco_TotemRPUVPattern
11 
15 
24 public:
26 
28 
31 
32  double a() const { return a_; }
33  void setA(double a) { a_ = a; }
34 
35  double b() const { return b_; }
36  void setB(double b) { b_ = b; }
37 
38  double w() const { return w_; }
39  void setW(double w) { w_ = w; }
40 
41  bool fittable() const { return fittable_; }
43 
45 
46  const edm::DetSetVector<TotemRPRecHit> &hits() const { return hits_; }
47 
48  friend bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r);
49 
50 private:
52  double a_;
53  double b_;
54  double w_;
55  bool fittable_;
56 
58 };
59 
60 //----------------------------------------------------------------------------------------------------
61 
62 extern bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r);
63 
64 #endif
friend bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r)
void addHit(edm::det_id_type detId, const TotemRPRecHit &hit)
void setProjection(ProjectionType type)
void setA(double a)
void push_back(const T &t)
Definition: DetSet.h:66
void setW(double w)
const edm::DetSetVector< TotemRPRecHit > & hits() const
bool fittable() const
double w_
weight
void setFittable(bool fittable)
reference find_or_insert(det_id_type id)
Definition: DetSetVector.h:234
double a() const
void setB(double b)
Reconstructed hit in TOTEM RP.
Definition: TotemRPRecHit.h:18
bool fittable_
whether this pattern is worth including in track fits
double b() const
double w() const
A linear pattern in U or V projection. The intercept b is taken at the middle of a RP: (geometry->Get...
bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r)
edm::DetSetVector< TotemRPRecHit > hits_
hits associated with the pattern
uint32_t det_id_type
Definition: DetSet.h:20
ProjectionType projection_
projection
double b_
intercept in mm
double a_
slope in rad
ProjectionType projection() const