1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 #include "AliMevSimConfig.h"
20 ClassImp(AliMevSimConfig)
23 //////////////////////////////////////////////////////////////////////////////////////////////////
25 AliMevSimConfig::AliMevSimConfig() {
30 //////////////////////////////////////////////////////////////////////////////////////////////////
32 AliMevSimConfig::AliMevSimConfig(Int_t modelType) {
35 SetModelType(modelType);
38 //////////////////////////////////////////////////////////////////////////////////////////////////
40 AliMevSimConfig::~AliMevSimConfig() {
43 //////////////////////////////////////////////////////////////////////////////////////////////////
45 void AliMevSimConfig::Init() {
51 fPsiRMean = fPsiRStDev = 0;
56 fNStDevMult = fNStDevTemp = fNStDevSigma = 3.0;
57 fNStDevExpVel = fNStdDevPSIr = fNStDevVn = fNStDevMultFac = 3.0;
59 fNIntegPts = fNScanPts = 100;
63 //////////////////////////////////////////////////////////////////////////////////////////////////
65 void AliMevSimConfig::SetModelType(Int_t modelType) {
67 if (modelType < 0 || modelType > kMAX_MODEL)
68 Error("SetModelType","Wrog Model Type indentifier (%d)",modelType);
70 fModelType = modelType;
73 //////////////////////////////////////////////////////////////////////////////////////////////////
75 void AliMevSimConfig::SetRectPlane(Int_t ctrl, Float_t psiRMean, Float_t psiRStDev) {
77 if (ctrl < 0 || ctrl > kMAX_CTRL)
78 Error("SetReactPlane","Wrong Control Parameter (%d)", ctrl);
80 fReacPlaneCntrl = ctrl;
82 fPsiRStDev = psiRStDev;
85 //////////////////////////////////////////////////////////////////////////////////////////////////
87 void AliMevSimConfig::SetMultFac(Float_t mean, Float_t stDev) {
90 fMultFacStDev = stDev;
93 //////////////////////////////////////////////////////////////////////////////////////////////////
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) {
100 fNStDevSigma = sigma;
101 fNStDevExpVel = expVel;
104 fNStDevMultFac =multFac;
107 //////////////////////////////////////////////////////////////////////////////////////////////////
109 void AliMevSimConfig::SetGrid(Int_t integr, Int_t scan) {
115 //////////////////////////////////////////////////////////////////////////////////////////////////