1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
19 // Generator using the TPythia interface (via AliPythia)
20 // to generate pp collisions.
21 // Using SetNuclei() also nuclear modifications to the structure functions
22 // can be taken into account. This makes, of course, only sense for the
23 // generation of the products of hard processes (heavy flavor, jets ...)
25 // andreas.morsch@cern.ch
28 #include <TDatabasePDG.h>
29 #include <TParticle.h>
35 #include "AliDecayerPythia.h"
36 #include "AliGenPythia.h"
37 #include "AliHeader.h"
38 #include "AliGenPythiaEventHeader.h"
39 #include "AliPythia.h"
40 #include "AliPythiaRndm.h"
43 #include "AliRunLoader.h"
46 ClassImp(AliGenPythia)
48 AliGenPythia::AliGenPythia()
51 // Default Constructor
55 fDecayer = new AliDecayerPythia();
66 if (!AliPythiaRndm::GetPythiaRandom())
67 AliPythiaRndm::SetPythiaRandom(GetRandom());
70 AliGenPythia::AliGenPythia(Int_t npart)
73 // default charm production at 5. 5 TeV
75 // structure function GRVHO
78 fTitle= "Particle Generator using PYTHIA";
86 fDecayer = new AliDecayerPythia();
87 // Set random number generator
88 if (!AliPythiaRndm::GetPythiaRandom())
89 AliPythiaRndm::SetPythiaRandom(GetRandom());
92 fParticles = new TClonesArray("TParticle",1000);
100 SetJetReconstructionMode();
104 // Options determining what to keep in the stack (Heavy flavour generation)
105 fStackFillOpt = kFlavorSelection; // Keep particle with selected flavor
106 fFeedDownOpt = kTRUE; // allow feed down from higher family
107 // Fragmentation on/off
108 fFragmentation = kTRUE;
109 // Default counting mode
110 fCountMode = kCountAll;
112 SetPycellParameters();
116 AliGenPythia::AliGenPythia(const AliGenPythia & Pythia)
123 AliGenPythia::~AliGenPythia()
128 void AliGenPythia::SetPycellParameters(Float_t etamax, Int_t neta, Int_t nphi,
129 Float_t thresh, Float_t etseed, Float_t minet, Float_t r)
131 // Set pycell parameters
132 fPycellEtaMax = etamax;
135 fPycellThreshold = thresh;
136 fPycellEtSeed = etseed;
137 fPycellMinEtJet = minet;
138 fPycellMaxRadius = r;
143 void AliGenPythia::SetEventListRange(Int_t eventFirst, Int_t eventLast)
145 // Set a range of event numbers, for which a table
146 // of generated particle will be printed
147 fDebugEventFirst = eventFirst;
148 fDebugEventLast = eventLast;
149 if (fDebugEventLast==-1) fDebugEventLast=fDebugEventFirst;
152 void AliGenPythia::Init()
156 SetMC(AliPythia::Instance());
157 fPythia=(AliPythia*) fMCEvGen;
160 fParentWeight=1./Float_t(fNpart);
162 // Forward Paramters to the AliPythia object
163 fDecayer->SetForceDecay(fForceDecay);
167 fPythia->SetCKIN(3,fPtHardMin);
168 fPythia->SetCKIN(4,fPtHardMax);
169 fPythia->SetCKIN(7,fYHardMin);
170 fPythia->SetCKIN(8,fYHardMax);
172 if (fAProjectile > 0 && fATarget > 0) fPythia->SetNuclei(fAProjectile, fATarget);
174 if (fFragmentation) {
175 fPythia->SetMSTP(111,1);
177 fPythia->SetMSTP(111,0);
181 // initial state radiation
182 fPythia->SetMSTP(61,fGinit);
183 // final state radiation
184 fPythia->SetMSTP(71,fGfinal);
187 fPythia->SetMSTP(91,1);
188 fPythia->SetPARP(91,fPtKick);
190 fPythia->SetMSTP(91,0);
195 fRL = AliRunLoader::Open(fFileName, "Partons");
196 fRL->LoadKinematics();
204 fPythia->ProcInit(fProcess,fEnergyCMS,fStrucFunc);
206 // Parent and Children Selection
210 case kPyCharmUnforced:
211 case kPyCharmPbPbMNR:
214 fParentSelect[0] = 411;
215 fParentSelect[1] = 421;
216 fParentSelect[2] = 431;
217 fParentSelect[3] = 4122;
223 fParentSelect[0] = 421;
226 case kPyDPlusPbPbMNR:
229 fParentSelect[0] = 411;
233 case kPyBeautyPbPbMNR:
234 case kPyBeautypPbMNR:
236 fParentSelect[0]= 511;
237 fParentSelect[1]= 521;
238 fParentSelect[2]= 531;
239 fParentSelect[3]= 5122;
240 fParentSelect[4]= 5132;
241 fParentSelect[5]= 5232;
242 fParentSelect[6]= 5332;
245 case kPyBeautyUnforced:
246 fParentSelect[0] = 511;
247 fParentSelect[1] = 521;
248 fParentSelect[2] = 531;
249 fParentSelect[3] = 5122;
250 fParentSelect[4] = 5132;
251 fParentSelect[5] = 5232;
252 fParentSelect[6] = 5332;
257 fParentSelect[0] = 443;
267 // JetFinder for Trigger
269 // Configure detector (EMCAL like)
271 fPythia->SetPARU(51, fPycellEtaMax);
272 fPythia->SetMSTU(51, fPycellNEta);
273 fPythia->SetMSTU(52, fPycellNPhi);
275 // Configure Jet Finder
277 fPythia->SetPARU(58, fPycellThreshold);
278 fPythia->SetPARU(52, fPycellEtSeed);
279 fPythia->SetPARU(53, fPycellMinEtJet);
280 fPythia->SetPARU(54, fPycellMaxRadius);
281 fPythia->SetMSTU(54, 2);
283 // This counts the total number of calls to Pyevnt() per run.
298 Warning("Init","SetNuclei used. Use SetProjectile + SetTarget instead. fDyBoost has been reset to 0\n");
302 fPythia->InitQuenching(0., 0.1, 0.6e6, 0);
307 void AliGenPythia::Generate()
309 // Generate one event
311 fDecayer->ForceDecay();
313 Float_t polar[3] = {0,0,0};
314 Float_t origin[3] = {0,0,0};
316 // converts from mm/c to s
317 const Float_t kconv=0.001/2.999792458e8;
325 // Set collision vertex position
326 if (fVertexSmear == kPerEvent) Vertex();
335 // Switch hadronisation off
337 fPythia->SetMSTJ(1, 0);
339 // Either produce new event or read partons from file
341 if (!fReadFromFile) {
343 fNpartons = fPythia->GetN();
345 printf("Loading Event %d\n",AliRunLoader::GetRunLoader()->GetEventNumber());
346 fRL->GetEvent(AliRunLoader::GetRunLoader()->GetEventNumber());
348 LoadEvent(fRL->Stack(), 0 , 1);
353 // Run quenching routine
357 } else if (fQuench == 2){
358 fPythia->Pyquen(208., 0, 0.);
361 // Switch hadronisation on
363 fPythia->SetMSTJ(1, 1);
365 // .. and perform hadronisation
366 // printf("Calling hadronisation %d\n", fPythia->GetN());
370 if (gAlice->GetEvNumber()>=fDebugEventFirst &&
371 gAlice->GetEvNumber()<=fDebugEventLast) fPythia->Pylist(1);
375 fPythia->ImportParticles(fParticles,"All");
383 Int_t np = fParticles->GetEntriesFast();
385 if (np == 0 ) continue;
389 Int_t* pParent = new Int_t[np];
390 Int_t* pSelected = new Int_t[np];
391 Int_t* trackIt = new Int_t[np];
392 for (i = 0; i < np; i++) {
398 Int_t nc = 0; // Total n. of selected particles
399 Int_t nParents = 0; // Selected parents
400 Int_t nTkbles = 0; // Trackable particles
401 if (fProcess != kPyMb && fProcess != kPyJets &&
402 fProcess != kPyDirectGamma &&
403 fProcess != kPyMbNonDiffr) {
405 for (i = 0; i < np; i++) {
406 TParticle* iparticle = (TParticle *) fParticles->At(i);
407 Int_t ks = iparticle->GetStatusCode();
408 kf = CheckPDGCode(iparticle->GetPdgCode());
409 // No initial state partons
410 if (ks==21) continue;
412 // Heavy Flavor Selection
418 if (kfl > 10) kfl/=100;
420 if (kfl > 10) kfl/=10;
421 if (kfl > 10) kfl/=10;
423 Int_t ipa = iparticle->GetFirstMother()-1;
427 TParticle * mother = (TParticle *) fParticles->At(ipa);
428 kfMo = TMath::Abs(mother->GetPdgCode());
430 // What to keep in Stack?
431 Bool_t flavorOK = kFALSE;
432 Bool_t selectOK = kFALSE;
434 if (kfl >= fFlavorSelect) flavorOK = kTRUE;
436 if (kfl > fFlavorSelect) {
440 if (kfl == fFlavorSelect) flavorOK = kTRUE;
442 switch (fStackFillOpt) {
443 case kFlavorSelection:
446 case kParentSelection:
447 if (ParentSelected(kf) || kf <= 10) selectOK = kTRUE;
450 if (flavorOK && selectOK) {
452 // Heavy flavor hadron or quark
454 // Kinematic seletion on final state heavy flavor mesons
455 if (ParentSelected(kf) && !KinematicSelection(iparticle, 0))
460 if (ParentSelected(kf)) ++nParents; // Update parent count
461 // printf("\n particle (HF) %d %d %d", i, pSelected[i], kf);
463 // Kinematic seletion on decay products
464 if (fCutOnChild && ParentSelected(kfMo) && ChildSelected(kf)
465 && !KinematicSelection(iparticle, 1))
471 // Select if mother was selected and is not tracked
473 if (pSelected[ipa] &&
474 !trackIt[ipa] && // mother will be tracked ?
475 kfMo != 5 && // mother is b-quark, don't store fragments
476 kfMo != 4 && // mother is c-quark, don't store fragments
477 kf != 92) // don't store string
480 // Semi-stable or de-selected: diselect decay products:
483 if (pSelected[i] == -1 || fDecayer->GetLifetime(kf) > fMaxLifeTime)
485 Int_t ipF = iparticle->GetFirstDaughter();
486 Int_t ipL = iparticle->GetLastDaughter();
487 if (ipF > 0) for (j = ipF-1; j < ipL; j++) pSelected[j] = -1;
489 // printf("\n particle (decay) %d %d %d", i, pSelected[i], kf);
490 pSelected[i] = (pSelected[i] == -1) ? 0 : 1;
493 if (pSelected[i] == -1) pSelected[i] = 0;
494 if (!pSelected[i]) continue;
495 // Count quarks only if you did not include fragmentation
496 if (fFragmentation && kf <= 10) continue;
498 // Decision on tracking
501 // Track final state particle
502 if (ks == 1) trackIt[i] = 1;
503 // Track semi-stable particles
504 if ((ks == 1) || (fDecayer->GetLifetime(kf) > fMaxLifeTime)) trackIt[i] = 1;
505 // Track particles selected by process if undecayed.
506 if (fForceDecay == kNoDecay) {
507 if (ParentSelected(kf)) trackIt[i] = 1;
509 if (ParentSelected(kf)) trackIt[i] = 0;
511 if (trackIt[i] == 1) ++nTkbles; // Update trackable counter
515 } // particle selection loop
517 for (i = 0; i<np; i++) {
518 if (!pSelected[i]) continue;
519 TParticle * iparticle = (TParticle *) fParticles->At(i);
520 kf = CheckPDGCode(iparticle->GetPdgCode());
521 Int_t ks = iparticle->GetStatusCode();
522 p[0] = iparticle->Px();
523 p[1] = iparticle->Py();
524 p[2] = iparticle->Pz();
525 p[3] = iparticle->Energy();
527 origin[0] = fVertex[0]+iparticle->Vx()/10; // [cm]
528 origin[1] = fVertex[1]+iparticle->Vy()/10; // [cm]
529 origin[2] = fVertex[2]+iparticle->Vz()/10; // [cm]
531 Float_t tof = kconv*iparticle->T();
532 Int_t ipa = iparticle->GetFirstMother()-1;
533 Int_t iparent = (ipa > -1) ? pParent[ipa] : -1;
535 PushTrack(fTrackIt*trackIt[i], iparent, kf,
536 p[0], p[1], p[2], p[3],
537 origin[0], origin[1], origin[2], tof,
538 polar[0], polar[1], polar[2],
539 kPPrimary, nt, 1., ks);
548 if (pParent) delete[] pParent;
549 if (pSelected) delete[] pSelected;
550 if (trackIt) delete[] trackIt;
553 switch (fCountMode) {
555 // printf(" Count all \n");
559 // printf(" Count parents \n");
562 case kCountTrackables:
563 // printf(" Count trackable \n");
567 if (jev >= fNpart || fNpart == -1) {
568 fKineBias=Float_t(fNpart)/Float_t(fTrials);
569 printf("\n Trials: %i %i %i\n",fTrials, fNpart, jev);
571 fQ += fPythia->GetVINT(51);
572 fX1 += fPythia->GetVINT(41);
573 fX2 += fPythia->GetVINT(42);
574 fTrialsRun += fTrials;
581 SetHighWaterMark(nt);
582 // adjust weight due to kinematic selection
585 fXsection=fPythia->GetPARI(1);
588 Int_t AliGenPythia::GenerateMB()
591 // Min Bias selection and other global selections
593 Int_t i, kf, nt, iparent;
596 Float_t polar[3] = {0,0,0};
597 Float_t origin[3] = {0,0,0};
598 // converts from mm/c to s
599 const Float_t kconv=0.001/2.999792458e8;
603 Int_t np = (fHadronisation) ? fParticles->GetEntriesFast() : fNpartons;
606 Int_t* pParent = new Int_t[np];
607 for (i=0; i< np; i++) pParent[i] = -1;
608 if (fProcess == kPyJets || fProcess == kPyDirectGamma) {
609 TParticle* jet1 = (TParticle *) fParticles->At(6);
610 TParticle* jet2 = (TParticle *) fParticles->At(7);
611 if (!CheckTrigger(jet1, jet2)) return 0;
614 for (i = 0; i<np; i++) {
616 TParticle * iparticle = (TParticle *) fParticles->At(i);
617 kf = CheckPDGCode(iparticle->GetPdgCode());
618 Int_t ks = iparticle->GetStatusCode();
619 Int_t km = iparticle->GetFirstMother();
620 if ((ks == 1 && kf!=0 && KinematicSelection(iparticle, 0)) ||
622 (fProcess == kPyJets && ks == 21 && km == 0 && i>1)) {
624 if (ks == 1) trackIt = 1;
625 Int_t ipa = iparticle->GetFirstMother()-1;
627 iparent = (ipa > -1) ? pParent[ipa] : -1;
630 // store track information
631 p[0] = iparticle->Px();
632 p[1] = iparticle->Py();
633 p[2] = iparticle->Pz();
634 p[3] = iparticle->Energy();
637 origin[0] = fVertex[0]+iparticle->Vx()/10; // [cm]
638 origin[1] = fVertex[1]+iparticle->Vy()/10; // [cm]
639 origin[2] = fVertex[2]+iparticle->Vz()/10; // [cm]
641 Float_t tof=kconv*iparticle->T();
643 PushTrack(fTrackIt*trackIt, iparent, kf,
644 p[0], p[1], p[2], p[3],
645 origin[0], origin[1], origin[2], tof,
646 polar[0], polar[1], polar[2],
647 kPPrimary, nt, 1., ks);
649 // Special Treatment to store color-flow
651 if (ks == 3 || ks == 13 || ks == 14) {
652 TParticle* particle = 0;
654 particle = fStack->Particle(nt);
656 particle = gAlice->Stack()->Particle(nt);
658 particle->SetFirstDaughter(fPythia->GetK(2, i));
659 particle->SetLastDaughter(fPythia->GetK(3, i));
667 if (pParent) delete[] pParent;
669 printf("\n I've put %i particles on the stack \n",nc);
674 void AliGenPythia::FinishRun()
676 // Print x-section summary
681 printf("\nTotal number of Pyevnt() calls %d\n", fTrialsRun);
682 printf("\nMean Q, x1, x2: %f %f %f\n", fQ, fX1, fX2);
687 void AliGenPythia::AdjustWeights()
689 // Adjust the weights after generation of all events
693 Int_t ntrack=gAlice->GetMCApp()->GetNtrack();
694 for (Int_t i=0; i<ntrack; i++) {
695 part= gAlice->GetMCApp()->Particle(i);
696 part->SetWeight(part->GetWeight()*fKineBias);
701 void AliGenPythia::SetNuclei(Int_t a1, Int_t a2)
703 // Treat protons as inside nuclei with mass numbers a1 and a2
711 void AliGenPythia::MakeHeader()
713 // Builds the event header, to be called after each event
714 if (fHeader) delete fHeader;
715 fHeader = new AliGenPythiaEventHeader("Pythia");
718 ((AliGenPythiaEventHeader*) fHeader)->SetProcessType(fPythia->GetMSTI(1));
721 ((AliGenPythiaEventHeader*) fHeader)->SetTrials(fTrials);
724 fHeader->SetPrimaryVertex(fVertex);
726 // Jets that have triggered
727 if (fProcess == kPyJets)
731 GetJets(njet, ntrig, jets);
733 for (Int_t i = 0; i < ntrig; i++) {
734 ((AliGenPythiaEventHeader*) fHeader)->AddJet(jets[0][i], jets[1][i], jets[2][i],
739 // Copy relevant information from external header, if present.
744 AliGenPythiaEventHeader* exHeader = (AliGenPythiaEventHeader*) (fRL->GetHeader()->GenEventHeader());
745 for (Int_t i = 0; i < exHeader->NTriggerJets(); i++)
747 printf("Adding Jet %d %d \n", i, exHeader->NTriggerJets());
750 exHeader->TriggerJet(i, uqJet);
751 ((AliGenPythiaEventHeader*) fHeader)->AddUQJet(uqJet[0], uqJet[1], uqJet[2], uqJet[3]);
755 // Store quenching parameters
761 fPythia->GetQuenchingParameters(xp, yp, z);
763 ((AliGenPythiaEventHeader*) fHeader)->SetXYJet(xp, yp);
764 ((AliGenPythiaEventHeader*) fHeader)->SetZQuench(z);
768 // Pass header to RunLoader
770 AliRunLoader::GetRunLoader()->GetHeader()->SetGenEventHeader(fHeader);
774 Bool_t AliGenPythia::CheckTrigger(TParticle* jet1, TParticle* jet2)
776 // Check the kinematic trigger condition
779 eta[0] = jet1->Eta();
780 eta[1] = jet2->Eta();
782 phi[0] = jet1->Phi();
783 phi[1] = jet2->Phi();
785 pdg[0] = jet1->GetPdgCode();
786 pdg[1] = jet2->GetPdgCode();
787 Bool_t triggered = kFALSE;
789 if (fProcess == kPyJets) {
794 // Use Pythia clustering on parton level to determine jet axis
796 GetJets(njets, ntrig, jets);
798 if (ntrig) triggered = kTRUE;
803 if (pdg[0] == kGamma) {
807 //Check eta range first...
808 if ((eta[ij] < fEtaMaxJet && eta[ij] > fEtaMinJet) &&
809 (eta[ig] < fEtaMaxGamma && eta[ig] > fEtaMinGamma))
811 //Eta is okay, now check phi range
812 if ((phi[ij] < fPhiMaxJet && phi[ij] > fPhiMinJet) &&
813 (phi[ig] < fPhiMaxGamma && phi[ig] > fPhiMinGamma))
822 AliGenPythia& AliGenPythia::operator=(const AliGenPythia& rhs)
824 // Assignment operator
829 void AliGenPythia::LoadEvent(AliStack* stack, Int_t flag, Int_t reHadr)
832 // Load event into Pythia Common Block
835 Int_t npart = stack -> GetNprimary();
839 (fPythia->GetPyjets())->N = npart;
841 n0 = (fPythia->GetPyjets())->N;
842 (fPythia->GetPyjets())->N = n0 + npart;
846 for (Int_t part = 0; part < npart; part++) {
847 TParticle *MPart = stack->Particle(part);
849 Int_t kf = MPart->GetPdgCode();
850 Int_t ks = MPart->GetStatusCode();
851 Int_t idf = MPart->GetFirstDaughter();
852 Int_t idl = MPart->GetLastDaughter();
855 if (ks == 11 || ks == 12) {
862 Float_t px = MPart->Px();
863 Float_t py = MPart->Py();
864 Float_t pz = MPart->Pz();
865 Float_t e = MPart->Energy();
866 Float_t m = MPart->GetCalcMass();
869 (fPythia->GetPyjets())->P[0][part+n0] = px;
870 (fPythia->GetPyjets())->P[1][part+n0] = py;
871 (fPythia->GetPyjets())->P[2][part+n0] = pz;
872 (fPythia->GetPyjets())->P[3][part+n0] = e;
873 (fPythia->GetPyjets())->P[4][part+n0] = m;
875 (fPythia->GetPyjets())->K[1][part+n0] = kf;
876 (fPythia->GetPyjets())->K[0][part+n0] = ks;
877 (fPythia->GetPyjets())->K[3][part+n0] = idf + 1;
878 (fPythia->GetPyjets())->K[4][part+n0] = idl + 1;
879 (fPythia->GetPyjets())->K[2][part+n0] = MPart->GetFirstMother() + 1;
884 void AliGenPythia::RecJetsUA1(Int_t& njets, Float_t jets [4][50])
887 // Calls the Pythia jet finding algorithm to find jets in the current event
892 Int_t n = fPythia->GetN();
896 fPythia->Pycell(njets);
898 for (i = 0; i < njets; i++) {
899 Float_t px = (fPythia->GetPyjets())->P[0][n+i];
900 Float_t py = (fPythia->GetPyjets())->P[1][n+i];
901 Float_t pz = (fPythia->GetPyjets())->P[2][n+i];
902 Float_t e = (fPythia->GetPyjets())->P[3][n+i];
913 void AliGenPythia::GetJets(Int_t& nJets, Int_t& nJetsTrig, Float_t jets[4][10])
916 // Calls the Pythia clustering algorithm to find jets in the current event
918 Int_t n = fPythia->GetN();
921 if (fJetReconstruction == kCluster) {
923 // Configure cluster algorithm
925 fPythia->SetPARU(43, 2.);
926 fPythia->SetMSTU(41, 1);
928 // Call cluster algorithm
930 fPythia->Pyclus(nJets);
932 // Loading jets from common block
938 fPythia->Pycell(nJets);
942 for (i = 0; i < nJets; i++) {
943 Float_t px = (fPythia->GetPyjets())->P[0][n+i];
944 Float_t py = (fPythia->GetPyjets())->P[1][n+i];
945 Float_t pz = (fPythia->GetPyjets())->P[2][n+i];
946 Float_t e = (fPythia->GetPyjets())->P[3][n+i];
947 Float_t pt = TMath::Sqrt(px * px + py * py);
948 Float_t phi = TMath::Pi() + TMath::ATan2(-py, -px);
949 Float_t theta = TMath::ATan2(pt,pz);
950 Float_t et = e * TMath::Sin(theta);
951 Float_t eta = -TMath::Log(TMath::Tan(theta / 2.));
954 eta > fEtaMinJet && eta < fEtaMaxJet &&
955 phi > fPhiMinJet && phi < fPhiMaxJet &&
956 et > fEtMinJet && et < fEtMaxJet
959 jets[0][nJetsTrig] = px;
960 jets[1][nJetsTrig] = py;
961 jets[2][nJetsTrig] = pz;
962 jets[3][nJetsTrig] = e;
964 // printf("\n........-Jet #%d: %10.3f %10.3f %10.3f %10.3f \n", i, pt, et, eta, phi * kRaddeg);
966 // printf("\n........-Jet #%d: %10.3f %10.3f %10.3f %10.3f \n", i, pt, et, eta, phi * kRaddeg);
973 void AliGenPythia::Streamer(TBuffer &R__b)
975 // Stream an object of class AliGenPythia.
977 if (R__b.IsReading()) {
978 Version_t R__v = R__b.ReadVersion(); if (R__v) { }
979 AliGenerator::Streamer(R__b);
980 R__b >> (Int_t&)fProcess;
981 R__b >> (Int_t&)fStrucFunc;
982 R__b >> (Int_t&)fForceDecay;
986 fParentSelect.Streamer(R__b);
987 fChildSelect.Streamer(R__b);
989 // (AliPythia::Instance())->Streamer(R__b);
992 // if (fDecayer) fDecayer->Streamer(R__b);
994 R__b.WriteVersion(AliGenPythia::IsA());
995 AliGenerator::Streamer(R__b);
996 R__b << (Int_t)fProcess;
997 R__b << (Int_t)fStrucFunc;
998 R__b << (Int_t)fForceDecay;
1002 fParentSelect.Streamer(R__b);
1003 fChildSelect.Streamer(R__b);
1008 // fDecayer->Streamer(R__b);