Main Page
Namespaces
Classes
Package Documentation
SimRomanPot
SimFP420
interface
EnergySegmentFP420.h
Go to the documentation of this file.
1
#ifndef EnergySegmentFP420_h
2
#define EnergySegmentFP420_h
3
4
#include <vector>
5
6
#include "
DataFormats/GeometryVector/interface/LocalPoint.h
"
7
#include "G4StepPoint.hh"
8
9
// define a quantum of energy and position.
10
class
EnergySegmentFP420
{
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
19
EnergySegmentFP420
(
float
energy
,
Local3DPoint
position
) :
_energy
(energy),
_position
(position) {}
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;
29
Local3DPoint
_position
;
30
};
31
32
#endif
EnergySegmentFP420::EnergySegmentFP420
EnergySegmentFP420()
Definition:
EnergySegmentFP420.h:12
LocalPoint.h
PV3DBase::y
T y() const
Definition:
PV3DBase.h:63
EnergySegmentFP420::energy
float energy() const
Definition:
EnergySegmentFP420.h:24
EnergySegmentFP420::_energy
float _energy
Definition:
EnergySegmentFP420.h:27
PV3DBase::z
T z() const
Definition:
PV3DBase.h:64
EnergySegmentFP420::EnergySegmentFP420
EnergySegmentFP420(float energy, Local3DPoint position)
Definition:
EnergySegmentFP420.h:19
EnergySegmentFP420::EnergySegmentFP420
EnergySegmentFP420(float energy, float x, float y, float z)
Definition:
EnergySegmentFP420.h:14
EnergySegmentFP420::y
float y() const
Definition:
EnergySegmentFP420.h:22
EnergySegmentFP420::x
float x() const
Definition:
EnergySegmentFP420.h:21
Point3DBase< float, LocalTag >
EnergySegmentFP420::_position
Local3DPoint _position
Definition:
EnergySegmentFP420.h:29
position
static int position[264][3]
Definition:
ReadPGInfo.cc:509
EnergySegmentFP420
Definition:
EnergySegmentFP420.h:10
PV3DBase::x
T x() const
Definition:
PV3DBase.h:62
EnergySegmentFP420::z
float z() const
Definition:
EnergySegmentFP420.h:23
Generated for CMSSW Reference Manual by
1.8.11