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