1#include "CLHEP/GenericFunctions/PhaseSpace.hh"
42 PhaseSpace::Component::Component(
unsigned int NDIM,
bool isMomenta) : c(new
Clockwork()) {
43 for (
unsigned int i=0;i<NDIM;i++) {
44 int offset= isMomenta ? NDIM:0;
49 PhaseSpace::Component::~Component() {
58 _coordinates(NDIM,false),_momenta(NDIM,true),_q0(NDIM),_p0(NDIM),DIM(NDIM)
76 unsigned int index =v.
index();
82 _p0[index-DIM] = value;
88 unsigned int index =v.
index();
94 return _p0[index-DIM];
std::vector< const Genfun::Variable * > functions
Genfun::Variable operator[](unsigned int i) const
void start(const Genfun::Variable &variable, double value)
const Component & momenta() const
const Component & coordinates() const
double startValue(const Genfun::Variable &component) const
PhaseSpace(unsigned int NDIM)
unsigned int index() const