ES1_7590.cxx 3.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
void ES1_7590()
{

	TStopwatch sw;
	sw.Start();

	BeAnalysis ana;

	ana.SetCMAngularRange(75, 90);

11
	ana.SetFigures("figures/7590/", ".eps");
12 13 14

//	ana.SetChainsToDraw(0, 0, 0, 0, 1, 1);
	ana.SetChainsToDraw();
15
	Bool_t epsilonT[6] = {0,0,1,0,0};
16 17 18 19
	Bool_t cosThetaT[6] = {0,0,1,0,0};
	Bool_t epsilonY[6] = {0,0,1,0,0};
	Bool_t cosThetaY[6] = {0,0,1,0,0};
	Bool_t thetaAT[6] = {0,0,1,0,0};
20

21 22 23 24 25 26 27 28 29 30 31
	ana.SetSpectra();
//	ana.SetEpsilonTintervals(epsilonT);
	ana.SetEpsilonTintervals();
//	ana.SetCosThetaTkIntervals(cosThetaT);
	ana.SetCosThetaTkIntervals(cosThetaT);
//	ana.SetEpsilonYintervals(epsilonY);
	ana.SetEpsilonYintervals();
	ana.SetCosThetaYkIntervals(cosThetaY);
	ana.SetCosThetaYkIntervals();
	ana.SetThetaATintervals(thetaAT);
	ana.SetThetaATintervals();
32 33 34 35 36 37 38 39 40 41 42

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

43 44 45
	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};
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
	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();


66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
	ana.SetRatiosGStoEX("sRatio>0.075 && sRatio<0.125",
						"sRatio>0.076 && sRatio<0.126",
						"sRatio>0.070 && sRatio<0.120",
						"sRatio>0.070 && sRatio<0.120",
						"sRatio>0.075 && sRatio<0.125",
						"sRatio>0.076 && sRatio<0.126");
	ana.SetCuts();

	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;
82
	Long64_t sEventsECuts[5][6] = {2020000, 2040000, 2130000, 2080000, 2060000, 2080000,
83 84 85 86 87 88 89
									2000000, 2020000, 2000000, 2010000, 1990000, 1970000,
									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);
90

91
/////////////////////////////////////////////////////////////////////////////////
92

93
	ana.Spectra();
94 95
	sw.Print();
	sw.Continue();
96

97
	ana.EpsilonT();
98 99 100
	sw.Print();
	sw.Continue();

101
	ana.CosThetaTk();
102 103 104
	sw.Print();
	sw.Continue();

105
	ana.EpsilonY();
106 107 108
	sw.Print();
	sw.Continue();

109 110 111
	ana.CosThetaYk();
	sw.Print();
	sw.Continue();
112

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

117 118
	Info("ES1_7590.cxx", "Finished.");

119 120 121
}