er  dev
beamCut.c
1 #if !defined(__CLING__)
2 
3 #include "TCutG.h"
4 
5 #endif
6 
7 TCutG *cutF3,*cutF5;
8 
9 void create_Cut_F3() {
10  cutF3 = new TCutG("F3_Beam",16);
11  cutF3->SetVarX("0.0625*0.25*(tF5[0] + tF5[1] + tF5[2] + tF5[3] - tF3[0] - tF3[1] - tF3[2] - tF3[3])");
12  cutF3->SetVarY("(F3[0] + F3[1] + F3[2] + F3[3])/4.");
13  cutF3->SetTitle("F3_ToF_title");
14  cutF3->SetFillColor(1);
15  cutF3->SetPoint(0,103.375,907.843);
16  cutF3->SetPoint(1,103.888,944.995);
17  cutF3->SetPoint(2,108.089,988.338);
18  cutF3->SetPoint(3,115.328,1006.91);
19  cutF3->SetPoint(4,115.787,962.539);
20  cutF3->SetPoint(5,116.193,837.668);
21  cutF3->SetPoint(6,115.99,658.101);
22  cutF3->SetPoint(7,115.45,604.438);
23  cutF3->SetPoint(8,111.452,585.862);
24  cutF3->SetPoint(9,107.211,584.83);
25  cutF3->SetPoint(10,105.145,579.67);
26  cutF3->SetPoint(11,103.672,582.766);
27  cutF3->SetPoint(12,103.186,682.869);
28  cutF3->SetPoint(13,103.173,764.396);
29  cutF3->SetPoint(14,103.2,845.924);
30  cutF3->SetPoint(15,103.375,907.843);
31  // cutF3->Draw("");
32 }
33 
34 void create_Cut_F5() {
35  cout << "create_Cut_F5 RUN " << endl;
36  cutF5 = new TCutG("F5_Beam",17);
37  cutF5->SetVarX("0.0625*0.25*(tF5[0] + tF5[1] + tF5[2] + tF5[3] - tF3[0] - tF3[1] - tF3[2] - tF3[3])");
38  cutF5->SetVarY("(F5[0] +F5[1] + F5[2] + F5[3])/4.");
39  cutF5->SetTitle("F5_Beam_title");
40  cutF5->SetFillColor(1);
41  cutF5->SetPoint(0,103.348,819.092);
42  cutF5->SetPoint(1,103.524,923.323);
43  cutF5->SetPoint(2,106.063,971.827);
44  cutF5->SetPoint(3,109.602,998.658);
45  cutF5->SetPoint(4,112.64,1007.95);
46  cutF5->SetPoint(5,115.423,990.402);
47  cutF5->SetPoint(6,116.125,875.851);
48  cutF5->SetPoint(7,116.112,681.837);
49  cutF5->SetPoint(8,115.747,634.365);
50  cutF5->SetPoint(9,112.073,601.342);
51  cutF5->SetPoint(10,108.953,596.182);
52  cutF5->SetPoint(11,106.198,585.862);
53  cutF5->SetPoint(12,104.348,583.798);
54  cutF5->SetPoint(13,103.416,595.15);
55  cutF5->SetPoint(14,103.186,669.453);
56  cutF5->SetPoint(15,103.132,739.628);
57  cutF5->SetPoint(16,103.348,819.092);
58  // cutF5->Draw("");
59 }
60 
61 void beamCut() {
62  cout << "beamCut run" << endl;
63  create_Cut_F3();
64  create_Cut_F5();
65 }