Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:52

0001 #ifndef SimPPS_RPDigiProducer_RP_SignalPoint_H
0002 #define SimPPS_RPDigiProducer_RP_SignalPoint_H
0003 
0004 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0005 #include "DataFormats/GeometryVector/interface/LocalVector.h"
0006 
0007 /**
0008  * An elementar charge point, with position, sigma from diffusion and tof.
0009  */
0010 class RPSignalPoint {
0011 public:
0012   RPSignalPoint() : pos_(0, 0), sigma_(0), charge_(0) {}
0013 
0014   RPSignalPoint(double x, double y, double s, double charge) : pos_(x, y), sigma_(s), charge_(charge) {}
0015 
0016   inline const LocalPoint& Position() const { return pos_; }
0017   inline double Sigma() const { return sigma_; }
0018   inline double Charge() const { return charge_; }
0019 
0020   inline void setSigma(double s) { sigma_ = s; }
0021   inline void setPosition(LocalPoint p) { pos_ = p; }
0022   inline void setCharge(double charge) { charge_ = charge; }
0023 
0024 private:
0025   LocalPoint pos_;
0026   double sigma_;
0027   double charge_;
0028 };
0029 
0030 #endif  //SimPPS_RPDigiProducer_RP_SignalPoint_H