CMS 3D CMS Logo

AmplitudeSegmentFP420.h
Go to the documentation of this file.
1 #ifndef AmplitudeSegmentFP420_h
2 #define AmplitudeSegmentFP420_h
3 
4 //#include "G4StepPoint.hh"
5 
6 #include "G4ThreeVector.hh"
7 #include <vector>
8 
10 public:
11  AmplitudeSegmentFP420() : _pos(0, 0, 0), _sigma(0), _amplitude(0) {}
12 
13  AmplitudeSegmentFP420(float x, float y, float z, float s, float a = 1.0) : _pos(x, y, z), _sigma(s), _amplitude(a) {}
14 
15  const G4ThreeVector &position() const { return _pos; }
16  float x() const { return _pos.x(); }
17  float y() const { return _pos.y(); }
18  float z() const { return _pos.z(); }
19  float sigma() const { return _sigma; }
20  float amplitude() const { return _amplitude; }
22  _amplitude = amp;
23  return *this;
24  }
25 
26 private:
27  G4ThreeVector _pos;
28  float _sigma;
29  float _amplitude;
30 };
31 #endif
const G4ThreeVector & position() const
AmplitudeSegmentFP420(float x, float y, float z, float s, float a=1.0)
AmplitudeSegmentFP420 & set_amplitude(float amp)
double a
Definition: hdecay.h:119