# Acessing custom class branches in python

**URL:** <https://root-forum.cern.ch/t/acessing-custom-class-branches-in-python/46116>\
**Category:** ROOT\
**Tags:** python\
**Created:** [August 1, 2021, 4:11pm UTC](https://root-forum.cern.ch/t/acessing-custom-class-branches-in-python/46116 "2021-08-01T16:11:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [August 2, 2021, 10:09am UTC](https://root-forum.cern.ch/t/acessing-custom-class-branches-in-python/46116/4 "2021-08-02T10:09:33Z")

</div>

Try:

```cpp
#pragma link C++ nestedclass;
#pragma link C++ nestedtypedef;
#pragma link C++ namespace dd4hep;
#pragma link C++ defined_in namespace dd4hep;
#pragma link C++ namespace dd4hep::rec;
#pragma link C++ defined_in namespace dd4hep::rec;
#pragma link C++ class dd4hep::rec::Vector3D+;
#pragma link C++ class std::vector<dd4hep::rec::Vector3D>+;

```

---

_[View the full topic](https://root-forum.cern.ch/t/acessing-custom-class-branches-in-python/46116)._
