//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Distortion with fixed direction and Gaussian profile // // // Environment: // Software developed for a real experiment // // Author List: // Felix Boehmer (original author) // Physik Department E18, TUM // //----------------------------------------------------------- #ifndef TPCMMLOCALGAUSSDISTORTION_HH #define TPCMMLOCALGAUSSDISTORTION_HH #include "AbsTpcMMDistortion.h" #include "TVector3.h" class TpcMMLocalGaussDistortion : public AbsTpcMMDistortion { public: TpcMMLocalGaussDistortion(); TpcMMLocalGaussDistortion(double sig, const TVector3& dir, const TVector3& pos); virtual ~TpcMMLocalGaussDistortion() {;} virtual void distort(const std::vector& cls); virtual void setSigma(double sig) {fSigma=sig;} virtual void setPosition(const TVector3& pos) {fPos=pos;} virtual void setDirection(const TVector3& dir) {fDirection=dir;} protected: TVector3 fDirection; //Direction of the distortions TVector3 fPos; //center double fSigma; //sigma of the gaussian distortion area profile }; #endif