ES1_6075.cxx 5.17 KB
Newer Older
Vratislav Chudoba's avatar
Vratislav Chudoba committed
1
void ES1_6075()
2 3
{

4 5 6
	const Bool_t saveHists = 0;
//	const Bool_t saveHists = 1;

7 8 9
	TStopwatch sw;
	sw.Start();

Vratislav Chudoba's avatar
Vratislav Chudoba committed
10
	BeAnalysis ana;
11

Vratislav Chudoba's avatar
Vratislav Chudoba committed
12
	ana.SetCMAngularRange(60, 75);
13

14
//	ana.SetFigures("figures/6075/", ".eps");
15

16
//	ana.SetChainsToDraw(0, 0, 0, 0, 1, 1);
Vratislav Chudoba's avatar
Vratislav Chudoba committed
17
	ana.SetChainsToDraw();
18 19


20 21 22 23
	Bool_t epsilonT[6] = {0,0,0,0,1};
	Bool_t cosThetaT[6] = {0,0,0,0,1};
	Bool_t epsilonY[6] = {0,0,0,0,1};
	Bool_t cosThetaY[6] = {0,0,0,0,1};
24
	Bool_t thetaAT[6] = {0,0,1,1,0};
25

26 27
	TString simEt[5] = {"", "f6BeIM>1.5 && f6BeIM<2.0", "", "f6BeIM>2.4 && f6BeIM<3.1", ""};
	TString inEt[5] = {"", "E_IM>1.5 && E_IM<2.0", "", "E_IM>2.4 && E_IM<3.1", ""};
28
	ana.SetSimCuts(simEt);
29
	ana.SetInputCuts(inEt);
30

31
//	ana.SetNoBinsSpectra(50);
32
	ana.SetSpectraRange(0., 10.);
33
//	ana.SetSpectra();
34
//	ana.SetEpsilonTintervals(epsilonT);
35
//	ana.SetEpsilonTintervals();
36
//	ana.SetCosThetaTkIntervals(cosThetaT);
37
//	ana.SetCosThetaTkIntervals();
38
//	ana.SetEpsilonYintervals(epsilonY);
39
//	ana.SetEpsilonYintervals();
40
//	ana.SetCosThetaYkIntervals(cosThetaY);
41
//	ana.SetCosThetaYkIntervals();
42
	ana.SetThetaATintervals(thetaAT);
43
//	ana.SetThetaATintervals();
44

45
//	ana.SetNoBinsSpectra(200);
46

Vratislav Chudoba's avatar
Vratislav Chudoba committed
47
	ana.SetExpChain("../../../be/rootdata/correlations/v5_exp/Be.", 0, 40);
48 49

	const Long64_t eMaxEvents = 5000000;
Vratislav Chudoba's avatar
Vratislav Chudoba committed
50 51 52 53
	Long64_t eEvents[6] = {eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents};
	ana.SetNoExpEvents(eEvents);

	const Long64_t sMaxEvents = 3000000;
54
//	Long64_t sEvents[6] = {sMaxEvents, 2700000, sMaxEvents, 2700000, 2690000, 2710000};
55 56 57
	//used for PRC:
	Long64_t sEvents[6] = {sMaxEvents, 2600000, sMaxEvents, 2600000, 2690000, 2600000};
//	Long64_t sEvents[6] = {sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents};
Vratislav Chudoba's avatar
Vratislav Chudoba committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
	ana.SetNoSimEvents(sEvents);

	Int_t lowSimFile[6] = {0, 0, 0, 0, 0, 0};
	Int_t upSimFile[6] = {14, 14, 14, 14, 14, 14};
	ana.SetNoSimFiles(lowSimFile, upSimFile);
	ana.SetSimChains("../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_0_50-85_",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_0_50-85_",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_180_50-85_",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_180_50-85_",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_90_50-85_",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_90_50-85_");

	ana.SetInputChains("../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_0_50-85_000.root",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_0_50-85_000.root",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_180_50-85_000.root",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_180_50-85_000.root",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_90_50-85_000.root",
					"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_90_50-85_000.root");


	ana.OpenExpChain();
	ana.OpenSimChains();

81 82 83 84 85 86 87
	ana.SetRatiosGStoEX("sRatio>0.060 && sRatio<0.110",
			"sRatio>0.060 && sRatio<0.110",
			"sRatio>0.060 && sRatio<0.110",
			"sRatio>0.060 && sRatio<0.110",
			"sRatio>0.060 && sRatio<0.110",
			"sRatio>0.060 && sRatio<0.110");
//	ana.SetCuts();
88 89

	Long64_t eEventsECuts[5][6] = {3950000, 3950000, 3800000, 3850000, 3950000, 3900000,
90 91
//									eMaxEvents, eMaxEvents, 4100000, eMaxEvents, eMaxEvents, eMaxEvents,
									3500000, 3500000, 3500000, 3500000, 3500000, 3500000,
92
									3050000, 3150000, 3200000, 3200000, 3250000, 3350000,
93 94
//									3850000, 3950000, 3900000, 3900000, 4000000, 4000000,
									eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents,
95
									4100000, 4100000, 4000000, 4100000, eMaxEvents, eMaxEvents};
Vratislav Chudoba's avatar
Vratislav Chudoba committed
96
	ana.ExpEventsECuts(eEventsECuts);
97 98

	Long64_t sEventsECuts[5][6] = {sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents,
99 100
//										sMaxEvents, 2630000, sMaxEvents, sMaxEvents, 2660000, 2660000,
										sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, 2660000, 2660000,
Vratislav Chudoba's avatar
Vratislav Chudoba committed
101
										sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents,
102 103
//										sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents,
										2500000, 2500000, 2500000, 2500000, 2500000, 2500000,
Vratislav Chudoba's avatar
Vratislav Chudoba committed
104 105 106 107 108 109 110 111
										sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents};
	ana.SimEventsECuts(sEventsECuts);

	ana.SetRangeProportion(1.1, 1);

	///////////////////////////////////////////////////////////////////////////////////

	ana.Spectra();
112 113
	sw.Print();
	sw.Continue();
114
//	ana.SaveSpectrumHist(0, "figures/spectraDiff.root");
115

116
//	ana.SaveSpectrumHist(0, "figures/spectra1MeV.root");
117
//	ana.SaveSpectrumHist(0, "figures/spectra15MeV.root");
Vratislav Chudoba's avatar
Vratislav Chudoba committed
118 119 120 121 122 123

	ana.EpsilonT();

	sw.Print();
	sw.Continue();

124
	ana.CosThetaTk();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
125 126 127 128

	sw.Print();
	sw.Continue();

129
	ana.EpsilonY();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
130 131 132 133

	sw.Print();
	sw.Continue();

134
	ana.CosThetaYk();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
135 136 137 138

	sw.Print();
	sw.Continue();

139
	ana.ThetaAT();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
140 141 142 143

	sw.Print();
	sw.Continue();

144
	if (saveHists) {
145 146 147 148 149 150 151 152 153 154 155 156 157 158
//		ana.SaveSpectrumHist(2);
//		ana.SaveEpsilonTHist(0, 5);
//		ana.SaveEpsilonTHist(1, 2);
//		ana.SaveEpsilonTHist(3, 5);

		for (Int_t i = 0; i < 6; i++) {
//			ana.SaveEpsilonTHist(1, i);
//			ana.SaveEpsilonTHist(3, i);

			ana.SaveThetaAHist(2, i, "figures/BestFit6075.root");
			ana.SaveThetaAHist(3, i, "figures/BestFit6075.root");
		}


159 160
	}

161
	Info("ES1_6075.cxx", "Finished.");
Vratislav Chudoba's avatar
Vratislav Chudoba committed
162 163 164

	return;

165 166 167
}