6#include "KVNucleusEvent.h"
30 if ((
e > 0) && (
e * massRat < 1) && (
N > 2)) {
76 if (
abs(par[0] - par[1]) < 1.e-6)
return par[1];
80 double cosTheta =
x[0];
133 logmass_sum = mass_sum = 0.;
141 B = (3 *
N - 5) / 2.;
198 if (rR < 1.) ratio = 1. / (1. - rR);
208 p =
sqrt(2.*mPart * ec);
212 ec =
p *
p / 2. / mPart;
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Class for iterating over nuclei in events accessed through base pointer/reference.
Abstract base class container for multi-particle events.
Description of properties and kinematics of atomic nuclei.
void SetMomentum(const TVector3 *v)
virtual TObject * FindObject(const char *name) const
virtual void SetOwner(Bool_t enable=kTRUE)
virtual void Add(TObject *obj)
void setAvailableEnergy(Double_t e)
Double_t GetAvailableEnergy() const
void setWeight(Double_t w)
Calculate molecular dynamics ensemble weights for events .
void resetGenerateEvent()
void initGenerateEvent(KVEvent *partition)
virtual void SetWeight(KVEvent *e, Double_t E)
TF1 * getKEdist(Int_t, Double_t)
function used to draw random CosTheta values
static Double_t edist(Double_t *, Double_t *)
virtual ~mdweight()
Destructor.
virtual void nextparticleGenerateEvent(Int_t, KVNucleus *)
void SetAnisotropy(double a, double b)
virtual Double_t GetRandom(Double_t xmin, Double_t xmax, TRandom *rng=nullptr, Option_t *opt=nullptr)
RVec< PromoteType< T > > abs(const RVec< T > &v)
double CosThetaDist(double *x, double *par)
Expr< UnaryOp< Sqrt< T >, Expr< A, T, D, D2, R >, T >, T, D, D2, R > sqrt(const Expr< A, T, D, D2, R > &rhs)
Double_t Power(Double_t x, Double_t y)
Double_t Sqrt(Double_t x)
Double_t LnGamma(Double_t z)
constexpr Double_t TwoPi()