File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,10 @@ class GeneratorEvtGen : public T
106106 {
107107 auto nparticles = T ::mParticles .size ();
108108 for (Int_t iparticle = 0 ; iparticle < nparticles ; ++ iparticle ) {
109- auto particle = ( TParticle ) T ::mParticles .at (iparticle );
109+ const auto& particle = T ::mParticles .at (iparticle );
110110 if (checkPdg (particle .GetPdgCode ())) {
111111 if (mDebug )
112- std ::cout << "particles in the array (before decay): PDG " << particle .GetPdgCode () << " STATUS " << particle .GetStatusCode () << " position in the array" << iparticle << " First daughter" << particle .GetFirstDaughter () << " Last daughter " << particle .GetLastDaughter () << std ::endl ;
112+ std ::cout << "particles in the array (before decay): PDG " << particle .GetPdgCode () << " STATUS " << particle .GetStatusCode () << " position in the array " << iparticle << " First daughter " << particle .GetFirstDaughter () << " Last daughter " << particle .GetLastDaughter () << std ::endl ;
113113 TLorentzVector * momentum = new TLorentzVector ();
114114 momentum -> SetPxPyPzE (particle .Px (), particle .Py (), particle .Pz (), particle .Energy ());
115115 DecayEvtGen (particle .GetPdgCode (), momentum , mPolarization );
@@ -118,7 +118,7 @@ class GeneratorEvtGen : public T
118118 return kFALSE ;
119119 }
120120 if (mDebug )
121- std ::cout << "particles in the array (after decay): PDG " << particle .GetPdgCode () << " STATUS " << particle .GetStatusCode () << " position in the array" << iparticle << " First daughter" << particle .GetFirstDaughter () << " Last daughter " << particle .GetLastDaughter () << std ::endl ;
121+ std ::cout << "particles in the array (after decay): PDG " << particle .GetPdgCode () << " STATUS " << particle .GetStatusCode () << " position in the array " << iparticle << " First daughter " << particle .GetFirstDaughter () << " Last daughter " << particle .GetLastDaughter () << std ::endl ;
122122 }
123123 }
124124 return kTRUE ;
You can’t perform that action at this time.
0 commit comments