Skip to content

Commit da63125

Browse files
authored
[EMCAL-610, EMCAL-659, EMCAL-661] EMCAL digit to raw converter stand alone application (#4045)
* [EMCAL-610, EMCAL-659] Output raw stream based on RawFileWriter - Replace usage of RawOutputPageHandler with RawFileWriter for output streaming - Initialize RawFileWriter using a single output file and a linear link assignment for C-RORC/Link ID untill final link assignment on production FLPs is fixed - Convert input handing from std::vectors to gsl::span * [EMCAL-610, EMCAL-661] Add stand-alone application for digits to raw conversion Stand alone application reading digits file and processing digits to raw conversion for each timeframe entry in the digits tree. Open points: - First IR need to be specified for methods in RawFileWriter - Raw writer settings to come from the CCDB * [EMCAL-610] Use carryOverMethod in order to append RCU trailer to each raw page CarryOverMethod cuts the payload in size - size of the RCU trailer and adds the RCU trailer from the last page, in which the payload size is adapted to the size in the page. * [EMCAL-610] Add option to split to multiple files - Add option to split to file per full detector, subdector or crorc+link - Change rawfile to output location in order to support multiple raw files - Add parising of the configuration file in order to configure tf handling - Add writing of the output config - Remove obsolete classes * [EMCAL-610] Adapt carryOverMethod in order to adapt payload size of the last RCU trailer Specify also using carryOverMethod for the last page
1 parent 80005d7 commit da63125

File tree

9 files changed

+240
-502
lines changed

9 files changed

+240
-502
lines changed

Detectors/EMCAL/simulation/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@
1111
o2_add_library(EMCALSimulation
1212
SOURCES src/Detector.cxx src/Digitizer.cxx src/DigitizerTask.cxx
1313
src/SpaceFrame.cxx src/SimParam.cxx src/LabeledDigit.cxx
14-
src/RawWriter.cxx src/DMAOutputStream.cxx src/RawOutputPageHandler.cxx
14+
src/RawWriter.cxx
1515
PUBLIC_LINK_LIBRARIES O2::EMCALBase O2::DetectorsBase O2::SimConfig O2::SimulationDataFormat O2::Headers O2::DetectorsRaw)
1616

1717
o2_target_root_dictionary(EMCALSimulation
1818
HEADERS include/EMCALSimulation/Detector.h
1919
include/EMCALSimulation/Digitizer.h
2020
include/EMCALSimulation/DigitizerTask.h
2121
include/EMCALSimulation/RawWriter.h
22-
include/EMCALSimulation/DMAOutputStream.h
2322
include/EMCALSimulation/SpaceFrame.h
2423
include/EMCALSimulation/SimParam.h
2524
include/EMCALSimulation/LabeledDigit.h)
2625

26+
o2_add_executable(rawcreator
27+
COMPONENT_NAME emcal
28+
PUBLIC_LINK_LIBRARIES O2::EMCALSimulation
29+
SOURCES src/RawCreator.cxx)
30+
2731
o2_data_file(COPY data DESTINATION Detectors/EMC/simulation)

Detectors/EMCAL/simulation/include/EMCALSimulation/DMAOutputStream.h

Lines changed: 0 additions & 126 deletions
This file was deleted.

Detectors/EMCAL/simulation/include/EMCALSimulation/RawOutputPageHandler.h

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)