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

4 5 6 7 8 9 10 11
	/* accessible sRatio in simulated beams - (0.05,0.15)
	 *
	 *
	 */

	const Bool_t saveHists = 0;
//	const Bool_t saveHists = 1;

Vratislav Chudoba's avatar
Vratislav Chudoba committed
12 13 14 15 16 17 18
	TStopwatch sw;
	sw.Start();

	BeAnalysis ana;

	ana.SetCMAngularRange(45, 60);

19
//	ana.SetFigures("figures/4560/", ".eps");
Vratislav Chudoba's avatar
Vratislav Chudoba committed
20

21
//	ana.SetChainsToDraw(0, 0, 0, 0, 1, 1);
Vratislav Chudoba's avatar
Vratislav Chudoba committed
22
	ana.SetChainsToDraw();
23

24 25
	Bool_t epsilonT[6] = {0,0,0,0,1};
	Bool_t cosThetaT[6] = {0,0,0,0,1};
Vratislav Chudoba's avatar
Vratislav Chudoba committed
26 27
	Bool_t epsilonY[6] = {0,0,1,0,0};
	Bool_t cosThetaY[6] = {0,0,1,0,0};
28
	Bool_t thetaAT[6] = {0,0,1,1,0};
29 30 31 32

	TString simEt[5] = {"", "f6BeIM>1.6 && f6BeIM<2.1", "", "", ""};
//	TString simEt[5];
	ana.SetSimCuts(simEt);
Vratislav Chudoba's avatar
Vratislav Chudoba committed
33

34

35
//	ana.SetNoBinsSpectra(50);
36
	ana.SetSpectraRange(0., 10.);
37
//	ana.SetSpectra();
38
//	ana.SetEpsilonTintervals(epsilonT);
39 40 41 42 43 44 45
//	ana.SetEpsilonTintervals();
//	ana.SetCosThetaTkIntervals(cosThetaT);
//	ana.SetCosThetaTkIntervals();
//	ana.SetEpsilonYintervals(epsilonY);
//	ana.SetEpsilonYintervals();
//	ana.SetCosThetaYkIntervals(cosThetaY);
//	ana.SetCosThetaYkIntervals();
46
	ana.SetThetaATintervals(thetaAT);
47
//	ana.SetThetaATintervals();
48 49


Vratislav Chudoba's avatar
Vratislav Chudoba committed
50 51 52 53

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

	const Long64_t eMaxEvents = 5000000;
54
	Long64_t eEvents[6] = {3150000, 3150000, 3150000, 3150000, 3150000, /*1115000*/ 3150000};
Vratislav Chudoba's avatar
Vratislav Chudoba committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
	ana.SetNoExpEvents(eEvents);

	const Long64_t sMaxEvents = 3000000;
	Long64_t sEvents[6] = {sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents};
	ana.SetNoSimEvents(sEvents);

	Int_t lowSimFile[6] = {0, 0, 0, 0, 0, 0};
	Int_t upSimFile[6] = {15, 15, 15, 15, 15, 15};
	ana.SetNoSimFiles(lowSimFile, upSimFile);

	ana.SetSimChains("../../../be/rootdata/correlations/v5_4560/Sim_mix_br_al_0_35-70_",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_noal_0_35-70_",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_al_180_35-70_",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_noal_180_35-70_",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_al_90_35-70_",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_noal_90_35-70_");

	ana.SetInputChains("../../../be/rootdata/correlations/v5_4560/Sim_mix_br_al_0_35-70_000.root",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_noal_0_35-70_000.root",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_al_180_35-70_000.root",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_noal_180_35-70_000.root",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_al_90_35-70_000.root",
					"../../../be/rootdata/correlations/v5_4560/Sim_mix_br_noal_90_35-70_000.root");


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


	ana.SetRatiosGStoEX("sRatio>0.05 && sRatio<0.095",
			"sRatio>0.05 && sRatio<0.095",
			"sRatio>0.05 && sRatio<0.095",
			"sRatio>0.05 && sRatio<0.095",
			"sRatio>0.05 && sRatio<0.095",
			"sRatio>0.05 && sRatio<0.095");
90
//			"sRatio>0.1 && sRatio<0.115");
Vratislav Chudoba's avatar
Vratislav Chudoba committed
91 92 93 94 95 96 97

//	ana.SetRatiosGStoEX("sRatio>0.051 && sRatio<0.101",
//			"sRatio>0.050 && sRatio<0.100",
//			"sRatio>0.047 && sRatio<0.097",
//			"sRatio>0.048 && sRatio<0.098",
//			"sRatio>0.051 && sRatio<0.101",
//			"sRatio>0.051 && sRatio<0.101");
98
//	ana.SetCuts();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
99

100
	Long64_t eEventsECuts[5][6] = {2900000, 2900000, 2900000, 2900000, 2900000, 2900000,
101 102
//										3400000, 3400000, 3400000, 3500000, 3400000, 3400000,
										2100000, 2100000, 2100000, 2100000, 2100000, 2100000,
Vratislav Chudoba's avatar
Vratislav Chudoba committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
										2400000, 2400000, 2400000, 2400000, 2400000, 2400000,
										2900000, 3000000, 2900000, 3000000, 2900000, 3000000,
										3200000, 3300000, 3300000, 3400000, 3300000, 3400000};
	ana.ExpEventsECuts(eEventsECuts);

	Long64_t sEventsECuts[5][6] = {sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents,
										sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents,
										sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents,
										sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents,
										sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents};
	ana.SimEventsECuts(sEventsECuts);

	ana.SetRangeProportion(1.1, 1);

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

	ana.Spectra();
120 121 122
	sw.Print();
	sw.Continue();

123 124 125
//	return;

//	ana.SaveSpectrumHist(0, "figures/spectra1MeV.root");
126
//	ana.SaveSpectrumHist(0, "figures/spectra15MeV.root");
Vratislav Chudoba's avatar
Vratislav Chudoba committed
127 128 129 130 131 132

	ana.EpsilonT();

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

133
	ana.CosThetaTk();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
134 135 136 137

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

138
	ana.EpsilonY();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
139 140 141 142

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

143
	ana.CosThetaYk();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
144 145 146 147

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

148
	ana.ThetaAT();
Vratislav Chudoba's avatar
Vratislav Chudoba committed
149 150 151 152

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

153
	if (saveHists) {
154 155 156 157 158 159 160 161 162 163 164
//		ana.SaveSpectrumHist(5);
//		ana.SaveEpsilonTHist(0, 0);
//		ana.SaveEpsilonTHist(1, 2);
//		ana.SaveEpsilonTHist(3, 5);
//		ana.SaveCosThetaTHist(0, 3);


		for (Int_t i = 0; i < 6; i++) {
			ana.SaveThetaAHist(2, i, "figures/BestFit4560.root");
			ana.SaveThetaAHist(3, i, "figures/BestFit4560.root");
		}
165 166 167
	}


168
	Info("ES1_4560.cxx", "Finished.");
Vratislav Chudoba's avatar
Vratislav Chudoba committed
169 170 171 172 173 174

	return;

}