23 JetScapeEvent::JetScapeEvent() {}
26 partonCollection.clear();
28 for (
unsigned int ipart = 0; ipart < tmp.size(); ipart++) {
29 partonCollection.push_back(c.
getParton(ipart));
33 JetScapeEvent::~JetScapeEvent() { partonCollection.clear(); }
35 const vector<Parton> &JetScapeEvent::getPartonCollection()
const {
36 return partonCollection;
39 const Parton &JetScapeEvent::getParton(
int idx)
const {
40 return partonCollection.at(idx);
43 void JetScapeEvent::addParton(
Parton &
p) { partonCollection.push_back(p); }
46 for (
unsigned int ipart = 0; ipart < ps->GetNumberOfPartons(); ipart++) {
47 partonCollection.push_back(*(ps->GetPartonAt(ipart)));
51 void JetScapeEvent::deleteParton(
int idx) {
52 partonCollection.erase(partonCollection.begin() +
idx);