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 
23 class TotemRPUVPattern {
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 
44  void addHit(edm::det_id_type detId, const TotemRPRecHit &hit) { hits_.find_or_insert(detId).push_back(hit); }
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
TotemRPUVPattern::projV
Definition: TotemRPUVPattern.h:34
TotemRPRecHit
Reconstructed hit in TOTEM RP.
Definition: TotemRPRecHit.h:17
edm::DetSet::push_back
void push_back(const T &t)
Definition: DetSet.h:66
edm::DetSetVector< TotemRPRecHit >
funct::false
false
Definition: Factorize.h:34
TotemRPUVPattern::w_
double w_
weight
Definition: TotemRPUVPattern.h:58
TotemRPUVPattern::a
double a() const
Definition: TotemRPUVPattern.h:36
TotemRPUVPattern::b_
double b_
intercept in mm
Definition: TotemRPUVPattern.h:57
TotemRPUVPattern::setB
void setB(double b)
Definition: TotemRPUVPattern.h:40
TotemRPUVPattern::a_
double a_
slope in rad
Definition: TotemRPUVPattern.h:56
TotemRPUVPattern::projection
ProjectionType projection() const
Definition: TotemRPUVPattern.h:33
TotemRPRecHit.h
TotemRPUVPattern::b
double b() const
Definition: TotemRPUVPattern.h:39
TotemRPUVPattern::setW
void setW(double w)
Definition: TotemRPUVPattern.h:43
TotemRPUVPattern::setProjection
void setProjection(ProjectionType type)
Definition: TotemRPUVPattern.h:34
TotemRPUVPattern::fittable
bool fittable() const
Definition: TotemRPUVPattern.h:45
TotemRPUVPattern::projection_
ProjectionType projection_
projection
Definition: TotemRPUVPattern.h:55
TotemRPUVPattern
A linear pattern in U or V projection. The intercept b is taken at the middle of a RP: (geometry->Get...
Definition: TotemRPUVPattern.h:22
TotemRPUVPattern::projInvalid
Definition: TotemRPUVPattern.h:34
TotemRPUVPattern::TotemRPUVPattern
TotemRPUVPattern()
Definition: TotemRPUVPattern.h:31
operator<
bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r)
Definition: TotemRPUVPattern.cc:12
TotemRPUVPattern::operator<
friend bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r)
Definition: TotemRPUVPattern.cc:12
TotemRPUVPattern::addHit
void addHit(edm::det_id_type detId, const TotemRPRecHit &hit)
Definition: TotemRPUVPattern.h:48
DetSetVector.h
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
alignCSCRings.r
r
Definition: alignCSCRings.py:93
type
type
Definition: HCALResponse.h:21
TotemRPUVPattern::hits
const edm::DetSetVector< TotemRPRecHit > & hits() const
Definition: TotemRPUVPattern.h:50
TotemRPUVPattern::ProjectionType
ProjectionType
Definition: TotemRPUVPattern.h:29
TotemRPUVPattern::fittable_
bool fittable_
whether this pattern is worth including in track fits
Definition: TotemRPUVPattern.h:59
TotemRPUVPattern::setA
void setA(double a)
Definition: TotemRPUVPattern.h:37
TotemRPUVPattern::projU
Definition: TotemRPUVPattern.h:34
edm::DetSetVector::find_or_insert
reference find_or_insert(det_id_type id)
Definition: DetSetVector.h:234
DetSet.h
edm::det_id_type
uint32_t det_id_type
Definition: DetSet.h:20
hit
Definition: SiStripHitEffFromCalibTree.cc:88
TotemRPUVPattern::w
double w() const
Definition: TotemRPUVPattern.h:42
TotemRPUVPattern::setFittable
void setFittable(bool fittable)
Definition: TotemRPUVPattern.h:46
TotemRPUVPattern::hits_
edm::DetSetVector< TotemRPRecHit > hits_
hits associated with the pattern
Definition: TotemRPUVPattern.h:61