Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:10

0001 #!/bin/sh -ex
0002 
0003 function die { echo $1: status $2 ;  exit $2; }
0004 
0005 LOCAL_TEST_DIR=${SCRAM_TEST_PATH}
0006 
0007 cmsRun ${LOCAL_TEST_DIR}/create_Run2Scouting_test_file_cfg.py || die 'Failure using create_Run2Scouting_test_file_cfg.py' $?
0008 
0009 cmsRun ${LOCAL_TEST_DIR}/test_readRun2Scouting_cfg.py || die "Failure using test_readRun2Scouting_cfg.py" $?
0010 
0011 # The old files read below were generated as follows.
0012 #
0013 #     testRun2Scouting_v3_v2_v2_v3_v2_v2_v2_CMSSW_8_0_7.root:
0014 #     Check out the 8_0_7 release and cherry pick the commit that
0015 #     adds the original version of the file
0016 #     DataFormats/Scouting/test/TestWriteRun2Scouting.cc
0017 #     (6 files added by that commit). There likely will be
0018 #     minor conflicts or issues in test/BuildFile.xml that need to
0019 #     be resolved.
0020 #
0021 #     testRun2Scouting_v3_v2_v3_v3_v2_v2_v3_CMSSW_9_4_0.root
0022 #     Check out the 9_4_0 release and cherry pick the commit that
0023 #     adds the original version of the file
0024 #     DataFormats/Scouting/test/TestWriteRun2Scouting.cc.
0025 #     Also check out the second commit that modifies that file.
0026 #     (6 files added by those commits). There likely will be
0027 #     minor conflicts or issues in test/BuildFile.xml that need to
0028 #     be resolved.
0029 #
0030 #     testRun2Scouting_v3_v2_v3_v3_v2_v2_v2_v3_CMSSW_10_2_0.root
0031 #     Check out the 10_2_0 release and cherry pick the commit that
0032 #     adds the original version of the file
0033 #     DataFormats/Scouting/test/TestWriteRun2Scouting.cc.
0034 #     Also check out the second and third commits that modify that file.
0035 #     (6 files added by those commits). There likely will be
0036 #     minor conflicts or issues in test/BuildFile.xml that need to
0037 #     be resolved.
0038 #
0039 # Run the create_Run2Scouting_test_file_cfg.py configuration and
0040 # rename the file it creates.
0041 #
0042 # The versions of the classes are encoded in the filenames in
0043 # alphabetical order. This order is also the order the Run 2
0044 # Scouting files appear in classes_def.xml (in the master branch
0045 # of CMSSW).
0046 #
0047 # The versions that changed from 8_0_7 to 9_4_0 were the versions of
0048 # the ScoutingMuon and ScoutingVertex classes. The change in the
0049 # 10_2_0 was the addition of the ScoutingTrack class.
0050 #
0051 # 8_0_7 was chosen because the 8_0_X release cycle was used
0052 # for 2016 data, and the scouting data formats were not updated
0053 # after 8_0_7.
0054 #
0055 # 9_4_0 was chosen because the 9_4_X release cycle was used
0056 # for 2017 data, and the scouting data formats were not updated
0057 # after 9_4_0.
0058 #
0059 # 10_2_0 was chosen because the 10_2_X release cycle was used
0060 # for 2018 data, and the scouting data formats were not updated
0061 # after 10_2_0.
0062 #
0063 
0064 file=testRun2Scouting_v3_v2_v2_v3_v2_v2_v2_CMSSW_8_0_7.root
0065 inputfile=$(edmFileInPath DataFormats/Scouting/data/$file) || die "Failure edmFileInPath DataFormats/Scouting/data/$file" $?
0066 argsPassedToPython="--inputFile $inputfile --outputFileName testRun2Scouting2_CMSSW_8_0_7.root --muonVersion 2 --trackVersion 0 --vertexVersion 2"
0067 cmsRun ${LOCAL_TEST_DIR}/test_readRun2Scouting_cfg.py $argsPassedToPython || die "Failed to read old file $file" $?
0068 
0069 file=testRun2Scouting_v3_v2_v3_v3_v2_v2_v3_CMSSW_9_4_0.root
0070 inputfile=$(edmFileInPath DataFormats/Scouting/data/$file) || die "Failure edmFileInPath DataFormats/Scouting/data/$file" $?
0071 argsPassedToPython="--inputFile $inputfile --outputFileName testRun2Scouting2_CMSSW_9_4_0.root --muonVersion 3 --trackVersion 0 --vertexVersion 3"
0072 cmsRun ${LOCAL_TEST_DIR}/test_readRun2Scouting_cfg.py  $argsPassedToPython || die "Failed to read old file $file" $?
0073 
0074 file=testRun2Scouting_v3_v2_v3_v3_v2_v2_v2_v3_CMSSW_10_2_0.root
0075 inputfile=$(edmFileInPath DataFormats/Scouting/data/$file) || die "Failure edmFileInPath DataFormats/Scouting/data/$file" $?
0076 argsPassedToPython="--inputFile $inputfile --outputFileName testRun2Scouting2_CMSSW_10_2_0.root --muonVersion 3 --trackVersion 2 --vertexVersion 3"
0077 cmsRun ${LOCAL_TEST_DIR}/test_readRun2Scouting_cfg.py $argsPassedToPython || die "Failed to read old file $file" $?
0078 
0079 exit 0