Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoSourceModelExp.cxx
1/*
2 * FemtoSourceModelExp.cxx
3 *
4 * Created on: 1 mar 2019
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "FemtoSourceModelExp.h"
10
11namespace Hal {
12 FemtoSourceModelExp1D::FemtoSourceModelExp1D(const FemtoSourceModelExp1D& model) : FemtoSourceModel1D(model) {}
13
15
17 fRout = fRandom->Exp(GetParameter(0));
18 fRside = fRandom->Exp(GetParameter(0));
19 fRlong = fRandom->Exp(GetParameter(0));
20 if (fRandom->Rndm() > 0.5) { fRout = -fRout; }
21 if (fRandom->Rndm() > 0.5) { fRside = -fRside; }
22 if (fRandom->Rndm() > 0.5) { fRlong = -fRlong; }
23 }
24
25 FemtoSourceModelExp1D::FemtoSourceModelExp1D() : FemtoSourceModel1D() { fModelName = "gaus1d"; }
26
27 FemtoSourceModelExp1D::~FemtoSourceModelExp1D() {}
28} // namespace Hal
FemtoSourceModel * MakeCopy() const
void GenerateCoordinates(FemtoPair *Pair)
Double_t GetParameter(Int_t n) const