ancestorL.cc
Go to the documentation of this file.
1 #define ancestor_cxx
2 #include "ancestor.h"
3 #include <TH2.h>
4 #include <TH1D.h>
5 #include <TStyle.h>
6 #include <TCanvas.h>
7 #include <iomanip>
8 #include <iostream>
9 #include <fstream>
10 #include <sstream>
11 #include <stdio.h>
12 #include <math.h>
13 #include <assert.h>
14 #include <TGaxis.h>
15 #include <TParameter.h>
16 
17 
18 #ifndef __CINT__ // hide header stuff from CINT, assume load_dk2nu.C run first
19 #include "dk2nu/tree/dk2nu.h"
20 #include "dk2nu/tree/dkmeta.h"
21 #endif // ifndef __CINT__
22 
23 
24 using namespace std;
25 
26 int iread = 0;
27 
29 {
30 
31 
32  dk2nu = new bsim::Dk2Nu;
33  fChain->SetBranchAddress("dk2nu",&dk2nu);
34 
35 
36  Long64_t nentries = fChain->GetEntries();
37  std::cout << "Total number of Entries = " << nentries << std::endl;
38 
39  for (Long64_t jentry=0; jentry<nentries;jentry++)
40  {
41  fChain->GetEntry(jentry);
42  ++iread;
43 
44  if(iread % 10000 == 0)
45  {
46  std::cout << "Reading Entry " << iread << std::endl;
47  }
48 
49 
50  Nimpwt = dk2nu->decay.nimpwt;
51  Ntype = dk2nu->decay.ntype;
52 
53  }//end loop over entries
54 
55 }
56 
STL namespace.
int iread
Definition: ancestorL.cc:26
virtual void Loop()
Definition: ancestorL.cc:28
QTextStream & endl(QTextStream &s)