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
EventPepsi.cxx
Go to the documentation of this file.
1 
11 
12 #include <sstream>
13 #include <string>
14 
15 namespace erhic {
16 
17 bool EventPepsi::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
25  partontrck >> trueY >> trueQ2 >> trueX >> trueW2 >> trueNu >>
27  Dilute >> F1 >> F2 >> A1 >> A2 >> R >> DePol >> D >> Eta >> Eps >> Chi >>
28  gendilut >> genF1 >> genF2 >> genA1 >> genA2 >> genR >> genDepol >>
29  gend >> geneta >> geneps >> genchi >> SigCorr >> radgamEnucl >> nTracks;
30  // Protect against errors in the input file or the stream
31  return !ss.fail();
32 }
33 
34 } // namespace erhic
Double32_t Weight
Total weight including everything.
Definition: EventPepsi.h:64
Double32_t SigCorr
Needed in the radiative correction code.
Definition: EventPepsi.h:90
Double32_t A1
True variables needed to calculate g1
Definition: EventPepsi.h:71
Double32_t ExtraWeight
Definition: EventPepsi.h:66
Double32_t geneps
Needed to calculate g1.
Definition: EventPepsi.h:88
Double32_t gendilut
Needed to calculate g1.
Definition: EventPepsi.h:79
Double32_t FixedWeight
Weight calculated from generation limits.
Definition: EventPepsi.h:63
Double32_t trueQ2
Generated Q2 of the event.
Definition: EventPepsi.h:59
Double32_t DePol
True variables needed to calculate g1
Definition: EventPepsi.h:74
Double32_t genA1
Needed to calculate g1.
Definition: EventPepsi.h:82
Double32_t D
True variables needed to calculate g1
Definition: EventPepsi.h:75
Double32_t F1
True variables needed to calculate g1
Definition: EventPepsi.h:69
Double32_t R
True variables needed to calculate g1
Definition: EventPepsi.h:73
Int_t nTracks
Number of Particles in the event (intermediate + final)
Definition: EventMC.h:203
Double32_t genR
Needed to calculate g1.
Definition: EventPepsi.h:84
Double32_t Eta
True variables needed to calculate g1
Definition: EventPepsi.h:76
Double32_t genF2
Needed to calculate g1.
Definition: EventPepsi.h:81
Double32_t Dilute
True variables needed to calculate g1
Definition: EventPepsi.h:68
Double32_t genA2
Needed to calculate g1.
Definition: EventPepsi.h:83
Double32_t geneta
Needed to calculate g1.
Definition: EventPepsi.h:87
Int_t genevent
Trials required for this event.
Definition: EventPepsi.h:56
Double32_t Chi
True variables needed to calculate g1
Definition: EventPepsi.h:78
Int_t number
Event number.
Definition: EventMC.h:201
Double32_t trueW2
Generated W2 of the event.
Definition: EventPepsi.h:61
Int_t process
PYTHIA code for the physics process producing the event.
Definition: EventMC.h:202
Double32_t A2
True variables needed to calculate g1
Definition: EventPepsi.h:72
Double32_t dxsec
Cross section included in the weight.
Definition: EventPepsi.h:65
Int_t struckparton
Parton hit in the target LST(25)
Definition: EventPepsi.h:54
Double32_t genDepol
Needed to calculate g1.
Definition: EventPepsi.h:85
Double32_t trueNu
Generated nu of the event.
Definition: EventPepsi.h:62
Double32_t genF1
Needed to calculate g1.
Definition: EventPepsi.h:80
Int_t partontrck
Number of parton track LST(26)
Definition: EventPepsi.h:55
Int_t subprocess
PEPSI subprocess LST(23)
Definition: EventPepsi.h:57
Int_t nucleon
PDG code of the hadron beam.
Definition: EventPepsi.h:53
Double32_t trueY
Generated y of the event.
Definition: EventPepsi.h:58
virtual bool Parse(const std::string &)
Definition: EventPepsi.cxx:17
Double32_t gend
Needed to calculate g1.
Definition: EventPepsi.h:86
Double32_t F2
True variables needed to calculate g1
Definition: EventPepsi.h:70
Double32_t genchi
Needed to calculate g1.
Definition: EventPepsi.h:89
Double32_t trueX
Generated x of the event.
Definition: EventPepsi.h:60
Double32_t Eps
True variables needed to calculate g1
Definition: EventPepsi.h:77