From 1f2e4d36237f7f042fc3a49e3f678e093554dd71 Mon Sep 17 00:00:00 2001 From: "Kostyleva D.A" Date: Tue, 17 Jan 2017 14:24:44 +0300 Subject: [PATCH] AEvent::FindFrontProperties is being tested --- dataClasses/AEvent.cpp | 6 +++++- macros/analyse.C | 5 +++++ macros/testShowGraphs.cxx | 18 +++++++++--------- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/dataClasses/AEvent.cpp b/dataClasses/AEvent.cpp index 0f8949f..71bf043 100644 --- a/dataClasses/AEvent.cpp +++ b/dataClasses/AEvent.cpp @@ -198,10 +198,14 @@ void AEvent::FindFrontProperties() { fTime90 = time; time = time - timeStep; } +// cout << "Found time90 " << fTime90 << endl; + +// cout<< "Time90 - time10 "<< fTime90 - fTime10 << endl; +// if(fTime90 - fTime10 == 0.25 ) { cout<< "Zero !!"<SetRange(fTime10,fTime90); - fGraphSignal->Fit(fit1,"RQN","goff"); + fGraphSignal->Fit(fit1,"RQ","goff"); fEdgeSlope = fit1->GetParameter(1); delete fit1; diff --git a/macros/analyse.C b/macros/analyse.C index 02d13c6..62b79d7 100644 --- a/macros/analyse.C +++ b/macros/analyse.C @@ -1,3 +1,8 @@ +// now raw .root to analyzed .root conversion +// is taking place in +// ./convertRawToAnalyzed/analyse.cpp +// it is compiled within makefile + void analyse() { gSystem->Load("../libData.so"); diff --git a/macros/testShowGraphs.cxx b/macros/testShowGraphs.cxx index 44c781f..270b6e7 100644 --- a/macros/testShowGraphs.cxx +++ b/macros/testShowGraphs.cxx @@ -3,11 +3,11 @@ void testShowGraphs() gSystem->Load("../libData.so"); - const Long64_t kFirstEvent = 128; + const Long64_t kFirstEvent = 50; // TFile fr("../data/dataDSR4/analysis_07_1.root"); -// TFile fr("../data/dataDSR4/analysis_07_8.root"); - TFile fr("../data/dataTektronix/analysisExp7.root"); + TFile fr("../data/dataDSR4/analysis_07_8.root"); +// TFile fr("../data/dataTektronix/analysisExp7.root"); TTree *tr = (TTree*)fr.Get("atree"); AEvent *revent = new AEvent(); @@ -15,22 +15,22 @@ void testShowGraphs() TGraph *gr[10]; - cout << "warning" << endl; +// cout << "warning" << endl; cout << tr->GetEntries() << endl; //loop over events for (Long64_t i = 0; i < 10; i++) { gr[i] = 0; - cout << "warning 1" << endl; +// cout << "warning 1" << endl; cout << i+kFirstEvent << endl; -// tr->GetEntry(i+kFirstEvent); - tr->GetEntry(i); - cout << "warning 2" << endl; + tr->GetEntry(i+kFirstEvent); +// tr->GetEntry(i); +// cout << "warning 2" << endl; gr[i] = new TGraph(*revent->GetGraphSignal()); }//for over events - cout << "warning 3" << endl; +// cout << "warning 3" << endl; TCanvas *c1 = new TCanvas("c1","test",10,10,1000,600); c1->Divide(3,2); -- 2.18.1