AliGenPythia::AliGenPythia():
AliGenMC(),
fProcess(kPyCharm),
+ fItune(-1),
fStrucFunc(kCTEQ5L),
fKineBias(0.),
fTrials(0),
fQuench(0),
fQhat(0.),
fLength(0.),
+ fImpact(0.),
fPtKick(1.),
fFullEvent(kTRUE),
fDecayer(new AliDecayerPythia()),
AliGenPythia::AliGenPythia(Int_t npart)
:AliGenMC(npart),
fProcess(kPyCharm),
+ fItune(-1),
fStrucFunc(kCTEQ5L),
fKineBias(0.),
fTrials(0),
fQuench(kFALSE),
fQhat(0.),
fLength(0.),
+ fImpact(0.),
fPtKick(1.),
fFullEvent(kTRUE),
fDecayer(new AliDecayerPythia()),
fRL = 0x0;
}
//
- fPythia->ProcInit(fProcess,fEnergyCMS,fStrucFunc);
+ fPythia->ProcInit(fProcess,fEnergyCMS,fStrucFunc, fItune);
// Forward Paramters to the AliPythia object
fDecayer->SetForceDecay(fForceDecay);
// Switch off Heavy Flavors on request
fPythia->SetPARJ(200, 1.);
fPythia->SetPARJ(198, fQhat);
fPythia->SetPARJ(199, fLength);
-
- fPythia->SetMSTJ(41, 1); // QCD radiation only
fPythia->SetMSTJ(42, 2); // angular ordering
fPythia->SetMSTJ(44, 2); // option to run alpha_s
- //fPythia->SetMSTJ(47, 0); // No correction back to hard scattering element
- //fPythia->SetMSTJ(50, 0); // No coherence in first branching
fPythia->SetPARJ(82, 1.); // Cut off for parton showers
- // MSTJ(41) must NOT be 11 or 12, as then FSR may go through PYPTFS
- // (kt-ordered cascade) in which medium effects have not been introduced.
}
}
Double_t bimp;
// Quenching comes through medium-modified splitting functions.
AliFastGlauber::Instance()->GetRandomBHard(bimp);
- fPythia->SetPARJ(197,bimp);
+ fPythia->SetPARJ(197, bimp);
+ fImpact = bimp;
}
//
// Either produce new event or read partons from file
Int_t pdg = 11; //electron
- Float_t pt, eta, phi;
+ Float_t pt = 0.;
+ Float_t eta = 0.;
+ Float_t phi = 0.;
for (i=0; i< np; i++) {
TParticle* iparticle = (TParticle *) fParticles.At(i);
if(iparticle->GetStatusCode()==1 && TMath::Abs(iparticle->GetPdgCode())==pdg &&
AliFastGlauber::Instance()->GetSavedI0I1(i0i1);
xp = xy[0];
yp = xy[1];
- ((AliGenPythiaEventHeader*) fHeader)->SetInMediumLength(2. * i0i1[1] / i0i1[0]);
+ ((AliGenPythiaEventHeader*) fHeader)->SetImpactParameter(fImpact);
}
((AliGenPythiaEventHeader*) fHeader)->SetXYJet(xp, yp);