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
10
#include "
eicsmear/erhic/EventMilou.h
"
11
12
#include <cmath>
13
#include <sstream>
14
#include <string>
15
16
namespace
erhic
{
17
18
EventMilou::EventMilou
()
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
erhic::EventMilou::trueY
Double32_t trueY
Definition:
EventMilou.h:63
erhic::EventMilou::weight
Double32_t weight
Definition:
EventMilou.h:60
erhic::EventMilou::phibelrec
Double32_t phibelrec
the resolution of the previous angle according to H1
Definition:
EventMilou.h:70
erhic::EventMilou::Parse
virtual bool Parse(const std::string &)
Parses the event information from a text string.
Definition:
EventMilou.cxx:31
erhic
Definition:
EventDis.cxx:14
erhic::EventMilou::trueQ2
Double32_t trueQ2
Definition:
EventMilou.h:62
erhic::EventMC::process
Int_t process
PYTHIA code for the physics process producing the event.
Definition:
erhic/EventMC.h:204
erhic::EventMilou::trueT
Double32_t trueT
Definition:
EventMilou.h:64
EventMilou.h
erhic::EventMilou::phibelres
Double32_t phibelres
the azimuthal angle between the production and the scattering plane
Definition:
EventMilou.h:68
erhic::EventMilou::trueX
Double32_t trueX
Definition:
EventMilou.h:61
erhic::EventMilou::phibelgen
Double32_t phibelgen
Definition:
EventMilou.h:66
erhic::EventMilou::EventMilou
EventMilou()
Constructor.
Definition:
EventMilou.cxx:18
erhic::EventMC::number
Int_t number
Event number.
Definition:
erhic/EventMC.h:203
erhic::EventMilou::truePhi
Double32_t truePhi
Definition:
EventMilou.h:65
erhic::EventMC::nTracks
Int_t nTracks
Number of Particles in the event (intermediate + final)
Definition:
erhic/EventMC.h:205
erhic::EventMilou::radcorr
Bool_t radcorr
Definition:
EventMilou.h:59
src
erhic
EventMilou.cxx
Generated on Fri Jan 31 2020 15:11:33 for eic-smear by
1.8.17