Skip to content

Commit

Permalink
Merge pull request #15 from DUNE-DAQ/wpv_updates
Browse files Browse the repository at this point in the history
move README and update configuration options
  • Loading branch information
willpvazquez authored Jul 20, 2021
2 parents fa22c15 + 74873f8 commit 8811051
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
6 changes: 0 additions & 6 deletions README.md → docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ To use the ND-LAr data generator you will need python packages:
- larpix-control - tested on version 3.5.1
- pyzmq - tested on version 18.1.1

For full functionality, the following additional branches must be locally compiled:

https://github.com/peter-madigan/dataformats/tree/develop

https://github.com/krisfur/readout/tree/kf_newframe

## ND-LAr: Examples with PACMAN data snapshots
In one terminal, launch a fake pacman emulation by navigating to the test folder and running:

Expand Down
10 changes: 8 additions & 2 deletions python/lbrulibs/app_confgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ def generate(

confcmd = mrccmd("conf", "INITIAL", "CONFIGURED", [
("fake_source",pcr.Conf(
pcr.GeoID(system="kNDLarTPC"),
link_confs=[pcr.LinkConfiguration(
geoid=pcr.GeoID(system="kNDLarTPC", region=0, element=idx),
) for idx in range(NUMBER_OF_DATA_PRODUCERS)]
+ [pcr.LinkConfiguration(
geoid=pcr.GeoID(system="TPC", region=0, element=idx),
) for idx in range(NUMBER_OF_DATA_PRODUCERS, NUMBER_OF_DATA_PRODUCERS+NUMBER_OF_TP_PRODUCERS)],
zmq_receiver_timeout = 10000
)),
] + [
Expand All @@ -122,7 +127,8 @@ def generate(
] + [
(f"data_recorder_{idx}", bfs.Conf(
output_file = f"output_{idx}.out",
stream_buffer_size = 100#8388608
stream_buffer_size = 100,#8388608
use_o_direct = 0
)) for idx in range(NUMBER_OF_DATA_PRODUCERS)
])

Expand Down
12 changes: 11 additions & 1 deletion python/lbrulibs/fake_NDreadout.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
{
"data": {
"card_id": 0,
"link_confs": [
{
"geoid": {
"element": 1,
"region": 0,
"system": "NDLarTPC"
}
}
],
"zmq_receiver_timeout": 10000
},
"match": "fake_source"
Expand All @@ -135,11 +144,12 @@
"apa_number": 0,
"emulator_mode": false,
"fake_trigger_flag": 1,
"latency_buffer_size": 10000,
"latency_buffer_size": 10,
"link_number": 0,
"num_request_handling_threads": 1,
"pop_limit_pct": 0.8,
"pop_size_pct": 0.1,
"postprocess_queue_sizes": 10000,
"source_queue_timeout_ms": 100
},
"match": "datahandler_0"
Expand Down
11 changes: 11 additions & 0 deletions schema/lbrulibs/pacmancardreader.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@ local pacmancardreader = {
s.field("system", self.system_type, doc="" )],
doc="GeoID"),

link_conf : s.record("LinkConfiguration", [
s.field("geoid", self.geoid, doc="GeoID of the link")
], doc="Configuration for one link"),

link_conf_list : s.sequence("link_conf_list", self.link_conf, doc="Link configuration list"),


conf: s.record("Conf", [

s.field("link_confs", self.link_conf_list,
doc="Link configurations"),

s.field("card_id", self.id, 0,
doc="FE card identifier"),

Expand Down

0 comments on commit 8811051

Please sign in to comment.