Skip to content

Draft: Trying to print tracks with the data

Nicole Michelle Hartman requested to merge nicole-data-test into main

Goal: For testing GN3 modelling, we want a quick turn around pipeline for data / mc checks.

Ligang was giving me an FTAG2 test file and asking me to see if we had the GN3 variables inside.

Dan suggested I try running the tdd with the FTAG2 sample (and GN3 config) to see if we have what I needed, so I'm trying to document that effort here.

What worked: I can run Jona's config on an ftag2 sample:

dump-single-btag -c ../training-dataset-dumper/configs/EMPFlow -o test-dat.h5 -m 100 /eos/user/h/hartman/FTAG/ftag2/mc23_13p6TeV.601230.PhPy8EG_A14_ttbar_hdamp258p75_dil.deriv.DAOD_FTAG2.e8514_s4162_r14622_p5981/DAOD_FTAG2.36077683._000120.pool.root.1

However, this only printed jet info, and not the tracks:

image

I tried editting the config to add tracks and flow object in the config file (as shown in EMPFlowDataGN3), but still only the jet info gets saved (not sure why).

Trying to run w/ minimal GN3 config

The GN3_test_ftag2_mini config is my attempt to take all the truth info out.

I tried running with the GN3_test_ftag2_mini with the same ftag2 file:

dump-single-btag -c ../training-dataset-dumper/configs/GN3_test_ftag2_mini.json -o test-dat.h5 -m 100 /eos/user/h/hartman/FTAG/ftag2/mc23_13p6TeV.601230.PhPy8EG_A14_ttbar_hdamp258p75_dil.deriv.DAOD_FTAG2.e8514_s4162_r14622_p5981/DAOD_FTAG2.36077683._000120.pool.root.1

but I keep getting an error about the track link not existing. This persists whether I use the FTAG dR track association or the ghost association (which is the version I'm pushing here).

Snippet of the error msg included below:

AthenaEventLoopMgr                                   INFO   ===>>>  start of run 410000    <<<===
AthenaEventLoopMgr                                   INFO   ===>>>  start processing event #61796103, run #410000 0 events processed so far  <<<===
TBranchAuxDynReader::initBranch                   WARNING RootAuxDynIO/src/TBranchAuxDynReader.cxx:219 (unsigned long TBranchAuxDynReader::initBranch(bool, const std::string&, TBranch*)): Could not find auxid for InDetTrackParticlesAuxDyn.trackLink type: vector<ElementLink<DataVector<Trk::Track> > >
GN3_test_ftag2_miniDatasetDumper                    FATAL  Standard std::exception is caught 
GN3_test_ftag2_miniDatasetDumper                    ERROR invalid particle link in TrackSelector
GN3_test_ftag2_miniDatasetDumper                    ERROR Maximum number of errors ( 'ErrorMax':1) reached.
AthAlgSeq                                            INFO execute of [GN3_test_ftag2_miniDatasetDumper] did NOT succeed
AthAlgSeq                                           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 succeed
AthMasterSeq                                        ERROR Maximum number of errors ( 'ErrorMax':1) reached.
AthenaEventLoopMgr                                   INFO Execution of algorithm AthMasterSeq failed with StatusCode::FAILURE
AthenaEventLoopMgr                                   INFO   ===>>>  done processing event #61796103, run #410000 1 events processed so far  <<<===
AthenaEventLoopMgr                                  ERROR Terminating event processing loop due to errors
Py:ComponentAccumulator   ERROR Failure running application

Tagging @dguest @jackersc (tdd side) @greta (AnalysisTop data and tracks expertise )

Note: Not planning on merging this code! Just trying to make it publicly accessible for mm discussions

Merge request reports

Loading