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