-////////////////////////////////////////////////////////////////////////////////
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
+//////////////////////////////////////////////////////////////////////////////
//
// AliGeVSimParticle is a helper class for GeVSim (AliGenGeVSim) event generator.
// An object of this class represents one particle type and contain
// information about particle type thermal parameters.
//
-////////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
//
// For examples, parameters and testing macros refer to:
// http:/home.cern.ch/radomski
#include "TMath.h"
#include "AliGeVSimParticle.h"
-ClassImp(AliGeVSimParticle);
+ClassImp(AliGeVSimParticle)
+
////////////////////////////////////////////////////////////////////////////////////////////////////
+AliGeVSimParticle::AliGeVSimParticle():
+ fPDG(0),
+ fModel(0),
+ fN(0),
+ fMultTotal(kTRUE),
+ fIsSetMult(kFALSE),
+ fT(0.),
+ fSigmaY(0.),
+ fExpansion(0.),
+ fIsDirectedSimple(kTRUE),
+ fIsEllipticSimple(kTRUE),
+ fIsEllipticOld(kFALSE)
+{
+ // Default constructor
+ for (Int_t i = 0; i < 4; i++) fV1[i] = 0.;
+ for (Int_t i = 0; i < 3; i++) fV2[i] = 0.;
+}
AliGeVSimParticle::AliGeVSimParticle(Int_t pdg, Int_t model, Float_t multiplicity,
- Float_t T, Float_t dY, Float_t exp) {
+ Float_t T, Float_t dY, Float_t exp):
+ fPDG(pdg),
+ fModel(model),
+ fN(multiplicity),
+ fMultTotal(kTRUE),
+ fIsSetMult(kFALSE),
+ fT(T),
+ fSigmaY(dY),
+ fExpansion(exp),
+ fIsDirectedSimple(kTRUE),
+ fIsEllipticSimple(kTRUE),
+ fIsEllipticOld(kFALSE)
+{
//
// pdg - Particle type code in PDG standard (see: http://pdg.lbl.gov)
// model - momentum distribution model (1 - 7)
// T - Inverse slope parameter ("temperature")
// dY - Raridity Width (only for model 1)
// exp - expansion velocity (only for model 4)
-
- fPDG = pdg;
- fT = T;
- fSigmaY = dY;
- fExpansion = exp;
-
- fN = multiplicity;
- fMultTotal = kTRUE;
- fIsSetMult = kFALSE;
-
- SetModel(model);
-
fV1[0] = fV1[1] = fV1[2] = fV1[3] = 0.;
fV2[0] = fV2[1] = fV2[2] = 0.;
-
- fIsEllipticSimple = fIsDirectedSimple = kTRUE;
- fIsEllipticOld = kFALSE;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
-AliGeVSimParticle::AliGeVSimParticle(Int_t pdg, Int_t model, Float_t multiplicity) {
+AliGeVSimParticle::AliGeVSimParticle(Int_t pdg, Int_t model, Float_t multiplicity):
+ fPDG(pdg),
+ fModel(model),
+ fN(multiplicity),
+ fMultTotal(kTRUE),
+ fIsSetMult(kFALSE),
+ fT(0.),
+ fSigmaY(0.),
+ fExpansion(0.),
+ fIsDirectedSimple(kTRUE),
+ fIsEllipticSimple(kTRUE),
+ fIsEllipticOld(kFALSE)
+ {
//
// pdg - Particle type code in PDG standard (see: http://pdg.lbl.gov)
//
// Note that multiplicity can be interpreted by GeVSim
// either as Total multiplicity in the acceptance or dN/dY
//
-
- fPDG = pdg;
- fN = multiplicity;
- fMultTotal = kTRUE;
- fIsSetMult = kFALSE;
-
- SetModel(model);
-
- fT = 0.;
- fSigmaY = 0.;
- fExpansion = 0.;
-
fV1[0] = fV1[1] = fV1[2] = fV1[3] = 0.;
fV2[0] = fV2[1] = fV2[2] = 0.;
-
- fIsEllipticSimple = fIsDirectedSimple = kTRUE;
- fIsEllipticOld = kFALSE;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
-Bool_t AliGeVSimParticle::IsFlowSimple() {
+Bool_t AliGeVSimParticle::IsFlowSimple() const
+{
//
// Function used by AliGenGeVSim
//