Drawing the value of a tree branch against an array element

I am new at root and I have a (probably simple)question,

I created a TTree with several branches. One of the branchens has 2 arrays:

This branch has a value that depends on the array number.

I would like to plot the value of the branch vs the first (or second array) i.e value of branch vs 0, 1 , 2 …, 5.etc. All on the same graph

Any help is apreciated

I am not sure what you are looking for … please re-read the TTree::Draw documentation http://root.cern.ch/root/html/TTree.html#TTree:Draw
maybe you want to dotree->Draw("MyBranch[][0]:0"); tree->Draw("MyBranch[][1]:1","","same"); ....


Thank you Philippe!,
That is exactly what I was looking for.