Commit graph

2,002 commits

Author SHA1 Message Date
Sebastian Boden
dc0a08b60e l3.py: .print can now evaluate all expressions in $\{\}, e.g. $\{(1)\}=0
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6344 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-18 16:52:32 +00:00
Sebastian Boden
98cb2e8aa4 het_calib.l3: another small fix to ABC histogram cuts
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6343 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-18 13:03:33 +00:00
Sebastian Boden
784d587624 het_stopping.l3, het_calib.l3: changed and reorganized the cut values for AB and ABC histograms
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6342 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-18 10:52:54 +00:00
Sebastian Boden
17184cb927 l3/Makefile: updated to use twopass mode
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6341 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-16 14:48:16 +00:00
Stephan I. Böttcher
3f420b89bd ce4.l3: reorg code, so that all required vars are found
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6340 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-12 16:40:18 +00:00
Stephan I. Böttcher
587d8946e6 l3.py: remove misguided flush()
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6339 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-12 16:39:17 +00:00
Stephan I. Böttcher
88ed5d20bf l3.py:
add .undef
	redfining defined -D or := names will not fail, but warn in pass 1
	.undef and .forward accept list of names 


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6338 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-12 16:37:17 +00:00
Sebastian Boden
14bfe68ffc log2msg.py: changed to produce an executable output (including appropriate usleeps)
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6337 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-12 11:54:36 +00:00
Jan Christoph Terasa
0bb65a0fbd steinmsg.py: Added caveat about temperature readout.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6335 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-12 09:51:13 +00:00
Jan Christoph Terasa
100173265c step_ppss.py: Fixed printing of ppss_table to stdout.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6334 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-12 09:31:30 +00:00
Sebastian Boden
0345ddb38d het_stopping.l3: changed PLC code
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6333 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-11 15:21:57 +00:00
Jan Christoph Terasa
6b2339fb0d icu.py: Fix parse_message.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6332 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-10 16:09:20 +00:00
Sebastian Boden
91dba36690 het_stopping.l3: added path length correction for ABC; also added optional variant V_NO_PLC which disables PLC, since it has minimal effect
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6331 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-10 15:45:42 +00:00
Stephan I. Böttcher
75701f05fb script to parse opheater test logs
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6330 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-10 15:30:06 +00:00
Robert Elftmann
7c50848e7e het_stopping.l3: Changed histogram sizes
het_calib.l3: Changed cut values for ABnC and ABC. 


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6329 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-10 14:30:38 +00:00
Sebastian Boden
19a42ba609 l3.py: fixed bug in ELSEIF
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6328 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-10 11:16:45 +00:00
Sebastian Boden
20b50b219a step.l3 and related files: large and small calib are now both included; a switch only needs to change two l3 instructions (please review)
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6327 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-09 15:49:19 +00:00
Sebastian Boden
ccfe0be803 het_pen.l3, het_stopping.l3: make compatible for PQM;
might be useful at some point
l3.py: added $def(name), to check if name is defined


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6326 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-09 12:02:06 +00:00
Sebastian Boden
bf297f0557 l3.py: integrated conditional expressions into the expressions hierarchy; this allows for .if (a>b)|(b>c)
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6325 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-09 11:20:55 +00:00
Stephan I. Böttcher
2f89c2ad91 ce4_ppss: calculate .bps()
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6324 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-07 22:19:04 +00:00
Stephan I. Böttcher
132888bf02 solomsg: fix .read_reg() syntax error
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6323 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-07 22:14:15 +00:00
Sebastian Boden
010d045b35 solomsgclass.py: read_reg: added support for old firmware
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6316 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-06 16:01:26 +00:00
Jan Christoph Terasa
2784d5cad6 solomsgclass.py: Added kwargs parameters to read_reg.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6315 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-06 14:18:12 +00:00
Sebastian Boden
32b3ed8196 het_stopping.l3: use TOT instead of TOT*LET for 1D proton and electron histograms
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6314 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-05 15:30:51 +00:00
Sebastian Boden
51eb0b41ac dps_table.py: made diff function more general, previously it only worked
if data products didn't change in number or length;
	now they are first aligned in idx and then diffed
hetept_base_config: made changes to support alignment


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6313 bc5caf13-1734-44f8-af43-603852e9ee25
2017-10-05 08:23:31 +00:00
Sebastian Boden
d875107174 High-rate mode and temperature changes can now each separately set one flg bit in
the dps_product header. This is done by the ppss table modifying itself, which unfortunately means
we need an additional two (one each for low/high) ppss entries per dps_product.
We still have some reserve though.
hetept_config_*.py: adapted to new syntax


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6312 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-30 19:21:37 +00:00
Sebastian Boden
1ded260fc3 hetept_base_config: small bugfix
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6311 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-29 15:28:11 +00:00
Sebastian Boden
0d64a8ffb9 Changes to make high/low-rate mode swiches fully othogonal to temperature changes
solomsgclass: allow partial updating of ppss entries (mod or msg)
heteptana: optionally create additional config msgs for high-rate mode (or another idx)
hetept_ppss: mark the duplicate ana entries and switch them on/off with enable_mode()
hetept_base_config: update the configurations for low/high-rate mode


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6310 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-28 13:33:24 +00:00
Jan Christoph Terasa
fd90c08d5c step_ppss.py: Use disabled pixel thresholds if thresholds are None.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6308 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-27 09:41:25 +00:00
Sebastian Boden
7d040e0a54 hetept_base_config.py: verbosity changes
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6307 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-26 08:43:35 +00:00
Sebastian Boden
834127b58e l3.py, dps_table.py, ppss_table.py: allow diffing with an arbitrary number of other instances at once;
a change in any of them will cause the relevant item to be added to the diff
hetept_base_config.py: now fully supports differential temperature and env profiles


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6306 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-25 15:47:40 +00:00
Sebastian Boden
3e7ae2b3ed hetept_base_config.py: now complains if diff configs are not compatible,
i.e. you cannot switch between all of them and return to the original state


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6305 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-25 13:20:46 +00:00
Sebastian Boden
a119c1a4a0 hetept_base_config.py: reorganized; creates one nominal base_config entry and
differential entries for other selected environments and/or temperatures


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6304 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-25 10:32:49 +00:00
Sebastian Boden
57ba6e3473 l3.py: diffs now consider two consecutive instructions, since solomsg always writes two instructions at once
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6303 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-25 09:24:07 +00:00
Stephan I. Böttcher
87f7eca161 ce4.l3: fix thermal neutrons
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6302 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-22 12:15:33 +00:00
Sebastian Boden
9f8c706352 l3.py: fixed a bug in the generation of l3 diffs
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6301 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-22 10:55:40 +00:00
Stephan I. Böttcher
1c2db6a52e ce4.l3: fix nthr, its in eV, not A
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6300 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-22 10:27:19 +00:00
Stephan I. Böttcher
3bba4ea2f2 ce4_sim.py: load ce4_l3_trigger() and ce4_l1l2().triggermask()
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6299 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-21 23:36:52 +00:00
Stephan I. Böttcher
f018948bea ce4.l3: new charged particle trigger
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6298 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-21 20:54:52 +00:00
Stephan I. Böttcher
59c83e3a86 ce4.l3: work in progress
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6297 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-21 18:44:21 +00:00
Stephan I. Böttcher
bf9c0419db ce4.l3: charged particles only in A1. TODO: rewrite LET
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6296 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-21 13:42:21 +00:00
Sebastian Boden
b29c08526b l3.py: .macro, .for and .loop now also support the ${} syntax for variable replacement
This also allows for macros with more than 9 arguments, i.e. ${10}


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6292 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-20 10:27:49 +00:00
Stephan I. Böttcher
28c3bc31c8 ce4.l3: use .loop, fix some log output
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6291 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-19 19:46:48 +00:00
Stephan I. Böttcher
dee42e30f1 l3: gold file target, -g dis add %(instr)
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6290 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-19 19:20:56 +00:00
Sebastian Boden
1cda7a95bf l3.py: added support for macro-loops directives which repeat a
code fragment while replacing one argument with arbitrary strings
Syntax:
.loop varname a bb c 2
.print $varname
.endloop
Result:
a
bb
c
2


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6289 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-19 15:34:47 +00:00
Sebastian Boden
21be848949 het_stopping.l3: fixed hist_base bug, which prevented proper usage of directional histograms;
separated min and max cuts for ABC histograms


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6288 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-19 10:04:08 +00:00
Sebastian Boden
f8a221551e het_stopping.l3: split the ABC histogram into four for electrons(1D), protons(1D), helium (2D) and ions(2D)
het_calib.l3: new cut values for ABC stopping are only placeholders


git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6287 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-19 08:55:43 +00:00
Sebastian Boden
0aff8d7e32 l3.py: fixed so that shift operators work again
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6284 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-18 12:18:50 +00:00
Stephan I. Böttcher
c4a0ee6ab0 C'E4 LND L3: minor fix
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6253 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-09 10:09:05 +00:00
Stephan I. Böttcher
df1de687ca C'E4 LND L3: complete and documented
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6249 bc5caf13-1734-44f8-af43-603852e9ee25
2017-09-05 15:54:59 +00:00