00001 /* needed by StHbtFlowPicoReader */ 00002 00003 #define flow_pDST_cxx 00004 #include "flow_pDST.h" 00005 #include "TH2.h" 00006 #include "TStyle.h" 00007 #include "TCanvas.h" 00008 00009 void flow_pDST::Loop() 00010 { 00011 // In a ROOT session, you can do: 00012 // Root > .L flow_pDST.C 00013 // Root > flow_pDST t 00014 // Root > t.GetEntry(12); // Fill t data members with entry number 12 00015 // Root > t.Show(); // Show values of entry 12 00016 // Root > t.Show(16); // Read and show values of entry 16 00017 // Root > t.Loop(); // Loop on all entries 00018 // 00019 00020 // This is the loop skeleton 00021 // To read only selected branches, Insert statements like: 00022 // METHOD1: 00023 // fChain->SetBranchStatus("*",0); // disable all branches 00024 // fChain->SetBranchStatus("branchname",1); // activate branchname 00025 // METHOD2: replace line 00026 // fChain->GetEntry(i); // read all branches 00027 //by b_branchname->GetEntry(i); //read only this branch 00028 if (fChain == 0) return; 00029 00030 Int_t nentries = Int_t(fChain->GetEntries()); 00031 00032 Int_t nbytes = 0, nb = 0; 00033 for (Int_t jentry=0; jentry<nentries;jentry++) { 00034 Int_t ientry = LoadTree(jentry); //in case of a TChain, ientry is the entry number in the current file 00035 nb = fChain->GetEntry(jentry); nbytes += nb; 00036 // if (Cut(ientry) < 0) continue; 00037 } 00038 }
1.5.9