28 chainMC =
new TChain(
"mc");
29 chainDT =
new TChain(
"data");
31 chainMC->SetDirectory(0);
32 chainDT->SetDirectory(0);
35 chainDT->Add(datafile);
37 chainMC->SetBranchAddress(
"costheta1",&costheta1);
38 chainMC->SetBranchAddress(
"costheta2",&costheta2);
39 chainMC->SetBranchAddress(
"costheta3",&costheta3);
40 chainMC->SetBranchAddress(
"m12",&m12);
41 chainMC->SetBranchAddress(
"m13",&m13);
42 chainMC->SetBranchAddress(
"m23",&m23);
44 chainDT->SetBranchAddress(
"costheta1",&costheta1);
45 chainDT->SetBranchAddress(
"costheta2",&costheta2);
46 chainDT->SetBranchAddress(
"costheta3",&costheta3);
47 chainDT->SetBranchAddress(
"m12",&m12);
48 chainDT->SetBranchAddress(
"m13",&m13);
49 chainDT->SetBranchAddress(
"m23",&m23);
51 entriesMC=(Int_t)chainMC->GetEntries();
52 entriesDT=(Int_t)chainDT->GetEntries();
54 m12_low=chainDT->GetMinimum(
"m12");
55 m13_low=chainDT->GetMinimum(
"m13");
56 m23_low=chainDT->GetMinimum(
"m23");
58 m12_up =chainDT->GetMaximum(
"m12");
59 m13_up =chainDT->GetMaximum(
"m13");
60 m23_up =chainDT->GetMaximum(
"m23");
64 MC1 =
new TH2F(
"myMC1",
"",Ncos,-1.0,1.0,ny,m23_low,m23_up);
65 MC2 =
new TH2F(
"myMC2",
"",Ncos,-1.0,1.0,ny,m13_low,m13_up);
66 MC3 =
new TH2F(
"myMC3",
"",Ncos,-1.0,1.0,ny,m12_low,m12_up);
68 DT1 =
new TH2F(
"myDT1",
"",Ncos,-1.0,1.0,ny,m23_low,m23_up);
69 DT2 =
new TH2F(
"myDT2",
"",Ncos,-1.0,1.0,ny,m13_low,m13_up);
70 DT3 =
new TH2F(
"myDT3",
"",Ncos,-1.0,1.0,ny,m12_low,m12_up);
72 WT1 =
new TH2F(
"myWT1",
"",Ncos,-1.0,1.0,ny,m23_low,m23_up);
73 WT2 =
new TH2F(
"myWT2",
"",Ncos,-1.0,1.0,ny,m13_low,m13_up);
74 WT3 =
new TH2F(
"myWT3",
"",Ncos,-1.0,1.0,ny,m12_low,m12_up);
89 for(Int_t j=0;j<entriesMC;j++) {
91 MC1->Fill(costheta1,m23);
92 MC2->Fill(costheta2,m13);
93 MC3->Fill(costheta3,m12);
97 for(Int_t j=0;j<entriesDT;j++) {
99 DT1->Fill(costheta1,m23);
100 DT2->Fill(costheta2,m13);
101 DT3->Fill(costheta3,m12);
136 bins=entries/ncell/Ncos;
137 if(bins>100){bins=100;}
bool AR(double xmass2, double ymass2)
bool AR3(double costheta, double mass)
bool AR2(double costheta, double mass)
int calculateBins(int entries)
bool AR1(double costheta, double mass)