EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EventDjangoh.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EventDjangoh.cxx
1 
11 
12 #include <sstream>
13 #include <string>
14 
15 namespace erhic {
16 
17 bool EventDjangoh::Parse(const std::string& line) {
18  static std::stringstream ss;
19  // old djangoh doesn't have evtstatus
20  // the stringstream should be okay with that, but we'll need a default value
21  evtstatus=0;
22  ss.str("");
23  ss.clear();
24  ss << line;
25  ss >>
26  number >> number >> // Skip first int in the line
28  dpartontrck >> dY >> dQ2 >> dX >> dW2 >> dNu >>
29  dtrueY >> dtrueQ2 >> dtrueX >> dtrueW2 >> dtrueNu >>
30  sigTot >> sigTotErr >> D >> F1NC >> F3NC >> G1NC >> G3NC >>
31  A1NC >> F1CC >> F3CC >> G1CC >> G5CC >>
32  nTracks >> evtstatus;
33  // Ordinarily, we want to protect against errors in the input file or the stream
34  //return !ss.fail();
35  // ... but since we're accomodating an optional final evtstatus, we have to fudge
36  return true;
37 }
38 
39 } // namespace erhic