#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "TTreeIndex.h" #include "TChain.h" #include "TFile.h" #include "TTree.h" #include "TMath.h" #include "Event.h" #include "Detector.h" #include "Report.h" #include "Vector.h" #include "counting.hh" using namespace std; //Get effective volumes with error bars class EarthModel; int main(int argc, char **argv) { gStyle->SetOptStat(111111); gStyle->SetOptDate(1); if(argc<4){ cout<<"Not enough arguments! Abort run."<Add(string(argv[i]).c_str()); AraTree2->Add(string(argv[i]).c_str()); } Report *report = 0; Event *event=0; AraTree2->SetBranchAddress("report",&report); AraTree2->SetBranchAddress("event",&event); int totnthrown = AraTree2->GetEntries(); cout << "Total number of events: " << totnthrown << endl; int NBINS=10; double eventsfound_binned[NBINS]; for(int i=0; iGetEntry(iEvt2); if(report->stations[0].Global_Pass<=0) continue; double weight = event->Nu_Interaction[0].weight; if(weight > 1.0) continue; totweight += weight; int index_weights = Counting::findWeightBin(log10(weight)); if(index_weights