Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
hepsim:usage_truth [2017/02/07 21:58] hepsim17 |
hepsim:usage_truth [2017/09/21 14:03] hepsim17 [Converting to LCIO] |
||
---|---|---|---|
Line 18: | Line 18: | ||
As before, make sure that [[http:// | As before, make sure that [[http:// | ||
- | ===== Method I. Running in a batch mode without downloaded ProMC files ===== | + | ====== Streaming over the network |
You can run validation scripts in a batch mode as: | You can run validation scripts in a batch mode as: | ||
Line 60: | Line 60: | ||
If you want to see a pop-up canvas with the output histogram on your screen, change the line " | If you want to see a pop-up canvas with the output histogram on your screen, change the line " | ||
- | ===== Method II. Running in a batch mode after downloading | + | |
+ | ====== Using Java WebStart ====== | ||
+ | |||
+ | |||
+ | Many " | ||
+ | |||
+ | To use Java Web Start, you should configure Java permissions: | ||
+ | |||
+ | |||
+ | ====== | ||
The above approach depends on network availability at the time when you do the analysis. | The above approach depends on network availability at the time when you do the analysis. | ||
Line 82: | Line 91: | ||
Similarly, | Similarly, | ||
- | ===== Method III. Running in a GUI mode ==== | + | |
+ | ====== | ||
You can perform short validation analysis using an editor as: | You can perform short validation analysis using an editor as: | ||
Line 107: | Line 117: | ||
It will open the Python script for editing. Next, run this script by clicking the image of green running man on the status bar (or press [F8]). | It will open the Python script for editing. Next, run this script by clicking the image of green running man on the status bar (or press [F8]). | ||
- | ===== Method IV. Running in a GUI mode using URL dialog | + | ====== Using GUI URL dialogue ====== |
- | + | If you use DMelt, you can run this code using a more conventional editor: | |
- | + | ||
- | If you use DMelt, you can run this code using | + | |
- | a more conventional editor: | + | |
<code bash> | <code bash> | ||
Line 217: | Line 224: | ||
</ | </ | ||
- | + | Click the event number ('left pannel" | |
- | On the left panel, click on the event and then look at "Event info" | + | |
< | < | ||
Line 238: | Line 244: | ||
NLO event record includes 4-momenta of particles and event weights (double values). In addition, deviations form central weights are included as an array of integer values as: | NLO event record includes 4-momenta of particles and event weights (double values). In addition, deviations form central weights are included as an array of integer values as: | ||
- | {{: | + | {{:hepsim: |
You can calculate differential cross sections using online files using this example: | You can calculate differential cross sections using online files using this example: | ||
Line 250: | Line 256: | ||
</ | </ | ||
- | This example runs " | + | This example runs " |
- | We use DMelt to do the calculations (after updating one jar file). You can also use ROOT/C++ to do the same. | + | |
Line 333: | Line 338: | ||
====== Converting to LCIO ====== | ====== Converting to LCIO ====== | ||
- | ProMC files can be converted to LCIO files for full detector simulations. | + | ProMC files can be converted to LCIO or STDHEP |
+ | files for full detector simulations. | ||
+ | Note that the converters are included inside the ProMC package (see the directory " | ||
+ | |||
+ | < | ||
<code bash> | <code bash> | ||
wget http:// | wget http:// | ||
Line 343: | Line 352: | ||
java promc2lcio file.promc file.slcio | java promc2lcio file.promc file.slcio | ||
</ | </ | ||
- | The last commends | + | </ |
+ | |||
+ | The last command | ||
Line 376: | Line 387: | ||
< | < | ||
<code python> | <code python> | ||
- | !/ | + | #!/ |
# Convert jdat to the standard Python | # Convert jdat to the standard Python | ||
# This can be used for converting data to pyROOT | # This can be used for converting data to pyROOT |