Draft: Fix bugs retagging for GN2_v01 (kfold)
Discussed issues with Samuel Van Stroud to be solved when running ca-dump-retag trying to use GN2v01 tagger. Check implementation in BTagTrainingPreprocessing/bin/ca-dump-retag and configs/EMPFlow_GN2v01.json.
I run the script:
#!/bin/bash
TRK_SYST=$1
inputFile=/data/atlas02/users/homsak/ntuples/test_files/mc23_13p6TeV.700788.Sh_2214_Zee_maxHTpTV2_CVetoBVeto.deriv.DAOD_FTAG1.e8514_e8528_s4159_s4114_r14799_r14811_p5981_tid36077393_00/DAOD_FTAG1.36077393._000004.pool.root.1
outDir="/data/atlas02/users/homsak/output_retagged_h5_files/test_files/test_mc23_13p6TeV.700788.Sh_2214_Zee_maxHTpTV2_CVetoBVeto.deriv.DAOD_FTAG1.e8514_e8528_s4159_s4114_r14799_r14811_p5981_tid36077393_00/"
outFile="${outDir}${TRK_SYST}.h5"
TDD_dir=/home/homsak/TDD_newest/
configFile="${TDD_dir}configs/EMPFlow_GN2v01.json"
export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
source "${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh"
asetup Athena,main,latest
cd /home/homsak/build
source x*/setup.sh
ca-dump-retag $inputFile -c $configFile -t $TRK_SYST -o $outFile
and this gives me an error:
myGN2 ERROR no container AntiKt4EMPFlow
myGN2 ERROR Maximum number of errors ( 'ErrorMax':1) reached.AthAlgSeq INFO execute of [myGN2] did NOT succeedAthAlgSeq ERROR Maximum number of errors ( 'ErrorMax':1) reached.AthAllAlgSeq INFO execute of [AthAlgSeq] did NOT succeed
AthAllAlgSeq ERROR Maximum number of errors ( 'ErrorMax':1) reached.
AthAlgEvtSeq INFO execute of [AthAllAlgSeq] did NOT succeed
AthAlgEvtSeq ERROR Maximum number of errors ( 'ErrorMax':1) reached.
AthMasterSeq INFO execute of [AthAlgEvtSeq] did NOT succeedAthMasterSeq ERROR Maximum number of errors ( 'ErrorMax':1) reached.
AthenaEventLoopMgr INFO Execution of algorithm AthMasterSeq failed with StatusCode::FAILURE
AthenaEventLoopMgr INFO ===>>> done processing event #426008400, run #450000 1 events processed so far <<<===
AthenaEventLoopMgr ERROR Terminating event processing loop due to errors
If I replace, inside ca-dump-retag the line
container=jetCollection
with
container=BtagCollection
where
jetCollection = 'AntiKt4EMPFlow'
BTagCollection = cfgFlags.BTagging.OutputFiles.Prefix + jetCollection
my error goes from
myGN2 ERROR no container AntiKt4EMPFlow
to
myGN2 ERROR no container BTagging_AntiKt4EMPFlow
Meaning that essentially it's not recognising what I'm passing in as the container, regardless of what it is.