42 #include "StPythiaEvent.h"
48 StPythiaEvent::StPythiaEvent()
50 mParticles =
new TClonesArray(
"TParticle");
55 StPythiaEvent::~StPythiaEvent()
59 if (mParticles) {
delete mParticles; mParticles = 0; }
65 mEventId = t.mEventId;
66 mProcessId = t.mProcessId;
73 mCosTheta = t.mCosTheta;
78 mMstp111 = t.mMstp111;
79 mPartonALL = t.mPartonALL;
81 copy(t.mDF1,t.mDF1+NPDF,mDF1);
82 copy(t.mDF2,t.mDF2+NPDF,mDF2);
84 copy(t.mF1,t.mF1+2,mF1);
85 copy(t.mF2,t.mF2+2,mF2);
87 mParticles =
new TClonesArray(
"TParticle");
89 for (
int i = 0; i < t.mParticles->GetEntriesFast(); ++i) {
90 TParticle* p = (TParticle*)t.mParticles->At(i);
91 new ((*mParticles)[i]) TParticle(*p);
97 if(
this == &rhs)
return *
this;
100 mEventId = rhs.mEventId;
101 mProcessId = rhs.mProcessId;
103 mVertex = rhs.mVertex;
108 mCosTheta = rhs.mCosTheta;
111 mMstu72 = rhs.mMstu72;
112 mMstu73 = rhs.mMstu73;
113 mMstp111 = rhs.mMstp111;
114 mPartonALL = rhs.mPartonALL;
116 copy(rhs.mDF1,rhs.mDF1+NPDF,mDF1);
117 copy(rhs.mDF2,rhs.mDF2+NPDF,mDF2);
119 copy(rhs.mF1,rhs.mF1+2,mF1);
120 copy(rhs.mF2,rhs.mF2+2,mF2);
124 for (
int i = 0; i < rhs.mParticles->GetEntriesFast(); ++i) {
125 TParticle* p = (TParticle*)rhs.mParticles->At(i);
126 new ((*mParticles)[i]) TParticle(*p);