pyROOT : TTree help

From: Anil Singh <anil79_at_fnal.gov>
Date: Mon, 29 Jun 2009 03:58:53 -0500


Hi All,

I am trying to translate some CINT based macro into a pyROOT one. Can anybody help me with following snippet:

//===================================================
int event;
float char_array[n];
Zee=new TTree("Zee","Zee");
Zee->Branch("event", &event, "event/I"); Zee->Branch("char_array", char_array, "char_array[n]/F");
//================================================


I hope that &event can be replaced by AddressOf(nevent), but how should i deal with arrays?? Should they now be defined as "lists" or "tuples", how should one assign them to specific tree branches ?

cheers
Anil Received on Mon Jun 29 2009 - 11:18:57 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 30 2009 - 23:50:02 CEST