96 double WR, TLorentzVector p4R,
97 unsigned int& rpos, TClonesArray * particle_list)
const
99#ifdef __GENIE_PYTHIA6_ENABLED__
104 fPythia->SetMDCY(fPythia->Pycomp(
kPdgPi0), 1,0);
112 py2ent_(&ip, &qrkSyst1, &qrkSyst2, &WR);
114 fPythia->SetMDCY(fPythia->Pycomp(
kPdgPi0),1,1);
117 TClonesArray * pythia_remnants = 0;
118 fPythia->GetPrimaries();
119 pythia_remnants =
dynamic_cast<TClonesArray *
>(fPythia->ImportParticles(
"All"));
121 int np = pythia_remnants->GetEntries();
129 TVector3 rmnbeta = +1 * p4R.BoostVector();
131 TMCParticle * pythia_remn = 0;
133 TIter remn_iter(pythia_remnants);
134 while( (pythia_remn = (TMCParticle *) remn_iter.Next()) ) {
137 bremn =
new ((*particle_list)[rpos++])
GHepParticle ( pythia_remn->GetKF(),
139 pythia_remn->GetParent(),
141 pythia_remn->GetFirstChild(),
142 pythia_remn->GetLastChild(),
143 pythia_remn -> GetPx(),
144 pythia_remn -> GetPy(),
145 pythia_remn -> GetPz(),
146 pythia_remn -> GetEnergy(),
147 pythia_remn->GetVx(),
148 pythia_remn->GetVy(),
149 pythia_remn->GetVz(),
150 pythia_remn->GetTime()
154 bremn -> P4() -> Boost( rmnbeta ) ;
161 bremn -> SetFirstMother( (jp == 0 ? 1 : jp +1) );
162 bremn -> SetFirstDaughter ( (ifc == 0 ? -1 : ifc+1) );
163 bremn -> SetLastDaughter ( (ilc == 0 ? -1 : ilc+1) );
168 <<
"calling GENIE/PYTHIA6 charm hadronization without enabling PYTHIA6"
169 <<
" qrkSyst " << qrkSyst1 <<
"," << qrkSyst2 <<
" WR " << WR;
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
STDHEP-like event record entry that can fit a particle or a nucleus.
int FirstMother(void) const
int LastDaughter(void) const
int FirstDaughter(void) const