Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: 6.22/00, 6.20/06
-
Component/s: RDataFrame
-
Labels:None
-
Environment:
master on commit 746c42c43d8c89e4d8e2a7ec809aada55a9a128e
Description
The display action does not behave as expected, though I didn't have enough time to figure out all details. See the ROOT file attached with dataframe create via df = ROOT.RDataFrame('aod2nanoaod/Events', 'output.root'). Now, following outputs surprise.
1. The dataframe has around 20 columns, though the plain `Display()` action displays just four. The full list of columns is
"run", "luminosityBlock", "event", "HLT_IsoMu24_eta2p1", "HLT_IsoMu24", "HLT_IsoMu17_eta2p1_LooseIsoPFTau20", "PV_npvs", "PV_x", "PV_y", "PV_z", "nMuon", "Muon_pt", "Muon_eta", "Muon_phi", "Muon_mass", "Muon_charge", "Muon_pfRelIso03_all", "Muon_pfRelIso04_all", "Muon_tightId", "Muon_softId", "Muon_dxy", "Muon_dxyErr", "Muon_dz", "Muon_dzErr", "Muon_jetIdx", "Muon_genPartIdx", "nElectron", "Electron_pt", "Electron_eta", "Electron_phi", "Electron_mass", "Electron_charge", "Electron_pfRelIso03_all", "Electron_dxy", "Electron_dxyErr", "Electron_dz", "Electron_dzErr", "Electron_cutBasedId", "Electron_pfId", "Electron_jetIdx", "Electron_genPartIdx", "nTau", "Tau_pt", "Tau_eta", "Tau_phi", "Tau_mass", "Tau_charge", "Tau_decayMode", "Tau_relIso_all", "Tau_jetIdx", "Tau_genPartIdx", "Tau_idDecayMode", "Tau_idIsoRaw", "Tau_idIsoVLoose", "Tau_idIsoLoose", "Tau_idIsoMedium", "Tau_idIsoTight", "Tau_idAntiEleLoose", "Tau_idAntiEleMedium", "Tau_idAntiEleTight", "Tau_idAntiMuLoose", "Tau_idAntiMuMedium", "Tau_idAntiMuTight", "MET_pt", "MET_phi", "MET_sumet", "MET_significance", "MET_CovXX", "MET_CovXY", "MET_CovYY", "nJet", "Jet_pt", "Jet_eta", "Jet_phi", "Jet_mass", "Jet_puId", "Jet_btag"
|
>>> df.Display().Print()
|
run | luminosityBlock | event | HLT_IsoMu24_eta2p1 | HLT_IsoMu24 |
|
195397 | 817 | 1044388523 | false | false |
|
195397 | 817 | 1044431067 | false | false |
|
195397 | 817 | 1044455851 | false | false |
|
195397 | 817 | 1044443963 | false | false |
|
195397 | 817 | 1044504251 | false | false |
|
2. There are several Jet* columns, however, we don't see all with Display('.Jet.', 5):
nJet | Jet_pt | Jet_eta | Jet_phi | Jet_mass |
|
1 | 30.9011f | -0.570656f | 2.56188f | 5.20865f |
|
1 | 25.8226f | -0.488416f | -0.396038f | 4.29391f |
|
4 | 26.4003f | 2.67557f | 0.310208f | 7.01310f |
|
| ... | ... | ... | ... |
|
| 15.0200f | 3.44346f | 2.75493f | 4.67343f |
|
3 | 54.6018f | -2.00073f | 1.35455f | 11.0581f |
|
| ... | ... | ... | ... |
|
| 18.1091f | -1.71260f | 0.208580f | 5.38282f |
|
10 | 27.7010f | 3.06366f | -3.04998f | 8.73036f |
|
| ... | ... | ... | ... |
|
| 16.0780f | 3.68233f | -0.909857f | 5.21631f |
|
3. Let's just look at Display(('nMuon', 'Muon_pt'), 5), we see only one value per event though it's a collection of nMuon:
nMuon | Muon_pt |
|
2 | 10.7637f |
|
| 15.7365f |
|
2 | 10.5385f |
|
| 16.3271f |
|
1 | 3.27533f |
|
4 | 11.4292f |
|
| ... |
|
| 3.50223f |
|
4 | 3.28344f |
|
| ... |
|
| 23.7218f |
|