NanoAOD and HepMC support
tea reads flat ROOT trees. Its extension library adds convenience classes for CMS NanoAOD-style inputs and generator-level HepMC content converted to ROOT.
NanoAOD
Available wrappers include:
NanoEventandNanoEventProcessorfor event-level helpers;NanoMuon,NanoElectron, andNanoJetfor reconstructed objects;NanoGenParticlefor generator ancestry and matching;NanoDimuonVertexfor LLPNanoAOD or EXONanoAOD dimuon vertices.
Convert only when the input actually follows the expected branches:
auto nanoEvent = asNanoEvent(event);
HepMC-derived ROOT trees
HepMCParticle represents generator particles and their relations. HepMCProcessor adds helpers such as last-copy checks and common-mother searches. hepmc2root is a specialized example application for conversion.
Verify the schema
Format labels do not replace schema inspection. Check tree names, branch names, branch types, and collection-size conventions in the exact input production before selecting an extension class.