//__________________________________________________________________________
TMevSimPartTypeParams::TMevSimPartTypeParams(Int_t agpid, Int_t amultmean, Int_t amultvc,
- Float_t atempmean, Float_t atempstdev, Float_t asigmamean,
- Float_t asigmastdev, Float_t aexpvelmean, Float_t aexpvelstdev)
+ Float_t atempmean, Float_t atempstdev, Float_t asigmamean,
+ Float_t asigmastdev, Float_t aexpvelmean, Float_t aexpvelstdev)
{
// Construct the particle type parametrs class. Use the values provide
// by the user to initialize the internal variables. For the meaning of
}
//______________________________________________________________________________
-TMevSimPartTypeParams::~TMevSimPartTypeParams() {}
+TMevSimPartTypeParams::~TMevSimPartTypeParams()
+{
+ //dtor
+}
//______________________________________________________________________________
TMevSimPartTypeParams::TMevSimPartTypeParams (const TMevSimPartTypeParams& pars) : TObject(pars) {
//______________________________________________________________________________
void TMevSimPartTypeParams::SetGPid(Int_t gpid) {
+//Sets pid
fGPid = gpid;
}
//______________________________________________________________________________
Int_t TMevSimPartTypeParams::GetGPid() const {
+//returns pid
return fGPid;
}
//______________________________________________________________________________
void TMevSimPartTypeParams::SetMultMean(Int_t multmean) {
+//sets multiplicity mean
fMultMean = multmean;
}
//______________________________________________________________________________
Int_t TMevSimPartTypeParams::GetMultMean() const {
+//returns multiplicity mean
return fMultMean;
}
//______________________________________________________________________________
void TMevSimPartTypeParams::SetMultVarianceControl(Int_t multvc) {
+//sets multiplicity variance
fMultVarianceControl = multvc;
}
//______________________________________________________________________________
Int_t TMevSimPartTypeParams::GetMultVarianceControl() const {
+//returns multiplicity variance
return fMultVarianceControl;
}
//______________________________________________________________________________
void TMevSimPartTypeParams::SetTempParams(Float_t tempmean, Float_t tempsdev) {
+//Sets mean and variance of temperature
fTempMean = tempmean;
fTempStDev = tempsdev;
}
//______________________________________________________________________________
Float_t TMevSimPartTypeParams::GetTempMean() const {
+//returns mean temperature
return fTempMean;
}
//______________________________________________________________________________
Float_t TMevSimPartTypeParams::GetTempStDev() const {
+//returns temperature variance
return fTempStDev;
}
//______________________________________________________________________________
void TMevSimPartTypeParams::SetSigmaPrams(Float_t sigmamean, Float_t sigmastdev) {
+//Sets mean and variance of rapidity
fSigmaMean = sigmamean;
fSigmaStDev = sigmastdev;
}
//______________________________________________________________________________
Float_t TMevSimPartTypeParams::GetSigmaMean() const {
+//returns mean rapidity
return fSigmaMean;
}
//______________________________________________________________________________
Float_t TMevSimPartTypeParams::GetSigmaStDev() const {
+//returns rapidity variance
return fSigmaStDev;
}
//______________________________________________________________________________
void TMevSimPartTypeParams::SetExpVelParams(Float_t expvelmean, Float_t expvelstdev) {
+//Sets mean and variance of Expansion velocity ala Scott Pratt (in units of c)
fExpVelMean = expvelmean;
fExpVelStDev = expvelstdev;
}
//______________________________________________________________________________
Float_t TMevSimPartTypeParams::GetExpVelMean() const {
+//Sets mean of Expansion velocity ala Scott Pratt (in units of c)
return fExpVelMean;
}
//______________________________________________________________________________
Float_t TMevSimPartTypeParams::GetExpVelStDev() const {
+//Sets variance of Expansion velocity ala Scott Pratt (in units of c)
return fExpVelStDev;
}
//______________________________________________________________________________
void TMevSimPartTypeParams::SetVnMeanComponent
(Int_t nComponent, Float_t mean1, Float_t mean2, Float_t mean3, Float_t mean4) {
-
+ //Sets VnMean: Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6
+ // mean include all 6 sets of parameters, set them to 0 if not used
if (nComponent < 0 || nComponent > NFLOWTERMS )
Error("SetVnMeanComponent", "Wrong Vn component n = %d (must be [%d , %d])",
void TMevSimPartTypeParams::SetVnStDevComponent
(Int_t nComponent, Float_t stdev1, Float_t stdev2,Float_t stdev3, Float_t stdev4) {
+ //Sets VnStDev: Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6
+ // standard deviation include all 6 sets of parameters, set them to 0 if not used
if (nComponent < 0 || nComponent > NFLOWTERMS )
Error("SetVnStDevComponent", "Wrong Vn component n = %d (must be [%d , %d])",
//______________________________________________________________________________
void TMevSimPartTypeParams::SetVnMeanComponent (Int_t nComponent, Float_t mean[4]) {
-
+ //Sets VnMean: Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6
+ // mean include all 6 sets of parameters, set them to 0 if not used
if (nComponent < 0 || nComponent > NFLOWTERMS )
Error("SetVnMeanComponent", "Wrong Vn component (%d) (must be [%d,%d])",
nComponent, 0, NFLOWTERMS);
- Int_t N = 4;
- for (Int_t i=0; i<N; i++)
+ Int_t n = 4;
+ for (Int_t i=0; i<n; i++)
fVnMean[nComponent][i] = mean[i];
}
//______________________________________________________________________________
void TMevSimPartTypeParams::SetVnStDevComponent (Int_t nComponent, Float_t stdev[4]) {
+ //Sets VnStDev: Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6
+ // standard deviation include all 6 sets of parameters, set them to 0 if not used
if (nComponent < 0 || nComponent > NFLOWTERMS )
Error("SetVnStDevComponent", "Wrong Vn component n = %d (must be [%d , %d])",
nComponent, 0, NFLOWTERMS);
- Int_t N = 4;
- for (Int_t i=0; i<N; i++)
+ Int_t n = 4;
+ for (Int_t i=0; i<n; i++)
fVnStDev[nComponent][i] = stdev[i];
}
//______________________________________________________________________________
Float_t TMevSimPartTypeParams::GetVnMeanComponent(Int_t nComponent, Int_t nMean) const {
+ //Returns VnMean: Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6
+ // mean include all 6 sets of parameters, set them to 0 if not used
if ((nComponent < 0) || (nComponent>NFLOWTERMS) || (nMean < 0) || (nMean > 3)) return 0.0;
return fVnMean[nComponent][nMean];
}
//______________________________________________________________________________
Float_t TMevSimPartTypeParams::GetVnStDevComponent(Int_t nComponent, Int_t nStDev) const {
+ //Returns VnStDev: Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6
+ // standard deviation include all 6 sets of parameters, set them to 0 if not used
if ((nComponent < 0) || (nComponent>NFLOWTERMS) || (nStDev < 0) || (nStDev > 3)) return 0.0;
return fVnMean[nComponent][nStDev];
// //
//////////////////////////////////////////////////////////////////////////
-#include <Riostream.h>
#ifndef ROOT_TObject
#include <TObject.h>
#endif
class TMevSimPartTypeParams : public TObject {
- protected:
-
- Int_t fGPid;
- Int_t fMultMean;
- Int_t fMultVarianceControl;
- Float_t fTempMean, fTempStDev;
- Float_t fSigmaMean, fSigmaStDev;
- Float_t fExpVelMean, fExpVelStDev;
- Float_t fVnMean[NFLOWTERMS][4];
- Float_t fVnStDev[NFLOWTERMS][4];
-
- // GPid : particle ID ala geant3
- // MultMean, MultVarianceControl: mean multiplicy and variance control
- // MultVarianceControl 0; for no variance in multiplicity
- // MultVarianceControl 1; to allow Poisson distribution for particle multiplicities
- // TempMean, TempStDev: Temperature parameter (in GeV)
- // mean and standard deviation (Gaussian distribution assumed)
- // SigmaMean, SigmaStDev: Rapidity distribution width (sigma)
- // mean and standard deviation (Gaussian distribution assumed)
- // ExpVelMean, ExpVelStDev: Expansion velocity ala Scott Pratt (in units of c)
- // mean and standard deviation (Gaussian distribution assumed)
- // VnMean VnStDev: Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6
- // mean and standard deviation
- // include all 6 sets of parameters, set them to 0 if not used
-
public:
// Constructors and destructors
virtual Float_t GetVnStDevComponent(Int_t nComponent, Int_t nStDev) const;
+ protected:
+
+ Int_t fGPid; //PID
+ Int_t fMultMean; //mean multiplicy control
+ Int_t fMultVarianceControl; //mean variance
+ Float_t fTempMean;//Temperature parameter mean (in GeV) (Gaussian distribution assumed)
+ Float_t fTempStDev;//Temperature parameter standard deviation (in GeV) (Gaussian distribution assumed)
+ Float_t fSigmaMean;// Rapidity distribution width (sigma) (Gaussian distribution assumed)
+ Float_t fSigmaStDev;// Rapidity distribution standard deviation (Gaussian distribution assumed)
+ Float_t fExpVelMean;// Expansion velocity ala Scott Pratt (in units of c) mean
+ Float_t fExpVelStDev;//Expansion velocity ala Scott Pratt (in units of c) standard deviation
+ Float_t fVnMean[NFLOWTERMS][4];// Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6 mean
+ Float_t fVnStDev[NFLOWTERMS][4];//Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6 standard deviation
+
+ // GPid : particle ID ala geant3
+ // MultMean, MultVarianceControl: mean multiplicy and variance control
+ // MultVarianceControl 0; for no variance in multiplicity
+ // MultVarianceControl 1; to allow Poisson distribution for particle multiplicities
+ // TempMean, TempStDev: Temperature parameter (in GeV)
+ // mean and standard deviation (Gaussian distribution assumed)
+ // SigmaMean, SigmaStDev: Rapidity distribution width (sigma)
+ // mean and standard deviation (Gaussian distribution assumed)
+ // ExpVelMean, ExpVelStDev: Expansion velocity ala Scott Pratt (in units of c)
+ // mean and standard deviation (Gaussian distribution assumed)
+ // VnMean VnStDev: Anisotropic flow parameters for Fourier components NFLOWTERMS=1,6
+ // mean and standard deviation
+ // include all 6 sets of parameters, set them to 0 if not used
+
+
ClassDef(TMevSimPartTypeParams,1) //Parameters of the type of particle for MevSim event generator