123456789101112131415161718192021222324252627282930313233343536373839 |
- /* needed by StHbtFlowPicoReader */
- #define flow_pDST_cxx
- #include "flow_pDST.h"
- #include "TH2.h"
- #include "TStyle.h"
- #include "TCanvas.h"
- void flow_pDST::Loop()
- {
- // In a ROOT session, you can do:
- // Root > .L flow_pDST.C
- // Root > flow_pDST t
- // Root > t.GetEntry(12); // Fill t data members with entry number 12
- // Root > t.Show(); // Show values of entry 12
- // Root > t.Show(16); // Read and show values of entry 16
- // Root > t.Loop(); // Loop on all entries
- //
- // This is the loop skeleton
- // To read only selected branches, Insert statements like:
- // METHOD1:
- // fChain->SetBranchStatus("*",0); // disable all branches
- // fChain->SetBranchStatus("branchname",1); // activate branchname
- // METHOD2: replace line
- // fChain->GetEntry(i); // read all branches
- //by b_branchname->GetEntry(i); //read only this branch
- if (fChain == 0) return;
- Int_t nentries = Int_t(fChain->GetEntries());
- Int_t nbytes = 0, nb = 0;
- for (Int_t jentry=0; jentry<nentries;jentry++) {
- Int_t ientry = LoadTree(jentry); //in case of a TChain, ientry is the entry number in the current file
- nb = fChain->GetEntry(jentry); nbytes += nb;
- // if (Cut(ientry) < 0) continue;
- }
- }
|