Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
fcs:fccee:tutorial [2023/05/24 13:18]
hepsim17 [Validation]
fcs:fccee:tutorial [2023/05/24 13:25]
hepsim17 [Data streaming]
Line 74: Line 74:
 Click the tab below to see the code. This code may look rather long, but it does a lot: It reads the truth-level events, reconstructs jets, and makes plots of the pT (differential cross section), Rapidity distribution and the invariant mass of the 2 jets. It also saves the image in SVG file  and an XML file for examination: Click the tab below to see the code. This code may look rather long, but it does a lot: It reads the truth-level events, reconstructs jets, and makes plots of the pT (differential cross section), Rapidity distribution and the invariant mass of the 2 jets. It also saves the image in SVG file  and an XML file for examination:
  
-<hidden> +<hidden Click here to show the Python/Jython code
-<code python>+<code>
 # Part of =HepMC= : https://atlaswww.hep.anl.gov/asc/hepsim/ # Part of =HepMC= : https://atlaswww.hep.anl.gov/asc/hepsim/
 # S.Chekanov (ANL) # S.Chekanov (ANL)
Line 212: Line 212:
  
  
-=====  Validation using data streaming =====+=====  Data streaming =====
  
-One can also analyze truth-level files using data streaming, i.e. without downloading the actual file+One can also analyze truth-level files using data streaming, i.e. without downloading the actual input files.  
 +This example shows data for Higgs to bbar at 240 GeV e+e-. 
 +Click the code shown below, save it as "example.py" and run it inside Jas4pp (https://atlaswww.hep.anl.gov/asc/jas4pp/) or using hs-tools package (as "hs-run example.py").
    
-<hidden>+<hidden Click here to show the Python/Jython code>
 <code python> <code python>
-HepSim script for hs-tools or Jas4pp  +illustration of how to make pT distribution in real time using data streaming
-# Look at pT of dark pions with M=1000 GeV +
-# Part of =HepMC= : https://atlaswww.hep.anl.gov/asc/hepsim/+
 # S.Chekanov (ANL) # S.Chekanov (ANL)
 from java.awt import Color,Font from java.awt import Color,Font
Line 328: Line 328:
 </code> </code>
 </hidden> </hidden>
 +
 +If you run this code as Jython script inside Jas4pp, you will see a histogram updated in real time:
 +
 +{{ :fcs:fccee:screenshot_from_2023-05-24_08-57-19.png?400 |}}
  
 ===== Preparation for fast simulation ===== ===== Preparation for fast simulation =====