CMS 3D CMS Logo

EnergySegmentFP420.h
Go to the documentation of this file.
1 #ifndef EnergySegmentFP420_h
2 #define EnergySegmentFP420_h
3 
4 #include <vector>
5 
7 #include "G4StepPoint.hh"
8 
9 // define a quantum of energy and position.
11 public:
12  EnergySegmentFP420() : _energy(0), _position(0, 0, 0) {}
13 
14  EnergySegmentFP420(float energy, float x, float y, float z) : _energy(energy), _position(x, y, z) {}
15 
16  // EnergySegmentFP420(float energy, G4ThreeVector position):
17  // _energy(energy),_position(position){}
18 
20 
21  float x() const { return _position.x(); }
22  float y() const { return _position.y(); }
23  float z() const { return _position.z(); }
24  float energy() const { return _energy; }
25 
26 private:
27  float _energy;
28  // G4ThreeVector _position;
30 };
31 
32 #endif
T y() const
Definition: PV3DBase.h:60
float energy() const
T z() const
Definition: PV3DBase.h:61
EnergySegmentFP420(float energy, Local3DPoint position)
EnergySegmentFP420(float energy, float x, float y, float z)
static int position[264][3]
Definition: ReadPGInfo.cc:289
T x() const
Definition: PV3DBase.h:59