All pastes #505635 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-23 17:36 UTC
rendered paste body
InFile                 = new TFile(filename,"READ","",9);
      tree                   = (TTree*) InFile->Get("tree");
      Float * parameter                 = 0;
      Int_t NEvents          = tree->GetEntries();
      //tree->Print();
      tree->SetBranchAddress("branch name",&parameter);

      for(i < NEvents)
{
      tree->GetEntry(i);
      cout << *parameter << endl;
}