CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Classical::PhaseSpace Class Reference

#include <PhaseSpace.hh>

Classes

class  Component
 

Public Member Functions

 PhaseSpace (unsigned int NDIM)
 
 ~PhaseSpace ()
 
unsigned int dim () const
 
const Componentcoordinates () const
 
const Componentmomenta () const
 
void start (const Genfun::Variable &variable, double value)
 
double startValue (const Genfun::Variable &component) const
 

Detailed Description

Definition at line 17 of file PhaseSpace.hh.

Constructor & Destructor Documentation

◆ PhaseSpace()

Classical::PhaseSpace::PhaseSpace ( unsigned int  NDIM)

Definition at line 57 of file PhaseSpace.cc.

57 :
58 _coordinates(NDIM,false),_momenta(NDIM,true),_q0(NDIM),_p0(NDIM),DIM(NDIM)
59 {
60 }

◆ ~PhaseSpace()

Classical::PhaseSpace::~PhaseSpace ( )

Definition at line 62 of file PhaseSpace.cc.

63 {
64 }

Member Function Documentation

◆ coordinates()

const PhaseSpace::Component & Classical::PhaseSpace::coordinates ( ) const

Definition at line 66 of file PhaseSpace.cc.

66 {
67 return _coordinates;
68 }

Referenced by Genfun::EnergyFunction::operator()(), and Classical::RungeKuttaSolver::RungeKuttaSolver().

◆ dim()

unsigned int Classical::PhaseSpace::dim ( ) const

Definition at line 98 of file PhaseSpace.cc.

98 {
99 return DIM;
100 }

Referenced by Genfun::EnergyFunction::operator()(), and Classical::RungeKuttaSolver::RungeKuttaSolver().

◆ momenta()

const PhaseSpace::Component & Classical::PhaseSpace::momenta ( ) const

Definition at line 70 of file PhaseSpace.cc.

70 {
71 return _momenta;
72 }

Referenced by Genfun::EnergyFunction::operator()(), and Classical::RungeKuttaSolver::RungeKuttaSolver().

◆ start()

void Classical::PhaseSpace::start ( const Genfun::Variable variable,
double  value 
)

Definition at line 75 of file PhaseSpace.cc.

75 {
76 unsigned int index =v.index();
77 if (index<DIM) {
78 _q0[index] = value;
79 }
80 else
81 {
82 _p0[index-DIM] = value;
83 }
84 }

◆ startValue()

double Classical::PhaseSpace::startValue ( const Genfun::Variable component) const

Definition at line 87 of file PhaseSpace.cc.

87 {
88 unsigned int index =v.index();
89 if (index<DIM) {
90 return _q0[index];
91 }
92 else
93 {
94 return _p0[index-DIM];
95 }
96 }

Referenced by Classical::RungeKuttaSolver::RungeKuttaSolver().


The documentation for this class was generated from the following files: