|
||||
File indexing completed on 2025-01-18 10:17:43
0001 # Copyright 2020, Jefferson Science Associates, LLC. 0002 # Subject to the terms in the LICENSE file found in the top-level directory. 0003 # 0004 # This example JANA python script 0005 import time 0006 import jana 0007 0008 print('Hello from jana.py!!!') 0009 0010 # Turn off JANA's standard ticker so we can print our own updates 0011 jana.SetTicker(False) 0012 0013 # Wait for 4 seconds before allowing processing to start 0014 for i in range(1,5): 0015 time.sleep(1) 0016 print(" waiting ... %d" % (4-i)) 0017 0018 # Start event processing 0019 jana.Start() 0020 0021 # Wait for 5 seconds while processing events 0022 for i in range(1,6): 0023 time.sleep(1) 0024 print(" running ... %d (Nevents: %d)" % (i, jana.GetNeventsProcessed())) 0025 0026 # Tell program to quit gracefully 0027 jana.Quit() 0028
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |