Coding Violations Removed
[u/mrichter/AliRoot.git] / TMEVSIM / AliMevSimConfig.cxx
CommitLineData
36b81802 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 **************************************************************************/
bb52edc0 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////////////////////////////////////////////////////////////////////
36b81802 27
28#include "AliMevSimConfig.h"
29
30ClassImp(AliMevSimConfig)
31
32
33//////////////////////////////////////////////////////////////////////////////////////////////////
34
35AliMevSimConfig::AliMevSimConfig() {
bb52edc0 36//def ctor
36b81802 37 Init();
38}
39
40//////////////////////////////////////////////////////////////////////////////////////////////////
41
42AliMevSimConfig::AliMevSimConfig(Int_t modelType) {
bb52edc0 43//ctor
36b81802 44 Init();
45 SetModelType(modelType);
46}
47
48//////////////////////////////////////////////////////////////////////////////////////////////////
49
50AliMevSimConfig::~AliMevSimConfig() {
bb52edc0 51//dtor
36b81802 52}
53
54//////////////////////////////////////////////////////////////////////////////////////////////////
55
56void AliMevSimConfig::Init() {
36b81802 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
75void AliMevSimConfig::SetModelType(Int_t modelType) {
bb52edc0 76//Sets type of the model
77 if (modelType < 0 || modelType > fgkMAX_MODEL)
36b81802 78 Error("SetModelType","Wrog Model Type indentifier (%d)",modelType);
79
80 fModelType = modelType;
81}
82
83//////////////////////////////////////////////////////////////////////////////////////////////////
84
85void AliMevSimConfig::SetRectPlane(Int_t ctrl, Float_t psiRMean, Float_t psiRStDev) {
bb52edc0 86//Sets reaction plane parameters
87 if (ctrl < 0 || ctrl > fgkMAX_CTRL)
36b81802 88 Error("SetReactPlane","Wrong Control Parameter (%d)", ctrl);
89
90 fReacPlaneCntrl = ctrl;
91 fPsiRMean = psiRMean;
92 fPsiRStDev = psiRStDev;
93}
94
95//////////////////////////////////////////////////////////////////////////////////////////////////
96
97void AliMevSimConfig::SetMultFac(Float_t mean, Float_t stDev) {
bb52edc0 98 //Sets multiplicity mean and variance
36b81802 99 fMultFacMean = mean;
100 fMultFacStDev = stDev;
101}
102
103//////////////////////////////////////////////////////////////////////////////////////////////////
104
105void AliMevSimConfig::SetStDev(Float_t mult, Float_t temp, Float_t sigma,
106 Float_t expVel, Float_t psiR, Float_t Vn, Float_t multFac) {
bb52edc0 107//sets Dev parameters (whatever Dev is)
36b81802 108 fNStDevMult = mult;
109 fNStDevTemp = temp;
110 fNStDevSigma = sigma;
111 fNStDevExpVel = expVel;
112 fNStdDevPSIr = psiR;
113 fNStDevVn = Vn;
114 fNStDevMultFac =multFac;
bb52edc0 115
116}
117void 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
36b81802 129}
130
131//////////////////////////////////////////////////////////////////////////////////////////////////
132
133void AliMevSimConfig::SetGrid(Int_t integr, Int_t scan) {
bb52edc0 134//Sets grid
36b81802 135 fNIntegPts = integr;
136 fNScanPts = scan;
137}
138
139//////////////////////////////////////////////////////////////////////////////////////////////////
140