ES1_90120.cxx 4.21 KB
Newer Older
1 2 3
void ES1_90120()
{

4 5
//	const Bool_t saveHists = 0;
	const Bool_t saveHists = 0;
6 7 8 9 10 11 12 13

	TStopwatch sw;
	sw.Start();

	BeAnalysis ana;

	ana.SetCMAngularRange(90, 120);

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

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

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

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


	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;
47 48
//	Long64_t sEvents[6] = {2280000, 2290000, 2100000, 2300000, 2330000, 2300000};
	Long64_t sEvents[6] = {2200000, 2200000, 2200000, 2200000, 2200000, 2200000};
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
	ana.SetNoSimEvents(sEvents);

	Int_t lowSimFile[6] = {0, 0, 0, 0, 0, 0};
	Int_t upSimFile[6] = {6, 6, 6, 6, 6, 6};
	ana.SetNoSimFiles(lowSimFile, upSimFile);
	ana.SetSimChains("../../../be/rootdata/correlations/v5_90120/Sim_mix_br_al_0_80-130_",
					"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_noal_0_80-130_",
					"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_al_180_80-130_",
					"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_noal_180_80-130_",
					"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_al_90_80-130_",
					"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_noal_90_80-130_");

	ana.SetInputChains("../../../be/rootdata/correlations/v5_90120/Sim_mix_br_al_0_80-130_000.root",
						"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_noal_0_80-130_000.root",
						"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_al_180_80-130_000.root",
						"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_noal_180_80-130_000.root",
						"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_al_90_80-130_000.root",
						"../../../be/rootdata/correlations/v5_90120/Sim_mix_br_noal_90_80-130_000.root");


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


73 74 75 76 77 78 79
	ana.SetRatiosGStoEX("sRatio>0.115 && sRatio<0.165",
						"sRatio>0.115 && sRatio<0.165",
						"sRatio>0.115 && sRatio<0.165",
						"sRatio>0.115 && sRatio<0.165",
						"sRatio>0.115 && sRatio<0.165",
						"sRatio>0.115 && sRatio<0.165");
//	ana.SetCuts();
80 81 82 83 84 85 86 87 88

	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);

	Long64_t sEventsECuts[5][6] = {2300000, 2310000, 2130000, 2330000, 2320000, 2310000,
89 90
//									2260000, 2270000, 2010000, 2280000, 2280000, 2280000,
									2280000, 2280000, 2280000, 2280000, 2280000, 2280000,
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
									sMaxEvents, sMaxEvents, 2290000, sMaxEvents, sMaxEvents, sMaxEvents,
									3270000, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents,
									2320000, 2330000, 2100000, 2340000, 2370000, 2340000};
	ana.SimEventsECuts(sEventsECuts);

	ana.SetRangeProportion(1.1, 1);

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

	ana.Spectra();
	sw.Print();
	sw.Continue();

	ana.EpsilonT();
	sw.Print();
	sw.Continue();

	ana.CosThetaTk();
	sw.Print();
	sw.Continue();

	ana.EpsilonY();
	sw.Print();
	sw.Continue();

	ana.CosThetaYk();
	sw.Print();
	sw.Continue();

	ana.ThetaAT();
	sw.Print();
	sw.Continue();

124 125 126 127 128
	if (saveHists) {
		ana.SaveSpectrumHist(0);
		ana.SaveEpsilonTHist(0, 0);
	}

129 130 131 132 133 134 135
	Info("ES1_90120.cxx", "Finished.");

	return;

}