CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EnergyDepositUnit.h
Go to the documentation of this file.
1 #ifndef _TRACKER_EnergyDepositUnit_H
2 #define _TRACKER_EnergyDepositUnit_H
3 
11 public:
12  EnergyDepositUnit() : _energy(0), _position(0, 0, 0) {}
13  EnergyDepositUnit(float energy, float x, float y, float z) : _energy(energy), _position(x, y, z) {}
14  EnergyDepositUnit(float energy, const Local3DPoint& position) : _energy(energy), _position(position) {}
15  float x() const { return _position.x(); }
16  float y() const { return _position.y(); }
17  float z() const { return _position.z(); }
18  float energy() const { return _energy; }
19 
20 private:
21  float _energy;
23 };
24 
25 #endif
float x() const
float y() const
T y() const
Definition: PV3DBase.h:60
Local3DPoint _position
EnergyDepositUnit(float energy, const Local3DPoint &position)
float z() const
T z() const
Definition: PV3DBase.h:61
float energy() const
static int position[264][3]
Definition: ReadPGInfo.cc:289
T x() const
Definition: PV3DBase.h:59
EnergyDepositUnit(float energy, float x, float y, float z)