Result of Tree->Draw when adding friend to Tree

Hello

I added a Friend Tree to a Tree. Both have the same number of entries, however the original Tree has some blank leafs for some entries whereas the friend tree has all leafs filled for all entries. Bellow I show the ouput of a call to Tree->Scan()
MuonGLB[3] belongs to the original Tree and LeptonPT[3] belongs to the friend Tree.
For entries #7, #21, #23 the MuonGLB[3] is filled and LeptonPT[3] is not.
I would like to know what happens if I call Tree->Draw(“MuonGLB[3]-LeptonPT[3]”). I mean, the Draw command will not plot, as it should entries, #7, #21, #23 or is there a danger of plotting MuonGLB[3] of entry #8 - LeptonPT[3] of entry #7 ? There is always a correspondence entry by entry ?

Best Regards

Pedro Ribeiro


  • Row * MuonGLB[3 * LeptonPT[ * MuonGLB[3 * LeptonEta * MuonGLB[3 * lepton_v[ * lepton_v[ *

  •    0 * 14.257951 * 14.491443 * -1.244087 * -1.243879 * -2.191282 * -8.421442 * -11.79327 *
    
  •    1 * 13.526091 * 13.563864 * 0.5073993 * 0.5073891 * -1.534015 * 0.4958498 * -13.55479 *
    
  •    2 * 10.933436 * 11.199976 * 1.2757349 * 1.2759543 * -2.069513 * -5.356854 * -9.835830 *
    
  •    3 * 10.607993 * 10.571816 * -0.918303 * -0.918065 * 1.2590475 * 3.2432432 * 10.062041 *
    
  •    4 * 15.731271 * 16.218837 * -1.514439 * -1.514549 * 0.2397398 * 15.755800 * 3.8477883 *
    
  •    5 * 9.9266653 * 4.9720263 * 0.7745610 * 0.0524393 * 0.4396751 * 4.0791902 * 2.8427548 *
    
  •    6 * 6.9508752 * 6.9490203 * -0.372347 * -0.371445 * -1.626479 * -0.384488 * -6.938375 *
    
  •    7 *           * 6.2865362 *           * -0.317122 *           * 5.8249731 * 2.3643662 *
    
  •    8 * 17.355045 * 17.542076 * 0.5105009 * 0.5108421 * -0.889228 * 11.054462 * -13.62069 *
    
  •    9 * 7.5098815 * 7.5573401 * -0.380224 * -0.379655 * -0.273529 * 7.2764368 * -2.041287 *
    
  •   10 * 6.1061534 * 6.2445888 * -0.601836 * -0.601606 * -2.098184 * -3.142753 * -5.396108 *
    
  •   11 * 7.9738879 * 8.0903739 * -0.432803 * -0.433221 * 1.7546951 * -1.478789 * 7.9540767 *
    
  •   12 * 18.942174 * 18.702138 * 1.5009932 * 1.5014571 * 2.1054015 * -9.533258 * 16.089965 *
    
  •   13 * 24.338317 * 25.329519 * 1.8640068 * 1.8636122 * -1.700764 * -3.286828 * -25.11536 *
    
  •   14 * 8.5005760 * 8.4973859 * -2.023183 * -2.023983 * 2.9790456 * -8.385880 * 1.3720716 *
    
  •   15 * 9.6305666 * 9.4910507 * 1.8773948 * 1.8779549 * 2.3103137 * -6.392685 * 7.0152421 *
    
  •   16 * 6.7675728 * 6.8213596 * 0.2724203 * 0.2723263 * 3.0187478 * -6.769951 * 0.8358870 *
    
  •   17 * 30.574062 * 31.059253 * -0.158195 * -0.157937 * -2.550699 * -25.79302 * -17.30308 *
    
  •   18 * 5.2507114 * 5.3723645 * 0.8352545 * 0.8344731 * 0.9573567 * 3.0970332 * 4.3898391 *
    
  •   19 * 12.525878 * 12.599326 * -1.834210 * -1.833834 * 0.1253328 * 12.499465 * 1.5831556 *
    
  •   20 * 6.5952963 * 6.6110763 * 2.2316067 * 2.2322218 * -2.071500 * -3.172366 * -5.800208 *
    
  •   21 *           * 4.4138636 *           * 1.1096134 *           * -4.282049 * -1.070628 *
    
  •   22 * 7.1726341 * 7.2345948 * -0.027407 * -0.028005 * 0.1943000 * 7.1002440 * 1.3877662 *
    
  •   23 *           * 10.011625 *           * -0.006351 *           * 9.7248868 * 2.3789117 *
    
  •   24 * 10.007884 * 10.187321 * -0.171288 * -0.171416 * 2.5860352 * -8.657281 * 5.3696365 *

Tree->Draw("MuonGLB[3]-LeptonPT[3]")The result will only a plotted if both MuonGLB and LeptonPT have at least 4 elements, for a given entry. In you example, entry #7, #21 and #23 will not be plotted.

[quote]There is always a correspondence entry by entry ? [/quote]Absolutely!

Philippe