ES1_7590.cxx 4.35 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
	Bool_t epsilonT[6] = {0,1,0,0,0};
	Bool_t cosThetaT[6] = {1,0,0,0,0};
	Bool_t epsilonY[6] = {1,0,0,0,0};
21 22
	Bool_t cosThetaY[6] = {0,0,1,0,0};
	Bool_t thetaAT[6] = {0,0,1,0,0};
23

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

//	ana.SetSpectra();
	ana.SetEpsilonTintervals(epsilonT);
//	ana.SetEpsilonTintervals();
30
//	ana.SetCosThetaTkIntervals(cosThetaT);
31
//	ana.SetCosThetaTkIntervals();
32
//	ana.SetEpsilonYintervals(epsilonY);
33 34 35 36 37
//	ana.SetEpsilonYintervals();
//	ana.SetCosThetaYkIntervals(cosThetaY);
//	ana.SetCosThetaYkIntervals();
//	ana.SetThetaATintervals(thetaAT);
//	ana.SetThetaATintervals();
38 39 40 41 42 43 44 45

	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;
46 47
//	Long64_t sEvents[6] = {2050000, 2050000, 2050000, 2050000, 1900000, 1950000};
	Long64_t sEvents[6] = {2050000, 2050000, 2050000, 2050000, 2050000, 2050000};
48 49
	ana.SetNoSimEvents(sEvents);

50 51 52
	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};
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
	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();


73 74 75 76 77 78 79 80 81
	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();
82 83 84 85 86 87 88 89 90

	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;
91
	Long64_t sEventsECuts[5][6] = {2020000, 2040000, 2130000, 2080000, 2060000, 2080000,
92 93
//									2000000, 2020000, 2000000, 2010000, 1990000, 1970000,
									2300000, 2300000, 2300000, 2300000, 2300000, 2300000,
94 95 96 97 98 99
									2320000, 2300000, 2340000, 2310000, 2300000, 2290000,
									2060000, 2070000, 2110000, 2110000, 2070000, 2060000,
									2050000, 2050000, 2110000, 2110000, 2050000, 2050000};
	ana.SimEventsECuts(sEventsECuts);

	ana.SetRangeProportion(1.1, 1);
100

101
/////////////////////////////////////////////////////////////////////////////////
102

103
	ana.Spectra();
104 105
	sw.Print();
	sw.Continue();
106

107
	ana.EpsilonT();
108 109 110
	sw.Print();
	sw.Continue();

111
	ana.CosThetaTk();
112 113 114
	sw.Print();
	sw.Continue();

115
	ana.EpsilonY();
116 117 118
	sw.Print();
	sw.Continue();

119 120 121
	ana.CosThetaYk();
	sw.Print();
	sw.Continue();
122

123
	ana.ThetaAT();
124 125 126
	sw.Print();
	sw.Continue();

127 128 129 130 131 132 133
	if (saveHists) {
		ana.SaveSpectrumHist(0);
		ana.SaveEpsilonTHist(0, 5);
		ana.SaveCosThetaTHist(0, 0);
		ana.SaveEpsilonYHist(0, 0);
	}

134 135
	Info("ES1_7590.cxx", "Finished.");

136 137 138
}