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