ES1_7590.cxx 4.73 KB
Newer Older
1 2 3
void ES1_7590()
{

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

7 8 9 10 11 12 13
	TStopwatch sw;
	sw.Start();

	BeAnalysis ana;

	ana.SetCMAngularRange(75, 90);

14
//	ana.SetFigures("figures/7590/", ".eps");
15 16 17

//	ana.SetChainsToDraw(0, 0, 0, 0, 1, 1);
	ana.SetChainsToDraw();
18 19 20 21 22
	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,0};
	Bool_t cosThetaY[6] = {0,0,0,0,0};
	Bool_t thetaAT[6] = {0,0,0,0,1};
23

24 25 26
	TString simEt[5] = {"", "f6BeIM>1.5 && f6BeIM<2.0", "", "", ""};
	ana.SetSimCuts(simEt);

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

	ana.SetExpChain("../../../be/rootdata/correlations/v5_exp/Be.", 0, 40);

	const Long64_t eMaxEvents = 5000000;
	Long64_t eEvents[6] = {eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents};
	ana.SetNoExpEvents(eEvents);

	const Long64_t sMaxEvents = 3000000;
48 49
//	Long64_t sEvents[6] = {2050000, 2050000, 2050000, 2050000, 1900000, 1950000};
	Long64_t sEvents[6] = {2050000, 2050000, 2050000, 2050000, 2050000, 2050000};
50 51
	ana.SetNoSimEvents(sEvents);

52 53 54
	Int_t lowSimFile[6] = {0, 0, 0, 0, 0, 0};
//	Int_t upSimFile[6] = {5, 5, 5, 5, 5, 5};
	Int_t upSimFile[6] = {12, 12, 12, 12, 12, 12};
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
	ana.SetNoSimFiles(lowSimFile, upSimFile);
	ana.SetSimChains("../../../be/rootdata/correlations/v5_7590/Sim_mix_br_al_0_65-100_",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_noal_0_65-100_",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_al_180_65-100_",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_noal_180_65-100_",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_al_90_65-100_",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_noal_90_65-100_");

	ana.SetInputChains("../../../be/rootdata/correlations/v5_7590/Sim_mix_br_al_0_65-100_000.root",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_noal_0_65-100_000.root",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_al_180_65-100_000.root",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_noal_180_65-100_000.root",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_al_90_65-100_000.root",
			"../../../be/rootdata/correlations/v5_7590/Sim_mix_br_noal_90_65-100_000.root");


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


75 76 77 78 79 80 81 82 83
	ana.SetRatiosGStoEX("sRatio>0.080 && sRatio<0.130",
						"sRatio>0.080 && sRatio<0.130",
//						"sRatio>0.070 && sRatio<0.120",
//						"sRatio>0.070 && sRatio<0.120",
						"sRatio>0.080 && sRatio<0.130",
						"sRatio>0.080 && sRatio<0.130",
						"sRatio>0.080 && sRatio<0.130",
						"sRatio>0.080 && sRatio<0.130");
//	ana.SetCuts();
84 85 86 87 88 89 90 91 92

	Long64_t eEventsECuts[5][6] = {eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents,
									eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents,
									eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents,
									eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents,
									eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents, eMaxEvents};
	ana.ExpEventsECuts(eEventsECuts);

	const Long64_t sMaxEvents = 3000000;
93
	Long64_t sEventsECuts[5][6] = {2020000, 2040000, 2130000, 2080000, 2060000, 2080000,
94 95
									2220000, 2240000, 2240000, 2280000, 2210000, 2210000,
//									2300000, 2300000, 2300000, 2300000, 2300000, 2300000,
96
									2320000, 2300000, 2340000, 2310000, 2300000, 2290000,
97 98
//									2060000, 2070000, 2110000, 2110000, 2070000, 2060000,
									2050000, 2050000, 2050000, 2050000, 2050000, 2050000,
99 100 101 102
									2050000, 2050000, 2110000, 2110000, 2050000, 2050000};
	ana.SimEventsECuts(sEventsECuts);

	ana.SetRangeProportion(1.1, 1);
103

104
/////////////////////////////////////////////////////////////////////////////////
105

106
	ana.Spectra();
107 108
	sw.Print();
	sw.Continue();
109

110 111 112
	ana.SaveSpectrumHist(0, "figures/spectra1MeV.root");
//	ana.SaveSpectrumHist(0, "figures/spectra15MeV.root");

113
	ana.EpsilonT();
114 115 116
	sw.Print();
	sw.Continue();

117
	ana.CosThetaTk();
118 119 120
	sw.Print();
	sw.Continue();

121
	ana.EpsilonY();
122 123 124
	sw.Print();
	sw.Continue();

125 126 127
	ana.CosThetaYk();
	sw.Print();
	sw.Continue();
128

129
	ana.ThetaAT();
130 131 132
	sw.Print();
	sw.Continue();

133 134 135 136 137
	if (saveHists) {
		ana.SaveSpectrumHist(0);
		ana.SaveEpsilonTHist(0, 5);
		ana.SaveCosThetaTHist(0, 0);
		ana.SaveEpsilonYHist(0, 0);
138 139 140 141 142 143 144 145 146 147


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

			ana.SaveThetaAHist(1, i);
			ana.SaveThetaAHist(3, i);
		}

148 149
	}

150 151
	Info("ES1_7590.cxx", "Finished.");

152 153 154
}