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
11
namespace
Hal
{
12
FemtoSourceModelExp1D::FemtoSourceModelExp1D(
const
FemtoSourceModelExp1D
& model) :
FemtoSourceModel1D
(model) {}
13
14
FemtoSourceModel
*
FemtoSourceModelExp1D::MakeCopy
()
const
{
return
new
FemtoSourceModelExp1D
(*
this
); }
15
16
void
FemtoSourceModelExp1D::GenerateCoordinates
(
FemtoPair
*
/*Pair*/
) {
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
Hal::FemtoPair
Definition
FemtoPair.h:28
Hal::FemtoSourceModel1D
Definition
FemtoSourceModel.h:161
Hal::FemtoSourceModelExp1D
Definition
FemtoSourceModelExp.h:19
Hal::FemtoSourceModelExp1D::MakeCopy
FemtoSourceModel * MakeCopy() const
Definition
FemtoSourceModelExp.cxx:14
Hal::FemtoSourceModelExp1D::GenerateCoordinates
void GenerateCoordinates(FemtoPair *Pair)
Definition
FemtoSourceModelExp.cxx:16
Hal::FemtoSourceModel
Definition
FemtoSourceModel.h:25
Hal::FemtoSourceModel::fRandom
TRandom * fRandom
Definition
FemtoSourceModel.h:40
Hal::FemtoSourceModel::fRout
Double_t fRout
Definition
FemtoSourceModel.h:48
Hal::FemtoSourceModel::fRlong
Double_t fRlong
Definition
FemtoSourceModel.h:56
Hal::FemtoSourceModel::GetParameter
Double_t GetParameter(Int_t n) const
Definition
FemtoSourceModel.h:132
Hal::FemtoSourceModel::fModelName
TString fModelName
Definition
FemtoSourceModel.h:60
Hal::FemtoSourceModel::fRside
Double_t fRside
Definition
FemtoSourceModel.h:52
Hal
Definition
EventAnaChain.cxx:28
analysis
femto
base
source_models
FemtoSourceModelExp.cxx
Generated on Wed Oct 23 2024 15:07:50 for Heavy ion Analysis Libriares by
1.12.0