29 if ((
e > 0) && (
e * massRat < 1) && (
N > 2)) {
75 if (abs(par[0] - par[1]) < 1.e-6)
return par[1];
79 double cosTheta =
x[0];
132 logmass_sum = mass_sum = 0.;
134 while ((
n =
e->GetNextParticle())) {
141 B = (3 *
N - 5) / 2.;
160 for (
auto&
e : *partition)
massTot0 +=
e.GetMass();
200 if (rR < 1.) ratio = 1. / (1. - rR);
210 p =
sqrt(2.*mPart * ec);
215 ec = p * p / 2. / mPart;
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Base class container for multi-particle events.
Description of properties and kinematics of atomic nuclei.
void SetMomentum(const TVector3 &v)
virtual void SetOwner(Bool_t enable=kTRUE)
virtual void Add(TObject *obj)
virtual TObject * FindObject(const char *name) const
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)
VecExpr< UnaryOp< Sqrt< T >, SVector< T, D >, T >, T, D > sqrt(const SVector< T, D > &rhs)
double CosThetaDist(double *x, double *par)
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()