]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TMEVSIM/AliMevSimConfig.cxx
6a181b5a6b292eb1d3bfdd4c247c3ce7b7446155
[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 ////////////////////////////////////////////////////////////////////
17 //
18 // class AliMevSimConfig
19 //
20 // Class containing configuation inforamtion for MeVSim generator
21 // --------------------------------------------
22 // --------------------------------------------
23 // --------------------------------------------
24 // author: radomski@if.pw.edu.pl
25 //
26 ////////////////////////////////////////////////////////////////////
27
28 #include "AliMevSimConfig.h"
29
30 ClassImp(AliMevSimConfig)
31
32
33 //////////////////////////////////////////////////////////////////////////////////////////////////
34
35 AliMevSimConfig::AliMevSimConfig() {
36 //def ctor
37   Init();
38 }
39
40 //////////////////////////////////////////////////////////////////////////////////////////////////
41
42 AliMevSimConfig::AliMevSimConfig(Int_t modelType) {
43 //ctor
44   Init();
45   SetModelType(modelType);
46 }
47
48 //////////////////////////////////////////////////////////////////////////////////////////////////
49
50 AliMevSimConfig::~AliMevSimConfig() {
51 //dtor
52 }
53
54 //////////////////////////////////////////////////////////////////////////////////////////////////
55
56 void AliMevSimConfig::Init() {
57   // Default Values
58
59   fModelType = 1;
60   fReacPlaneCntrl = 4;
61   fPsiRMean = fPsiRStDev = 0;
62
63   fMultFacMean  = 1.0;
64   fMultFacStDev = 0.0;
65
66   fNStDevMult = fNStDevTemp = fNStDevSigma = 3.0;
67   fNStDevExpVel = fNStdDevPSIr = fNStDevVn = fNStDevMultFac = 3.0;
68   
69   fNIntegPts = fNScanPts = 100;
70
71 }
72
73 //////////////////////////////////////////////////////////////////////////////////////////////////
74  
75 void AliMevSimConfig::SetModelType(Int_t modelType) {
76 //Sets type of the model
77   if (modelType < 0 || modelType > fgkMAX_MODEL)
78     Error("SetModelType","Wrog Model Type indentifier (%d)",modelType);
79
80   fModelType = modelType;
81 }
82
83 //////////////////////////////////////////////////////////////////////////////////////////////////
84
85 void AliMevSimConfig::SetRectPlane(Int_t ctrl, Float_t psiRMean, Float_t psiRStDev) {
86 //Sets reaction plane parameters
87   if (ctrl < 0 || ctrl > fgkMAX_CTRL)
88     Error("SetReactPlane","Wrong Control Parameter (%d)", ctrl);
89
90   fReacPlaneCntrl = ctrl;
91   fPsiRMean = psiRMean;
92   fPsiRStDev = psiRStDev;
93 }
94
95 //////////////////////////////////////////////////////////////////////////////////////////////////
96
97 void AliMevSimConfig::SetMultFac(Float_t mean, Float_t stDev) {
98   //Sets multiplicity mean and variance
99   fMultFacMean = mean;
100   fMultFacStDev = stDev;
101 }
102
103 //////////////////////////////////////////////////////////////////////////////////////////////////
104
105 void AliMevSimConfig::SetStDev(Float_t mult, Float_t temp, Float_t sigma,
106   Float_t expVel, Float_t psiR, Float_t Vn, Float_t multFac) {
107 //sets Dev parameters (whatever Dev is)
108   fNStDevMult = mult;
109   fNStDevTemp = temp;
110   fNStDevSigma = sigma;
111   fNStDevExpVel = expVel;
112   fNStdDevPSIr = psiR;
113   fNStDevVn = Vn;
114   fNStDevMultFac =multFac;
115
116 }
117 void AliMevSimConfig::GetStDev(Float_t& mult, Float_t& temp, Float_t& sigma,
118                 Float_t& expVel, Float_t& psiR, Float_t& Vn, Float_t& multFac) const
119 {
120  //returns dev parameters
121    mult  = fNStDevMult;
122    temp  = fNStDevTemp;
123    sigma  = fNStDevSigma;
124    expVel  = fNStDevExpVel;
125    psiR  = fNStdDevPSIr;
126    Vn  = fNStDevVn;
127    multFac  = fNStDevMultFac;
128  
129 }
130
131 //////////////////////////////////////////////////////////////////////////////////////////////////
132
133 void AliMevSimConfig::SetGrid(Int_t integr, Int_t scan) {
134 //Sets grid 
135   fNIntegPts = integr;
136   fNScanPts = scan;
137 }
138
139 //////////////////////////////////////////////////////////////////////////////////////////////////
140