53 while (!strT.done()) {
55 if (token.compare(
"V") != 0)
59 nodeVec.push_back(pShower->new_vertex(
60 make_shared<Vertex>(stod(vS[1]), stod(vS[2]), stod(vS[3]), stod(vS[4]))));
64 if (nodeVec.size() > 1) {
71 while (!strT.done()) {
73 if (token.compare(
"P") != 0)
78 nodeVec[stoi(vS[0])], nodeVec[stoi(vS[1])],
80 stoi(vS[2]), stoi(vS[3]), stoi(vS[4]), stod(vS[5]), stod(vS[6]),
85 JSWARN <<
"Node vector not filled, can not add edges/partons!";
94 x[0] = x[1] = x[2] = x[3] = 0.0;
95 while (!strT.done()) {
97 if (token.compare(
"H") != 0)
100 hadrons.push_back(make_shared<Hadron>(stoi(vS[1]), stoi(vS[2]), stoi(vS[3]),
101 stod(vS[4]), stod(vS[5]), stod(vS[6]),
106 if (currentEvent > 0)
113 JSINFO <<
"Current Event = " << currentEvent;
115 pShowers.push_back(make_shared<PartonShower>());
116 pShower = pShowers[0];
119 int nodeZeroCounter = 0;
121 while (getline(inFile, line)) {
124 if (strT.isCommentEntry()) {
127 if (line.find(
"sigmaGen") != std::string::npos) {
128 std::stringstream
data(line);
134 if (line.find(
"sigmaErr") != std::string::npos) {
135 std::stringstream
data(line);
141 if (line.find(
"weight") != std::string::npos) {
142 std::stringstream
data(line);
148 if (line.find(EPAngleStr) != std::string::npos) {
149 std::stringstream
data(line);
157 if (strT.isEventEntry()) {
158 int newEvent = stoi(strT.next());
159 if (currentEvent != newEvent && currentEvent > -1) {
163 currentEvent = newEvent;
168 if (!strT.isGraphEntry())
172 if (strT.isNodeEntry()) {
174 if (strT.isNodeZero()) {
176 if (nodeZeroCounter > currentShower) {
179 pShowers.push_back(make_shared<PartonShower>());
180 pShower = pShowers.back();
189 if (strT.isEdgeEntry()) {
206 vector<fjcore::PseudoJet> forFJ;
208 for (
auto &
h : hadrons) {
209 forFJ.push_back(
h->GetPseudoJet());
216 VERBOSE(8) <<
"Open Input File = " << file_name_in;
217 JSINFO <<
"Open Input File = " << file_name_in;
219 inFile.open(file_name_in.c_str());
221 if (!inFile.good()) {
222 JSWARN <<
"Corrupt input file!";
230 template class JetScapeReader<ifstream>;
233 template class JetScapeReader<igzstream>;