/*
$Log$
+Revision 1.5 2003/04/04 08:12:56 morsch
+Boost for assymmetric systems added.
+
Revision 1.4 2003/04/01 20:39:00 morsch
Pycell configurable.
SetGammaPhiRange();
SetGammaEtaRange();
SetPtKick();
+ fSetNuclei = kFALSE;
}
AliGenPythia::AliGenPythia(Int_t npart)
fCountMode = kCountAll;
// Pycel
SetPycellParameters();
+ fSetNuclei = kFALSE;
}
AliGenPythia::AliGenPythia(const AliGenPythia & Pythia)
fX2 = 0.;
fNev = 0 ;
//
+//
+//
AliGenMC::Init();
+//
+//
+//
+ if (fSetNuclei) {
+ fDyBoost = 0;
+ Warning("Init","SetNuclei used. Use SetProjectile + SetTarget instead. fDyBoost has been reset to 0\n");
+ }
}
void AliGenPythia::Generate()
fPythia->ImportParticles(fParticles,"All");
- if (fZTarget != 0 && fAProjectile != 0)
- {
- Double_t dy = - 0.5 * TMath::Log(Double_t(fZProjectile) * Double_t(fATarget) /
- (Double_t(fZTarget) * Double_t(fAProjectile)));
- Boost(dy);
- }
+ Boost();
//
//
//
void AliGenPythia::SetNuclei(Int_t a1, Int_t a2)
{
// Treat protons as inside nuclei with mass numbers a1 and a2
+
fAProjectile = a1;
fATarget = a2;
+ fSetNuclei = kTRUE;
}
Bool_t fFeedDownOpt; // Option to set feed down from higher
// quark families (e.g. b->c)
Bool_t fFragmentation; // Option to activate fragmentation by Pythia
+ Bool_t fSetNuclei; // Flag indicating that SetNuclei has been called
//
CountMode_t fCountMode; // Options for counting when the event will be finished.