CSCCommissioning package operates with local DAQ data of the CSC SliceTest. Two modules of this package are CSCFileReader and CSCFileDumper. First is capable of reading CSC local data and populating CMSSW data stream (edm::Event) with raw CSC data. Second module does an opposite job of selecting CSC data from the edm::Event and dumping them into local DAQ files.

CSC DAQ data are composed of up to 40 data streams from independent sources — Readout Units (RUIs). These streams are gathered in 4 FED crates (FED stands for Front End Driver) and travel downstream of global DAQ via 4 S-Links. Each FED is assigned with its own FED ID (750-759). Unlike global data taking, in local mode RUIs log data independently each in a separate set of files.

If you are working with plain local DAQ data format (one set of files per each RUI; see for EmuRUI?? in file name), than you may find this paragraph useful.
If you work in CMSSW_1_3_0 or later (package revision V00-04-04 and higher) you should instruct CSCFileReader module to build FED buffers from selected RUIs (see test/readFile.cfg for example). To do that you need to specify parameter set (PSet) which defines RUI file sets (RUI00, RUI01, ... RUI09) and then assign each RUI to the appropriate FED (FED750, FED751, FED752, FED753). The module builds FED buffers from RUI buffers with the same L1A. Therefore, you should always maintain order of files in RUI file sets (module expects only incrementing L1A from file to file). In CMSSW prior to CMSSW_1_3_0 (package revision prior to V00-04-04) you are able to handle 1 FED with 1 RUI in it. Just specify fileNames as it is done in test/readFile.cfg.

Module also supports alternative data format, produced by local Event Builder emulator (see FU in file name). In this case you need to assign FU1, FU2, ... with corresponding file names and remove FED parameters (though, having them in configuration doesn't affect anything). Set tfDDUnumber=0 if Track-Finder records present in readout or tfDDUnumber=-1 if not. See test/readFile.cfg for example.

Special trigger RUI should not be mixed with DAQ RUIs which were described above (such configuration is not forbidden, but doesn't make much sense). Instead, trigger RUI solely goes to FED with ID=760.

CSCFileDumper module selects CSC FED buffers from CMSSW data stream and logs them into files specified in output parameter. It automatically appends _FEDID (_750, _751, ... _760) to the end of every FED file. Be careful: one FED file may contain several RUIs, while in true local DAQ mode every RUI logs separate file.


Technical details on CSCFileReader