CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/SimRomanPot/SimFP420/interface/AmplitudeSegmentFP420.h

Go to the documentation of this file.
00001 #ifndef AmplitudeSegmentFP420_h
00002 #define AmplitudeSegmentFP420_h
00003 
00004 
00005 //#include "G4StepPoint.hh"
00006 
00007 
00008 #include<vector>
00009 
00010 class AmplitudeSegmentFP420 {
00011  public:
00012   AmplitudeSegmentFP420() : _pos(0,0,0), _sigma(0), _amplitude(0) {}
00013   
00014   AmplitudeSegmentFP420( float x, float y, float z, float s,float a=1.0) : 
00015     _pos(x,y,z), _sigma(s), _amplitude(a) {}
00016   
00017   const G4ThreeVector& position() const { return _pos;}
00018   float x()         const { return _pos.x();}
00019   float y()         const { return _pos.y();}
00020   float z()         const { return _pos.z();}
00021   float sigma()     const { return _sigma;}
00022   float amplitude() const { return _amplitude;}
00023   AmplitudeSegmentFP420& set_amplitude( float amp) { _amplitude = amp; return *this;} 
00024 
00025  private:
00026 
00027   G4ThreeVector      _pos;
00028   float           _sigma;
00029   float           _amplitude;
00030   };
00031 #endif