]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVGEN/AliMevSimConfig.cxx
Further modifications in OpenOutput and WriteCluster
[u/mrichter/AliRoot.git] / EVGEN / AliMevSimConfig.cxx
CommitLineData
8d29edbe 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/*
17$Log$
18*/
b7e18fda 19
20#include "AliMevSimConfig.h"
21
22ClassImp(AliMevSimConfig)
23
24
25//////////////////////////////////////////////////////////////////////////////////////////////////
26
27AliMevSimConfig::AliMevSimConfig() {
28
29 Init();
30}
31
32//////////////////////////////////////////////////////////////////////////////////////////////////
33
34AliMevSimConfig::AliMevSimConfig(Int_t modelType) {
35
36 Init();
37 SetModelType(modelType);
38}
39
40//////////////////////////////////////////////////////////////////////////////////////////////////
41
42AliMevSimConfig::~AliMevSimConfig() {
43}
44
45//////////////////////////////////////////////////////////////////////////////////////////////////
46
47void AliMevSimConfig::Init() {
48
49 // Default Values
50
51 fModelType = 1;
52 fReacPlaneCntrl = 4;
53 fPsiRMean = fPsiRStDev = 0;
54
55 fMultFacMean = 1.0;
56 fMultFacStDev = 0.0;
57
58 fNStDevMult = fNStDevTemp = fNStDevSigma = 3.0;
59 fNStDevExpVel = fNStdDevPSIr = fNStDevVn = fNStDevMultFac = 3.0;
60
61 fNIntegPts = fNScanPts = 100;
62
63}
64
65//////////////////////////////////////////////////////////////////////////////////////////////////
66
67void AliMevSimConfig::SetModelType(Int_t modelType) {
68
69 if (modelType < 0 || modelType > kMAX_MODEL)
70 Error("SetModelType","Wrog Model Type indentifier (%d)",modelType);
71
72 fModelType = modelType;
73}
74
75//////////////////////////////////////////////////////////////////////////////////////////////////
76
77void AliMevSimConfig::SetRectPlane(Int_t ctrl, Float_t psiRMean, Float_t psiRStDev) {
78
79 if (ctrl < 0 || ctrl > kMAX_CTRL)
80 Error("SetReactPlane","Wrong Control Parameter (%d)", ctrl);
81
82 fReacPlaneCntrl = ctrl;
83 fPsiRMean = psiRMean;
84 fPsiRStDev = psiRStDev;
85}
86
87//////////////////////////////////////////////////////////////////////////////////////////////////
88
89void AliMevSimConfig::SetMultFac(Float_t mean, Float_t stDev) {
90
91 fMultFacMean = mean;
92 fMultFacStDev = stDev;
93}
94
95//////////////////////////////////////////////////////////////////////////////////////////////////
96
97void AliMevSimConfig::SetStDev(Float_t mult, Float_t temp, Float_t sigma,
98 Float_t expVel, Float_t psiR, Float_t Vn, Float_t multFac) {
99
100 fNStDevMult = mult;
101 fNStDevTemp = temp;
102 fNStDevSigma = sigma;
103 fNStDevExpVel = expVel;
104 fNStdDevPSIr = psiR;
105 fNStDevVn = Vn;
106 fNStDevMultFac =multFac;
107}
108
109//////////////////////////////////////////////////////////////////////////////////////////////////
110
111void AliMevSimConfig::SetGrid(Int_t integr, Int_t scan) {
112
113 fNIntegPts = integr;
114 fNScanPts = scan;
115}
116
117//////////////////////////////////////////////////////////////////////////////////////////////////
118