/[PAMELA software]/PamelaLevel2/doc/examples/example3.C
ViewVC logotype

Diff of /PamelaLevel2/doc/examples/example3.C

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Fri Aug 4 13:33:32 2006 UTC revision 1.2 by pam-fi, Mon Oct 9 12:37:52 2006 UTC
# Line 30  void example3(TString dir,TString list=" Line 30  void example3(TString dir,TString list="
30          TList *l  = event->GetListOfLevel2Files(dir,list);          TList *l  = event->GetListOfLevel2Files(dir,list);
31          // << Hence a TChain is created from the list.          // << Hence a TChain is created from the list.
32          // << All the trees required by the user are made friend.          // << All the trees required by the user are made friend.
33          TChain *T = event->LoadPamTrees(l,treelist);          TChain *T = event->GetPamTree(l,treelist);
34          // << In the following the TChain can be used similarly to a TTree.          // << In the following the TChain can be used similarly to a TTree.
35          //          //
36          // NB! It is still possible to read a single file and get a TTree, by means of the methods:          // NB! It is still possible to read a single file and get a TTree, by means of the methods:
# Line 75  void example3(TString dir,TString list=" Line 75  void example3(TString dir,TString list="
75          Double_t ctime = timer.CpuTime();          Double_t ctime = timer.CpuTime();
76          printf("RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);          printf("RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);
77    
         delete T;  
         delete event;  
78          gSystem->ChangeDirectory(wd);          gSystem->ChangeDirectory(wd);
79                    
80  };  };

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23