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 **************************************************************************/
20 #include "AliMevSimConfig.h"
22 ClassImp(AliMevSimConfig)
25 //////////////////////////////////////////////////////////////////////////////////////////////////
27 AliMevSimConfig::AliMevSimConfig() {
32 //////////////////////////////////////////////////////////////////////////////////////////////////
34 AliMevSimConfig::AliMevSimConfig(Int_t modelType) {
37 SetModelType(modelType);
40 //////////////////////////////////////////////////////////////////////////////////////////////////
42 AliMevSimConfig::~AliMevSimConfig() {
45 //////////////////////////////////////////////////////////////////////////////////////////////////
47 void AliMevSimConfig::Init() {
53 fPsiRMean = fPsiRStDev = 0;
58 fNStDevMult = fNStDevTemp = fNStDevSigma = 3.0;
59 fNStDevExpVel = fNStdDevPSIr = fNStDevVn = fNStDevMultFac = 3.0;
61 fNIntegPts = fNScanPts = 100;
65 //////////////////////////////////////////////////////////////////////////////////////////////////
67 void AliMevSimConfig::SetModelType(Int_t modelType) {
69 if (modelType < 0 || modelType > kMAX_MODEL)
70 Error("SetModelType","Wrog Model Type indentifier (%d)",modelType);
72 fModelType = modelType;
75 //////////////////////////////////////////////////////////////////////////////////////////////////
77 void AliMevSimConfig::SetRectPlane(Int_t ctrl, Float_t psiRMean, Float_t psiRStDev) {
79 if (ctrl < 0 || ctrl > kMAX_CTRL)
80 Error("SetReactPlane","Wrong Control Parameter (%d)", ctrl);
82 fReacPlaneCntrl = ctrl;
84 fPsiRStDev = psiRStDev;
87 //////////////////////////////////////////////////////////////////////////////////////////////////
89 void AliMevSimConfig::SetMultFac(Float_t mean, Float_t stDev) {
92 fMultFacStDev = stDev;
95 //////////////////////////////////////////////////////////////////////////////////////////////////
97 void AliMevSimConfig::SetStDev(Float_t mult, Float_t temp, Float_t sigma,
98 Float_t expVel, Float_t psiR, Float_t Vn, Float_t multFac) {
102 fNStDevSigma = sigma;
103 fNStDevExpVel = expVel;
106 fNStDevMultFac =multFac;
109 //////////////////////////////////////////////////////////////////////////////////////////////////
111 void AliMevSimConfig::SetGrid(Int_t integr, Int_t scan) {
117 //////////////////////////////////////////////////////////////////////////////////////////////////