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
EventRapgap.cxx
Go to the documentation of this file.
1 
11 
12 #include <sstream>
13 #include <string>
14 
15 namespace erhic {
16 
17 bool EventRapgap::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  genevent >> process >> idir >> idisdif >> cs >> sigma_cs >> s >> q2 >>
25  y >> xgam >> xpr >> Pt_h >> pt2_hat >> sHat >> t >> x_pom >> sHat2 >> z >>
26  x1 >> phi1 >> nTracks;
27  // Protect against errors in the input file or the stream
28  return !ss.fail();
29 }
30 
31 } // namespace erhic
Double32_t y
Inelasticity.
Definition: EventDis.h:183
virtual bool Parse(const std::string &)
Definition: EventRapgap.cxx:17
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