-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cc
47 lines (31 loc) · 844 Bytes
/
main.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <string>
#include <TTree.h>
#include <TChain.h>
#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>
#include <TH2.h>
#include <TH1F.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TVector2.h>
#include <TVector3.h>
#include <TAxis.h>
#include "Analysis.h"
using namespace std;
int main(int argc, char* argv[]) {
//================ Creating chain
TFile* fin= new TFile("~/Documents/myRootWorkDir/provevarie/treeFromCmsrm/tree.root");
TChain* chain =new TChain("tree/tree");
chain->Add("~/Documents/myRootWorkDir/provevarie/treeFromCmsrm/tree.root/tree/tree");
std::cout<<chain->GetEntries()<<std::endl;
//================ Run Analysis
Analysis tree( chain );
tree.Loop();
delete fin;
delete chain;
return 0;
}