]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fragmentation scheme according to fHadronisation flag.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Jul 2005 10:44:55 +0000 (10:44 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Jul 2005 10:44:55 +0000 (10:44 +0000)
PYTHIA6/AliGenPythia.cxx

index eff351b900b9920bf12d2ace935f712a11acdd04..1987ec0cdeab5f255fa5187d8182acef7fa1a686 100644 (file)
@@ -427,10 +427,10 @@ void AliGenPythia::Generate()
 //
 // Switch hadronisation on
 //
 //
 // Switch hadronisation on
 //
-       fPythia->SetMSTJ(1, 1);
+       fPythia->SetMSTJ(1, fHadronisation);
+       
 //
 // .. and perform hadronisation
 //
 // .. and perform hadronisation
-//     printf("Calling hadronisation %d\n", fPythia->GetN());
        fPythia->Pyexec();      
        fTrials++;
        fPythia->ImportParticles(fParticles,"All");
        fPythia->Pyexec();      
        fTrials++;
        fPythia->ImportParticles(fParticles,"All");
@@ -686,7 +686,7 @@ Int_t  AliGenPythia::GenerateMB()
 
     
     Int_t np = (fHadronisation) ? fParticles->GetEntriesFast() : fNpartons;
 
     
     Int_t np = (fHadronisation) ? fParticles->GetEntriesFast() : fNpartons;
-
+    
 
     Int_t* pParent = new Int_t[np];
     for (i=0; i< np; i++) pParent[i] = -1;
 
     Int_t* pParent = new Int_t[np];
     for (i=0; i< np; i++) pParent[i] = -1;