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
EventMilou.cxx
Go to the documentation of this file.
1 
11 
12 #include <cmath>
13 #include <sstream>
14 #include <string>
15 
16 namespace erhic {
17 
19 : radcorr(-1)
20 , weight(NAN)
21 , trueX(NAN)
22 , trueQ2(NAN)
23 , trueY(NAN)
24 , trueT(NAN)
25 , truePhi(NAN)
26 , phibelgen(NAN)
27 , phibelres(NAN)
28 , phibelrec(NAN) {
29 }
30 
31 bool EventMilou::Parse(const std::string& line) {
32  static std::stringstream ss;
33  ss.str("");
34  ss.clear();
35  ss << line;
36  ss >>
37  number >> number >> // Skip first int in the line
38  nTracks >> weight >> process >> radcorr >> trueX >> trueQ2 >>
39  trueY >> trueT >> truePhi >> phibelgen >> phibelres >> phibelrec;
40  // Protect against errors in the input file or the stream
41  return !ss.fail();
42 }
43 
44 } // namespace erhic
Double32_t phibelres
Definition: EventMilou.h:68
Int_t nTracks
Number of Particles in the event (intermediate + final)
Definition: EventMC.h:203
virtual bool Parse(const std::string &)
Definition: EventMilou.cxx:31
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
Double32_t phibelrec
Definition: EventMilou.h:70