Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
fcs:eic:intro [2017/04/03 00:43] hepsim17 [Using C++] |
fcs:eic:intro [2017/04/04 15:36] (current) hepsim17 [Using C++] |
||
---|---|---|---|
Line 198: | Line 198: | ||
<code cpp> | <code cpp> | ||
- | |||
string input=" | string input=" | ||
LCReader* lcReader = LCFactory:: | LCReader* lcReader = LCFactory:: | ||
Line 206: | Line 205: | ||
while( (evt = lcReader-> | while( (evt = lcReader-> | ||
if (nEvents==0) UTIL:: | if (nEvents==0) UTIL:: | ||
- | | + | cout << " |
+ | |||
+ | const LCParameters& | ||
+ | // print stored EVGEN parameters | ||
| | ||
int nFloatParameters = params.getFloatKeys( floatKeys ).size() ; | int nFloatParameters = params.getFloatKeys( floatKeys ).size() ; | ||
| | ||
- | // print stored EVGEN parameters | ||
| | ||
FloatVec floatVec ; | FloatVec floatVec ; | ||
Line 221: | Line 222: | ||
cout << endl ; | cout << endl ; | ||
| | ||
- | + | nEvents ++ ; | |
- | nEvents ++ ; | + | |
} | } | ||
- | |||
lcReader-> | lcReader-> | ||
</ | </ | ||
- | This code example | + | This code example |
+ | Here is the example of all parameters (float, integers, strings): | ||
< | < | ||
- | < | + | < |
- | parameter EVGEN:Code [int]: 10, | + | |
| | ||
| | ||
Line 262: | Line 261: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | For EIC ep events, the relevant parameters for a given DIS event are: | ||
+ | |||
+ | <code cpp> | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Note that SLCIO files have two records representing truth level MC: MCParticle and MCInfo. MCInfo includes information on generated events. | ||
+ | See the example how this record was created in [[https:// | ||
+ | |||
--- // | --- // | ||