# Data from branches

**URL:** <https://root-forum.cern.ch/t/data-from-branches/56039>\
**Category:** Newbie\
**Tags:** tree, python, root\
**Created:** [August 15, 2023, 3:59pm UTC](https://root-forum.cern.ch/t/data-from-branches/56039 "2023-08-15T15:59:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [August 16, 2023, 11:33am UTC](https://root-forum.cern.ch/t/data-from-branches/56039/4 "2023-08-16T11:33:42Z")

</div>

Hi @Revan,

> [@Revan](#):
>
> ```auto
> TClass::Init:0: RuntimeWarning: no dictionary for class HepMCEvent is available
> TClass::Init:0: RuntimeWarning: no dictionary for class Event is available
> TClass::Init:0: RuntimeWarning: no dictionary for class Weight is available
> TClass::Init:0: RuntimeWarning: no dictionary for class GenParticle is available
> TClass::Init:0: RuntimeWarning: no dictionary for class SortableObject is available
> TClass::Init:0: RuntimeWarning: no dictionary for class Track is available
> TClass::Init:0: RuntimeWarning: no dictionary for class Tower is available
> TClass::Init:0: RuntimeWarning: no dictionary for class Jet is available
> TClass::Init:0: RuntimeWarning: no dictionary for class MissingET is available
> TClass::Init:0: RuntimeWarning: no dictionary for class Electron is available
> TClass::Init:0: RuntimeWarning: no dictionary for class Photon is available
> TClass::Init:0: RuntimeWarning: no dictionary for class Muon is available
> TClass::Init:0: RuntimeWarning: no dictionary for class ScalarHT is available
> 
> ```

In regard to these warnings, you will have to load the corresponding dictionary file that provides information for the abovementioned classes.

> [@Revan](#):
>
> ```auto
> raceback (most recent call last):
> File "/Users/npolishetty/PycharmProjects/SandBoxROOT/ROOTRunner3_copy.py", line 28, in <module>
> collision.m1.SetPtEtaPhiM(entry.Muon.Muon.PT, entry.Muon.Muon.Eta, entry.Muon.Muon.Phi, 0.1)
> AttributeError: 'TClonesArray' object has no attribute 'Muon'
> 
> ```

Accessing a branch whose name contains dots (`.`) in this way is not supported. Specifically, for the `Muon.pt` part at the end, Python is parsing it as get an attribute named `Muon`, then get an attribute named `pt`.  
In this case, you should use the workaround mentioned in [Looping tree and getting branch value, but branch has a dot(.) in its name - #6 by etejedor](https://root-forum.cern.ch/t/looping-tree-and-getting-branch-value-but-branch-has-a-dot-in-its-name/46612/6).

Cheers,  
J.

---

_[View the full topic](https://root-forum.cern.ch/t/data-from-branches/56039)._
