From 5e0723a09b2f77ad054d89992134acdfba7e92ae Mon Sep 17 00:00:00 2001 From: Vratislav Chudoba Date: Fri, 21 Jul 2017 10:01:14 +0300 Subject: [PATCH] EpsilonT() implemented. --- Be/BeAnalysis.cpp | 123 ++++++++++++++++++++++++++-------- Be/BeAnalysis.h | 17 +++++ macros/BeCorrPRC/lib_test.cxx | 6 +- 3 files changed, 118 insertions(+), 28 deletions(-) diff --git a/Be/BeAnalysis.cpp b/Be/BeAnalysis.cpp index 9fac8b2..b412d78 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