Transition to NewIO
[u/mrichter/AliRoot.git] / TMEVSIM / AliMevSimConfig.cxx
CommitLineData
36b81802 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$
88cb7938 18Revision 1.1.2.1 2003/04/14 16:24:06 hristov
19Merging with v3-09-08. Several classes are exported from EVGEN to different directories to resolve the dependencies
20
21Revision 1.1 2003/03/15 14:49:39 morsch
22Classes imported from EVGEN
23
36b81802 24Revision 1.2 2001/03/24 10:08:30 morsch
25Log tag and copyright notice added.
26
27*/
28
29#include "AliMevSimConfig.h"
30
31ClassImp(AliMevSimConfig)
32
33
34//////////////////////////////////////////////////////////////////////////////////////////////////
35
36AliMevSimConfig::AliMevSimConfig() {
37
38 Init();
39}
40
41//////////////////////////////////////////////////////////////////////////////////////////////////
42
43AliMevSimConfig::AliMevSimConfig(Int_t modelType) {
44
45 Init();
46 SetModelType(modelType);
47}
48
49//////////////////////////////////////////////////////////////////////////////////////////////////
50
51AliMevSimConfig::~AliMevSimConfig() {
52}
53
54//////////////////////////////////////////////////////////////////////////////////////////////////
55
56void AliMevSimConfig::Init() {
57
58 // Default Values
59
60 fModelType = 1;
61 fReacPlaneCntrl = 4;
62 fPsiRMean = fPsiRStDev = 0;
63
64 fMultFacMean = 1.0;
65 fMultFacStDev = 0.0;
66
67 fNStDevMult = fNStDevTemp = fNStDevSigma = 3.0;
68 fNStDevExpVel = fNStdDevPSIr = fNStDevVn = fNStDevMultFac = 3.0;
69
70 fNIntegPts = fNScanPts = 100;
71
72}
73
74//////////////////////////////////////////////////////////////////////////////////////////////////
75
76void AliMevSimConfig::SetModelType(Int_t modelType) {
77
78 if (modelType < 0 || modelType > kMAX_MODEL)
79 Error("SetModelType","Wrog Model Type indentifier (%d)",modelType);
80
81 fModelType = modelType;
82}
83
84//////////////////////////////////////////////////////////////////////////////////////////////////
85
86void AliMevSimConfig::SetRectPlane(Int_t ctrl, Float_t psiRMean, Float_t psiRStDev) {
87
88 if (ctrl < 0 || ctrl > kMAX_CTRL)
89 Error("SetReactPlane","Wrong Control Parameter (%d)", ctrl);
90
91 fReacPlaneCntrl = ctrl;
92 fPsiRMean = psiRMean;
93 fPsiRStDev = psiRStDev;
94}
95
96//////////////////////////////////////////////////////////////////////////////////////////////////
97
98void AliMevSimConfig::SetMultFac(Float_t mean, Float_t stDev) {
99
100 fMultFacMean = mean;
101 fMultFacStDev = stDev;
102}
103
104//////////////////////////////////////////////////////////////////////////////////////////////////
105
106void AliMevSimConfig::SetStDev(Float_t mult, Float_t temp, Float_t sigma,
107 Float_t expVel, Float_t psiR, Float_t Vn, Float_t multFac) {
108
109 fNStDevMult = mult;
110 fNStDevTemp = temp;
111 fNStDevSigma = sigma;
112 fNStDevExpVel = expVel;
113 fNStdDevPSIr = psiR;
114 fNStDevVn = Vn;
115 fNStDevMultFac =multFac;
116}
117
118//////////////////////////////////////////////////////////////////////////////////////////////////
119
120void AliMevSimConfig::SetGrid(Int_t integr, Int_t scan) {
121
122 fNIntegPts = integr;
123 fNScanPts = scan;
124}
125
126//////////////////////////////////////////////////////////////////////////////////////////////////
127