84 """ Get TTrees from one DF
85
86 Args:
87 aod (CLI Argument): CLI Argument for AO2D.root File
88
89 Returns:
90 list: list of all ttres names in provided AO2D.root File
91 """
92 textAodList = aod.startswith("@")
93 endsWithTxt = aod.endswith("txt") or aod.endswith("text")
94 ttreeList = []
95
96
97 if textAodList and endsWithTxt:
98 aod = aod.replace("@", "")
99 with open(aod) as f:
100 for line in f:
101 if line.endswith(".root"):
102
103 aod = line
104 break
105
106 tFile = (MappingTFile(aod))
107 for i in tFile:
108 if isinstance(i, dict):
109 for key in i.keys():
110 ttreeList.append(key)
111 return ttreeList