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
Main Page
Related Pages
Classes
Files
File List
File Members
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
EventMilou.h
erhic::EventMilou::phibelres
Double32_t phibelres
Definition:
EventMilou.h:68
erhic::EventMC::nTracks
Int_t nTracks
Number of Particles in the event (intermediate + final)
Definition:
EventMC.h:203
erhic::EventMilou::Parse
virtual bool Parse(const std::string &)
Definition:
EventMilou.cxx:31
erhic::EventMC::number
Int_t number
Event number.
Definition:
EventMC.h:201
erhic::EventMC::process
Int_t process
PYTHIA code for the physics process producing the event.
Definition:
EventMC.h:202
erhic::EventMilou::EventMilou
EventMilou()
Definition:
EventMilou.cxx:18
erhic::EventMilou::phibelrec
Double32_t phibelrec
Definition:
EventMilou.h:70
eic-smear
src
erhic
EventMilou.cxx
Generated on Thu Jul 24 2014 15:18:39 for eic-smear by
1.8.7