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