RAW → DIGI → RECO script
RAW → DIGI → RECO script
Adding test_raw2reco.py
, First attempt at rebuilding RAW → DIGI → RECO chain using as examples
- https://github.com/CMS-HGCAL/cmssw/blob/hgcal-condformat-HGCalNANO-13_2_0_pre3_linearity/EventFilter/HGCalRawToDigi/test/tb_raw2reco.py
- https://gitlab.cern.ch/hgcal-dpg/hgcal-comm/-/blob/master/SystemTestEventFilters/test/test_slink_source.py
You can find the algorithms in the CMS-HGCAL:dev/hackathon_base_CMSSW_14_1_0_pre0_backup
branch (commits), which should work in CMSSW_14_1_0_pre2
.
Still needs some work to get running. I need some help to correctly set up the RAW → DIGI part for the input files we're using for testing or from last year's test beams. Would it work with the new unpacker if I simply recycled the setup in tb_raw2reco.py
and ran something like the following command?
cmsRun -j FrameworkJobReport_Run1695762407_Link2_File0000000001_RECO.xml EventFilter/HGCalRawToDigi/test/tb_raw2reco.py mode=slinkfromraw slinkBOE=0x55 cbHeaderMarker=0x7f econdHeaderMarker=0x154 applyFWworkaround=False inputFiles=/eos/cms/store/group/dpg_hgcal/tb_hgcal/2023/BeamTestSep/HgcalBeamtestSep2023/Relay1695762407/Run1695762407_Link1_File0000000001.bin,/eos/cms/store/group/dpg_hgcal/tb_hgcal/2023/BeamTestSep/HgcalBeamtestSep2023/Relay1695762407/Run1695762407_Link2_File0000000001.bin fedId=1,2 inputTrigFiles=/eos/cms/store/group/dpg_hgcal/tb_hgcal/2023/BeamTestSep/HgcalBeamtestSep2023/Relay1695762407/Run1695762407_Link0_File0000000001.bin output=Run1695762407_Link2_File0000000001 conditions=default dqmOnly=False runNumber=1695762407 maxEvents=1000000000
txt2json
conversion script
Also added some stuff to txt2json.py
:
-
MIPS_scale
. - Option to compress JSON (if we need to scale up in the future). (Needs to be added in CMSSW via
std::ifstream infile(filename_,std::ios::binary);
) - Put in place template if we want to switch to
feather
format for input.
Edited by Izaak Neutelings