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 **************************************************************************/
15 //__________________________________________________________________
16 ////////////////////////////////////////////////////////////////////
18 // class AliMevSimConfig
20 // Class containing configuation inforamtion for MeVSim generator
21 // --------------------------------------------
22 // --------------------------------------------
23 // --------------------------------------------
24 // author: radomski@if.pw.edu.pl
26 ////////////////////////////////////////////////////////////////////
28 #include "AliMevSimConfig.h"
30 ClassImp(AliMevSimConfig)
33 //////////////////////////////////////////////////////////////////////////////////////////////////
35 AliMevSimConfig::AliMevSimConfig() {
40 //////////////////////////////////////////////////////////////////////////////////////////////////
42 AliMevSimConfig::AliMevSimConfig(Int_t modelType) {
45 SetModelType(modelType);
48 //////////////////////////////////////////////////////////////////////////////////////////////////
50 AliMevSimConfig::~AliMevSimConfig() {
54 //////////////////////////////////////////////////////////////////////////////////////////////////
56 void AliMevSimConfig::Init() {
61 fPsiRMean = fPsiRStDev = 0;
66 fNStDevMult = fNStDevTemp = fNStDevSigma = 3.0;
67 fNStDevExpVel = fNStdDevPSIr = fNStDevVn = fNStDevMultFac = 3.0;
69 fNIntegPts = fNScanPts = 100;
73 //////////////////////////////////////////////////////////////////////////////////////////////////
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);
80 fModelType = modelType;
83 //////////////////////////////////////////////////////////////////////////////////////////////////
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);
90 fReacPlaneCntrl = ctrl;
92 fPsiRStDev = psiRStDev;
95 //////////////////////////////////////////////////////////////////////////////////////////////////
97 void AliMevSimConfig::SetMultFac(Float_t mean, Float_t stDev) {
98 //Sets multiplicity mean and variance
100 fMultFacStDev = stDev;
103 //////////////////////////////////////////////////////////////////////////////////////////////////
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)
110 fNStDevSigma = sigma;
111 fNStDevExpVel = expVel;
114 fNStDevMultFac =multFac;
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
120 //returns dev parameters
123 sigma = fNStDevSigma;
124 expVel = fNStDevExpVel;
127 multFac = fNStDevMultFac;
131 //////////////////////////////////////////////////////////////////////////////////////////////////
133 void AliMevSimConfig::SetGrid(Int_t integr, Int_t scan) {
139 //////////////////////////////////////////////////////////////////////////////////////////////////