@@ -27,7 +27,7 @@ def build_tier_raw_orca() -> None:
27
27
28
28
configs = TextDB (args .configs , lazy = True )
29
29
config_dict = configs .on (args .timestamp , system = args .datatype )["snakemake_rules" ][
30
- "tier_raw "
30
+ "tier_raw_orca "
31
31
]
32
32
33
33
build_log (config_dict , args .log )
@@ -63,11 +63,25 @@ def build_tier_raw_orca() -> None:
63
63
spm_config [next (iter (spm_config ))]["spms" ]["key_list" ] = sorted (spm_channels )
64
64
Props .add_to (all_config , spm_config )
65
65
66
+ if "muon_config" in list (channel_dict ):
67
+ muon_config = Props .read_from (channel_dict ["muon_config" ])
68
+ muon_channels = list (
69
+ chmap .channelmaps .on (args .timestamp )
70
+ .map ("system" , unique = False )["muon" ]
71
+ .map ("daq.rawid" )
72
+ )
73
+ top_key = next (iter (muon_config ))
74
+ muon_config [top_key ][next (iter (muon_config [top_key ]))]["key_list" ] = sorted (
75
+ muon_channels
76
+ )
77
+ Props .add_to (all_config , muon_config )
78
+
66
79
if "auxs_config" in list (channel_dict ):
67
80
aux_config = Props .read_from (channel_dict ["auxs_config" ])
68
81
aux_channels = list (
69
82
chmap .channelmaps .on (args .timestamp )
70
83
.map ("system" , unique = False )["auxs" ]
84
+ .map ("daq.crate" , unique = False )[1 ]
71
85
.map ("daq.rawid" )
72
86
)
73
87
aux_channels += list (
@@ -86,17 +100,10 @@ def build_tier_raw_orca() -> None:
86
100
)
87
101
Props .add_to (all_config , aux_config )
88
102
89
- if "muon_config" in list (channel_dict ):
90
- muon_config = Props .read_from (channel_dict ["muon_config" ])
91
- muon_channels = list (
92
- chmap .channelmaps .on (args .timestamp )
93
- .map ("system" , unique = False )["muon" ]
94
- .map ("daq.rawid" )
95
- )
96
- top_key = next (iter (muon_config ))
97
- muon_config [top_key ][next (iter (muon_config [top_key ]))]["key_list" ] = sorted (
98
- muon_channels
99
- )
100
- Props .add_to (all_config , muon_config )
101
-
102
- build_raw (args .input , out_spec = all_config , filekey = args .output , ** settings )
103
+ build_raw (
104
+ args .input ,
105
+ out_spec = all_config ,
106
+ in_stream_type = "ORCA" ,
107
+ filekey = args .output ,
108
+ ** settings ,
109
+ )
0 commit comments