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