ROOT logo
#define tmp_cxx
#include "tmp.h"
#include <TH2.h>
#include <TStyle.h>
#include <TCanvas.h>

void tmp::Loop()
{
//   In a ROOT session, you can do:
//      Root > .L tmp.C
//      Root > tmp 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 where:
//    jentry is the global entry number in the chain
//    ientry is the entry number in the current Tree
//  Note that the argument to GetEntry must be:
//    jentry for TChain::GetEntry
//    ientry for TTree::GetEntry and TBranch::GetEntry
//
//       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(jentry);       //read all branches
//by  b_branchname->GetEntry(ientry); //read only this branch
   if (fChain == 0) return;

   Long64_t nentries = fChain->GetEntriesFast();

   Long64_t nbytes = 0, nb = 0;
   for (Long64_t jentry=0; jentry<nentries;jentry++) {
      Long64_t ientry = LoadTree(jentry);
      if (ientry < 0) break;
      nb = fChain->GetEntry(jentry);   nbytes += nb;
      // if (Cut(ientry) < 0) continue;
   }
}
 tmp.C:1
 tmp.C:2
 tmp.C:3
 tmp.C:4
 tmp.C:5
 tmp.C:6
 tmp.C:7
 tmp.C:8
 tmp.C:9
 tmp.C:10
 tmp.C:11
 tmp.C:12
 tmp.C:13
 tmp.C:14
 tmp.C:15
 tmp.C:16
 tmp.C:17
 tmp.C:18
 tmp.C:19
 tmp.C:20
 tmp.C:21
 tmp.C:22
 tmp.C:23
 tmp.C:24
 tmp.C:25
 tmp.C:26
 tmp.C:27
 tmp.C:28
 tmp.C:29
 tmp.C:30
 tmp.C:31
 tmp.C:32
 tmp.C:33
 tmp.C:34
 tmp.C:35
 tmp.C:36
 tmp.C:37
 tmp.C:38
 tmp.C:39
 tmp.C:40
 tmp.C:41
 tmp.C:42
 tmp.C:43
 tmp.C:44