You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intoffset=mPythia.event.size(); // we need to rescale the indices of mothers and daughters, accounting for the particles that are already appended to the event
168
181
for (intiPart{0}; iPart<mPythiaGun.event.size(); ++iPart) {
169
-
mPythia.append(mPythiaGun.event[iPart]);
182
+
auto part=mPythiaGun.event[iPart];
183
+
if (part.id() ==90) {
184
+
continue;
185
+
}
186
+
auto mother1=part.mother1();
187
+
auto mother2=part.mother2();
188
+
auto daughter1=part.daughter1();
189
+
auto daughter2=part.daughter2();
190
+
if (mother1>0) {
191
+
part.mother1(mother1+offset);
192
+
}
193
+
if (mother2>0) {
194
+
part.mother2(mother2+offset);
195
+
}
196
+
if (daughter1>0) {
197
+
part.daughter1(daughter1+offset);
198
+
}
199
+
if (daughter2>0) {
200
+
part.daughter2(daughter2+offset);
201
+
}
202
+
mPythia.event.append(part);
170
203
}
171
204
}
172
-
mPythiaGun.next();
173
205
}
174
206
}
175
207
176
-
mPythia.next();
177
-
178
208
return true;
179
209
}
180
210
181
211
private:
182
212
// Properties of selection
183
-
floatmMassCharmNucleus;
184
-
intmPdgCharmNucleus;
185
-
floatmLifetimeCharmNucleus;
186
-
intnNumberOfCharmNucleiPerEvent;
187
-
floatmRapidityMinCharmNuclei;
188
-
floatmRapidityMaxCharmNuclei;
189
-
unsigned intmUsedSeed;
190
-
191
-
boolmTrivialCoal= false; /// if true, the coalescence is done without checking the distance in the phase space of the nucleons
192
-
floatmCoalMomentum; /// coalescence momentum
193
-
194
-
Pythia8::PythiamPythiaGun; // Gun generator with decay support
195
-
196
-
TF1*mDecayDistr;
213
+
floatmMassCharmNucleus; /// mass of the charmed nucleus
214
+
intmPdgCharmNucleus; /// pdg code of the charmed nucleus
215
+
floatmLifetimeCharmNucleus; /// lifetime of the charmed nucleus
216
+
intnNumberOfCharmNucleiPerEvent; /// number of charmed nuclei injected per event
217
+
floatmRapidityMinCharmNuclei; /// rapidity min
218
+
floatmRapidityMaxCharmNuclei; /// rapidity max
219
+
unsigned intmUsedSeed; /// seed
220
+
boolmTrivialCoal; /// if true, the coalescence is done without checking the distance in the phase space of the nucleons
221
+
floatmCoalMomentum; /// coalescence momentum
222
+
Pythia8::PythiamPythiaGun; /// Gun generator with decay support
0 commit comments