drawh5.C

draw макрос - Ivan Muzalevsky, 03/21/2018 02:47 PM

Download (17.2 KB)

 
1
#include <fstream>
2
#include "TCanvas.h"
3

    
4
using namespace std;
5

    
6
void drawh5(){
7
                
8
        ERMCTrack *n1 = new ERMCTrack();
9
        ERMCTrack *n2 = new ERMCTrack();
10
        ERMCTrack *h3 = new ERMCTrack();
11
        ERMCTrack *h5 = new ERMCTrack();
12
        ERMCTrack *he3 = new ERMCTrack();
13
        ERMCTrack *he6 = new ERMCTrack();
14

    
15
        TFile *fr = new TFile("/store/ivan/EXP1803/temp/kin.root", "READ");
16
        TTree *tr = (TTree*)fr->Get("tree");
17

    
18
        tr->SetBranchAddress("n1.",&n1);
19
        tr->SetBranchAddress("n2.",&n2);
20
        tr->SetBranchAddress("h3.",&h3);
21
        tr->SetBranchAddress("h5.",&h5);
22
        tr->SetBranchAddress("he3.",&he3);
23
        tr->SetBranchAddress("he6.",&he6);
24

    
25

    
26
        //TCut cVol = "(he3->GetThetaCM())*TMath::RadToDeg() > 16 && (he3->GetThetaCM())*TMath::RadToDeg() <39";
27
        //TCut cVol = "(he3->GetTheta())*TMath::RadToDeg() < 32 && (he3->GetEnergy() - he3->GetMass())<0.02";
28
        TCut cGS = "(1000*fh5it.Mag() - 2809.432 - 2*939.565)<2.6";
29

    
30
        TLorentzVector fn1,fn2,fh3,fh5,fhe3,fhe6,fh2,fn1CM,fn2CM,fh3CM,fh5CM,fhe3CM,fh5it;
31
        TLorentzVector temp,tempCM;
32
        TVector3 bVect;
33
        Double_t angle,angleCM;
34
        fh2.SetXYZT(0,0,0,1.87612); 
35
//c1
36
        // pad
37
        TH1F *h5EX = new TH1F("h5EX","h5 spectrum",500,0,180);
38
        TH1F *he6T = new TH1F("he6T","beam energy",500,0,400);
39
        TH1F *he6Theta = new TH1F("he6Theta","beam direction: theta",500,0,180);
40
        TH1F *he6Phi = new TH1F("he6Phi","beam direction: phi",500,0,180);
41

    
42
        TH2F *he3Theta2 = new TH2F("he3Theta2","he3 theta vs CM",500,0,180,500,0,40); //cd2 
43
        TH2F *h5Theta2 = new TH2F("h5Theta2","h5 theta vs CM",500,0,180,500,0,40);
44

    
45
        TH2F *he3t_thetCM = new TH2F("he3t_thetCM","he3 t vs thetaCM",500,0,180,500,0,100); // cd3
46
        TH2F *h5t_thetCM = new TH2F("h5t_thetCM","h5 t vs thetaCM",500,0,180,500,0,100);
47

    
48
        TH1F *he3ThetaCM = new TH1F("he3ThetaCM","he3 theta CM",70,0,180); // cd4
49

    
50
        TH2F *he3_h5_theta = new TH2F("he3_h5_theta","h5 t he3",500,0,24,500,0,40); //cd5
51

    
52
        TH2F *he3t_thet = new TH2F("he3t_thet","he3 t vs theta",500,0,40,500,0,100);
53
        TH2F *h5t_thet = new TH2F("h5t_thet","h5 t vs theta",500,0,40,500,0,150);
54

    
55

    
56
//c2
57
        TH2F *he3Theta2cut = new TH2F("he3Theta2cut","he3 theta vs CM cut",500,0,180,500,0,40); //cd2 
58
        TH2F *h5Theta2cut = new TH2F("h5Theta2cut","h5 theta vs CM cut",500,0,180,500,0,40);
59

    
60
//c3
61
        TH1F *he3ThetaCMcut = new TH1F("he3t_thetCMcut","he3 t vs thetaCM cut",70,0,180);
62
        TH1F *h3CMP = new TH1F("h3CMP","h3CMP",100,0,90);
63
        TH1F *h3CMPcut = new TH1F("h3CMPcut","h3CMPcut",100,0,90);
64
        TH1F *h3CMPcut1 = new TH1F("h3CMPcut1","h3CMPcut1",100,0,90);
65

    
66
        TH1F *n1CMP = new TH1F("n1CMP","n1CMP",100,0,90);
67
        TH1F *n1CMPcut = new TH1F("n1CMPcut","n1CMPcut",100,0,90);
68
        TH1F *n1CMPcut1 = new TH1F("n1CMPcut1","n1CMPcut1",100,0,90);
69

    
70
        TH1F *n2CMP = new TH1F("n2CMP","n2CMP",100,0,90);
71
        TH1F *n2CMPcut = new TH1F("n2CMPcut","n2CMPcut",100,0,90);
72
        TH1F *n2CMPcut1 = new TH1F("n2CMPcut1","n2CMPcut1",100,0,90);
73

    
74
        TH1F *hn1 = new TH1F("hn1","theta between n1 and n2",50,0.,50.);
75
        TH1F *hn1CM = new TH1F("hn1CM","thetaCM between n1 and n2",50,0.,180.);
76
        TH1F *hn1cut = new TH1F("hn1cut","theta between n1 and n2 cut",50,0.,50.);
77
        TH1F *hn1CMcut = new TH1F("hn1CMcut","thetaCM between n1 and n2 cut",50,0.,180.);
78

    
79
        TH2F *he3tThetcut = new TH2F("he3tThetcut","he3 t vs thethaCMcut",1000,0.,50.,1000,0.,50.);
80
        TH2F *h5tThetcut = new TH2F("h5tThetcut","h5 t vs thethaCMcut",1000,0.,50.,1000,0.,50.);
81
        TH2F *n1tThetcut = new TH2F("n1tThetcut","n1 t vs thethaCMcut",1000,0.,100.,1000,0.,100.);
82
        TH2F *n2tThetcut = new TH2F("n2tThetcut","n2 t vs thethaCMcut",1000,0.,100.,1000,0.,100.);
83
        TH2F *h3tThetcut = new TH2F("h3tThetcut","h3 t vs thethaCMcut",1000,0.,100.,1000,0.,100.);
84

    
85
        TH1F *h5spec = new TH1F("h5spec","h5 spectrum",100,0,2.);
86
        TH1F *h5specut = new TH1F("h5specut","h5 spectrum cut",100,0,2.);
87

    
88
        for(Int_t i=0; i<tr->GetEntries();i++){
89
                tr->GetEntry(i);
90

    
91
                fn1 = n1->GetVector();
92
                fn2 = n2->GetVector();
93
                fh5 = h5->GetVector();
94
                fhe6 = he6->GetVector();
95
                temp = fh2;
96
                bVect = fh2.BoostVector();
97
                temp.Boost(-bVect);
98

    
99
                fn1CM = n1->GetVector();
100
                fn2CM = n2->GetVector();
101
                fh3CM = h3->GetVector();
102
                fh5CM = h5->GetVector();
103
                fhe3CM = he3->GetVector();
104
                fh5it = h5->GetVector();
105

    
106
                fn1CM.Boost(-fh5.BoostVector());
107
                fn2CM.Boost(-fh5.BoostVector());
108
                fh3CM.Boost(-fh5.BoostVector());
109
                fhe3CM.Boost(-(fh2 + fhe6).BoostVector());
110
                fh5CM.Boost(-(fh2 + fhe6).BoostVector());
111
                fh5it.Boost(-fh5.BoostVector());
112

    
113
                fn1CM.SetTheta(TMath::Pi() - fn1CM.Theta());
114
                fhe3CM.SetTheta(TMath::Pi() - fhe3CM.Theta());
115

    
116
                // fh5CM.SetTheta(TMath::Pi() - fh5CM.Theta());
117

    
118
                // h5EX->Fill(h5->GetMass() - n1->GetMass() - n2->GetMass() - h3->GetMass()); // h5 spectrum
119
                he6T->Fill(1000*(he6->GetEnergy() - he6->GetMass()));
120
                // he6Theta->Fill(fhe6.Theta()*TMath::RadToDeg());
121
                // he6Phi->Fill(fhe6.Phi()*TMath::RadToDeg());
122

    
123
                he3ThetaCM->Fill(fhe3CM.Theta()*TMath::RadToDeg());
124
                he3Theta2->Fill(fhe3CM.Theta()*TMath::RadToDeg(),he3->GetTheta()*TMath::RadToDeg());
125
                h5Theta2->Fill(fh5CM.Theta()*TMath::RadToDeg(),h5->GetTheta()*TMath::RadToDeg());
126

    
127
                he3t_thetCM->Fill(fhe3CM.Theta()*TMath::RadToDeg(),1000*(he3->GetEnergy() - he3->GetMass())/3.);
128
                h5t_thetCM->Fill(fh5CM.Theta()*TMath::RadToDeg(),1000*(h5->GetEnergy() - h5->GetMass())/5.);
129
                he3_h5_theta->Fill(h5->GetTheta()*TMath::RadToDeg(),he3->GetTheta()*TMath::RadToDeg());
130

    
131
                he3t_thet->Fill(he3->GetTheta()*TMath::RadToDeg(),1000*(he3->GetEnergy() - he3->GetMass())/3.);
132
                h5t_thet->Fill(fh5.Theta()*TMath::RadToDeg(),1000*(h5->GetEnergy() - h5->GetMass())/5.);
133

    
134
                if((fhe3CM.Theta())*TMath::RadToDeg() > 16 && (fhe3CM.Theta())*TMath::RadToDeg() <39) {
135
                        he3Theta2cut->Fill(fhe3CM.Theta()*TMath::RadToDeg(),he3->GetTheta()*TMath::RadToDeg());
136
                        h5Theta2cut->Fill(fh5CM.Theta()*TMath::RadToDeg(),h5->GetTheta()*TMath::RadToDeg());
137
                }
138
                if ((fhe3CM.Theta())*TMath::RadToDeg() > 16 && (fhe3CM.Theta())*TMath::RadToDeg() <39) {
139
                        he3ThetaCMcut->Fill(fhe3CM.Theta()*TMath::RadToDeg());
140
                }
141

    
142
                h3CMP->Fill(1000*fh3CM.P());
143
                if((1000*fh5it.Mag() - 2809.432 - 2*939.565)<2.6) {
144
                        h3CMPcut->Fill(1000*fh3CM.P());
145
                }
146
                if((fhe3CM.Theta())*TMath::RadToDeg() > 16 && (fhe3CM.Theta())*TMath::RadToDeg() <39) {
147
                        h3CMPcut1->Fill(1000*fh3CM.P());
148
                }
149

    
150
                n1CMP->Fill(1000*fn1CM.P());
151
                if((1000*fh5it.Mag() - 2809.432 - 2*939.565)<2.6) {
152
                        n1CMPcut->Fill(1000*fn1CM.P());
153
                }
154
                if((fhe3CM.Theta())*TMath::RadToDeg() > 16 && (fhe3CM.Theta())*TMath::RadToDeg() <39) {
155
                        n1CMPcut1->Fill(1000*fn1CM.P());
156
                }
157

    
158

    
159
                n2CMP->Fill(1000*fn2CM.P());
160
                if((1000*fh5it.Mag() - 2809.432 - 2*939.565)<2.6) {
161
                        n2CMPcut->Fill(1000*fn2CM.P());
162
                }
163
                if((fhe3CM.Theta())*TMath::RadToDeg() > 16 && (fhe3CM.Theta())*TMath::RadToDeg() <39) {
164
                        n2CMPcut1->Fill(1000*fn2CM.P());
165
                }
166

    
167
                angle = fn1.Angle(fn2.Vect())*TMath::RadToDeg();  // get angle between v1 and v2
168
                angleCM = fn1CM.Angle(fn2CM.Vect())*TMath::RadToDeg();
169
                hn1->Fill(angle);
170
                hn1CM->Fill(angleCM);
171
                if((fhe3CM.Theta())*TMath::RadToDeg() > 16 && (fhe3CM.Theta())*TMath::RadToDeg() <39) {
172
                        hn1cut->Fill(angle);
173
                        hn1CMcut->Fill(angleCM);
174
                        he3tThetcut->Fill(he3->GetTheta()*TMath::RadToDeg(),1000*(he3->GetEnergy() - he3->GetMass())/3.);
175
                        h5tThetcut->Fill(h5->GetTheta()*TMath::RadToDeg(),1000*(h5->GetEnergy() - h5->GetMass())/5.);
176
                        n1tThetcut->Fill(n1->GetTheta()*TMath::RadToDeg(),1000*(n1->GetEnergy() - n1->GetMass()));
177
                        n2tThetcut->Fill(n2->GetTheta()*TMath::RadToDeg(),1000*(n2->GetEnergy() - n2->GetMass()));
178
                        h3tThetcut->Fill(h3->GetTheta()*TMath::RadToDeg(),1000*(h3->GetEnergy() - h3->GetMass())/3.);
179
                }
180
                h5spec->Fill(1000*(h5->GetMass() - h3->GetMass() - n1->GetMass() - n2->GetMass()) - 1.81847);
181
                if((1000*fh5it.Mag() - 2809.432 - 2*939.565)<2.6) {
182
                        h5specut->Fill(1000*(h5->GetMass() - h3->GetMass() - n1->GetMass() - n2->GetMass()) - 1.81847);
183
                }
184
        }
185
        
186

    
187
        // draw                
188
        const Int_t ww = 1400;
189
        const Int_t wh = 1000;
190

    
191
        TH1F *htemp;
192

    
193
        TCanvas *cInt = new TCanvas("cInt", "Standard LISE++ output", ww, wh);
194
        cInt->Divide(3,2);
195

    
196
        cInt->cd(1);
197

    
198
        TPad *padInput = (TPad*)gPad;
199

    
200
        padInput->Divide(2,2);
201
        padInput->cd(1);
202
        //tr->Draw("1000*(h5->GetMass() - h3->GetMass() - n1->GetMass() - n2->GetMass()) - 1.81847");
203
        h5spec->Draw();
204
        //htemp = (TH1F*)gPad->GetPrimitive("htemp");
205
        ////htemp->GetXaxis()->SetTitle("E_{T} (MeV)");
206
        //htemp->SetTitle("5H spectrum");
207

    
208
        padInput->cd(2);
209
        tr->SetLineColor(kBlack);
210
        // tr->Draw("(he6.fEnergy - he6.fMass)/6.", "");
211
        he6T->Draw();
212
        // htemp = (TH1F*)gPad->GetPrimitive("htemp");
213
        he6T->GetXaxis()->SetTitle("E_{beam} (MeV)");
214
        he6T->SetTitle("beam energy");
215

    
216
        padInput->cd(3);
217
        tr->Draw("he6->GetTheta()*TMath::RadToDeg()", "");
218
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
219
        htemp->GetXaxis()->SetTitle("\\Theta_{beam} (rad)");
220
        htemp->SetTitle("beam direction");
221

    
222
        padInput->cd(4);
223
        tr->Draw("he6->GetPhi()*TMath::RadToDeg()", "");
224
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
225
        htemp->GetXaxis()->SetTitle("\\Phi_{beam} (rad)");
226
        htemp->SetTitle("beam direction");
227

    
228
        cInt->cd(2);
229
        he3Theta2->SetMarkerColor(kBlue);
230
        he3Theta2->Draw();
231
        h5Theta2->SetMarkerColor(kRed);
232
        h5Theta2->Draw("same");
233
        he3Theta2->GetXaxis()->SetTitle("\\Theta_{CM} (deg)");
234
        he3Theta2->GetYaxis()->SetTitle("\\Theta_{lab} (deg)");
235
        he3Theta2->SetTitle("binary reaction: no cut");        
236

    
237
        cInt->cd(3);
238
        he3t_thetCM->SetMarkerColor(4);
239
        he3t_thetCM->Draw();
240
        h5t_thetCM->SetMarkerColor(2);
241
        h5t_thetCM->Draw("same");
242
        he3t_thetCM->GetXaxis()->SetTitle("\\Theta_{CM} (deg)");
243
        he3t_thetCM->GetYaxis()->SetTitle("T_{lab} (MeV/A)");
244
        he3t_thetCM->SetTitle("binary reaction: no cut");
245

    
246
        cInt->cd(4);
247
        he3ThetaCM->SetLineColor(1);
248
        he3ThetaCM->Draw();
249
        he3ThetaCM->GetXaxis()->SetTitle("\\Theta_{CM} (deg)");
250
        he3ThetaCM->SetTitle("input reaction angle");
251

    
252
        cInt->cd(5);
253
        tr->SetMarkerColor(kBlack);
254
        tr->Draw("he3->GetTheta()*TMath::RadToDeg():h5->GetTheta()*TMath::RadToDeg()", "");
255
        // he3_h5_theta->SetMarkerColor(kRed);
256
        // he3_h5_theta->Draw("same");
257
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
258
        htemp->GetXaxis()->SetTitle("\\Theta_{lab}(5H) (deg)");
259
        htemp->GetYaxis()->SetTitle("\\Theta_{lab}(3He) (deg)");
260
        htemp->SetTitle("binary reaction: no cut");
261

    
262
//         cInt->cd(5);
263
// //        tr->Draw("kin.GetHM() - 4690.362", "");
264
//         tr->SetMarkerColor(kBlack);
265
//         tr->Draw("he3->GetTheta()*TMath::RadToDeg():h5->GetTheta()*TMath::RadToDeg()", "");
266
//         htemp = (TH1F*)gPad->GetPrimitive("htemp");
267
//         htemp->GetXaxis()->SetTitle("\\Theta_{lab}(5H) (deg)");
268
//         htemp->GetYaxis()->SetTitle("\\Theta_{lab}(3He) (deg)");
269
//         htemp->SetTitle("binary reaction: no cut");
270

    
271
        cInt->cd(6);
272
        tr->SetMarkerColor(kBlue);
273
        tr->Draw("1000*(he3->GetEnergy() - he3->GetMass())/3.:he3->GetTheta()*TMath::RadToDeg()", "", "");
274
        tr->SetMarkerColor(kRed);
275
        tr->Draw("1000*(h5->GetEnergy() - h5->GetMass())/5:h5->GetTheta()*TMath::RadToDeg()", "", "same");
276
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
277
        htemp->GetYaxis()->SetTitle("T_{lab} (MeV/A)");
278
        htemp->GetXaxis()->SetTitle("\\Theta_{lab} (deg)");
279
        htemp->SetTitle("binary reaction: no cut");
280

    
281
        TCanvas *c1 = new TCanvas("c1", "Standard LISE++ output", ww, wh);
282
        c1->Divide(3,2);
283

    
284
        c1->cd(1);
285
        he3Theta2->SetMarkerColor(kBlue);
286
        he3Theta2->Draw();
287
        h5Theta2->SetMarkerColor(kRed);
288
        h5Theta2->Draw("same");
289
        he3Theta2->GetXaxis()->SetTitle("\\Theta_{CM} (deg)");
290
        he3Theta2->GetYaxis()->SetTitle("\\Theta_{lab} (deg)");
291
        he3Theta2->SetTitle("binary reaction: no cut");
292

    
293
        he3Theta2cut->SetMarkerColor(kGreen);
294
        he3Theta2cut->Draw("same");
295
        h5Theta2cut->SetMarkerColor(kGreen);
296
        h5Theta2cut->Draw("same");
297

    
298
        c1->cd(2);
299
        tr->SetMarkerColor(kBlue);
300
        tr->Draw("1000*(n1->GetEnergy() - n1->GetMass()):n1->GetTheta()*TMath::RadToDeg()", "", "");
301
        tr->SetMarkerColor(kRed);
302
        tr->Draw("1000*(n2->GetEnergy() - n2->GetMass()):n2->GetTheta()*TMath::RadToDeg()", "", "same");
303
//        tr->Draw("kin.GetTritonT()/3.:kin.GetTritonTheta()*TMath::RadToDeg()", "", "same");
304
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
305
        htemp->GetYaxis()->SetTitle("T_{lab} (MeV/A)");
306
        htemp->GetXaxis()->SetTitle("\\Theta_{lab} (deg)");
307
        htemp->SetTitle("neutrons");
308

    
309
        c1->cd(3);
310
        tr->SetMarkerColor(kBlack);
311
        tr->Draw("1000*(h3->GetEnergy() - h3->GetMass())/3.:h3->GetTheta()*TMath::RadToDeg()", "", "");
312
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
313
        htemp->GetYaxis()->SetTitle("T_{lab} (MeV/A)");
314
        htemp->GetXaxis()->SetTitle("\\Theta_{lab} (deg)");
315
        htemp->SetTitle("triton");
316

    
317
        c1->cd(4);
318
        tr->SetMarkerColor(kBlue);
319
        tr->Draw("1000*(he3->GetEnergy() - he3->GetMass())/3.:he3->GetTheta()*TMath::RadToDeg()", "");
320
        tr->SetMarkerColor(kRed);
321
        tr->Draw("1000*(h5->GetEnergy() - h5->GetMass())/5.:h5->GetTheta()*TMath::RadToDeg()", "", "same");
322
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
323
        htemp->GetYaxis()->SetTitle("T_{lab} (MeV/A)");
324
        htemp->GetXaxis()->SetTitle("\\Theta_{lab} (deg)");
325
        htemp->SetTitle("binary reaction: cut");
326

    
327
        tr->SetMarkerColor(kGreen);
328
        he3tThetcut->SetMarkerColor(kGreen);
329
        he3tThetcut->Draw("same");
330
        h5tThetcut->SetMarkerColor(kGreen);
331
        h5tThetcut->Draw("same");
332
        //tr->Draw("1000*(he3->GetEnergy() - he3->GetMass())/3.:he3->GetTheta()*TMath::RadToDeg()", "","same");//
333
        //tr->Draw("1000*(h5->GetEnergy() - h5->GetMass())/5.:h5->GetTheta()*TMath::RadToDeg()", "", "same");//
334

    
335
        c1->cd(5);
336
        tr->SetMarkerColor(kBlack);
337
        tr->Draw("1000*(n1->GetEnergy() - n1->GetMass()):n1->GetTheta()*TMath::RadToDeg()", "", "");
338
        tr->Draw("1000*(n2->GetEnergy() - n2->GetMass()):n2->GetTheta()*TMath::RadToDeg()", "", "same");
339
        //tr->SetMarkerColor(kGreen);
340
        n1tThetcut->SetMarkerColor(kGreen);
341
        n2tThetcut->SetMarkerColor(kGreen);
342
        n1tThetcut->Draw("same");
343
        n2tThetcut->Draw("same");
344
        //tr->Draw("1000*(n1->GetEnergy() - n1->GetMass()):n1->GetTheta()*TMath::RadToDeg()", "", "same"); //
345
        //tr->Draw("1000*(n2->GetEnergy() - n2->GetMass()):n2->GetTheta()*TMath::RadToDeg()", "", "same"); //
346
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
347
        htemp->GetYaxis()->SetTitle("T_{lab} (MeV/A)");
348
        htemp->GetXaxis()->SetTitle("\\Theta_{lab} (deg)");
349
        htemp->SetTitle("neutrons: green cut");
350

    
351
        c1->cd(6);
352
        tr->SetMarkerColor(kBlack);
353
        tr->Draw("1000*(h3->GetEnergy() - h3->GetMass())/3.:h3->GetTheta()*TMath::RadToDeg()", "", "");
354
        //tr->SetMarkerColor(kGreen);
355
        h3tThetcut->SetMarkerColor(kGreen);
356
        h3tThetcut->Draw("same");
357
        //tr->Draw("1000*(h3->GetEnergy() - h3->GetMass())/3.:h3->GetTheta()*TMath::RadToDeg()", "", "same"); //
358
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
359
        htemp->GetYaxis()->SetTitle("T_{lab} (MeV/A)");
360
        htemp->GetXaxis()->SetTitle("\\Theta_{lab} (deg)");
361
        htemp->SetTitle("triton: green cut");
362

    
363
        TCanvas *c2 =  new TCanvas("c2", "CMS of 5H", ww, wh);
364
        c2->Divide(4,2);
365

    
366
        c2->cd(1);
367
        TPad *padInputChoice = (TPad*)gPad;
368
        padInputChoice->Divide(1,2);
369

    
370
        padInputChoice->cd(1);
371
//        tr->Draw("kin.GetHeTheta()*TMath::RadToDeg():kin.GetHTheta()*TMath::RadToDeg()", "");
372
//        tr->Draw("kin.GetHCMS().Mag() - 4690.36244");
373
        //tr->Draw("1000*(h5->GetMass() - h3->GetMass() - n1->GetMass() - n2->GetMass()) - 1.81847");
374
        h5spec->Draw();
375
        h5specut->SetLineColor(kRed);
376
        h5specut->Draw("same");
377
        //tr->SetLineColor(kRed);
378
        //tr->Draw("1000*(h5->GetMass() - h3->GetMass() - n1->GetMass() - n2->GetMass()) - 1.81847", cGS, "same");
379
        //htemp = (TH1F*)gPad->GetPrimitive("htemp");
380
        //htemp->GetXaxis()->SetTitle("E_{T} (MeV)");
381
        //htemp->SetTitle("5H energy spectrum");
382

    
383
        padInputChoice->cd(2);
384
        he3ThetaCM->Draw();
385
        he3ThetaCMcut->SetLineColor(kGreen);
386
        he3ThetaCMcut->Draw("same");
387
        he3ThetaCM->GetXaxis()->SetTitle("\\Theta_{CM} (deg)");
388
        he3ThetaCM->SetTitle("input reaction angle: green cut");
389
        gPad->SetLogy();
390

    
391
        c2->cd(2);
392

    
393
        h3CMP->SetLineColor(kBlack);
394
        h3CMP->Draw();
395
        h3CMPcut->SetLineColor(kRed);
396
        h3CMPcut->Draw("same");
397
        h3CMP->GetXaxis()->SetTitle("p_{5H CM}(^{3}H) (MeV/c)");
398
        h3CMP->SetTitle("CMS of 5H: no cut");
399
//        htemp->SetName("beam direction");
400

    
401

    
402
        c2->cd(3);
403

    
404
        n1CMP->SetLineColor(kBlack);
405
        n1CMP->Draw();
406
        n1CMPcut->SetLineColor(kRed);
407
        n1CMPcut->Draw("same");
408
        n1CMP->GetXaxis()->SetTitle("p_{5H CM}(^{1}n) (MeV/c)");
409
        n1CMP->SetTitle("CMS of 5H");
410

    
411
        c2->cd(4);
412
        n2CMP->SetLineColor(kBlack);
413
        n2CMP->Draw();
414
        n2CMPcut->SetLineColor(kRed);
415
        n2CMPcut->Draw("same");
416
        n2CMP->GetXaxis()->SetTitle("p_{5H CM}(^{2}n) (MeV/c)");
417
        n2CMP->SetTitle("CMS of 5H");
418

    
419

    
420

    
421
        c2->cd(5);
422
        tr->SetMarkerColor(kBlue);
423
        tr->Draw("(he3->GetVector()).P()/3.:he3->GetTheta()*TMath::RadToDeg()", "");
424
//        tr->Draw("kin.GetHeT()/3.:kin.GetHeTheta()*TMath::RadToDeg()", "");
425
        tr->SetMarkerColor(kRed);
426
//        tr->Draw("kin.GetHT()/5.:kin.GetHTheta()*TMath::RadToDeg()", "", "same");
427
        tr->Draw("(h5->GetVector()).P()/5.:h5->GetTheta()*TMath::RadToDeg()", "", "same");
428

    
429

    
430
/*        tr->SetMarkerColor(kGreen);
431
        tr->Draw("3_He.fImpulse.P()/3.:3_He->GetTheta()*TMath::RadToDeg()", cVol, "same");
432
        tr->Draw("5_H.fImpulse.P()/5.:5_H->GetTheta()*TMath::RadToDeg()", cVol, "same");
433
        htemp = (TH1F*)gPad->GetPrimitive("htemp");
434
        htemp->GetYaxis()->SetTitle("|p|_{lab} (MeV.A^{-1}.c^{-1})");
435
        htemp->GetXaxis()->SetTitle("\\Theta_{lab} (deg)");
436
        htemp->SetTitle("kinematics: green cut");*/
437

    
438
        c2->cd(6);
439
        h3CMPcut1->SetLineColor(kGreen);
440
        h3CMPcut1->Draw();
441
        h3CMPcut1->GetXaxis()->SetTitle("p_{5H CM}(^{3}H) (MeV/c)");
442
        h3CMPcut1->SetTitle("CMS of 5H: green cut");
443

    
444
        c2->cd(7);
445
        n1CMPcut1->SetLineColor(kGreen);
446
        n1CMPcut1->Draw();
447
        n1CMPcut1->GetXaxis()->SetTitle("p_{5H CM}(n_{1}) (MeV/c)");
448
        n1CMPcut1->SetTitle("CMS of 5H: green cut");
449

    
450

    
451

    
452
        c2->cd(8);
453
        n2CMPcut1->SetLineColor(kGreen);
454
        n2CMPcut1->Draw();
455
        n2CMPcut1->GetXaxis()->SetTitle("p_{5H CM}(n_{1}) (MeV/c)");
456
        n2CMPcut1->SetTitle("CMS of 5H: green cut");
457

    
458
        c2->cd(4);
459
        hn1->Draw();
460
        hn1cut->SetLineColor(8);
461
        hn1cut->Draw("same");
462
        c2->cd(8);
463
        hn1CM->Draw();
464
        hn1CMcut->SetLineColor(8);
465
        hn1CMcut->Draw("same");
466

    
467
        cInt->Print("output.pdf");
468
        cInt->Print("output.pdf[");
469
        cInt->Print("output.pdf");
470
        c1->Print("output.pdf");
471
        c2->Print("output.pdf");
472
        c2->Print("output.pdf]");
473

    
474

    
475
}