CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
25  public:
27 
29  {
30  }
31 
34 
35  double getA() const { return a; }
36  void setA(double a_) { a = a_; }
37 
38  double getB() const { return b; }
39  void setB(double b_) { b = b_; }
40 
41  double getW() const { return w; }
42  void setW(double w_) { w = w_; }
43 
44  bool getFittable() const { return fittable; }
45  void setFittable(bool f_) { fittable = f_; }
46 
48  {
49  hits.find_or_insert(detId).push_back(hit);
50  }
51 
52  const edm::DetSetVector<TotemRPRecHit>& getHits() const { return hits; }
53 
54  friend bool operator< (const TotemRPUVPattern &l, const TotemRPUVPattern &r);
55 
56  private:
58  double a;
59  double b;
60  double w;
61  bool fittable;
62 
64 };
65 
66 //----------------------------------------------------------------------------------------------------
67 
68 extern bool operator< (const TotemRPUVPattern &l, const TotemRPUVPattern &r);
69 
70 #endif
double getA() const
friend bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r)
void addHit(edm::det_id_type detId, const TotemRPRecHit &hit)
ProjectionType projection
projection
void push_back(const T &t)
Definition: DetSet.h:68
edm::DetSetVector< TotemRPRecHit > hits
hits associated with the pattern
double getB() const
double getW() const
ProjectionType getProjection() const
reference find_or_insert(det_id_type id)
Definition: DetSetVector.h:254
bool fittable
whether this pattern is worth including in track fits
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
double a
slope in rad
double b
intercept in mm
Reconstructed hit in TOTEM RP.
Definition: TotemRPRecHit.h:18
const edm::DetSetVector< TotemRPRecHit > & getHits() const
void setW(double w_)
void setB(double b_)
A linear pattern in U or V projection. The intercept b is taken at the middle of a RP: (geometry-&gt;Get...
double w
weight
uint32_t det_id_type
Definition: DetSet.h:21
void setProjection(ProjectionType p_)
bool getFittable() const
void setA(double a_)
volatile std::atomic< bool > shutdown_flag false
void setFittable(bool f_)