ScoutingNanoAODSchema#

class coffea.nanoevents.ScoutingNanoAODSchema(base_form, version='latest')[source]#

Bases: NanoAODSchema

ScoutingNano schema builder

ScoutingNano is a NanoAOD format that includes Scouting objects

Attributes Summary

alias_items

Arrays that should be aliased to ensure proper 4-vector behavior

all_cross_references

Cross-references, where an index is to be interpreted with respect to another collection

full_like_items

Arrays that should be filled with constant values if not present to satisfy 4-vector requirements

mixins

Default configuration for mixin types, based on the collection name.

Attributes Documentation

alias_items = {'CorrT1METJet_mass': 'CorrT1METJet_rawMass', 'CorrT1METJet_pt': 'CorrT1METJet_rawPt', 'MET_phi': 'MET_fiducialGenPhi', 'MET_pt': 'MET_fiducialGenPt'}#

Arrays that should be aliased to ensure proper 4-vector behavior

all_cross_references = {'Electron_genPartIdx': 'GenPart', 'Electron_jetIdx': 'Jet', 'Electron_photonIdx': 'Photon', 'FatJet_genJetAK8Idx': 'GenJetAK8', 'FatJet_subJetIdx1': 'SubJet', 'FatJet_subJetIdx2': 'SubJet', 'FsrPhoton_muonIdx': 'Muon', 'GenPart_genPartIdxMother': 'GenPart', 'GenVisTau_genPartIdxMother': 'GenPart', 'Jet_electronIdx1': 'Electron', 'Jet_electronIdx2': 'Electron', 'Jet_genJetIdx': 'GenJet', 'Jet_muonIdx1': 'Muon', 'Jet_muonIdx2': 'Muon', 'LowPtElectron_electronIdx': 'Electron', 'LowPtElectron_genPartIdx': 'GenPart', 'LowPtElectron_photonIdx': 'Photon', 'Muon_fsrPhotonIdx': 'FsrPhoton', 'Muon_genPartIdx': 'GenPart', 'Muon_jetIdx': 'Jet', 'Photon_electronIdx': 'Electron', 'Photon_genPartIdx': 'GenPart', 'Photon_jetIdx': 'Jet', 'Tau_genPartIdx': 'GenPart', 'Tau_jetIdx': 'Jet'}#

Cross-references, where an index is to be interpreted with respect to another collection

Each such cross-reference will be converted to a global indexer, so that arbitrarily sliced events can still resolve the indirection back the parent events

full_like_items = {'CorrT1METJet_mass': (<function full_like_from_offsets_form>, ('oCorrT1METJet', 0.0)), 'FatJet_charge': (<function full_like_from_offsets_form>, ('oFatJet', 0.0)), 'FsrPhoton_charge': (<function full_like_from_offsets_form>, ('oFsrPhoton', 0.0)), 'FsrPhoton_mass': (<function full_like_from_offsets_form>, ('oFsrPhoton', 0.0)), 'IsoTrack_mass': (<function full_like_from_offsets_form>, ('oIsoTrack', 0.0)), 'Jet_charge': (<function full_like_from_offsets_form>, ('oJet', 0.0)), 'Photon_charge': (<function full_like_from_offsets_form>, ('oPhoton', 0.0)), 'Photon_mass': (<function full_like_from_offsets_form>, ('oPhoton', 0.0)), 'ScoutingFatJet_charge': (<function full_like_from_offsets_form>, ('oScoutingFatJet', 0.0)), 'ScoutingJet_charge': (<function full_like_from_offsets_form>, ('oScoutingJet', 0.0)), 'ScoutingPhoton_charge': (<function full_like_from_offsets_form>, ('oScoutingPhoton', 0.0)), 'ScoutingPhoton_m': (<function full_like_from_offsets_form>, ('oScoutingPhoton', 0.0)), 'SoftActivityJet_mass': (<function full_like_from_offsets_form>, ('oSoftActivityJet', 0.0)), 'TrigObj_mass': (<function full_like_from_offsets_form>, ('oTrigObj', 0.0))}#

Arrays that should be filled with constant values if not present to satisfy 4-vector requirements

mixins = {'CaloMET': 'MissingET', 'ChsMET': 'MissingET', 'CorrT1METJet': 'PtEtaPhiMCollection', 'Electron': 'Electron', 'FatJet': 'FatJet', 'FsrPhoton': 'FsrPhoton', 'GenDressedLepton': 'PtEtaPhiMCollection', 'GenIsolatedPhoton': 'PtEtaPhiMCollection', 'GenJet': 'PtEtaPhiMCollection', 'GenJetAK8': 'PtEtaPhiMCollection', 'GenMET': 'MissingET', 'GenPart': 'GenParticle', 'GenVisTau': 'GenVisTau', 'IsoTrack': 'PtEtaPhiMCollection', 'Jet': 'Jet', 'LHEPart': 'PtEtaPhiMCollection', 'LowPtElectron': 'LowPtElectron', 'MET': 'MissingET', 'METFixEE2017': 'MissingET', 'Muon': 'Muon', 'PV': 'Vertex', 'Photon': 'Photon', 'PuppiMET': 'MissingET', 'RawMET': 'MissingET', 'RawPuppiMET': 'MissingET', 'SV': 'SecondaryVertex', 'ScoutingElectron': 'Electron', 'ScoutingFatJet': 'FatJet', 'ScoutingJet': 'Jet', 'ScoutingMET': 'MissingET', 'ScoutingMuonNoVtx': 'Muon', 'ScoutingMuonNoVtxDisplacedVertex': 'Vertex', 'ScoutingMuonVtx': 'Muon', 'ScoutingMuonVtxDisplacedVertex': 'Vertex', 'ScoutingPhoton': 'Photon', 'ScoutingPrimaryVertex': 'Vertex', 'SoftActivityJet': 'PtEtaPhiMCollection', 'SubGenJetAK8': 'PtEtaPhiMCollection', 'SubJet': 'PtEtaPhiMCollection', 'Tau': 'Tau', 'TkMET': 'MissingET', 'TrigObj': 'PtEtaPhiMCollection'}#

Default configuration for mixin types, based on the collection name.

The types are implemented in the coffea.nanoevents.methods.nanoaod module.