Skip to content

Updating TagInfo handling and fixing EventInfo for Truth deriv

Truth derivations had a typo in the creation of the xAOD::EventInfo (the name was given as "EventInfo" instead of "McEventInfo" when looking for the old metadata). This prevented running on old EVNT files (new ones were fine).

At the same time, I've updated to what seems to be the new style of accessing the tag info. L2 / RC should feel free to yell if I've done something wrong here, but it seems that the method we were using is depreciated (or at least was not working in master).

I've tested these changes, and we can now make truth derivations off of a number of different file types:

Derivation_tf.py --CA True --inputAODFile
/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/CampaignInputs/mc21/AOD/mc21_13p6TeV.601229.PhPy8EG_A14_ttbar_hdamp258p75_SingleLep.recon.AOD.e8453_s3873_r13829/1000events.AOD.29787656._000153.pool.root.1
--outputDAODFile art.pool.root --formats TRUTH3 --maxEvents 100

Derivation_tf.py --CA True --inputEVNTFile
/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/SimCoreTests/minbias_Inelastic-pythia8-7000.evgen.pool.root
--outputDAODFile art.pool.root --formats TRUTH3 --maxEvents 100

Derivation_tf.py --CA True --inputEVNTFile
/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.simul.HITS.e4993_s3091/HITS.10504490._000425.pool.root.1
--outputDAODFile art.pool.root --formats TRUTH3 --maxEvents 100

Derivation_tf.py --CA True --inputEVNTFile
/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/q441/22.0/RDO.17190395._000013.pool.root.1
--outputDAODFile art.pool.root --formats TRUTH3 --maxEvents 100

For info: @jcatmore

Merge request reports