// .. and perform hadronisation
// printf("Calling hadronisation %d\n", fPythia->GetN());
fPythia->Pyexec();
-
- if (gAlice) {
- if (gAlice->GetEvNumber()>=fDebugEventFirst &&
- gAlice->GetEvNumber()<=fDebugEventLast) fPythia->Pylist(1);
- }
-
fTrials++;
fPythia->ImportParticles(fParticles,"All");
Boost();
// quark ?
kf = TMath::Abs(kf);
Int_t kfl = kf;
+ // Resonance
+ if (kfl > 100000) kfl %= 100000;
// meson ?
if (kfl > 10) kfl/=100;
// baryon
if (kfl > 10) kfl/=10;
- if (kfl > 10) kfl/=10;
-
Int_t ipa = iparticle->GetFirstMother()-1;
Int_t kfMo = 0;
// Kinematic seletion on final state heavy flavor mesons
if (ParentSelected(kf) && !KinematicSelection(iparticle, 0))
{
- continue;
+ continue;
}
pSelected[i] = 1;
if (ParentSelected(kf)) ++nParents; // Update parent count
} else {
// Kinematic seletion on decay products
if (fCutOnChild && ParentSelected(kfMo) && ChildSelected(kf)
- && !KinematicSelection(iparticle, 1))
+ && !KinematicSelection(iparticle, 1))
{
- continue;
+ continue;
}
//
// Decay products
if (!pSelected[i]) continue;
// Count quarks only if you did not include fragmentation
if (fFragmentation && kf <= 10) continue;
+
nc++;
// Decision on tracking
trackIt[i] = 0;
Int_t ntrig, njet;
Float_t jets[4][10];
GetJets(njet, ntrig, jets);
+
+ if (gAlice) {
+ if (gAlice->GetEvNumber()>=fDebugEventFirst &&
+ gAlice->GetEvNumber()<=fDebugEventLast) fPythia->Pylist(1);
+ }
for (Int_t i = 0; i < ntrig; i++) {
((AliGenPythiaEventHeader*) fHeader)->AddJet(jets[0][i], jets[1][i], jets[2][i],
Float_t theta = TMath::ATan2(pt,pz);
Float_t et = e * TMath::Sin(theta);
Float_t eta = -TMath::Log(TMath::Tan(theta / 2.));
-
if (
eta > fEtaMinJet && eta < fEtaMaxJet &&
phi > fPhiMinJet && phi < fPhiMaxJet &&