CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TotemRPRecHit.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TOTEM offline software.
4 * Authors:
5 * Hubert Niewiadomski
6 * Jan Kašpar (jan.kaspar@gmail.com)
7 *
8 ****************************************************************************/
9 
10 #ifndef DataFormats_CTPPSReco_TotemRPRecHit
11 #define DataFormats_CTPPSReco_TotemRPRecHit
12 
19 {
20  public:
21  TotemRPRecHit(double position=0, double sigma=0) : position_(position), sigma_(sigma)
22  {
23  }
24 
25  inline double getPosition() const { return position_; }
26  inline void setPosition(double position) { position_=position; }
27 
28  inline double getSigma() const { return sigma_; }
29  inline void setSigma(double sigma) { sigma_=sigma; }
30 
31  private:
33  double position_;
34 
36  double sigma_;
37 };
38 
39 //----------------------------------------------------------------------------------------------------
40 
41 inline bool operator< (const TotemRPRecHit &l, const TotemRPRecHit &r)
42 {
43  if (l.getPosition() < r.getPosition())
44  return true;
45  if (l.getPosition() > r.getPosition())
46  return false;
47 
48  if (l.getSigma() < r.getSigma())
49  return true;
50 
51  return false;
52 }
53 
54 #endif
double getSigma() const
Definition: TotemRPRecHit.h:28
double sigma_
position uncertainty, in mm
Definition: TotemRPRecHit.h:36
TotemRPRecHit(double position=0, double sigma=0)
Definition: TotemRPRecHit.h:21
void setSigma(double sigma)
Definition: TotemRPRecHit.h:29
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
double position_
position of the hit in mm, wrt detector center (see RPTopology::GetHitPositionInReadoutDirection) ...
Definition: TotemRPRecHit.h:33
Reconstructed hit in TOTEM RP.
Definition: TotemRPRecHit.h:18
void setPosition(double position)
Definition: TotemRPRecHit.h:26
static int position[264][3]
Definition: ReadPGInfo.cc:509
double getPosition() const
Definition: TotemRPRecHit.h:25