diff --git a/Be/BeAnalysis.cpp b/Be/BeAnalysis.cpp index 9fac8b27f247f61d115c4c24ae6b6aa5580b6859..b412d78713bd39fe3adeaa82b5fae64d15f94fd5 100644 --- a/Be/BeAnalysis.cpp +++ b/Be/BeAnalysis.cpp @@ -22,6 +22,17 @@ BeAnalysis::BeAnalysis() : che(0), spectra(1) { SetCuts(); SetChainsToDraw(); + noIntervals = 5; + epsilonT = new Bool_t[noIntervals]; + for (Int_t i = 0; i < noIntervals; i++) { + epsilonT[i] = 0; + } + epsilonT[0] = 1; + epsilonT[2] = 1; + + kVerbose = 1; + kRangeProportionIn = 2.0; + } BeAnalysis::~BeAnalysis() { @@ -371,35 +382,13 @@ void BeAnalysis::Spectra() { void BeAnalysis::EpsilonT() { - const Int_t nointervals = 5; - const Bool_t epsilonT[nointervals] = {1,0,0,0,0}; - const Bool_t kVerbose = 1; - const Float_t kRangeProportionIn = 2.0; - - Long64_t eEventsECuts[5][6] = {3950000, 3950000, 3800000, 3850000, 3950000, 3900000, - eMaxEvents, eMaxEvents, 4100000, eMaxEvents, eMaxEvents, eMaxEvents, - 3050000, 3150000, 3200000, 3200000, 3250000, 3350000, - 3850000, 3950000, 3900000, 3900000, 4000000, 4000000, - 4100000, 4100000, 4000000, 4100000, eMaxEvents, eMaxEvents}; - - Long64_t sEventsECuts[5][6] = {sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, - sMaxEvents, 2630000, sMaxEvents, sMaxEvents, 2660000, 2660000, - sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, - sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, - sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents, sMaxEvents}; - const Double_t eTRange[5][6] = {300, 300, 300, 300, 300, 300, - 380, 380, 380, 380, 380, 380, - 300, 300, 300, 300, 300, 300, - 500, 500, 500, 500, 500, 500, - 500, 500, 500, 500, 500, 500}; + TCanvas *canEpsilonT[noIntervals]; + for (Int_t i = 0; i