Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:26

0001 #ifndef SimPPS_PPSPixelDigiProducer_RPix_SignalPoint_H
0002 #define SimPPS_PPSPixelDigiProducer_RPix_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 RPixSignalPoint {
0011 public:
0012   RPixSignalPoint() : pos_(0, 0), sigma_(0), charge_(0){};
0013 
0014   RPixSignalPoint(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 setCharge(double charge) { charge_ = charge; }
0021   inline void setPosition(LocalPoint p) { pos_ = p; }
0022   inline void setSigma(double s) { sigma_ = s; }
0023 
0024 private:
0025   LocalPoint pos_;
0026   double sigma_;
0027   double charge_;
0028 };
0029 
0030 #endif