flow_pDST.cxx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* needed by StHbtFlowPicoReader */
  2. #define flow_pDST_cxx
  3. #include "flow_pDST.h"
  4. #include "TH2.h"
  5. #include "TStyle.h"
  6. #include "TCanvas.h"
  7. void flow_pDST::Loop()
  8. {
  9. // In a ROOT session, you can do:
  10. // Root > .L flow_pDST.C
  11. // Root > flow_pDST t
  12. // Root > t.GetEntry(12); // Fill t data members with entry number 12
  13. // Root > t.Show(); // Show values of entry 12
  14. // Root > t.Show(16); // Read and show values of entry 16
  15. // Root > t.Loop(); // Loop on all entries
  16. //
  17. // This is the loop skeleton
  18. // To read only selected branches, Insert statements like:
  19. // METHOD1:
  20. // fChain->SetBranchStatus("*",0); // disable all branches
  21. // fChain->SetBranchStatus("branchname",1); // activate branchname
  22. // METHOD2: replace line
  23. // fChain->GetEntry(i); // read all branches
  24. //by b_branchname->GetEntry(i); //read only this branch
  25. if (fChain == 0) return;
  26. Int_t nentries = Int_t(fChain->GetEntries());
  27. Int_t nbytes = 0, nb = 0;
  28. for (Int_t jentry=0; jentry<nentries;jentry++) {
  29. Int_t ientry = LoadTree(jentry); //in case of a TChain, ientry is the entry number in the current file
  30. nb = fChain->GetEntry(jentry); nbytes += nb;
  31. // if (Cut(ientry) < 0) continue;
  32. }
  33. }