eic-smear  1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
EventDjangoh.cxx
Go to the documentation of this file.
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  ss.str("");
20  ss.clear();
21  ss << line;
22  ss >>
23  number >> number >> // Skip first int in the line
24  IChannel >> dprocess >> process >> nucleon >> dstruckparton >>
25  dpartontrck >> dY >> dQ2 >> dX >> dW2 >> dNu >>
26  dtrueY >> dtrueQ2 >> dtrueX >> dtrueW2 >> dtrueNu >>
27  sigTot >> sigTotErr >> D >> F1NC >> F3NC >> G1NC >> G3NC >>
28  A1NC >> F1CC >> F3CC >> G1CC >> G5CC >>
29  nTracks;
30  // Protect against errors in the input file or the stream
31  return !ss.fail();
32 }
33 
34 } // namespace erhic
Int_t nTracks
Number of Particles in the event (intermediate + final)
Definition: EventMC.h:203
Int_t number
Event number.
Definition: EventMC.h:201
Int_t process
PYTHIA code for the physics process producing the event.
Definition: EventMC.h:202
virtual bool Parse(const std::string &)