Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
hepsim:usage_full [2017/04/03 01:00] hepsim17 [Using C++/ROOT with LCIO] |
hepsim:usage_full [2017/09/21 13:48] hepsim17 |
||
---|---|---|---|
Line 3: | Line 3: | ||
[[: | [[: | ||
- | ====== | + | ====== |
Currently, the Geant4-based detector simulation can be done using the SLIC software. You will need to convert ProMC files to LCIO files and | Currently, the Geant4-based detector simulation can be done using the SLIC software. You will need to convert ProMC files to LCIO files and | ||
Line 106: | Line 106: | ||
====== Using C++/ROOT with LCIO ====== | ====== Using C++/ROOT with LCIO ====== | ||
- | If you need to read LCIO files in C++ code with ROOT/ | + | If you need to read LCIO files in C++ code with ROOT/ |
<code bash> | <code bash> | ||
- | wget http://atlaswww.hep.anl.gov/hepsim/soft/ | + | git clone https://github.com/chekanov/HepSim |
- | cd lcio-cpp; make | + | cd HepSim/ |
</ | </ | ||
- | It will compile " | + | Look at README file to see how to install the " |
- | Your program to read SLCIO files can look as this: | + | Generally, you program to read SLCIO files can look as this: |
- | < | + | < |
<code cpp> | <code cpp> | ||
string input=" | string input=" | ||
Line 128: | Line 128: | ||
cout << " | cout << " | ||
// print stored EVGEN parameters | // print stored EVGEN parameters | ||
+ | const LCParameters& | ||
| | ||
int nFloatParameters = params.getFloatKeys( floatKeys ).size() ; | int nFloatParameters = params.getFloatKeys( floatKeys ).size() ; |