X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVGEN%2FAliGeVSimParticle.cxx;h=ed35fe9be8155e46b7cd104d09f3ade8daf52c85;hb=121a84bb1acf1b52f28fa7db9e061c66e358690e;hp=6f1e1147df1f1582dbd4deb610e6683cff8f2405;hpb=7e4131fc62844dcd207b98f7067e83d6fcb544f9;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVGEN/AliGeVSimParticle.cxx b/EVGEN/AliGeVSimParticle.cxx index 6f1e1147df1..ed35fe9be81 100644 --- a/EVGEN/AliGeVSimParticle.cxx +++ b/EVGEN/AliGeVSimParticle.cxx @@ -1,10 +1,27 @@ -//////////////////////////////////////////////////////////////////////////////// +/************************************************************************** + * 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 @@ -29,12 +46,42 @@ #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) @@ -42,51 +89,33 @@ AliGeVSimParticle::AliGeVSimParticle(Int_t pdg, Int_t model, Float_t multiplicit // 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; } //////////////////////////////////////////////////////////////////////////////////////////////////// @@ -154,7 +183,8 @@ void AliGeVSimParticle::SetEllipticSimple(Float_t v2) { //////////////////////////////////////////////////////////////////////////////////////////////////// -Bool_t AliGeVSimParticle::IsFlowSimple() { +Bool_t AliGeVSimParticle::IsFlowSimple() const +{ // // Function used by AliGenGeVSim //